修改
This commit is contained in:
parent
b76ee1557d
commit
4caff8614e
@ -3,10 +3,10 @@
|
|||||||
<div class="name" :style="!switchvalue ? 'opacity: 0.6;' : ''">
|
<div class="name" :style="!switchvalue ? 'opacity: 0.6;' : ''">
|
||||||
<el-tooltip class="btn" effect="light" :content="'科室名称' + '(' + hospitalAgencyName + ')'"
|
<el-tooltip class="btn" effect="light" :content="'科室名称' + '(' + hospitalAgencyName + ')'"
|
||||||
placement="bottom">
|
placement="bottom">
|
||||||
<el-button @click="open = true">科室名称({{ hospitalAgencyName }})</el-button>
|
<el-button @click="opentrue">科室名称({{ hospitalAgencyName }})</el-button>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</div>
|
</div>
|
||||||
<div class="select">
|
<div class="select" v-if="roleKey == 'admin'">
|
||||||
<el-switch v-model="switchvalue" active-color="#1890ff" inactive-color="#DCDFE6" @change="changeswitch" />
|
<el-switch v-model="switchvalue" active-color="#1890ff" inactive-color="#DCDFE6" @change="changeswitch" />
|
||||||
</div>
|
</div>
|
||||||
<div class="input">
|
<div class="input">
|
||||||
@ -61,6 +61,7 @@ export default {
|
|||||||
name: "DepartmentList",
|
name: "DepartmentList",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
roleKey: localStorage.getItem('roleKey'),
|
||||||
open: false,
|
open: false,
|
||||||
switchvalue: true,
|
switchvalue: true,
|
||||||
//校验
|
//校验
|
||||||
@ -97,6 +98,10 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
opentrue() {
|
||||||
|
if (this.roleKey != 'admin') return
|
||||||
|
this.open = true
|
||||||
|
},
|
||||||
handquery() {
|
handquery() {
|
||||||
this.HOSPITALlist = JSON.parse(localStorage.getItem('HOSPITALlist')).filter(item => item.agencyName.includes(this.opentablequery.hospitalAgencyName));
|
this.HOSPITALlist = JSON.parse(localStorage.getItem('HOSPITALlist')).filter(item => item.agencyName.includes(this.opentablequery.hospitalAgencyName));
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user