浏览代码

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

zhouna 6 年之前
父节点
当前提交
07ff1e346b

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

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

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

@@ -275,6 +275,15 @@
         this.showConfirmDialog('是否删除该标签?',()=>{
           api.deleteTagGroup(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{

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

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

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

@@ -217,6 +217,12 @@
         this.showConfirmDialog('是否删除该科室查体模板?',()=>{
           api.delPhysicalExamTemp({'deptId':deptId}).then((res)=>{
             if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.filter={
+                  deptId: ''
+                };
+              }
               this.warning(res.data.msg||'操作成功','success');
               this.getDataList();
             }else{

+ 10 - 0
src/components/icss/TemplateMaintenance.vue

@@ -308,6 +308,16 @@
         this.showConfirmDialog('是否删除该标签?',()=>{
           api.delTemplate({ids:id,type:type}).then((res)=>{
             if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.filter={
+                  tagType: [], //标签类型
+                  templateType: '', //模板类型
+                  ownTo: '', //属于科室、慢病
+                  tagAdscription: '', //标签归属
+                  tagSysName: '', //标签系统名称
+                };
+              }
               this.getDataList();
               this.warning(res.data.msg || '操作成功','success');
             }else{