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