瀏覽代碼

删除清空筛选未确认数据-医学术语库维护

zhouna 6 年之前
父節點
當前提交
5322d71a19

+ 6 - 0
src/components/icss/AssaySon.vue

@@ -199,6 +199,12 @@ export default {
           this.showConfirmDialog('是否删除该关联?',()=>{
             api.delAssaySon(param).then((res)=>{
               if(res.data.code=='0'){
+                if(!this.searched){
+                  //未点确认时清空搜索条件
+                  this.filter={
+                    conceptName:'',
+                  };
+                }
                 this.getDataList();
                 this.warning(res.data.msg || '操作成功','success');
               }else{

+ 6 - 0
src/components/icss/ChronicAndIndexRelation.vue

@@ -206,6 +206,12 @@ export default {
           this.showConfirmDialog(warntTxt,()=>{
             api.cancelIndexConfigAlls(param).then((res)=>{
               if(res.data.code=='0'){
+                if(!this.searched){
+                  //未点确认时清空搜索条件
+                  this.filter={
+                    diseaseName: ''
+                  };
+                }
                 this.getDataList();
                 this.warning(res.data.msg || '操作成功','success');
               }else{

+ 8 - 0
src/components/icss/ChronicDiseaseStructureList.vue

@@ -230,6 +230,14 @@
         this.showConfirmDialog(waringTxt,()=>{
           api.deleteScale(param).then((res)=>{
             if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.filter={
+                  isState:'',
+                  tagType: [], //标签类型
+                  tagSysName: '', //标签系统名称
+                };
+              }
               this.warning(res.data.msg||'操作成功','success');
               this.getDataList();
             }else{

+ 6 - 0
src/components/icss/ConceptRelation.vue

@@ -202,6 +202,12 @@ export default {
             }
             api.delConceptRelation(param).then((res)=>{
               if(res.data.code=='0'){
+                if(!this.searched){
+                  //未点确认时清空搜索条件
+                  this.filter={
+                    conceptName:''
+                  };
+                }
                 this.getDataList();
                 this.warning(res.data.msg || '操作成功','success');
               }else{

+ 6 - 0
src/components/icss/DisclaimerInformation.vue

@@ -196,6 +196,12 @@
         this.showConfirmDialog('是否删除该免责声明?',()=>{
           api.delDiscInformation({id:item.id}).then((res)=>{
             if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.filter={
+                  title: ''
+                };
+              }
               this.warning(res.data.msg||'操作成功','success');
               this.getDataList();
             }else{

+ 7 - 0
src/components/icss/MedicalMultRelation.vue

@@ -232,6 +232,13 @@
         this.showConfirmDialog(waringTxt,()=>{
           api.removeRelationContact(param).then((res)=>{
             if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.filter={
+                  term:'',
+                  type:''
+                };
+              }
               this.warning(res.data.msg||'操作成功','success');
               this.getDataList();
             }else{

+ 8 - 0
src/components/icss/MedicalName.vue

@@ -261,6 +261,14 @@
         this.showConfirmDialog(waringTxt,()=>{
           api.deletMedicalName(param).then((res)=>{
             if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.filter={
+                  term:'',
+                  type:'',
+                  libName:''
+                };
+              }
               this.warning(res.data.msg||'操作成功','success');
               this.getDataList();
             }else{

+ 9 - 0
src/components/icss/MedicalRelation.vue

@@ -265,6 +265,15 @@
         this.showConfirmDialog(warningTxt,()=>{
           api.delKnowledgeRelation(params).then((res)=>{
             if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.filter={
+                  isState:'',
+                  startName:'',
+                  endName:'',
+                  type:'',
+                };
+              }
               this.warning(res.data.msg||'操作成功','success');
               this.getDataList();
             }else{

+ 7 - 0
src/components/icss/MedicinePrompt.vue

@@ -200,6 +200,13 @@
         this.showConfirmDialog('是否删除该静态知识?',()=>{
           api.delConceptInfo({conceptId:[row.conceptId],status:'Y'}).then((res)=>{
             if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.filter={
+                  term: '',
+                  title:''
+                };
+              }
               this.warning(res.data.msg||'操作成功','success');
               this.getDataList();
             }else{