소스 검색

筛选条件未点确认删除后清空筛选条件-预问诊维护

zhouna 6 년 전
부모
커밋
b737743888
3개의 변경된 파일26개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      src/components/preTreat/CombinQuestion.vue
  2. 9 0
      src/components/preTreat/QuestionModules.vue
  3. 9 0
      src/components/preTreat/SimpleQuestion.vue

+ 8 - 0
src/components/preTreat/CombinQuestion.vue

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

+ 9 - 0
src/components/preTreat/QuestionModules.vue

@@ -259,6 +259,15 @@
         this.showConfirmDialog('是否删除该模板?',()=>{
           api.delModule(param).then((res)=>{
             if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.filter={
+                  name: '', //模板名称
+                  type: '', //模板归属
+                  moduleType: '', //模板类型
+                  relationId:'',  //归属科室
+                };
+              }
               this.getDataList();
               this.warning(res.data.msg || '操作成功','success');
             }else{

+ 9 - 0
src/components/preTreat/SimpleQuestion.vue

@@ -254,6 +254,15 @@
         this.showConfirmDialog('是否删除该填写单?',()=>{
           api.questionDel(param).then((res)=>{
             if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.filter={
+                    tagType: [], //标签类型
+                    controlType: [],
+                    tagAdscription: '', //标签归属
+                    tagSysName: '', //标签系统名称
+                };
+              }
               this.getDataList();
               this.warning(res.data.msg || '操作成功','success');
             }else{