morphone1995 4 年之前
父節點
當前提交
5886ff972e

+ 5 - 1
src/components/icss/AddMedicinePrompt.vue

@@ -160,7 +160,10 @@ export default {
             trigger: 'change'
           }
         ],
-        fileList: [{ required: true, message: '请上传文件', trigger: 'change' }]
+        fileList: [{ required: true, message: '请上传文件', trigger: 'change' }],
+        titleChange : [
+           {  max: 30, message: '标题最多30字', trigger: 'change' },
+        ]
       },
       saveDisable: false, //保存按钮禁止点击
       showDrop: false, //下拉框显示文字bug1774
@@ -598,6 +601,7 @@ export default {
 .line {
   border-top: 1px #dcdfe6 solid;
   margin-bottom: 25px;
+  margin-top : 25px;
 }
 .NoiseTemplateWrapper .info-container .el-input__inner {
   width: 250px;

+ 6 - 2
src/components/icss/MedicinePrompt.vue

@@ -138,6 +138,10 @@ export default {
       that.getDataList();
     });
     this.typeList = config.emData;
+    // 非首页 编辑页返回 设置 this.currentPage
+    if (Object.keys(this.$route.params).length !== 0) {
+      this.currentPage = this.$route.params.currentPage;
+    }
   },
   watch: {
     filter: {
@@ -378,14 +382,14 @@ export default {
 }
 .el-message-box {
   /deep/ .cancelBtn {
-    background-color: #d7d7d7; 
+    background-color: #d7d7d7;
     border-color: transparent;
   }
   /deep/ .delBtn {
     background-color: #ff545b !important;
     border-color: transparent !important;
   }
-  /deep/ .confirmBtn1{
+  /deep/ .confirmBtn1 {
     position: relative;
     right: 0px !important;
   }

+ 16 - 1
src/components/icss/dept/AddDept.vue

@@ -43,6 +43,18 @@
               :key="item"
             >{{item}}</li>
           </ul>
+           <ul
+            v-else-if="showUniqueNameList&&uniqueNameList.length === 0"
+            class="itemList uniqueNameList"
+          >
+            <li class="mealNameItem ellipsis">无数据</li>
+          </ul>
+          <ul
+            v-else-if=" isSendDataOver === 1"
+            class="itemList uniqueNameList"
+          >
+            <li class="mealNameItem ellipsis">加载中.....</li>
+          </ul>
         </div>
         <div class="itemLabel">
           <!-- <label class="itemLabelName isRequired">诊断名称预览:</label> -->
@@ -83,7 +95,8 @@ export default {
         uniqueName: '', //公表名称,必填
         uniqueId: '' //公表项Id
       },
-      saveDisable: false //保存按钮禁止点击
+      saveDisable: false, //保存按钮禁止点击
+      isSendDataOver: 0 // 请求列表数据过程   0  发送请求前   1 请求过程   2请求结束
     };
   },
   created() {
@@ -109,6 +122,7 @@ export default {
       if (type == '1' || type == '2') {
         this.getTagList(type);
       } else if (type == '3') {
+        this.isSendDataOver = 1; // 发送请求中
         // 搜索标准术语列表
         this.getAllLisConcept();
       }
@@ -129,6 +143,7 @@ export default {
         if (res.data.code === '0') {
           this.uniqueNameList = res.data.data.deptNames;
           this.showSearchList('showUniqueNameList');
+           this.isSendDataOver = 2; //请求发送结束
         }
       });
     },

+ 6 - 2
src/components/icss/dept/DeptManage.vue

@@ -82,6 +82,10 @@ export default {
     setTimeout(function() {
       that.getDataList();
     });
+    // 非首页 编辑页返回 设置 this.currentPage
+    if (Object.keys(this.$route.params).length !== 0) {
+      this.currentPage = this.$route.params.currentPage;
+    }
   },
   watch: {
     filter: {
@@ -314,8 +318,8 @@ export default {
     background-color: #d7d7d7;
     border-color: transparent;
   }
-  /deep/.confirmC{
-    background-color: #FF545B !important;
+  /deep/.confirmC {
+    background-color: #ff545b !important;
     border-color: transparent !important;
   }
 }

+ 16 - 1
src/components/icss/disease/AddChemicalAndCommonMapping.vue

@@ -90,6 +90,18 @@
               :key="item"
             >{{item}}</li>
           </ul>
+          <ul
+            v-else-if="showUniqueNameList&&uniqueNameList.length === 0"
+            class="itemList uniqueNameList"
+          >
+            <li class="mealNameItem ellipsis">无数据</li>
+          </ul>
+          <ul
+            v-else-if=" isSendDataOver === 1"
+            class="itemList uniqueNameList"
+          >
+            <li class="mealNameItem ellipsis">加载中.....</li>
+          </ul>
         </div>
         <div class="itemLabel">
           <!-- <label class="itemLabelName isRequired">诊断名称预览:</label> -->
@@ -130,7 +142,8 @@ export default {
         uniqueName: '', //公表名称,必填
         uniqueId: '' //公表项Id
       },
-      saveDisable: false //保存按钮禁止点击
+      saveDisable: false, //保存按钮禁止点击
+      isSendDataOver: 0 // 请求列表数据过程   0  发送请求前   1 请求过程   2请求结束
     };
   },
   created() {
@@ -156,6 +169,7 @@ export default {
       if (type == '1' || type == '2') {
         this.getTagList(type);
       } else if (type == '3') {
+        this.isSendDataOver = 1; // 发送请求中
         // 搜索标准术语列表
         this.getAllLisConcept();
       }
@@ -202,6 +216,7 @@ export default {
         if (res.data.code === '0') {
           this.uniqueNameList = res.data.data.diseaseNames;
           this.showSearchList('showUniqueNameList');
+          this.isSendDataOver = 2; //请求发送结束
         }
       });
     },

+ 4 - 0
src/components/icss/disease/ChemicalAndCommonMapping.vue

@@ -88,6 +88,10 @@ export default {
     setTimeout(function() {
       that.getDataList();
     });
+    // 非首页 编辑页返回 设置 this.currentPage
+    if (Object.keys(this.$route.params).length !== 0) {
+      this.currentPage = this.$route.params.currentPage;
+    }
   },
   watch: {
     filter: {

+ 15 - 2
src/components/icss/drug/AddDrug.vue

@@ -43,6 +43,15 @@
               :key="item.name"
             >{{item.name}}</li>
           </ul>
+          <ul
+            v-else-if="showUniqueNameList&&uniqueNameList.length === 0"
+            class="itemList uniqueNameList"
+          >
+            <li class="mealNameItem ellipsis">无数据</li>
+          </ul>
+          <ul v-else-if=" isSendDataOver === 1" class="itemList uniqueNameList">
+            <li class="mealNameItem ellipsis">加载中.....</li>
+          </ul>
         </div>
         <div class="itemLabel">
           <!-- <label class="itemLabelName isRequired">诊断名称预览:</label> -->
@@ -83,7 +92,8 @@ export default {
         uniqueName: '', //公表名称,必填
         uniqueId: '' //公表项Id
       },
-      saveDisable: false //保存按钮禁止点击
+      saveDisable: false, //保存按钮禁止点击
+      isSendDataOver: 0 // 请求列表数据过程   0  发送请求前   1 请求过程   2请求结束
     };
   },
   created() {
@@ -109,6 +119,7 @@ export default {
       if (type == '1' || type == '2') {
         this.getTagList(type);
       } else if (type == '3') {
+        this.isSendDataOver = 1; // 发送请求中
         // 搜索标准术语列表
         this.getAllLisConcept();
       }
@@ -130,9 +141,11 @@ export default {
       api.getConceptInfoAssay(param).then(res => {
         if (res.data.code === '0') {
           if (type == 1) {
+            this.isSendDataOver = 2; //请求发送结束
             this.mealNameList = res.data.data;
             this.showSearchList('showMealNameList');
           } else if (type == 2) {
+            this.isSendDataOver = 2; //请求发送结束
             this.itemNameList = res.data.data;
             this.showSearchList('showItemNameList');
           }
@@ -228,7 +241,7 @@ export default {
             if (this.isEdit) {
               params = { ...params, id: this.editId };
             }
-            this.saveLisMapping(params,  '保存成功', 'success');
+            this.saveLisMapping(params, '保存成功', 'success');
           } else {
             // 已存在,提示修改
             // this.showConfirmDialog('该关联已存在是否替换旧的关系信息', () => {

+ 4 - 0
src/components/icss/drug/DrugManage.vue

@@ -83,6 +83,10 @@ export default {
     setTimeout(function() {
       that.getDataList();
     });
+    // 非首页 编辑页返回 设置 this.currentPage
+    if (Object.keys(this.$route.params).length !== 0) {
+      this.currentPage = this.$route.params.currentPage;
+    }
   },
   watch: {
     filter: {

+ 21 - 5
src/components/icss/fusion/AddFusion.vue

@@ -1,6 +1,11 @@
 <template>
   <div class="AddChemicalAndCommonMappingWrapper clearfix" @click="close">
-    <crumbs  :title="isEdit ? '输血关联维护--修改关联' : '输血关联维护--添加关联'" class="topBack" :param="$route.params" linkTo="Fusion"></crumbs>
+    <crumbs
+      :title="isEdit ? '输血关联维护--修改关联' : '输血关联维护--添加关联'"
+      class="topBack"
+      :param="$route.params"
+      linkTo="Fusion"
+    ></crumbs>
     <div class="AddChemicalAndCommonMappingBox clearfix">
       <div class="titleBox clearfix">
         <p class="title">医院术语</p>
@@ -38,6 +43,15 @@
               :key="item"
             >{{item}}</li>
           </ul>
+          <ul
+            v-else-if="showUniqueNameList&&uniqueNameList.length === 0"
+            class="itemList uniqueNameList"
+          >
+            <li class="mealNameItem ellipsis">无数据</li>
+          </ul>
+          <ul v-else-if=" isSendDataOver === 1" class="itemList uniqueNameList">
+            <li class="mealNameItem ellipsis">加载中.....</li>
+          </ul>
         </div>
         <div class="itemLabel">
           <!-- <label class="itemLabelName isRequired">诊断名称预览:</label> -->
@@ -78,7 +92,8 @@ export default {
         uniqueName: '', //公表名称,必填
         uniqueId: '' //公表项Id
       },
-      saveDisable: false //保存按钮禁止点击
+      saveDisable: false, //保存按钮禁止点击
+      isSendDataOver: 0 // 请求列表数据过程   0  发送请求前   1 请求过程   2请求结束
     };
   },
   created() {
@@ -104,16 +119,16 @@ export default {
       if (type == '1' || type == '2') {
         this.getTagList(type);
       } else if (type == '3') {
+        this.isSendDataOver = 1; // 发送请求中
         // 搜索标准术语列表
         this.getAllLisConcept();
       }
     },
 
-
     // 标准术语搜索列表
     getAllLisConcept() {
       let params = {
-        type: 8,  //血液
+        type: 8, //血液
         inputStr: this.uniqueText,
         sex: 3,
         age: 0
@@ -123,6 +138,7 @@ export default {
       }
       api.retrievalSearch(params).then(res => {
         if (res.data.code === '0') {
+          this.isSendDataOver = 2; //请求发送结束
           this.uniqueNameList = res.data.data.transfusionNames;
           this.showSearchList('showUniqueNameList');
         }
@@ -198,7 +214,7 @@ export default {
             if (this.isEdit) {
               params = { ...params, id: this.editId };
             }
-            this.saveLisMapping(params,  '保存成功', 'success');
+            this.saveLisMapping(params, '保存成功', 'success');
           } else {
             // 已存在,提示修改
             // this.showConfirmDialog('该关联已存在是否替换旧的关系信息', () => {

+ 4 - 0
src/components/icss/fusion/Fusion.vue

@@ -83,6 +83,10 @@ export default {
     setTimeout(function() {
       that.getDataList();
     });
+    // 非首页 编辑页返回 设置 this.currentPage
+    if (Object.keys(this.$route.params).length !== 0) {
+      this.currentPage = this.$route.params.currentPage;
+    }
   },
   watch: {
     filter: {

+ 27 - 11
src/components/icss/lis/AddLis.vue

@@ -1,6 +1,11 @@
 <template>
   <div class="AddChemicalAndCommonMappingWrapper clearfix" @click="close">
-    <crumbs  :title="isEdit ? '检验关联维护--修改关联' : '检验关联维护--添加关联'" class="topBack" :param="$route.params" linkTo="Lis"></crumbs>
+    <crumbs
+      :title="isEdit ? '检验关联维护--修改关联' : '检验关联维护--添加关联'"
+      class="topBack"
+      :param="$route.params"
+      linkTo="Lis"
+    ></crumbs>
     <div class="AddChemicalAndCommonMappingBox clearfix">
       <div class="titleBox clearfix">
         <p class="title">医院术语</p>
@@ -9,7 +14,7 @@
       <div class="leftBox clearfix">
         <div class="itemLabel clearfix">
           <label class="itemLabelName">检验套餐:</label>
-          <input class="searchInput" type="text" v-model="hisName" v-on:input="handleInput"/>
+          <input class="searchInput" type="text" v-model="hisName" v-on:input="handleInput" />
           <span class="searchInputInfo" v-if="isVila">请输入检验套餐名称</span>
         </div>
         <div class="itemLabel clearfix">
@@ -47,6 +52,15 @@
               :key="hisName === '' ? item.uniqueName + item.name : item"
             >{{hisName === '' ? item.name : item}}</li>
           </ul>
+          <ul
+            v-else-if="showUniqueNameList&&uniqueNameList.length === 0"
+            class="itemList uniqueNameList"
+          >
+            <li class="mealNameItem ellipsis">无数据</li>
+          </ul>
+          <ul v-else-if=" isSendDataOver === 1" class="itemList uniqueNameList">
+            <li class="mealNameItem ellipsis">加载中.....</li>
+          </ul>
         </div>
         <div class="itemLabel">
           <!-- <label class="itemLabelName isRequired">诊断名称预览:</label> -->
@@ -89,7 +103,8 @@ export default {
         uniqueId: '' //公表项Id
       },
       saveDisable: false, //保存按钮禁止点击
-      isVila: false
+      isVila: false,
+      isSendDataOver: 0 // 请求列表数据过程   0  发送请求前   1 请求过程   2请求结束
     };
   },
   created() {
@@ -114,11 +129,11 @@ export default {
     // 搜索
     searchMealItem() {
       const { hisName, hisDetailName } = this;
-      // 1-化验大项、2-化验小项
-      let type = 2;
+      this.isSendDataOver = 1; // 发送请求中
+      let type = 2; // 1-化验大项、2-化验小项
       if (hisName !== '') {
         type = 1;
-        this.getAllLisConcept(type);
+        // this.getAllLisConcept(type);
       }
       this.getAllLisConcept(type);
     },
@@ -136,6 +151,7 @@ export default {
       }
       api.retrievalSearch(params).then(res => {
         if (res.data.code === '0') {
+          this.isSendDataOver = 2; //请求发送结束
           this.uniqueNameList =
             type === 1 ? res.data.data.lisNames : res.data.data.lisDetailNames;
           this.showSearchList('showUniqueNameList');
@@ -188,10 +204,10 @@ export default {
       this.hisDetailName = '';
     },
 
-    handleInput(){
+    handleInput() {
       // console.log(event.target.value,'=============');
-      if(event.target.value.length!== 0){
-        this.isVila = false
+      if (event.target.value.length !== 0) {
+        this.isVila = false;
       }
     },
 
@@ -223,7 +239,7 @@ export default {
             if (this.isEdit) {
               params = { ...params, id: this.editId };
             }
-            this.saveLisMapping(params,  '保存成功', 'success');
+            this.saveLisMapping(params, '保存成功', 'success');
           } else {
             // 已存在,提示修改
             // this.showConfirmDialog('该关联已存在是否替换旧的关系信息', () => {
@@ -245,7 +261,7 @@ export default {
           this.warning(res.data.msg || msg, type);
           // this.$router.push({name: 'ChemicalAndCommonMapping'});
           this.initForm();
-           this.$router.push({
+          this.$router.push({
             name: 'Lis',
             params: Object.assign({}, this.$route.params, {
               currentPage: 1

+ 4 - 0
src/components/icss/lis/Lis.vue

@@ -87,6 +87,10 @@ export default {
     setTimeout(function() {
       that.getDataList();
     });
+    // 非首页 编辑页返回 设置 this.currentPage
+    if (Object.keys(this.$route.params).length !== 0) {
+      this.currentPage = this.$route.params.currentPage;
+    }
   },
   watch: {
     filter: {

+ 21 - 4
src/components/icss/operation/AddOperation.vue

@@ -1,6 +1,11 @@
 <template>
   <div class="AddChemicalAndCommonMappingWrapper clearfix" @click="close">
-    <crumbs :title="isEdit ? '手术/操作关联维护--修改关联' : '手术/操作关联维护--添加关联'" class="topBack" :param="$route.params" linkTo="Operation"></crumbs>
+    <crumbs
+      :title="isEdit ? '手术/操作关联维护--修改关联' : '手术/操作关联维护--添加关联'"
+      class="topBack"
+      :param="$route.params"
+      linkTo="Operation"
+    ></crumbs>
     <div class="AddChemicalAndCommonMappingBox clearfix">
       <div class="titleBox clearfix">
         <p class="title">医院术语</p>
@@ -38,6 +43,15 @@
               :key="item.name"
             >{{item.name}}</li>
           </ul>
+          <ul
+            v-else-if="showUniqueNameList&&uniqueNameList.length === 0"
+            class="itemList uniqueNameList"
+          >
+            <li class="mealNameItem ellipsis">无数据</li>
+          </ul>
+          <ul v-else-if=" isSendDataOver === 1" class="itemList uniqueNameList">
+            <li class="mealNameItem ellipsis">加载中.....</li>
+          </ul>
         </div>
         <div class="itemLabel">
           <!-- <label class="itemLabelName isRequired">诊断名称预览:</label> -->
@@ -78,7 +92,8 @@ export default {
         uniqueName: '', //公表名称,必填
         uniqueId: '' //公表项Id
       },
-      saveDisable: false //保存按钮禁止点击
+      saveDisable: false, //保存按钮禁止点击
+      isSendDataOver: 0 // 请求列表数据过程   0  发送请求前   1 请求过程   2请求结束
     };
   },
   created() {
@@ -104,6 +119,7 @@ export default {
       if (type == '1' || type == '2') {
         this.getTagList(type);
       } else if (type == '3') {
+        this.isSendDataOver = 1; // 发送请求中
         // 搜索标准术语列表
         this.getAllLisConcept();
       }
@@ -138,7 +154,7 @@ export default {
     // 标准术语搜索列表
     getAllLisConcept() {
       let params = {
-        type: 6,  //手术/操作
+        type: 6, //手术/操作
         inputStr: this.uniqueText,
         sex: 3,
         age: 0
@@ -148,6 +164,7 @@ export default {
       }
       api.retrievalSearch(params).then(res => {
         if (res.data.code === '0') {
+          this.isSendDataOver = 2; //请求发送结束
           this.uniqueNameList = res.data.data.operationNames;
           this.showSearchList('showUniqueNameList');
         }
@@ -223,7 +240,7 @@ export default {
             if (this.isEdit) {
               params = { ...params, id: this.editId };
             }
-            this.saveLisMapping(params,  '保存成功', 'success');
+            this.saveLisMapping(params, '保存成功', 'success');
           } else {
             // 已存在,提示修改
             // this.showConfirmDialog('该关联已存在是否替换旧的关系信息', () => {

+ 4 - 0
src/components/icss/operation/Operation.vue

@@ -88,6 +88,10 @@ export default {
     setTimeout(function() {
       that.getDataList();
     });
+    // 非首页 编辑页返回 设置 this.currentPage
+    if (Object.keys(this.$route.params).length !== 0) {
+      this.currentPage = this.$route.params.currentPage;
+    }
   },
   watch: {
     filter: {

+ 22 - 5
src/components/icss/pacs/AddPacs.vue

@@ -1,6 +1,11 @@
 <template>
   <div class="AddChemicalAndCommonMappingWrapper clearfix" @click="close">
-    <crumbs :title="isEdit ? '检查关联维护--修改关联' : '检查关联维护--添加关联'" class="topBack" :param="$route.params" linkTo="Pacs"></crumbs>
+    <crumbs
+      :title="isEdit ? '检查关联维护--修改关联' : '检查关联维护--添加关联'"
+      class="topBack"
+      :param="$route.params"
+      linkTo="Pacs"
+    ></crumbs>
     <div class="AddChemicalAndCommonMappingBox clearfix">
       <div class="titleBox clearfix">
         <p class="title">医院术语</p>
@@ -38,6 +43,15 @@
               :key="item"
             >{{item}}</li>
           </ul>
+          <ul
+            v-else-if="showUniqueNameList&&uniqueNameList.length === 0"
+            class="itemList uniqueNameList"
+          >
+            <li class="mealNameItem ellipsis">无数据</li>
+          </ul>
+          <ul v-else-if=" isSendDataOver === 1" class="itemList uniqueNameList">
+            <li class="mealNameItem ellipsis">加载中.....</li>
+          </ul>
         </div>
         <div class="itemLabel">
           <!-- <label class="itemLabelName isRequired">诊断名称预览:</label> -->
@@ -78,7 +92,8 @@ export default {
         uniqueName: '', //公表名称,必填
         uniqueId: '' //公表项Id
       },
-      saveDisable: false //保存按钮禁止点击
+      saveDisable: false, //保存按钮禁止点击
+      isSendDataOver: 0 // 请求列表数据过程   0  发送请求前   1 请求过程   2请求结束
     };
   },
   created() {
@@ -104,6 +119,7 @@ export default {
       if (type == '1' || type == '2') {
         this.getTagList(type);
       } else if (type == '3') {
+        this.isSendDataOver = 1; // 发送请求中
         // 搜索标准术语列表
         this.getAllLisConcept();
       }
@@ -138,7 +154,7 @@ export default {
     // 标准术语搜索列表
     getAllLisConcept() {
       let params = {
-        type: 3,  //辅检
+        type: 3, //辅检
         inputStr: this.uniqueText,
         sex: 3,
         age: 0
@@ -148,6 +164,7 @@ export default {
       }
       api.retrievalSearch(params).then(res => {
         if (res.data.code === '0') {
+          this.isSendDataOver = 2; //请求发送结束
           this.uniqueNameList = res.data.data.pacsNames;
           this.showSearchList('showUniqueNameList');
         }
@@ -223,7 +240,7 @@ export default {
             if (this.isEdit) {
               params = { ...params, id: this.editId };
             }
-            this.saveLisMapping(params,  '保存成功', 'success');
+            this.saveLisMapping(params, '保存成功', 'success');
           } else {
             // 已存在,提示修改
             // this.showConfirmDialog('该关联已存在是否替换旧的关系信息', () => {
@@ -244,7 +261,7 @@ export default {
         if (res.data.code === '0') {
           this.warning(res.data.msg || msg, type);
           // this.$router.push({name: 'ChemicalAndCommonMapping'});
-           this.$router.push({
+          this.$router.push({
             name: 'Pacs',
             params: Object.assign({}, this.$route.params, {
               currentPage: 1

+ 4 - 0
src/components/icss/pacs/Pacs.vue

@@ -83,6 +83,10 @@ export default {
     setTimeout(function() {
       that.getDataList();
     });
+    // 非首页 编辑页返回 设置 this.currentPage
+    if (Object.keys(this.$route.params).length !== 0) {
+      this.currentPage = this.$route.params.currentPage;
+    }
   },
   watch: {
     filter: {

+ 59 - 36
src/components/icss/plan/Plan.vue

@@ -14,10 +14,22 @@
     <div class="contents">
       <el-table :data="list" border style="width: 100%">
         <el-table-column :resizable="false" type="index" :index="indexMethod" label="编号" width="60"></el-table-column>
-        <el-table-column :resizable="false" prop="planName" label="方案名称" width="180"></el-table-column>
-        <el-table-column :resizable="false" prop="planCode" label="方案编码" show-overflow-tooltip></el-table-column>
-        <el-table-column :resizable="false" prop="planDetail" label="模块配置" show-overflow-tooltip></el-table-column>
-        <el-table-column :resizable="false" prop="gmtCreate" label="创建时间" show-overflow-tooltip></el-table-column>
+        <el-table-column :resizable="false" prop="planName" label="方案名称"></el-table-column>
+        <el-table-column :resizable="false" prop="planCode" label="方案编码"></el-table-column>
+        <el-table-column
+          :resizable="false"
+          prop="planDetail"
+          label="模块配置"
+          show-overflow-tooltip
+          width="180"
+        ></el-table-column>
+        <el-table-column
+          :resizable="false"
+          prop="gmtCreate"
+          label="创建时间"
+          show-overflow-tooltip
+          width="180"
+        ></el-table-column>
         <el-table-column :resizable="false" prop="operate" label="操作">
           <template slot-scope="scope">
             <el-button
@@ -91,7 +103,10 @@ export default {
     setTimeout(function() {
       that.getDataList();
     });
-    // this._getHospital();
+    // 非首页 编辑页返回 设置 this.currentPage
+    if (Object.keys(this.$route.params).length !== 0) {
+      this.currentPage = this.$route.params.currentPage;
+    }
   },
   watch: {
     filter: {
@@ -226,7 +241,7 @@ export default {
       if (type === 'Del') {
         showInfo = '禁用';
         btnNameClass = 'delBtn';
-      }else if(type === 'Del1'){
+      } else if (type === 'Del1') {
         showInfo = '删除';
         btnNameClass = 'delBtn';
       }
@@ -266,34 +281,38 @@ export default {
         return false;
       }
 
-      this.showConfirmDialog('是否删除该方案配置?', () => {
-        let params = {
-          planId: id,
-          hospitalId: this.hospitalId
-        };
-        api
-          .cancelPlanDatas(params)
-          .then(res => {
-            if (res.data.code == '0') {
-              if (!this.searched) {
-                //未点确认时清空搜索条件
-                this.clearFilter();
-              }
-              if (this.list.length == 1) {
-                //当前在最后一页且只有一条数据时,删除后跳到前一页
-                this.currentPage =
-                  this.currentPage === 1 ? 1 : this.currentPage - 1;
+      this.showConfirmDialog(
+        '是否删除该方案配置?',
+        () => {
+          let params = {
+            planId: id,
+            hospitalId: this.hospitalId
+          };
+          api
+            .cancelPlanDatas(params)
+            .then(res => {
+              if (res.data.code == '0') {
+                if (!this.searched) {
+                  //未点确认时清空搜索条件
+                  this.clearFilter();
+                }
+                if (this.list.length == 1) {
+                  //当前在最后一页且只有一条数据时,删除后跳到前一页
+                  this.currentPage =
+                    this.currentPage === 1 ? 1 : this.currentPage - 1;
+                }
+                this.getDataList();
+                this.warning(res.data.msg || '操作成功', 'success');
+              } else {
+                this.warning(res.data.msg);
               }
-              this.getDataList();
-              this.warning(res.data.msg || '操作成功', 'success');
-            } else {
-              this.warning(res.data.msg);
-            }
-          })
-          .catch(error => {
-            this.warning(error);
-          });
-      },'Del1');
+            })
+            .catch(error => {
+              this.warning(error);
+            });
+        },
+        'Del1'
+      );
     },
 
     // 启用/禁用 数据请求
@@ -322,9 +341,13 @@ export default {
       // console.log('启用planName', row, type);
       if (type === 1) {
         // 启用
-        this.showConfirmDialog(`确定要启用${row.planName}吗?`, () => {
-          this.sendAbleOrEn(row, type);
-        },'Reuse');
+        this.showConfirmDialog(
+          `确定要启用${row.planName}吗?`,
+          () => {
+            this.sendAbleOrEn(row, type);
+          },
+          'Reuse'
+        );
       } else {
         // 禁用
         this.showConfirmDialog(