Browse Source

修改项目需求(三)

xiaomin 4 years ago
parent
commit
e2fd05d9d5

+ 0 - 1
index.html

@@ -26,7 +26,6 @@
           window.location.href = 'https://support.microsoft.com/zh-cn/help/17621/internet-explorer-downloads';
         }
     </script>
-    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=mFFByzF1HiPCjXAzdX01dAhEesw1Ns66" ></script>
   </head>
   <body>
     <div id="app"></div>

+ 10 - 1
src/components/MyBreadcrumb.vue

@@ -1,13 +1,22 @@
 <template>
   <el-breadcrumb separator-class="el-icon-arrow-right">
     <el-breadcrumb-item :to="{ path: '/' }"> {{level1}} </el-breadcrumb-item>
-    <el-breadcrumb-item> {{level2}} </el-breadcrumb-item>
+    <el-breadcrumb-item :to="'/' + this.pathto"> {{level2}} </el-breadcrumb-item>
     <el-breadcrumb-item> {{level3}} </el-breadcrumb-item>
   </el-breadcrumb>
 </template>
 
 <script type="text/javascript">
 export default{
+  data() {
+    return {
+      pathto: ''
+    };
+  },
+  created() {
+    this.pathto = sessionStorage.getItem('breadRouting');
+  },
+
   name: 'MyBreadcrumb',
   props: ['level1', 'level2', 'level3','flag'],
 

+ 11 - 0
src/views/doctorpolitical.vue

@@ -94,6 +94,7 @@ export default {
       id: 7,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       doctorDemeanour: []
@@ -105,6 +106,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -130,6 +132,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'doctorpolitical') {
+         sessionStorage.setItem('breadName', '医政风采');
+         sessionStorage.setItem('breadRouting', 'doctorpolitical');
+      }
+    }
   }
 };
 </script>

+ 11 - 0
src/views/doctorpolitical/cases.vue

@@ -94,6 +94,7 @@ export default {
       id: 7,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       DataList: []
@@ -105,6 +106,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -130,6 +132,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'cases') {
+         sessionStorage.setItem('breadName', '病例质量管理');
+         sessionStorage.setItem('breadRouting', 'cases');
+      }
+    }
   }
 };
 </script>

+ 11 - 0
src/views/doctorpolitical/concept.vue

@@ -94,6 +94,7 @@ export default {
       id: 7,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       DataList: []
@@ -105,6 +106,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -130,6 +132,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'concept') {
+         sessionStorage.setItem('breadName', '概念与职责');
+         sessionStorage.setItem('breadRouting', 'concept');
+      }
+    }
   }
 };
 </script>

+ 11 - 0
src/views/doctorpolitical/core.vue

@@ -94,6 +94,7 @@ export default {
       id: 7,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       DataList: []
@@ -105,6 +106,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -130,6 +132,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'core') {
+         sessionStorage.setItem('breadName', '核心制度');
+         sessionStorage.setItem('breadRouting', 'core');
+      }
+    }
   }
 };
 </script>

+ 11 - 0
src/views/doctorpolitical/doctorskill.vue

@@ -94,6 +94,7 @@ export default {
       id: 7,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       DataList: []
@@ -105,6 +106,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -130,6 +132,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'doctorskill') {
+         sessionStorage.setItem('breadName', '医生技能管理');
+         sessionStorage.setItem('breadRouting', 'doctorskill');
+      }
+    }
   }
 };
 </script>

+ 11 - 0
src/views/doctorpolitical/education.vue

@@ -94,6 +94,7 @@ export default {
       id: 7,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       DataList: []
@@ -105,6 +106,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -130,6 +132,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'education') {
+         sessionStorage.setItem('breadName', '健康教育');
+         sessionStorage.setItem('breadRouting', 'education');
+      }
+    }
   }
 };
 </script>

+ 11 - 0
src/views/doctorpolitical/farmers.vue

