|
@@ -826,8 +826,10 @@ export default {
|
|
|
},
|
|
|
// 启用或禁用
|
|
|
editEnable() {
|
|
|
- if (this.form.checkStatus != "审核通过") {
|
|
|
- return this.$message.error("审核通过以后可以启用");
|
|
|
+ if (this.form.enableOrNot == 0) {
|
|
|
+ if (this.form.checkStatus != "审核通过") {
|
|
|
+ return this.$message.error("审核通过以后可以启用");
|
|
|
+ }
|
|
|
}
|
|
|
let data = this.form;
|
|
|
editenable({ id: data.id, enableOrNot: data.enableOrNot ? 0 : 1 }).then((res) => {
|