Browse Source

别名搜索限制推送类型

liucf 6 năm trước cách đây
mục cha
commit
7acdefc115

+ 3 - 0
src/api/config.js

@@ -150,6 +150,9 @@ export default {
     'knowledgeName': 'api/knowledgeman/concept/getAllInformation', //医学术语--命名维护
     'knowledgeUpload': 'api/knowledgeman/concept/importTermExcel', //医学术语--命名维护-导入
     'allKnowledgeType': 'api/knowledgeman/type/getAllType', //医学术语--类型列表
+    'deletMedicalName': 'api/knowledgeman/concept/removeConceptInfo', //医学术语--命名维护-删除
+    'getMedicalDetail': 'api/knowledgeman/concept/getConceptInfo', //医学术语--命名维护-修改获取同义词
+    'knowledgeRelation': 'api/knowledgeman/relation/getAllRelation', //医学术语--关系维护
 	},
 	menuIconList: { //菜单对应图标
 		'YH-KZT': 'el-icon-menu',

+ 9 - 0
src/api/icss.js

@@ -223,4 +223,13 @@ export default {
     knowledgeUpload(param) {//命名维护--导入
         return axios.post(urls.knowledgeUpload, param)
     },
+    deletMedicalName(param) {//命名维护--删除
+        return axios.post(urls.deletMedicalName, param)
+    },
+    getMedicalDetail(param) {//命名维护--修改
+        return axios.post(urls.getMedicalDetail, param)
+    },
+    knowledgeRelation(param) {//命名维护--修改
+        return axios.post(urls.knowledgeRelation, param)
+    },
 }

+ 54 - 4
src/components/icss/AddMedicalName.vue

@@ -121,7 +121,7 @@ import api from '@api/icss.js';
     },
     created(){
       this.getTypeList();
-      const info = this.$route.params.info;
+      const info = this.$route.params.info;console.log(111,info);
       if(info){
         this.minTitle = '医学术语命名维护-修改';
         this.id = info.id;
@@ -132,6 +132,20 @@ import api from '@api/icss.js';
       }
     },
     methods:{
+      getDetail(){
+        const params = {
+          term:this.data.name,
+          type:this.data.type
+        }
+        api.getMedicalDetail(params).then((res)=>{
+          const result = res.data;console.log(1111,result);
+          if(result.code == 0){
+            
+          }else{
+            this.$message.error(result.msg);
+          }
+        })
+      },
       getTypeList(){
         const param = {
           current: this.currentPage,
@@ -164,12 +178,48 @@ import api from '@api/icss.js';
         this.synonymous.push(singleSpan);
         // this.synIndex = index;
       },
+      arning(msg,type){
+        this.$message({
+          showClose: true,
+          message:msg,
+          type:type||'warning'
+        })
+      },
+      showConfirmDialog(msg,resolve){
+        this.$alert(msg, '提示', {
+          confirmButtonText: '确定',
+          type: 'warning'
+        }).then(() => {
+          resolve();
+        }).catch(() => {});
+      },
       deleLine(index){
-        this.synonymous.splice(index,1);
-        // console.log(123,index,this.synonymous);
+        const item = this.synonymous[index];
+        const param = {
+          term:item.term,
+          type:item.type,
+          id:item.id
+        }
+        this.showConfirmDialog('是否删除该同义词?',()=>{
+          api.deletMedicalName(param).then((res)=>{
+            if(res.data.code=='0'){
+              this.warning(res.data.msg||'操作成功','success');
+              // this.getDataList();
+              // this.synonymous.splice(index,1);
+            }else{
+              this.warning(res.data.msg);
+            }
+          }).catch((error)=>{
+            this.warning(error);
+          })
+        });
       },
+      // deleLine(index){
+      //   this.synonymous.splice(index,1);
+      //   // console.log(123,index,this.synonymous);
+      // },
       comfirn(){
-
+        
       }
     }
   }

+ 2 - 1
src/components/icss/AddSimilarName.vue

@@ -224,7 +224,8 @@
       search(){
         const param = {
           'tagName':this.searchStr,
-          'notTagType':[8,10,11]
+          'notTagType':[8,10,11],
+          'notControlType':[99]
         }
         api.searchLable(param).then((res)=>{
           const result = res.data;

+ 10 - 5
src/components/icss/MedicalName.vue

@@ -64,7 +64,7 @@
                     <template slot-scope="scope">
                         <el-button type="text" size="small" @click="toEditProduct(scope.row)">修改</el-button>
                         <span style="margin:0 3px;">|</span>
-                        <el-button type="text" size="small" class="delete" @click="showDelDialog(scope.row.questionId)">删除</el-button>
+                        <el-button type="text" size="small" class="delete" @click="showDelDialog(scope.row)">删除</el-button>
                     </template>
                 </el-table-column>
             </el-table>
@@ -186,9 +186,14 @@
           resolve();
         }).catch(() => {});
       },
-      showDelDialog(id){
+      showDelDialog(item){
+        const param = {
+          term:item.term,
+          type:item.type,
+          id:item.id
+        }
         this.showConfirmDialog('删除该标准词,可能造成相关联的医学信息、术语关系、医学静态知识等信息全部删除,是否删除?',()=>{
-          api.delSimilarName({questionId:id}).then((res)=>{
+          api.deletMedicalName(param).then((res)=>{
             if(res.data.code=='0'){
               this.warning(res.data.msg||'操作成功','success');
               this.getDataList();
@@ -215,7 +220,7 @@
             'Content-Type': 'multipart/form-data'
           }
         }
-        /*api.knowledgeUpload(formData,header).then((res)=>{
+        api.knowledgeUpload(formData,header).then((res)=>{
           if(res.data.code==0){
             this.$message({
               message: '上传成功',
@@ -229,7 +234,7 @@
         //解决上传相同文件不触发change
         let inp = document.getElementById("upFile");
         inp.value = "";
-        */
+        
       },
     }
   }

+ 3 - 3
src/components/icss/MedicalRelation.vue

@@ -127,7 +127,7 @@
       },
       getDataList() {
         const param = this.getFilterItems();
-        /*api.similarName(param).then((res) => {
+        api.knowledgeRelation(param).then((res) => {
           if (res.data.code == '0') {
             const data = res.data.data;
             this.list = data.records;
@@ -136,7 +136,7 @@
           }
         }).catch((error) => {
           console.log(error);
-        });*/
+        });
       },
       getDetailList(id) {
         const param = {'id': id,};
@@ -144,7 +144,7 @@
       },
       getFilterItems() {
         const param = {
-          questionName: this.filter.proName,
+          // questionName: this.filter.proName,
           current: this.currentPage,
           size: this.pageSize
         };