|
|
|
@ -1,12 +1,22 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<el-card> |
|
|
|
<div class="publiccss">体检人员签到</div> |
|
|
|
<div style="display: flex"> |
|
|
|
<!-- 单位树组件 --> |
|
|
|
<div :style="CustomerOrgTreeStyle"> |
|
|
|
<div style="'overflow: scroll;border: 1px solid;width:200px; height:' + |
|
|
|
(window.pageHeight < 600 ? 410 : window.pageHeight - 190) + |
|
|
|
'px;' |
|
|
|
"> |
|
|
|
<CustomerOrgTreeAll /> |
|
|
|
</div> |
|
|
|
<div :style="CustomerOrgRightStyle"> |
|
|
|
<div :style="'display:block;width:' + |
|
|
|
(window.pageWidth - 200 - 80) + |
|
|
|
'px;height:' + |
|
|
|
(window.pageHeight < 600 ? 410 : window.pageHeight - 190) + |
|
|
|
'px;' + |
|
|
|
(window.pageHeight < 600 ? 'overflow-y: scroll;' : '') |
|
|
|
"> |
|
|
|
<!-- 查询条件 --> |
|
|
|
<PatientRegisterQuery /> |
|
|
|
|
|
|
|
@ -36,8 +46,6 @@ export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
tabChoosed: "1", |
|
|
|
CustomerOrgTreeStyle:'', |
|
|
|
CustomerOrgRightStyle:'', |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -168,17 +176,7 @@ export default { |
|
|
|
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;"; |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
//监听事件() |
|
|
|
@ -196,16 +194,6 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
"window.pageHeight"(newVal, oldVal) { |
|
|
|
if (newVal != oldVal) { |
|
|
|
this.resize(); |
|
|
|
} |
|
|
|
}, |
|
|
|
"window.pageWidth"(newVal, oldVal) { |
|
|
|
if (newVal != oldVal) { |
|
|
|
this.resize(); |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|