@@ -94,6 +94,7 @@ export default {
       id: 7,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       DataList: []
@@ -105,6 +106,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -130,6 +132,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'farmers') {
+         sessionStorage.setItem('breadName', '卫生支农');
+         sessionStorage.setItem('breadRouting', 'farmers');
+      }
+    }
   }
 };
 </script>

+ 11 - 0
src/views/doctorpolitical/outpatientservice.vue

@@ -94,6 +94,7 @@ export default {
       id: 7,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       DataList: []
@@ -105,6 +106,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -130,6 +132,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'outpatientservice') {
+         sessionStorage.setItem('breadName', '门诊质量管理');
+         sessionStorage.setItem('breadRouting', 'outpatientservice');
+      }
+    }
   }
 };
 </script>

+ 11 - 0
src/views/doctorpolitical/registered.vue

@@ -94,6 +94,7 @@ export default {
       id: 7,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       DataList: []
@@ -105,6 +106,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -130,6 +132,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'registered') {
+         sessionStorage.setItem('breadName', '执业医生注册');
+         sessionStorage.setItem('breadRouting', 'registered');
+      }
+    }
   }
 };
 </script>

+ 11 - 0
src/views/doctorpolitical/review.vue

@@ -94,6 +94,7 @@ export default {
       id: 7,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       DataList: []
@@ -105,6 +106,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -130,6 +132,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'review') {
+         sessionStorage.setItem('breadName', '评审');
+         sessionStorage.setItem('breadRouting', 'review');
+      }
+    }
   }
 };
 </script>

+ 11 - 0
src/views/doctorpolitical/ward.vue

@@ -94,6 +94,7 @@ export default {
       id: 7,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       DataList: []
@@ -105,6 +106,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -130,6 +132,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'ward') {
+         sessionStorage.setItem('breadName', '病房质量管理');
+         sessionStorage.setItem('breadRouting', 'ward');
+      }
+    }
   }
 };
 </script>

+ 11 - 1
src/views/experts.vue

@@ -60,6 +60,7 @@ export default {
       id: 6,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       expertsContent: []
@@ -71,6 +72,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -78,7 +80,6 @@ export default {
       if (response.data.code === 1) {
         this.expertsContent = response.data.responseData.records;
         this.total = response.data.responseData.total;
-        // console.log(response.data.responseData)
       }
     },
     //跳转
@@ -96,6 +97,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'experts') {
+         sessionStorage.setItem('breadName', '专家风采');
+         sessionStorage.setItem('breadRouting', 'experts');
+      }
+    }
   }
 };
 </script>

+ 11 - 0
src/views/experts/field.vue

@@ -66,6 +66,7 @@ export default {
       id: 6,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       DataList: []
@@ -77,6 +78,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -102,6 +104,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'field') {
+         sessionStorage.setItem('breadName', '分领域');
+         sessionStorage.setItem('breadRouting', 'field');
+      }
+    }
   }
 };
 </script>

+ 11 - 2
src/views/managementhospital.vue

@@ -60,6 +60,7 @@ export default {
       id: 4,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       doctorSystem: []
@@ -71,6 +72,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -78,8 +80,6 @@ export default {
       if (response.data.code === 1) {
         this.doctorSystem = response.data.responseData.records;
         this.total = response.data.responseData.total;
-        console.log(this.doctorSystem)
-        // console.log(response.data.responseData)
       }
     },
     //跳转
@@ -97,6 +97,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'managementhospital') {
+         sessionStorage.setItem('breadName', '医院管理制度');
+         sessionStorage.setItem('breadRouting', 'managementhospital');
+      }
+    }
   }
 };
 </script>

+ 11 - 0
src/views/newrules.vue

@@ -74,6 +74,7 @@ export default {
       id: 5,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       newRules: []
@@ -85,6 +86,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -110,6 +112,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'newrules') {
+         sessionStorage.setItem('breadName', '新规新政');
+         sessionStorage.setItem('breadRouting', 'newrules');
+      }
+    }
   }
 };
 </script>

