|
|
|
@ -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();
|
|
|
|
|