Luolei 6 سال پیش
والد
کامیت
f19a3cad8c

+ 1 - 1
src/api/config.js

@@ -120,7 +120,7 @@ export default {
     'delDiscInformation': 'api/knowledgeman/disclaimerInformation/cancelDisclaimerInformations', //免责声明-删除
     'closeInformation': 'api/knowledgeman/disclaimerInformation/endDisclaimerInformations', //免责声明-停用
     'openInformation': 'api/knowledgeman/disclaimerInformation/startDisclaimerInformations', //免责声明-启用
-    'getQuestionInfos': 'api/icssman/moduleInfo/getQuestionInfos', //模板维护标签池数据获取
+    'getQuestionInfos': 'api/icssman/moduleInfo/getQuestionInfos', //模板维护辅检标签池数据获取标准知识库
     'saveModuleInfo': 'api/icssman/moduleInfo/saveModuleInfo', //模板维护新增
     'updateModuleInfo': 'api/icssman/moduleInfo/updateModuleInfo', //模板维护修改
     'getModuleInfoList': 'api/icssman/moduleInfo/getModuleInfoList', //模板维护系统列表

+ 8 - 2
src/components/icss/ChronicDiseaseAdd.vue

@@ -220,9 +220,15 @@ export default {
       }
       api.searchKnowledgeLis({name: this.region}).then((res) => {
         if (res.data.code === '0') {
-          console.log(res)
-          this.AdscriptionsType = res.data.data
+          let result = res.data.data
+          this.AdscriptionsType = result
           this.showLis = this.AdscriptionsType.length > 0
+          if(result.length == 0){
+            this.$message({
+              message: '暂无搜索结果',
+              type: 'warning'
+            });
+          }
         }
       })
     },

+ 51 - 2
src/components/icss/InspactTagGroup.vue

@@ -31,7 +31,7 @@
     </div>
     <div class="bottomPartRight inspectBottomPartRight">
       <p class="poolTitle">操作界面:</p>
-      <ul class="tagList operationPool">
+      <ul class="tagList operationPool operationPools">
             <li class = "tagItem"
                 v-for="(item) in rightTagsList" 
                 :key='item.id'
@@ -42,6 +42,10 @@
             </li>
         </ul>
     </div>
+        <div class="bottomPartMid bottomPartMidss fl" :class="(type == 1 && isSymp == 0)?'':'bottomPartMids'">
+            <p><span class="el-icon-arrow-up" @click="toggleTopDownList(1)"></span></p>
+            <p><span class="el-icon-arrow-down" @click="toggleTopDownList(2)"></span></p>
+        </div>
   </div>
 </template>
 <script>
@@ -118,6 +122,46 @@ export default {
         
     },
     methods: {
+        toggleTopDownList(type){
+          if(this.selectRightTagsList.length == 0 || this.rightTagsList.length == 0){
+            return
+          }
+          const tmpRightSelect = JSON.parse(JSON.stringify(this.selectRightTagsList))
+          const tmpRightLis = JSON.parse(JSON.stringify(this.rightTagsList))
+          const numLen = tmpRightLis.length
+          const numId = tmpRightSelect[0].id
+          if(type == 1){
+            for(let i = 0;i < tmpRightLis.length;i++){
+              if(numId === tmpRightLis[i].id){//选中的是第几个
+                if(i == 0){//第一个不能往上移动
+                  return;
+                }else{//先把这个元素从数组中删除,再添加到数组里
+                  let tmp1 = tmpRightLis[i]
+                  tmpRightLis.splice(i,1)
+                  tmpRightLis.splice(i-1,0,tmp1)
+                  this.rightTagsList = [...tmpRightLis]
+                  this.$emit('changeActionData',this.rightTagsList, false);
+                  return
+                }
+              }
+            }
+          }else if(type == 2){
+            for(let i = 0;i < tmpRightLis.length;i++){
+              if(numId === tmpRightLis[i].id){
+                if(i == numLen){
+                  return;
+                }else{
+                  let tmp1 = tmpRightLis[i]
+                  tmpRightLis.splice(i,1)
+                  tmpRightLis.splice(i+1,0,tmp1)
+                  this.rightTagsList = [...tmpRightLis]
+                  this.$emit('changeActionData',this.rightTagsList, false);
+                  return
+                }
+              }
+            }
+          }
+        },
         selectLeftTag(tag, index, e) {
             const hasTag = this.isHasTag(tag, this.selectLeftTagsList)
             if (hasTag) {
@@ -131,7 +175,9 @@ export default {
             if (hasTag) {
                 this.selectRightTagsList = this.selectRightTagsList.filter(item => item.id !== tag.id)
             } else {
-                this.selectRightTagsList.push(tag);
+                let tmpArr = [];
+                tmpArr.push(tag);
+                this.selectRightTagsList=tmpArr;
             }
             
         },
@@ -218,6 +264,9 @@ export default {
 <style lang="less" >
 @import '../../less/common.less';
 .symptomTagGroupWrapper {
+  .operationPools {
+    width: 100% !important;
+  }
     .bottomPartLeft {
         width: 30%;
         box-sizing: border-box;

+ 5 - 2
src/components/icss/NoiseTemplate.vue

@@ -110,6 +110,7 @@ import BloodPressTagGroup from './BloodPressTagGroup';
 import SymptomPush from './SymptomPush';
 import api from '@api/icss.js';
 import utils from '@api/utils.js';
+import { constants } from 'fs';
 
 export default {
   name: 'NoiseTemplateWrapper',
@@ -134,7 +135,8 @@ export default {
     if(isEdit){
       this.txt = '标签组维护-修改标签组';
       this.editData = data;
-      // console.log('回读数据', this.editData)
+      this.form.currentOrder = data.textGenerate+''
+      // console.log('回读数据', data)
     }
   },
   computed: {
@@ -144,7 +146,8 @@ export default {
   },
   watch: {
     newSign(nextVal, prevVal) {
-      if (nextVal != prevVal) {
+      const {isEdit} = this.$route.params;
+      if (nextVal != prevVal && !isEdit) {
         this.form.currentOrder = '0'
       }
     },

+ 5 - 3
src/components/icss/PubTemplateGroup.vue

@@ -147,7 +147,7 @@ export default {
   watch: {
     tmpType(newVal, preVal){
       if(newVal != preVal){
-        if(newVal == 1){
+        if(newVal == 1){//科室
           let tmpDeptDTOS = this.deptDis.deptDTOS
           // let obj = {id:-1,name:'通用'}
           // if(tmpDeptDTOS[0].id != 0){
@@ -158,7 +158,7 @@ export default {
             this.form.region4 = ''
             this.form.region1 = ''
           }
-        }else if(newVal == 2){
+        }else if(newVal == 2){//慢病
           let tmpDisDTOS = this.deptDis.disDTOS
           // let obj = {id:-1,name:'通用'}
           // if(tmpDisDTOS[0].id != 0){
@@ -222,7 +222,9 @@ export default {
           if (res.data.code === '0') {//获取科室和疾病所有信息
             let result = res.data.data
             this.deptDis = result
-            this.sonLis = result.deptDTOS
+            if(this.editData.id){
+              this.sonLis = result.deptDTOS
+            }
           }
         })
       },