+ 11 - 1
src/views/newrules/insurance.vue

@@ -73,6 +73,7 @@ export default {
       id: 5,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       DataList: []
@@ -84,6 +85,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -91,7 +93,6 @@ export default {
       if (response.data.code === 1) {
         this.DataList = response.data.responseData.records;
         this.total = response.data.responseData.total;
-        // console.log(response.data.responseData)
       }
     },
     //跳转
@@ -109,6 +110,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'insurance') {
+         sessionStorage.setItem('breadName', '医疗保险');
+         sessionStorage.setItem('breadRouting', 'insurance');
+      }
+    }
   }
 };
 </script>

+ 11 - 0
src/views/newrules/law.vue

@@ -73,6 +73,7 @@ export default {
       id: 5,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       DataList: []
@@ -84,6 +85,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -109,6 +111,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'law') {
+         sessionStorage.setItem('breadName', '法律法规');
+         sessionStorage.setItem('breadRouting', 'law');
+      }
+    }
   }
 };
 </script>

+ 11 - 0
src/views/newrules/policy.vue

@@ -73,6 +73,7 @@ export default {
       id: 5,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       DataList: []
@@ -84,6 +85,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -109,6 +111,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'policy') {
+         sessionStorage.setItem('breadName', '政策解析');
+         sessionStorage.setItem('breadRouting', 'policy');
+      }
+    }
   }
 };
 </script>

+ 7 - 1
src/views/news.vue

@@ -72,6 +72,7 @@ export default {
       id: 3,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       doctorNews: []
@@ -83,6 +84,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -112,7 +114,11 @@ export default {
     getUrlsub() {
       var urlStr = location.pathname;
       var index = urlStr.lastIndexOf('\/');
-      this.aid = urlStr.substring(index + 1, urlStr.length);
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'news') {
+         sessionStorage.setItem('breadName', '医政新闻');
+         sessionStorage.setItem('breadRouting', 'news');
+      }
     }
   }
 };

+ 11 - 1
src/views/news/industry.vue

@@ -72,9 +72,9 @@ export default {
   data() {
     return {
       id: 3,
-      level2: '医政行业动态',
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       DataList: []
@@ -86,6 +86,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -110,6 +111,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'industry') {
+         sessionStorage.setItem('breadName', '医政行业动态');
+         sessionStorage.setItem('breadRouting', 'industry');
+      }
+    }
   }
 };
 </script>

+ 11 - 0
src/views/news/invitation.vue

@@ -73,6 +73,7 @@ export default {
       id: 3,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       DataList: []
@@ -84,6 +85,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -108,6 +110,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'invitation') {
+         sessionStorage.setItem('breadName', '医政沙龙邀请函');
+         sessionStorage.setItem('breadRouting', 'invitation');
+      }
+    }
   }
 };
 </script>

+ 11 - 0
src/views/news/sharon.vue

@@ -73,6 +73,7 @@ export default {
       id: 3,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       DataList: []
@@ -84,6 +85,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -109,6 +111,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'sharon') {
+         sessionStorage.setItem('breadName', '医政沙龙风采');
+         sessionStorage.setItem('breadRouting', 'sharon');
+      }
+    }
   }
 };
 </script>

+ 4 - 3
src/views/newsDetails.vue

@@ -3,9 +3,9 @@
     <header-nav  :id="id"/>
 
     <div class="newscont">
-      <!-- <div>
+      <div>
         <my-breadcrumb level1="首页" :level2="level2" :level3="level3" style="height: 50px; line-height: 50px;"></my-breadcrumb>
-      </div> -->
+      </div>
       <div class="newsOnly">
         <h1>{{this.formData.title}}</h1>
         <div class="content" v-html="this.formData.content"></div>
@@ -19,7 +19,7 @@
 <script>
 import headerNav from '@/components/header';
 import footerNav from '@/components/footer';
