|
@@ -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>
|