Browse Source

恢复成功后跳转到筛选条件下的首页2054

zhouna 6 years ago
parent
commit
d3466b827c

+ 8 - 4
src/components/icss/AssaySon.vue

@@ -81,9 +81,9 @@
 </template>
 
 <script>
-import api from '@api/icss.js';
+  import api from '@api/icss.js';
 
-export default {
+  export default {
     name: 'AssaySon',   //慢病指标值关联维护
     data: function() {
         return {
@@ -195,8 +195,9 @@ export default {
             "conceptId": row.conceptId,
             "isDeleted": row.isDeleted=== 'N'?'Y':'N',
             "relationId": 18
-          }
-          this.showConfirmDialog('是否删除该关联?',()=>{
+          };
+          const txt = row.isDeleted=== 'N'?'是否删除该关联?':'是否重新启用该关联?';
+          this.showConfirmDialog(txt,()=>{
             api.delAssaySon(param).then((res)=>{
               if(res.data.code=='0'){
                 if(!this.searched){
@@ -205,6 +206,9 @@ export default {
                     conceptName:'',
                   };
                 }
+                if(row.isDeleted !== 'N'){       //恢复成功后跳转到筛选条件的首页
+                  this.currentPage = 1;
+                }
                 this.getDataList();
                 this.warning(res.data.msg || '操作成功','success');
               }else{

+ 5 - 2
src/components/icss/ChronicAndIndexRelation.vue

@@ -88,9 +88,9 @@
 </template>
 
 <script>
-import api from '@api/icss.js';
+  import api from '@api/icss.js';
 
-export default {
+  export default {
     name: 'ChronicAndIndexRelation',   //慢病指标值关联维护
     data: function() {
         return {
@@ -214,6 +214,9 @@ export default {
                     diseaseName: ''
                   };
                 }
+                if(row.state !== 'N'){       //恢复成功后跳转到筛选条件的首页
+                  this.currentPage = 1;
+                }
                 this.getDataList();
                 this.warning(res.data.msg || '操作成功','success');
               }else{

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

@@ -238,6 +238,9 @@
                   tagSysName: '', //标签系统名称
                 };
               }
+              if(item.isDeleted !== 'N'){       //恢复成功后跳转到筛选条件的首页
+                this.currentPage = 1;
+              }
               this.warning(res.data.msg||'操作成功','success');
               this.getDataList();
             }else{

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

@@ -217,6 +217,8 @@
           this.showConfirmDialog('是否启用该免责声明?',()=>{
             api.openInformation({id:item.id}).then((res)=>{
               if(res.data.code==0){
+                //恢复成功后跳转到筛选条件的首页
+                this.currentPage = 1;
                 this.$message({
                   type:'success',
                   message:res.data.msg ||"启用成功"

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

@@ -115,6 +115,7 @@
 
 <script>
   import api from '@api/icss.js';
+
   export default {
     name: 'MedicalName',
     data: function () {
@@ -270,6 +271,9 @@
                   libName:''
                 };
               }
+              if(item.isDeleted !== 'N'){       //恢复成功后跳转到筛选条件的首页
+                this.currentPage = 1;
+              }
               this.warning(res.data.msg||'操作成功','success');
               this.getDataList();
             }else{

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

@@ -275,6 +275,9 @@
                   type:'',
                 };
               }
+              if(item.isDeleted !== 'N'){       //恢复成功后跳转到筛选条件的首页
+                this.currentPage = 1;
+              }
               this.warning(res.data.msg||'操作成功','success');
               this.getDataList();
             }else{

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

@@ -222,6 +222,7 @@
         this.showConfirmDialog('是否重新启用该条数据?',()=>{
           api.delConceptInfo({conceptId:[row.conceptId],status:"N"}).then((res)=>{
             if(res.data.code=='0'){
+              this.currentPage = 1;         //恢复数据跳转到筛选条件下首页
               this.warning(res.data.msg||'操作成功','success');
               this.getDataList();
             }else{