Przeglądaj źródła

附件模板标签池获取接口更改

Luolei 6 lat temu
rodzic
commit
fc0451fc48
2 zmienionych plików z 26 dodań i 10 usunięć
  1. 1 1
      src/api/icss.js
  2. 25 9
      src/components/icss/CommonTemplate.vue

+ 1 - 1
src/api/icss.js

@@ -180,7 +180,7 @@ export default {
     getModuleInfoSub(param) {//获取子模板列表
         return axios.post(urls.getModuleInfoSub, param)
     },
-    getQuestionInfos(param) {//获取模板维护标签池数据
+    getQuestionInfos(param) {//获取辅检模板维护标签池数据
         return axios.post(urls.getQuestionInfos, param)
     },
     getModuleInfoOne(param) {//模板维护系统修改获取单个模板信息顶部信息

+ 25 - 9
src/components/icss/CommonTemplate.vue

@@ -562,25 +562,41 @@ export default {
     searchTagList() {
       let notIds = []
       let tmpArr = this.rightTagsList.slice();
+      let tmpTypeSin = this.getTextType(this.type)
       for (let i = 0; i < tmpArr.length; i++) {
         if(tmpArr[i].type != 'sub' && tmpArr[i].type != 'input'){
           notIds.push(tmpArr[i].id)
         }
       }
-      
       let param = {
         "tagName": this.searchVal,
-        "type": this.getTextType(this.type),
+        "type": tmpTypeSin,
         "notIds": notIds,
         "notTagType": this.type == 3?[3,8,10]:this.type==4?[4,8,10]:[3,4,8,10]//查体没有症状尾巴有血压,其他史有症状尾巴无血压
       }
-      api.searchTagList(param).then((res) => {
-        if (res.data.code === '0') {
-          this.leftTagsList = res.data.data
-          this.selectLeftTagsList = []
-          this.selectRightTagsList = []
-        }
-      })
+      let params = {
+        "notIds": notIds,
+        "tagName": this.searchVal,
+        "type": tmpTypeSin
+      }
+
+      if(tmpTypeSin == 6){
+        api.getQuestionInfos(params).then((res) => {
+          if (res.data.code === '0') {
+            this.leftTagsList = res.data.data
+            this.selectLeftTagsList = []
+            this.selectRightTagsList = []
+          }
+        })
+      }else{
+        api.searchTagList(param).then((res) => {
+          if (res.data.code === '0') {``
+            this.leftTagsList = res.data.data
+            this.selectLeftTagsList = []
+            this.selectRightTagsList = []
+          }
+        })
+      }
     },
     getSubTemplate() {
       let param = {