启用/禁用执行逻辑

lijinlong^2
许宏杰 2 years ago
parent e90b1f71d5
commit 14a3de2b7c

@ -112,7 +112,10 @@
<el-table-column label="域名" align="center" prop="dns" /> <el-table-column label="域名" align="center" prop="dns" />
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -410,6 +413,15 @@ export default {
}); });
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateEnterprise(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询重点企业名录列表 */ /** 查询重点企业名录列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -78,7 +78,10 @@
<el-table-column label="备案许可证号" align="center" prop="licenceNum" /> <el-table-column label="备案许可证号" align="center" prop="licenceNum" />
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -370,6 +373,15 @@ export default {
}); });
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updatePingtai(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询网络平台列表 */ /** 查询网络平台列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -144,7 +144,10 @@
</el-table-column> </el-table-column>
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -449,6 +452,15 @@ export default {
}); });
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateReport(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询网络举报列表 */ /** 查询网络举报列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -123,7 +123,10 @@
</el-table-column> </el-table-column>
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -399,6 +402,15 @@ export default {
}, },
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateZhuanxiang(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询清朗专项列表 */ /** 查询清朗专项列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -95,7 +95,10 @@
<el-table-column label="数量" align="center" prop="count" /> <el-table-column label="数量" align="center" prop="count" />
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -309,6 +312,15 @@ export default {
}, },
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateQlzxxdsj(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询清郎专项行动数据统计列表 */ /** 查询清郎专项行动数据统计列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -99,7 +99,10 @@
<el-table-column label="主要依据" align="center" prop="zhuyaoYiju" /> <el-table-column label="主要依据" align="center" prop="zhuyaoYiju" />
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -356,6 +359,15 @@ export default {
}, },
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateDomain(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询重点领域监管列表 */ /** 查询重点领域监管列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -101,7 +101,10 @@
</el-table-column> </el-table-column>
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -344,6 +347,15 @@ export default {
}, },
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateDongtai(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询工作动态列表 */ /** 查询工作动态列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -133,7 +133,10 @@
<el-table-column label="联系人职务" align="center" prop="linkManDuty" /> <el-table-column label="联系人职务" align="center" prop="linkManDuty" />
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -406,6 +409,15 @@ export default {
}); });
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateWork(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询重点工作项目列表 */ /** 查询重点工作项目列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -136,7 +136,10 @@
/> />
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -488,6 +491,15 @@ export default {
}); });
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateSource(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/**过滤显示 */ /**过滤显示 */
filterShow(value) { filterShow(value) {
let routeName = this.$route.name; let routeName = this.$route.name;

@ -67,7 +67,10 @@
<el-table-column label="APT(M)" align="center" prop="lable2" /> <el-table-column label="APT(M)" align="center" prop="lable2" />
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -233,6 +236,15 @@ export default {
}); });
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateSourceTj(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询数据来源统计列表 */ /** 查询数据来源统计列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -117,7 +117,10 @@
<el-table-column label="部门" align="center" prop="depName" /> <el-table-column label="部门" align="center" prop="depName" />
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -452,6 +455,15 @@ export default {
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateDanger(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询安全隐患列表 */ /** 查询安全隐患列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -118,7 +118,10 @@
<el-table-column label="联系人" align="center" prop="linkMan" /> <el-table-column label="联系人" align="center" prop="linkMan" />
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -478,6 +481,15 @@ export default {
}); });
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateDetection(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询安全检测列表 */ /** 查询安全检测列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -75,7 +75,10 @@
<el-table-column label="攻击次数" align="center" prop="attackCount" /> <el-table-column label="攻击次数" align="center" prop="attackCount" />
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -242,6 +245,15 @@ export default {
}); });
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateAttack(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询地区受攻击列表 */ /** 查询地区受攻击列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -87,7 +87,10 @@
<el-table-column label="僵木蠕病毒" align="center" prop="jmrSum" /> <el-table-column label="僵木蠕病毒" align="center" prop="jmrSum" />
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -270,6 +273,15 @@ export default {
}); });
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateTj(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询安全监测受攻击统计列表 */ /** 查询安全监测受攻击统计列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -119,7 +119,10 @@
</el-table-column> </el-table-column>
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -538,6 +541,15 @@ export default {
}); });
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateSystem(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询等保系统列表 */ /** 查询等保系统列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -119,7 +119,10 @@
<el-table-column label="单位责任人—姓名" align="center" prop="fuzeName" /> <el-table-column label="单位责任人—姓名" align="center" prop="fuzeName" />
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -477,6 +480,15 @@ export default {
}); });
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateUnit(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询等保单位列表 */ /** 查询等保单位列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -103,7 +103,10 @@
</el-table-column> </el-table-column>
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -327,6 +330,15 @@ export default {
}, },
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateWeb(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询政府网站列表 */ /** 查询政府网站列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -89,7 +89,10 @@
<el-table-column label="IP段信息" align="center" prop="ipData" /> <el-table-column label="IP段信息" align="center" prop="ipData" />
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -292,6 +295,15 @@ export default {
}, },
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateIDCunit(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询IDC单位列表 */ /** 查询IDC单位列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -128,6 +128,14 @@
<span>{{ parseTime(scope.row.tbTime, "{y}-{m}-{d}") }}</span> <span>{{ parseTime(scope.row.tbTime, "{y}-{m}-{d}") }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="启用/禁用" align="center">
<template slot-scope="scope">
<el-switch
v-model="scope.row.isStatus"
@change="changeSwitch($event, scope.row.id)"
></el-switch>
</template>
</el-table-column>
<el-table-column <el-table-column
label="操作" label="操作"
align="center" align="center"
@ -403,6 +411,15 @@ export default {
}, },
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateTb(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询通报列表 */ /** 查询通报列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -78,7 +78,10 @@
<el-table-column label="舆情预警占比" align="center" prop="yqyjZb" /> <el-table-column label="舆情预警占比" align="center" prop="yqyjZb" />
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -261,6 +264,15 @@ export default {
}); });
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateSx(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询动态筛选列表 */ /** 查询动态筛选列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -168,7 +168,10 @@
</el-table-column> </el-table-column>
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -579,6 +582,15 @@ export default {
}); });
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateSentiment(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询网络舆情列表 */ /** 查询网络舆情列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -117,7 +117,10 @@
<el-table-column label="涉事数量" align="center" prop="eventCount" /> <el-table-column label="涉事数量" align="center" prop="eventCount" />
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -351,6 +354,15 @@ export default {
}); });
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateFl(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询舆情分类列表 */ /** 查询舆情分类列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -95,7 +95,10 @@
<el-table-column label="数量" align="center" prop="count" /> <el-table-column label="数量" align="center" prop="count" />
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -309,6 +312,15 @@ export default {
}, },
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateZs(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询舆情走势图列表 */ /** 查询舆情走势图列表 */
getList() { getList() {
this.loading = true; this.loading = true;

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

@ -105,7 +105,10 @@
</el-table-column> </el-table-column>
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -381,6 +384,15 @@ export default {
}); });
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateCommentator(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询网评员列表 */ /** 查询网评员列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -130,7 +130,10 @@
<el-table-column label="文章地址" align="center" prop="url" /> <el-table-column label="文章地址" align="center" prop="url" />
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -451,6 +454,15 @@ export default {
}); });
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateArticle(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/**评价 */ /**评价 */
handPj(row) { handPj(row) {
this.currentData = row; this.currentData = row;

@ -88,7 +88,10 @@
<el-table-column label="手机号" align="center" prop="phoneNum" /> <el-table-column label="手机号" align="center" prop="phoneNum" />
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -319,6 +322,15 @@ export default {
}); });
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updatePrincipal(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询网络民情责任人列表 */ /** 查询网络民情责任人列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -121,7 +121,10 @@
</el-table-column> </el-table-column>
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -380,6 +383,15 @@ export default {
}); });
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateEvaluate(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询网评列表 */ /** 查询网评列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -99,7 +99,10 @@
<el-table-column label="电话" align="center" prop="tel" /> <el-table-column label="电话" align="center" prop="tel" />
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -366,6 +369,15 @@ export default {
}); });
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateSafetyadmin(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询网络安全官列表 */ /** 查询网络安全官列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -90,7 +90,10 @@
<el-table-column label="联系电话" align="center" prop="phoneNum" /> <el-table-column label="联系电话" align="center" prop="phoneNum" />
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -302,6 +305,15 @@ export default {
}, },
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateNetSafetyZcUnit(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询网络安全支持单位列表 */ /** 查询网络安全支持单位列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -98,7 +98,10 @@
<el-table-column label="联系方式" align="center" prop="phoneNum" /> <el-table-column label="联系方式" align="center" prop="phoneNum" />
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -348,6 +351,15 @@ export default {
}); });
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateVolunteer(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询网络文明自愿者列表 */ /** 查询网络文明自愿者列表 */
getList() { getList() {
this.loading = true; this.loading = true;

@ -88,7 +88,10 @@
<el-table-column label="完成率" align="center" prop="finish" /> <el-table-column label="完成率" align="center" prop="finish" />
<el-table-column label="启用/禁用" align="center"> <el-table-column label="启用/禁用" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -274,6 +277,15 @@ export default {
}, },
}, },
methods: { methods: {
changeSwitch(e, id) {
let data = {
id,
isStatus: e,
};
updateWpyrwwcl(data).then((res) => {
this.$modal.msgSuccess(e == true ? "启用成功" : "禁用成功");
});
},
/** 查询网评员任务完成率心列表 */ /** 查询网评员任务完成率心列表 */
getList() { getList() {
this.loading = true; this.loading = true;

Loading…
Cancel
Save