Browse Source

标签组类别填写单类型9没有标签池报错问题

Luolei 6 years ago
parent
commit
4d0718701f

+ 1 - 0
src/api/config.js

@@ -109,6 +109,7 @@ export default {
     'updateModuleInfo': 'api/icssman/moduleInfo/updateModuleInfo', //模板维护系统修改保存
     'getModuleInfoList': 'api/icssman/moduleInfo/getModuleInfoList', //模板维护系统列表
     'getModuleInfoOne': 'api/icssman/moduleInfo/getModuleInfoOne', //模板维护系统修改获取单个模板信息
+    'delTemplate': 'api/icssman/moduleInfo/delete', //模板维护系统删除单个模板信息
 	},
 	menuIconList: { //菜单对应图标
 		'YH-KZT': 'el-icon-menu',

+ 3 - 0
src/api/icss.js

@@ -102,4 +102,7 @@ export default {
     getModuleInfoOne(param) {//模板维护系统修改获取单个模板信息
         return axios.post(urls.getModuleInfoOne, param)
     },
+    delTemplate(param) {//模板维护系统删除单个模板信息
+        return axios.post(urls.delTemplate, param)
+    },
 }

+ 2 - 2
src/components/icss/PubTagGroup.vue

@@ -294,7 +294,7 @@ export default {
   watch: {
     newSex(nextVal, prevVal) {
       this.tmpSex = prevVal;
-      if (nextVal != prevVal || this.form.region2 == 2 || this.form.region2 == 6 || this.form.region2 == 7 || this.form.region2 == 9) {
+      if (nextVal != prevVal && (this.form.region2 == 2 || this.form.region2 == 6 || this.form.region2 == 7)) {
         this.searchTagList()
       }
     },
@@ -303,7 +303,7 @@ export default {
     },
     newSign(nextVal, prevVal) {
       this.tmpType = prevVal;
-      if (nextVal != prevVal || this.form.region2 == 2 || this.form.region2 == 6 || this.form.region2 == 7 || this.form.region2 == 9) {
+      if (nextVal != prevVal && (this.form.region2 == 2 || this.form.region2 == 6 || this.form.region2 == 7)) {
         this.searchTagList()
       }
     },

+ 16 - 15
src/components/icss/TemplateMaintenance.vue

@@ -30,11 +30,11 @@
                         width="180">
                 </el-table-column>
                 <el-table-column
-                        prop="tagName"
+                        prop="name"
                         label="模板名称">
                 </el-table-column>
                 <el-table-column
-                        prop="typeCn"
+                        prop="ascriptionName"
                         label="归属">
                 </el-table-column>
                 <el-table-column
@@ -140,19 +140,20 @@
         this.$router.push({path:'LT-YXSJWH-TJDLBQ'})
       },
       modifyIndeptTag(row) {
-        api.detailsTag({id:row.id,sexType:row.sexType,age:row.age}).then((res)=>{
-          const {code,data,msg} = res.data;
-          if(code=='0'){
-            const item = Object.assign({},row,data);
-            this.$router.push({name:'AddIndeptLabel',params:{isEdit:true,data:item}});
-          }else{
-            this.$message({
-              message: msg,
-              type: 'warning'
-            });
-          }
-        });
-        //this.$router.push({name:'AddIndeptLabel',params:{isEdit:true,data:row}});
+        // api.detailsTag({id:row.id,sexType:row.sexType,age:row.age}).then((res)=>{
+        //   const {code,data,msg} = res.data;
+        //   if(code=='0'){
+        //     const item = Object.assign({},row,data);
+        //     this.$router.push({name:'AddIndeptLabel',params:{isEdit:true,data:item}});
+        //   }else{
+        //     this.$message({
+        //       message: msg,
+        //       type: 'warning'
+        //     });
+        //   }
+        // });
+        console.log(row)
+        // this.$router.push({name:'AddIndeptLabel'});
       },
       currentChange(next) {
         this.currentPage = next;