|
|
@ -1,13 +1,12 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="box"> |
|
|
|
|
|
<div style="width: 100%"> |
|
|
|
|
|
|
|
|
<div> |
|
|
<el-card> |
|
|
<el-card> |
|
|
<div style="display: flex"> |
|
|
<div style="display: flex"> |
|
|
<!-- 单位树组件 --> |
|
|
<!-- 单位树组件 --> |
|
|
<div style="width: 15%; border: 1px solid"> |
|
|
|
|
|
|
|
|
<div :style="CustomerOrgTreeStyle"> |
|
|
<CustomerOrgTreeAll /> |
|
|
<CustomerOrgTreeAll /> |
|
|
</div> |
|
|
</div> |
|
|
<div style="margin-left: 10px; width: 85%"> |
|
|
|
|
|
|
|
|
<div :style="CustomerOrgRightStyle"> |
|
|
<!-- 查询条件 --> |
|
|
<!-- 查询条件 --> |
|
|
<PatientRegisterQuery /> |
|
|
<PatientRegisterQuery /> |
|
|
|
|
|
|
|
|
@ -18,7 +17,6 @@ |
|
|
</div> |
|
|
</div> |
|
|
</el-card> |
|
|
</el-card> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
</template> |
|
|
</template> |
|
|
<script> |
|
|
<script> |
|
|
import { mapState, mapActions } from "vuex"; |
|
|
import { mapState, mapActions } from "vuex"; |
|
|
@ -38,10 +36,14 @@ export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
tabChoosed: "1", |
|
|
tabChoosed: "1", |
|
|
|
|
|
CustomerOrgTreeStyle:'', |
|
|
|
|
|
CustomerOrgRightStyle:'', |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
created() {}, |
|
|
|
|
|
|
|
|
created() { |
|
|
|
|
|
this.resize(); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
//挂载完成 |
|
|
//挂载完成 |
|
|
mounted() { |
|
|
mounted() { |
|
|
@ -49,7 +51,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
computed: { |
|
|
computed: { |
|
|
...mapState(["dict", "patientRegister", "customerOrg"]), |
|
|
|
|
|
|
|
|
...mapState(["window","dict", "patientRegister", "customerOrg"]), |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
@ -165,6 +167,18 @@ export default { |
|
|
|
|
|
|
|
|
console.log("dict", this.dict); |
|
|
console.log("dict", this.dict); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
resize() { |
|
|
|
|
|
//console.log(this.window.pageHeight,this.window.pageWidth) |
|
|
|
|
|
let headerHeight = Number(150); |
|
|
|
|
|
|
|
|
|
|
|
this.CustomerOrgTreeStyle = "overflow: scroll;border: 1px solid;width:200px; height:" + (this.window.pageHeight - headerHeight) + "px;"; |
|
|
|
|
|
this.CustomerOrgRightStyle = "margin-left: 10px;width:" + (this.window.pageWidth - 200 - 60) + "px; height:" + (this.window.pageHeight - headerHeight) + "px;"; |
|
|
|
|
|
|
|
|
|
|
|
if (this.window.pageHeight < 600) { |
|
|
|
|
|
this.CustomerOrgTreeStyle = "overflow: scroll;border: 1px solid;width:200px; height:" + (600 - headerHeight) + "px;"; |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//监听事件() |
|
|
//监听事件() |
|
|
@ -181,11 +195,19 @@ export default { |
|
|
this.getCustomerOrgGroup(newVal); |
|
|
this.getCustomerOrgGroup(newVal); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
"window.pageHeight"(newVal, oldVal) { |
|
|
|
|
|
if (newVal != oldVal) { |
|
|
|
|
|
this.resize(); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
"window.pageWidth"(newVal, oldVal) { |
|
|
|
|
|
if (newVal != oldVal) { |
|
|
|
|
|
this.resize(); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|
<style scoped> |
|
|
<style scoped> |
|
|
.box { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
} |
|
|
|
|
|
</style> |
|
|
</style> |