四性检测改成可切换 Switch 开关

main
mo 1 year ago
parent 068bf7cabe
commit 4b3d328272

@ -124,10 +124,13 @@
<el-table-column label="依据和方法" align="center" prop="methods" />
<el-table-column label="是否开启" align="center" prop="enableFlag">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.INFRA_BOOLEAN_STRING"
:value="scope.row.enableFlag"
/>
<el-switch
v-model="scope.row.enableFlag"
active-color="#13ce66"
inactive-color="#ff4949"
@change="handleChangeStatus(scope.row)"
>
</el-switch>
</template>
</el-table-column>
</el-table>
@ -281,6 +284,10 @@ export default {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleChangeStatus(data) {
updateDetection(data).then((response) => {});
},
/** 新增按钮操作 */
handleAdd() {
this.reset();

Loading…
Cancel
Save