zhouna 4 лет назад
Родитель
Сommit
d093894b00

+ 4 - 0
src/api/zskDiagBase.js

@@ -10,6 +10,7 @@ const urls = {
     'searchDiag':'/api/cdssman/klDiagnose/findDiaName',
     'zskSearchConcept':'/api/cdssman/klDisease/searchConcept',//知识库搜索术语
     'zskgetDict':'/api/cdssman/kl/dictionary/getDictionarys',//获取枚举
+    'updateDiagBase':'/api/cdssman/cache/reloadDiagnose'
 };
 export default {
     zskgetDict(){
@@ -42,4 +43,7 @@ export default {
     searchConcept(param){
         return axios.post(urls.zskSearchConcept,param);
     },
+    updateDiagBase(param={}){
+        return axios.post(urls.updateDiagBase,param);
+    },
 }

+ 1 - 7
src/components/knowledgeExtra/AddDiagBase.vue

@@ -94,6 +94,7 @@
                 this.title = "诊断依据维护-"+(this.isCopy?'复制':'修改')+"诊断依据";
                 this.conceptList = [{conceptId:info.conceptId,conceptName:info.conceptName}];
                 this.form=Object.assign({},this.form,this.formatData(info));
+                this.isCopy&&delete this.form.id;
                 console.log(info)
             }
             this.setRules()
@@ -257,13 +258,6 @@
                     }
                 })
             },
-            formatGroups(){
-                let obj = [];
-                /*this.form.klDiagnoseTypeVO.map((item,i)=>{
-
-                });*/
-                return obj
-            },
             validateForms(callBack){
                 this.$refs['form'].validate((valid) => {
                     if (valid) {

+ 2 - 2
src/components/knowledgeExtra/DiagBase.vue

@@ -230,7 +230,7 @@
                 const param = {
                     current: this.inCurrentPage||this.currentPage,
                     size: this.pageSize,
-                    conceptName: this.filter.conceptName,
+                    description: this.filter.conceptName,
                 };
                 return param;
             },
@@ -320,7 +320,7 @@
                     spinner: 'el-icon-loading',
                     background: 'rgba(0, 0, 0, 0.7)'
                 });
-                api.zskUpdateAll().then((res) => {
+                api.updateDiagBase().then((res) => {
                     loading.close();
                     if (res.data.code == '0') {
                         this.warning('更新成功','success');