|
|
|
@ -17,7 +17,7 @@ |
|
|
|
批量启用</GuipButton> |
|
|
|
</div> |
|
|
|
<div class="right" v-if="onlyHosFlag"> |
|
|
|
<GuipButton type="system" size="form" @click="addHospital(item)">添加医院</GuipButton> |
|
|
|
<GuipButton type="system" size="form" @click="addHospitalUser">添加医院</GuipButton> |
|
|
|
</div> |
|
|
|
<div class="right flex" v-else> |
|
|
|
<span>搜索医生</span> |
|
|
|
@ -176,6 +176,8 @@ export default { |
|
|
|
store.commit('SET_CUSTOMIZE', false); |
|
|
|
store.commit('SET_SLIDER_MENU', 'menuData'); |
|
|
|
this.getInitData() |
|
|
|
if(this.onlyHosFlag)return |
|
|
|
// 假的假的数据调用 -- 布局用的 |
|
|
|
this.getBindpayList() |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
@ -183,8 +185,8 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 初始化请求 |
|
|
|
getInitData() { |
|
|
|
this.$http('POST', '/api/admin/doctor_depart_list', { |
|
|
|
async getInitData() { |
|
|
|
await this.$http('POST', '/api/admin/doctor_depart_list', { |
|
|
|
name: this.doctorName |
|
|
|
}).then(response => { |
|
|
|
if (response.code == 0) { |
|
|
|
@ -209,7 +211,6 @@ export default { |
|
|
|
depart_id: 4 |
|
|
|
}).then(response => { |
|
|
|
this.payList.push(...response.data[2],...response.data[3]) |
|
|
|
console.log(this.payList,response,'this.payList====00000'); |
|
|
|
}).catch(error => { |
|
|
|
console.error(error, 'error') |
|
|
|
}) |
|
|
|
@ -294,7 +295,7 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
onSwitchChange1(row) { |
|
|
|
console.log(row, '------flag'); |
|
|
|
// console.log(row, '------flag'); |
|
|
|
row.status = row.status == 0 ? 1 : 0; |
|
|
|
this.$http('POST', '/api/admin/depart_mutil_option', { |
|
|
|
depart_index_ids:row.id, |
|
|
|
@ -314,7 +315,7 @@ export default { |
|
|
|
this.$set(this.doctorList, row) |
|
|
|
}, |
|
|
|
batchOperate(status) { |
|
|
|
console.log(this.tableSelections,'this.tableSelections----'); |
|
|
|
// console.log(this.tableSelections,'this.tableSelections----'); |
|
|
|
if(!this.tableSelections || this.tableSelections.length <= 0) { |
|
|
|
this.$message.error('未选择要'+(status == '0' ? '禁用':'启用')+'的科室') |
|
|
|
return; |
|
|
|
@ -386,6 +387,14 @@ export default { |
|
|
|
query: { doctor_id: item.id } |
|
|
|
}) |
|
|
|
}, |
|
|
|
addHospitalUser(){ |
|
|
|
// 医生id不确认怎么获取 跟随token? |
|
|
|
let id = this.doctor_id; |
|
|
|
this.$router.push({ |
|
|
|
name: '医院信息', |
|
|
|
query: { doctor_id: id } |
|
|
|
}) |
|
|
|
}, |
|
|
|
editDoctor(item) { |
|
|
|
this.$router.push({ |
|
|
|
name: '医生信息', |
|
|
|
|