各项配置

master
fanluyan 1 year ago
parent 86321dcdf6
commit 6dd3a78195

@ -5,6 +5,7 @@
title="col配置" title="col配置"
:visible.sync="colDialogshow" :visible.sync="colDialogshow"
width="1020px" width="1020px"
@close="hide"
> >
<div class="colContain"> <div class="colContain">
<el-table <el-table
@ -70,9 +71,7 @@
</el-table> </el-table>
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="colDialogshow = false" <el-button type="primary" @click="hide"> </el-button>
> </el-button
>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
@ -153,6 +152,7 @@ export default {
}, },
hide() { hide() {
this.colDialogshow = false; this.colDialogshow = false;
this.cellIndex = null;
}, },
}, },
}; };

@ -98,6 +98,7 @@
保存 保存
</el-link> </el-link>
<el-link <el-link
:disabled="disableFlag"
type="primary" type="primary"
@click="handlecolConfigClick(scope)" @click="handlecolConfigClick(scope)"
size="small" size="small"
@ -149,6 +150,7 @@ export default {
tableSelectShow: false, tableSelectShow: false,
cellIndex: null, cellIndex: null,
colChildData: "", colChildData: "",
disableFlag: false,
}; };
}, },
mounted() { mounted() {
@ -245,6 +247,7 @@ export default {
this.tableName = ""; this.tableName = "";
this.tableSelectShow = true; this.tableSelectShow = true;
this.cellIndex = $index; this.cellIndex = $index;
this.disableFlag = true;
}, },
//tableName //tableName
handleSaveClick({ row }) { handleSaveClick({ row }) {
@ -257,6 +260,7 @@ export default {
if (res.success) { if (res.success) {
this.cellIndex = null; this.cellIndex = null;
this.geticdList(row.iedName); this.geticdList(row.iedName);
this.disableFlag = false;
} }
}) })
.catch((err) => {}); .catch((err) => {});
@ -296,7 +300,7 @@ export default {
duration: 1500, duration: 1500,
showClose: true, showClose: true,
message: "请先配置tableName", message: "请先配置tableName",
type: "success", type: "warning",
}); });
// this.handleEditClick(val); // this.handleEditClick(val);
} else { } else {

Loading…
Cancel
Save