This commit is contained in:
2024-07-05 16:22:19 +08:00
parent b76ee1557d
commit 4caff8614e

View File

@ -3,10 +3,10 @@
<div class="name" :style="!switchvalue ? 'opacity: 0.6;' : ''">
<el-tooltip class="btn" effect="light" :content="'科室名称' + '(' + hospitalAgencyName + ')'"
placement="bottom">
<el-button @click="open = true">科室名称({{ hospitalAgencyName }})</el-button>
<el-button @click="opentrue">科室名称({{ hospitalAgencyName }})</el-button>
</el-tooltip>
</div>
<div class="select">
<div class="select" v-if="roleKey == 'admin'">
<el-switch v-model="switchvalue" active-color="#1890ff" inactive-color="#DCDFE6" @change="changeswitch" />
</div>
<div class="input">
@ -61,6 +61,7 @@ export default {
name: "DepartmentList",
data() {
return {
roleKey: localStorage.getItem('roleKey'),
open: false,
switchvalue: true,
//
@ -97,6 +98,10 @@ export default {
});
},
methods: {
opentrue() {
if (this.roleKey != 'admin') return
this.open = true
},
handquery() {
this.HOSPITALlist = JSON.parse(localStorage.getItem('HOSPITALlist')).filter(item => item.agencyName.includes(this.opentablequery.hospitalAgencyName));
},