|
|
|
@ -80,7 +80,10 @@
|
|
|
|
|
<el-table-column label="所占百分比" align="center" prop="percent" />
|
|
|
|
|
<el-table-column label="启用/禁用" align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-switch v-model="scope.row.isStatus"></el-switch>
|
|
|
|
|
<el-switch
|
|
|
|
|
v-model="scope.row.isStatus"
|
|
|
|
|
@change="changeSwitch($event, scope.row.id)"
|
|
|
|
|
></el-switch>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
@ -271,6 +274,15 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
changeSwitch(e, id) {
|
|
|
|
|
let data = {
|
|
|
|
|
id,
|
|
|
|
|
isStatus: e,
|
|
|
|
|
};
|
|
|
|
|
updateBjsj(data).then((res) => {
|
|
|
|
|
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 查询本级上级网评指令比列 (月)列表 */
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|