|
|
@ -2,11 +2,11 @@ |
|
|
<div class="header-wrap "> |
|
|
<div class="header-wrap "> |
|
|
<div class="header-logo" @click="toHome"> |
|
|
<div class="header-logo" @click="toHome"> |
|
|
<!-- 管理员端logo --> |
|
|
<!-- 管理员端logo --> |
|
|
<img v-if="headerShow" src="../assets/clientSet/clientSet_h_logo_admin.png" alt=""> |
|
|
<img v-if="showHeaderRight" src="../assets/clientSet/clientSet_h_logo_admin.png" alt=""> |
|
|
<!-- 创建模板logo --> |
|
|
<!-- 创建模板logo --> |
|
|
<img v-else src="../assets/clientSet/clientSet_h_logo_tpl.png" alt=""> |
|
|
<img v-else src="../assets/clientSet/clientSet_h_logo_tpl.png" alt=""> |
|
|
</div> |
|
|
</div> |
|
|
<div class="header-right flex" v-if="headerShow"> |
|
|
<div class="header-right flex" v-if="showHeaderRight"> |
|
|
<div |
|
|
<div |
|
|
:class="['right-item','flex', currentPath == item.path ? 'right-item-active' :'']" |
|
|
:class="['right-item','flex', currentPath == item.path ? 'right-item-active' :'']" |
|
|
v-for="(item,index) in routerNavList" |
|
|
v-for="(item,index) in routerNavList" |
|
|
@ -22,6 +22,8 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
|
|
|
import { mapState } from 'vuex'; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
data(){ |
|
|
data(){ |
|
|
return{ |
|
|
return{ |
|
|
@ -47,6 +49,9 @@ export default { |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
computed: { |
|
|
|
|
|
...mapState(['showHeaderRight']) |
|
|
|
|
|
}, |
|
|
mounted(){ |
|
|
mounted(){ |
|
|
// 如登陆用户信息获取到,则显示管理员端头部 具体流程待定 |
|
|
// 如登陆用户信息获取到,则显示管理员端头部 具体流程待定 |
|
|
// this.user = localStorage.getItem('user_name') |
|
|
// this.user = localStorage.getItem('user_name') |
|
|
@ -56,20 +61,46 @@ export default { |
|
|
// }else{ |
|
|
// }else{ |
|
|
// if(user_type && user_type != 'undefined') this.user = (user_type == 1?'医生':'助手') + this.user |
|
|
// if(user_type && user_type != 'undefined') this.user = (user_type == 1?'医生':'助手') + this.user |
|
|
// } |
|
|
// } |
|
|
// this.doctor_id = localStorage.getItem('doctor_id') |
|
|
|
|
|
// this.authtoken = localStorage.getItem('authtoken') |
|
|
// this.authtoken = localStorage.getItem('authtoken') |
|
|
|
|
|
|
|
|
// if(this.authtoken){ |
|
|
// if(this.authtoken){ |
|
|
// this.headerShow = true |
|
|
// this.headerShow = true |
|
|
// // 初始化时设置当前路由高亮 |
|
|
// // 初始化时设置当前路由高亮 |
|
|
// this.updateCurrentPath() |
|
|
this.updateCurrentPath() |
|
|
// // 监听路由变化 |
|
|
// // 监听路由变化 |
|
|
// this.watchRouteChange() |
|
|
// this.watchRouteChange() |
|
|
// }else{ |
|
|
// }else{ |
|
|
// this.headerShow = false |
|
|
// this.headerShow = false |
|
|
// } |
|
|
// } |
|
|
|
|
|
this.getReviewList() |
|
|
|
|
|
}, |
|
|
|
|
|
watch: { |
|
|
|
|
|
'$route.path': { |
|
|
|
|
|
immediate: true, // 立即执行一次 |
|
|
|
|
|
handler() { |
|
|
|
|
|
this.updateCurrentPath() |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
getReviewList() { |
|
|
|
|
|
try { |
|
|
|
|
|
this.$http('POST', '/supernew/ajax_get_paiban_review_list', {//ok |
|
|
|
|
|
school: '0', |
|
|
|
|
|
degree: '0', |
|
|
|
|
|
review_status:'-1', |
|
|
|
|
|
page: this.currentPage, |
|
|
|
|
|
}).then(response => { |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.total = response.data.count |
|
|
|
|
|
}) |
|
|
|
|
|
}).catch(error => { |
|
|
|
|
|
console.error(error, 'error') |
|
|
|
|
|
}) |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
console.error('数据加载失败:', error) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
// 获取收录列表数据 |
|
|
// 获取收录列表数据 |
|
|
getList() { |
|
|
getList() { |
|
|
try { |
|
|
try { |
|
|
@ -95,6 +126,7 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
goToPage(path) { |
|
|
goToPage(path) { |
|
|
|
|
|
console.log(this.currentPath ,path,'===0000'); |
|
|
if(this.currentPath == path) return; |
|
|
if(this.currentPath == path) return; |
|
|
this.currentPath = path; |
|
|
this.currentPath = path; |
|
|
this.$router.push({ |
|
|
this.$router.push({ |
|
|
|