Commit 9eb7e2b0 authored by yaqizhang's avatar yaqizhang

修改按钮刷新

parent 108884d7
...@@ -457,6 +457,7 @@ export default { ...@@ -457,6 +457,7 @@ export default {
this.msgSuccess("修改成功"); this.msgSuccess("修改成功");
this.open1 = false; this.open1 = false;
this.getList(); this.getList();
location.reload();
}); });
} else if (this.title1 == "新增巡检计划") { } else if (this.title1 == "新增巡检计划") {
addInspectionPlan(this.form1).then(response => { addInspectionPlan(this.form1).then(response => {
......
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
size="normal" size="normal"
type="primary" type="primary"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(form.troubleId)" @click="handleUpdate(form)"
v-hasPermi="['riskManagement:hiddenTrouble:edit']" v-hasPermi="['riskManagement:hiddenTrouble:edit']"
>修改 >修改
</el-button> </el-button>
...@@ -489,6 +489,7 @@ export default { ...@@ -489,6 +489,7 @@ export default {
this.msgSuccess("修改成功"); this.msgSuccess("修改成功");
this.open1 = false; this.open1 = false;
this.getList(); this.getList();
location.reload();
}); });
} else { } else {
addHiddenTrouble(this.form1).then(response => { addHiddenTrouble(this.form1).then(response => {
...@@ -508,13 +509,12 @@ export default { ...@@ -508,13 +509,12 @@ export default {
}); });
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(troubleId) { handleUpdate(res) {
this.reset();
this.getUserList(); this.getUserList();
deviceNodeTree().then(response => { deviceNodeTree().then(response => {
this.options = response.data; this.options = response.data;
}); });
getHiddenTrouble(troubleId).then(response => { getHiddenTrouble(res.troubleId).then(response => {
this.form1 = response.data; this.form1 = response.data;
console.log("this.form1", this.form1); console.log("this.form1", this.form1);
if(this.form1.deviceType != null && this.form1.deviceId != null){ if(this.form1.deviceType != null && this.form1.deviceId != null){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment