Browse Source

提示语修改,不可编辑限制

Luolei 6 years ago
parent
commit
81d69c2c0f

+ 3 - 2
src/components/icss/AddMedicalName.vue

@@ -55,7 +55,7 @@
                 <!-- 使用原生input,输入限制 -->
                 <!-- <el-input v-model="item.name" placeholder="请输入术语" maxlength="30" size="small" @input.native="handleInput(2,index)"></el-input> -->
                 <!-- <input type="text" v-model="item.name" placeholder="请输入术语" maxlength="30" @input="handleInput(2,index)"> -->
-                <input type="text" v-model="item.name" placeholder="请输入术语" maxlength="30" @blur="handleBlur(2,index,99)">
+                <input type="text" v-model="item.name" :title="item.name" placeholder="请输入术语" maxlength="30" @blur="handleBlur(2,index,99)" :disabled="!item.isEdit">
               </td>
               <td>
                 {{data.type}}
@@ -302,7 +302,8 @@ import api from '@api/icss.js';
         let singleSpan = {
           name:'',
           remark:'',
-          isConcept:0
+          isConcept:0,
+          isEdit:true
         }
         if(type == 55){
           this.allwords.push(singleSpan);

+ 2 - 2
src/components/icss/MedicalName.vue

@@ -216,8 +216,8 @@
           conceptId:item.conceptId,
           isDeleted:item.isDeleted === 'N'?'Y':'N'
         }
-        
-        this.showConfirmDialog('删除该标准术语,需要将所关联的医学属性、术语关系、医学静态知识等信息全部解除关联才可正常删除该信息,是否删除?',()=>{
+        let waringTxt = (item.isDeleted === 'N'?'是否删除该标准术语?':'是否重新启用该条数据?')
+        this.showConfirmDialog(waringTxt,()=>{
           api.deletMedicalName(param).then((res)=>{
             if(res.data.code=='0'){
               this.warning(res.data.msg||'操作成功','success');

+ 4 - 1
src/components/icss/MedicalRelation.vue

@@ -165,6 +165,7 @@
           "relationId": this.type,
           "size": this.pageSize,
           "startName": this.startName,
+          "isDeleted":this.isState
         }
         const params = this.type?param1:param;
         api.knowledgeRelation(params).then((res) => {
@@ -243,7 +244,8 @@
           id:item.id,
           isDeleted:item.isDeleted === 'N'?'Y':'N'
         }
-        this.showConfirmDialog('是否删除该关系?可能对现有系统造成影响',()=>{
+        let warningTxt = item.isDeleted === 'N'?'是否删除该关系?可能对现有系统造成影响':'是否重新启用该条数据?'
+        this.showConfirmDialog(warningTxt,()=>{
           api.delKnowledgeRelation(params).then((res)=>{
             if(res.data.code=='0'){
               this.warning(res.data.msg||'操作成功','success');
@@ -276,6 +278,7 @@
               message: '上传成功',
               type: 'success',
             });
+            this.getDataList()
           }else{
             this.$message({
               dangerouslyUseHTMLString: true,