فهرست منبع

独立标签表格标签类型显示修改,既往史添加标签池可选类型修改

zhouna 6 سال پیش
والد
کامیت
cdc557d0ee
2فایلهای تغییر یافته به همراه5 افزوده شده و 9 حذف شده
  1. 1 1
      src/api/config.js
  2. 4 8
      src/components/icss/IndeptLabel.vue

+ 1 - 1
src/api/config.js

@@ -125,7 +125,7 @@ export default {
     {controlType:[1,2],tagType:[1],notTagType:[8]},     //多列多选(杂音/初为)     notTagType为文字标签剔除
     {controlType:[1,2,6,7],tagType:[1,2],notTagType:[8]},  //多项统一横铺标签(血压)
     {controlType:[1,2,5,6,7],tagType:[1,2],notTagType:[8]},  //症状详细(症状尾巴)
-    {controlType:[1,2],tagType:[1,2,3,4,10],notTagType:[8]}, //组合项标签(既往史)
+    {controlType:[0,2],tagType:[1,4],notTagType:[8]}, //组合项标签(既往史)
     {controlType:[1,6],tagType:[],notTagType:[8]},    //化验组合
     {controlType:[1,2,99],tagType:[],notTagType:[8]},   //症状推送类型(添加症状)
   ]

+ 4 - 8
src/components/icss/IndeptLabel.vue

@@ -42,7 +42,7 @@
                         label="标签归属">
                 </el-table-column>
                 <el-table-column
-                        prop="controlTypeCn"
+                        prop="tagTypeCn"
                         label="标签类型">
                 </el-table-column>
                 <el-table-column
@@ -85,7 +85,6 @@
         list: [],
         tagTypes: [],
         Adscriptions: [],
-        tagTypesList: [],
         filter: {
           tagType: [], //标签类型
           tagAdscription: '', //标签归属
@@ -112,9 +111,6 @@
           if(res.data.code === '0') {
             this.Adscriptions = res.data.data[1];
             this.tagTypes =  res.data.data[6];
-            for (var i = 0; i < this.tagTypes.length; i++) {
-              this.tagTypesList.push(this.tagTypes[i].val)
-            }
           }
 
         })
@@ -124,11 +120,11 @@
         api.getTagList(param).then((res) => {
           const list = [...res.data.data.records];
           for (var i = 0; i < list.length; i++) {
-            /*for (var j =  0; j < this.tagTypes.length; j++) {
+            for (var j =  0; j < this.tagTypes.length; j++) {
               if(list[i].tagType == this.tagTypes[j].val) {
-                list[i].tagTypeCn = this.tagTypes[j].name;console.log(tagTypes[j].name)
+                list[i].tagTypeCn = this.tagTypes[j].name;
               }
-            }*/
+            }
             //后台数据typeCn转换为筛选中对应的字段名称
             for (var z =  0; z < this.Adscriptions.length; z++) {
               if(list[i].type == this.Adscriptions[z].val) {