Sfoglia il codice sorgente

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

zhouna 6 anni fa
parent
commit
b737743888

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

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

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

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

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

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