浏览代码

Merge branch 'dev' of http://192.168.2.236:10080/zhouna/platformFront into dev

Luolei 6 年之前
父节点
当前提交
103fafc5ba

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

@@ -132,7 +132,7 @@
     .user .logo {
         background: @userBase;
 
-    p {;
+    p {
         font-size: 16px;
         line-height: normal
     }

+ 7 - 1
src/components/common/Menu.vue

@@ -38,4 +38,10 @@
     methods: {
     }
   }
-</script>
+</script>
+
+<style lang="less" scoped>
+  .el-menu-vertical-demo {
+    min-width: 300px;
+  }
+</style>

+ 7 - 2
src/components/icss/AddMedicalMultRelation.vue

@@ -124,7 +124,8 @@ import api from '@api/icss.js';
         excludedConceptIds:[],
         operaList: [],
         isEdit: false,  //是否为修改
-        relationConceptId: '' //关联父类ID
+        relationConceptId: '', //关联父类ID
+        level: 0, //层级(修改时只能显示三级)
       }
     },
     created(){
@@ -180,6 +181,7 @@ import api from '@api/icss.js';
         })
       },
       IteraNodeList(nodeList,  nodeListResult, type, level = 1) {
+        this.level= this.level + 1
         for(let i = 0; i <nodeList.length; i++) {
           let newChild;
           if(type == '0') { //添加的时候保存所有的id列表
@@ -190,7 +192,10 @@ import api from '@api/icss.js';
           } else if(type == '2') { //移除节点的时候同时移除节点(搜索时排除的id列表)
             newChild = nodeList[i].conceptId
           }
-          if(nodeList[i].nodeList.length > 0) {
+          if(this.level === 3) {
+            return
+          }
+          if(nodeList[i].nodeList &&nodeList[i].nodeList.length > 0) {
             if(type == '0' || type =='1') {
               this.IteraNodeList(nodeList[i].nodeList,  newChild.nodeList, type, level+1)
             } else if(type == '2') {

+ 29 - 6
src/components/icss/AddMedicalName.vue

@@ -206,7 +206,8 @@ import pinyin from '../../js/Convert_Pinyin.js';
             name:'女',
             value:2
           }
-        ]
+        ],
+        unfit:false //点确认时是否弹提示
       }
     },
     created(){
@@ -314,10 +315,12 @@ import pinyin from '../../js/Convert_Pinyin.js';
               message:'无法输入纯数字,请输入正确数据!',
               type:'warning'
             });
-            this.data.name = '';
+            // this.data.name = '';
+            this.unfit = true;
           }else{
             let data = this.data;
             data.spell = pinyin.getCamelChars(data.name);
+            this.unfit = false;
           }
         }else if(type==2){
           // 修改时术语名称、拼音和类型均不能修改
@@ -328,10 +331,12 @@ import pinyin from '../../js/Convert_Pinyin.js';
                 message:'无法输入纯数字,请输入正确数据!',
                 type:'warning'
               });
-              this.synonymous[index-1].name = '';
+              // this.synonymous[index-1].name = '';
+              this.unfit = true;
             }else{
               let current = this.synonymous[index-1];
               current.spell = pinyin.getCamelChars(current.name);
+              this.unfit = false;
             }
           }else{
             if(this.synonymous[index].name && !pattern.test(this.synonymous[index].name)){
@@ -339,10 +344,12 @@ import pinyin from '../../js/Convert_Pinyin.js';
                 message:'无法输入纯数字,请输入正确数据!',
                 type:'warning'
               });
-              this.synonymous[index].name = '';
+              // this.synonymous[index].name = '';
+              this.unfit = true;
             }else{
               let current = this.synonymous[index];
               current.spell = pinyin.getCamelChars(current.name);
+              this.unfit = false;
             }
           }
         }
@@ -394,7 +401,7 @@ import pinyin from '../../js/Convert_Pinyin.js';
           this.warning('请输入标准词');
           return
         }
-        if(!this.data.type){
+        if(!this.data.type && !this.unfit){
           this.warning('请选择术语类型');
           return
         }
@@ -444,6 +451,22 @@ import pinyin from '../../js/Convert_Pinyin.js';
           realData[i].type = this.data.type;
           detailList.push(realData[i]);
         }
+        // 校验是否有名称全为数字
+        const pattern = /[^0-9]/g;
+        for(let i=0; i<detailList.length; i++){
+          if(detailList[i].name && !pattern.test(detailList[i].name)){
+            if(!this.unfit){
+              this.$message({
+                message:'无法输入纯数字,请输入正确数据!',
+                type:'warning'
+              });
+            }
+            this.unfit = false;
+            return false;
+            break
+          }
+        }
+        
         let params;
         if(this.showMore==1){
           // 下拉文字转code
@@ -488,7 +511,7 @@ import pinyin from '../../js/Convert_Pinyin.js';
         })
       },
       inputAge(){
-        console.log("输入年龄")
+        // console.log("输入年龄")
       },
       selectType(e){
         this.typeList.map((v,i)=>{

+ 1 - 1
src/components/icss/IndeptLabel.vue

@@ -204,7 +204,7 @@
           size: this.pageSize,
           type: this.filter.tagAdscription,
           tagName: this.filter.tagSysName,
-          controlTypeList: this.filter.controlType
+          controlTypeList: this.filter.controlType[0] ? this.filter.controlType: []
         };
         return param;
       },

+ 1 - 0
src/less/common.less

@@ -43,6 +43,7 @@
   height: 100%;
   .logo {
     width: 100%;
+    min-width: 300px;
     text-align: center;
     color: #fff;
     height: @header-height;