Jelajahi Sumber

术语命名科室分类隐藏,版本信息无数据容错

zhouna 5 tahun lalu
induk
melakukan
4bdb3cfadc
2 mengubah file dengan 21 tambahan dan 12 penghapusan
  1. 1 1
      src/components/common/HomePage.vue
  2. 20 11
      src/components/icss/AddMedicalName.vue

+ 1 - 1
src/components/common/HomePage.vue

@@ -134,7 +134,7 @@
       fillVersionInfo(data){
         //进入时获取版本信息,如版本时间与localStorage中不一致或者一致但localStorage中未被点过,
         // 则要显示更新图标
-        let htl = '<h3>当前版本:'+data.name+'<span>'+data.refreshTime.substr(0,10)+'</span></h3>';
+        let htl = data.refreshTime?'<h3>当前版本:'+data.name+'<span>'+data.refreshTime.substr(0,10)+'</span></h3>':'<h3>当前版本:'+data.name+'</h3>';
         let prags = data.detail||[];
         this.versionName = data.name;
         const versionTime = JSON.parse(localStorage.getItem('versionInfo-'+this.userLoginDTO.username));

+ 20 - 11
src/components/icss/AddMedicalName.vue

@@ -182,7 +182,7 @@
                 @input="inputAge"
               ></el-input>
             </el-form-item>
-            <el-form-item label="科室:" v-if="dioType" class="marT">
+            <!--<el-form-item label="科室:" v-if="dioType" class="marT">
                 <el-select v-model="dept">
                     <el-option v-for="(it,i) in deptList" :label="it.name" :value="it.name"></el-option>
                 </el-select>
@@ -191,7 +191,7 @@
                 <el-select v-model="dioType">
                     <el-option v-for="(it,i) in dioTypeList" :label="it.name" :value="it.val"></el-option>
                 </el-select>
-            </el-form-item>
+            </el-form-item>-->
           </el-form> 
         </div>
         <div class="btn">
@@ -346,12 +346,12 @@ import pinyin from '../../js/Convert_Pinyin.js';
               this.maxAge = result.data.maxAge;
               this.minAge = result.data.minAge;
               const type = result.data.type;
-              if(type == '诊断'){
+              /*if(type == '诊断'){
                 this.dioType = result.data.classify; //类型
                 const deptConptId = result.data.deptId;
                 this.getDioType(true);
                 this.getDdeptList(deptConptId);
-              } 
+              }*/
               // this.sexType = result.data.sexType;
               let sexType = result.data.sexType;
               this.sex.map((v,i)=>{
@@ -596,8 +596,17 @@ import pinyin from '../../js/Convert_Pinyin.js';
               sexCode = v.value;
             }
           })
-          
-          if(this.dioType){
+
+          params = {
+            'name':this.data.name,
+            'type':this.data.type,
+            'detailList':detailList,
+            'conceptId':this.copy?'':this.id,//复制当新增,把id置空
+            'sexType':sexCode,
+            'maxAge':this.maxAge,
+            'minAge':this.minAge
+          }
+          /*if(this.dioType){
             const deptList = this.deptList;
             let conptId = null;
             for(let i in deptList){
@@ -628,7 +637,7 @@ import pinyin from '../../js/Convert_Pinyin.js';
               'maxAge':this.maxAge,
               'minAge':this.minAge
             }
-          }
+          }*/
           
         }else{
           params = {
@@ -667,13 +676,13 @@ import pinyin from '../../js/Convert_Pinyin.js';
             this.showMore = v.isHasCommon;
           }
         })
-        if(e == '诊断'){
+        /*if(e == '诊断'){
           this.getDioType();
           this.getDdeptList();
         }else{
           this.dioType = '';
           this.dept = '';
-        } 
+        }*/
       }
     }
   }
@@ -813,7 +822,7 @@ import pinyin from '../../js/Convert_Pinyin.js';
       margin: 0 35px;
      }
    }
-  /deep/ .marT{
+  /*/deep/ .marT{
     margin-top: 20px;
-  }
+  }*/
 </style>