Przeglądaj źródła

模板主页面添加过滤

Luolei 6 lat temu
rodzic
commit
0ef85747f6

+ 1 - 0
src/components/icss/DiagnosisList.vue

@@ -144,6 +144,7 @@ export default {
             const param = this.getFilterItems();
             api.getTagList(param).then((res) => {
                 const list = res.data.data.records
+                console.log(res,1111111111)
                 for (var i = 0; i < list.length; i++) {
                     for (var j =  0; j < this.tagTypes.length; j++) {
                         if(list[i].tagType == this.tagTypes[j].val) {

+ 8 - 1
src/components/icss/TemplateMaintenance.vue

@@ -9,7 +9,13 @@
                 </el-form-item>
                 <el-form-item label="归属:">
                     <el-select size="mini" v-model="filter.tagAdscription" placeholder="归属" clearable>
-                        <el-option v-for="item in Adscriptions" :label="item.name" :value="item.val" :key="item.val" ></el-option>
+                        <el-option 
+                          v-for="item in Adscriptions" 
+                          :label="item.name" 
+                          :value="item.val" 
+                          :key="item.val" 
+                          v-if="!((filter.templateType === 0 || filter.templateType === 1) && (item.val == 4 || item.val == 5 || item.val == 6))"
+                        ></el-option>
                     </el-select>
                 </el-form-item>
                 <el-form-item label="属于:">
@@ -132,6 +138,7 @@
     },
     watch: {
       tmpType(newVal, preVal){
+        this.filter.tagAdscription = ''
         if(newVal != preVal){
           if(newVal == 1){
             this.AdscriptionsOwnTo = this.deptAndDisInfo.deptDTOS