-// import myBreadcrumb from '@/components/myBreadcrumb';
+import myBreadcrumb from '@/components/myBreadcrumb';
 export default {
   data() {
     return {
@@ -34,6 +34,7 @@ export default {
   created() {
     this.getUrlsub();
     this.loadData();
+    this.level2 = sessionStorage.getItem('breadName');
   },
   components: {
     headerNav,

+ 11 - 0
src/views/nursing.vue

@@ -77,6 +77,7 @@ export default {
       id: 8,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       nursingWorld: []
@@ -88,6 +89,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -113,6 +115,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'nursing') {
+         sessionStorage.setItem('breadName', '护理天地');
+         sessionStorage.setItem('breadRouting', 'nursing');
+      }
+    }
   }
 };
 </script>

+ 11 - 0
src/views/nursing/nursingeducation.vue

@@ -77,6 +77,7 @@ export default {
       id: 8,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       DataList: []
@@ -88,6 +89,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -113,6 +115,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'nursingeducation') {
+         sessionStorage.setItem('breadName', '护理教育');
+         sessionStorage.setItem('breadRouting', 'nursingeducation');
+      }
+    }
   }
 };
 </script>

+ 11 - 0
src/views/nursing/nursingmanagement.vue

@@ -77,6 +77,7 @@ export default {
       id: 8,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       DataList: []
@@ -88,6 +89,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -113,6 +115,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'nursingmanagement') {
+         sessionStorage.setItem('breadName', '护理管理');
+         sessionStorage.setItem('breadRouting', 'nursingmanagement');
+      }
+    }
   }
 };
 </script>

+ 11 - 0
src/views/nursing/nursingquality.vue

@@ -77,6 +77,7 @@ export default {
       id: 8,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       DataList: []
@@ -88,6 +89,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -113,6 +115,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'nursingquality') {
+         sessionStorage.setItem('breadName', '护理质量');
+         sessionStorage.setItem('breadRouting', 'nursingquality');
+      }
+    }
   }
 };
 </script>

+ 11 - 0
src/views/nursing/nursingresearch.vue

@@ -76,6 +76,7 @@ export default {
       id: 8,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       DataList: []
@@ -87,6 +88,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -112,6 +114,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'nursingresearch') {
+         sessionStorage.setItem('breadName', '护理科研');
+         sessionStorage.setItem('breadRouting', 'nursingresearch');
+      }
+    }
   }
 };
 </script>

+ 11 - 2
src/views/reviewhospital.vue

@@ -60,6 +60,7 @@ export default {
       id: 2,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       doctorReview: []
@@ -71,6 +72,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -78,8 +80,6 @@ export default {
       if (response.data.code === 1) {
         this.doctorReview = response.data.responseData.records;
         this.total = response.data.responseData.total;
-        // console.log(this.doctorReview)
-        // console.log(response.data.responseData)
       }
     },
     //跳转
@@ -97,6 +97,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'reviewhospital') {
+         sessionStorage.setItem('breadName', '医院评审动态');
+         sessionStorage.setItem('breadRouting', 'reviewhospital');
+      }
+    }
   }
 };
 </script>

+ 11 - 0
src/views/service.vue

@@ -60,6 +60,7 @@ export default {
       id: 10,
       current: 1,
       pagesize: 10,
+      routingName: '',
       // 总共有多少条数据
       total: 0,
       serviceDemeanour: []
@@ -71,6 +72,7 @@ export default {
   },
   created() {
     this.loadData();
+    this.getUrlsub();
   },
   methods: {
     async loadData() {
@@ -96,6 +98,15 @@ export default {
       this.loadData();
       console.log(`当前页: ${val}`);
     },
+    getUrlsub() {
+      var urlStr = location.pathname;
+      var index = urlStr.lastIndexOf('\/');
+      this.routingName = urlStr.substring(index + 1, urlStr.length);
+      if(this.routingName == 'service') {
+         sessionStorage.setItem('breadName', '服务项目');
+         sessionStorage.setItem('breadRouting', 'service');
+      }
+    }
   }
 };
 </script>