四性检测改成可切换 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="methods" />
<el-table-column label="是否开启" align="center" prop="enableFlag"> <el-table-column label="是否开启" align="center" prop="enableFlag">
<template v-slot="scope"> <template v-slot="scope">
<dict-tag <el-switch
:type="DICT_TYPE.INFRA_BOOLEAN_STRING" v-model="scope.row.enableFlag"
:value="scope.row.enableFlag" active-color="#13ce66"
/> inactive-color="#ff4949"
@change="handleChangeStatus(scope.row)"
>
</el-switch>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -281,6 +284,10 @@ export default {
this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuery(); this.handleQuery();
}, },
//
handleChangeStatus(data) {
updateDetection(data).then((response) => {});
},
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.reset(); this.reset();

Loading…
Cancel
Save