Browse Source

模版管理修改

linbl 10 months ago
parent
commit
06d81a00c2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/report/TEMPLATE/index.vue

+ 2 - 2
src/views/report/TEMPLATE/index.vue

@@ -249,7 +249,6 @@
         return;
       }
       this.$message.success('上传成功');
-      //this.reset();
     },
     /** 查询模板管理列表 */
     getList() {
@@ -336,7 +335,8 @@
           if (this.form.id != null) {
             queryStatusNum().then(response => {
               let statusOnNum = response;
-              if(statusOnNum > 0 && this.form.status === "1") {
+              let templateData = this.TEMPLATEList.filter(data => data.id == this.form.id)
+              if(statusOnNum > 0 && this.form.status === "1" && templateData[0].status === "0") {
                 this.$modal.confirm("当前已有模版为启用状态,请先停用其他模版!").then(() => {
                   this.form.status = "0";
                 }).catch(function() {