Commit 9eb7e2b0 authored by yaqizhang's avatar yaqizhang

修改按钮刷新

parent 108884d7
......@@ -457,6 +457,7 @@ export default {
this.msgSuccess("修改成功");
this.open1 = false;
this.getList();
location.reload();
});
} else if (this.title1 == "新增巡检计划") {
addInspectionPlan(this.form1).then(response => {
......
......@@ -186,7 +186,7 @@
size="normal"
type="primary"
icon="el-icon-edit"
@click="handleUpdate(form.troubleId)"
@click="handleUpdate(form)"
v-hasPermi="['riskManagement:hiddenTrouble:edit']"
>修改
</el-button>
......@@ -489,6 +489,7 @@ export default {
this.msgSuccess("修改成功");
this.open1 = false;
this.getList();
location.reload();
});
} else {
addHiddenTrouble(this.form1).then(response => {
......@@ -508,13 +509,12 @@ export default {
});
},
/** 修改按钮操作 */
handleUpdate(troubleId) {
this.reset();
handleUpdate(res) {
this.getUserList();
deviceNodeTree().then(response => {
this.options = response.data;
});
getHiddenTrouble(troubleId).then(response => {
getHiddenTrouble(res.troubleId).then(response => {
this.form1 = response.data;
console.log("this.form1", this.form1);
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