|
|
|
@ -1,13 +1,22 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<el-card> |
|
|
|
<div class="publiccss">回收表格查询</div> |
|
|
|
<div class="publiccss">体检表回收</div> |
|
|
|
<div style="display: flex;margin-top:20px"> |
|
|
|
<!-- 单位树组件 --> |
|
|
|
<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,13 +45,13 @@ export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
tabChoosed: "1", |
|
|
|
CustomerOrgTreeStyle:'', |
|
|
|
CustomerOrgRightStyle:'', |
|
|
|
CustomerOrgTreeStyle: '', |
|
|
|
CustomerOrgRightStyle: '', |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
created() { |
|
|
|
this.resize(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//挂载完成 |
|
|
|
@ -51,24 +60,12 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
computed: { |
|
|
|
...mapState(["window","dict", "patientRegister", "customerOrg"]), |
|
|
|
...mapState(["window", "dict", "patientRegister", "customerOrg"]), |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
...mapActions(["getCustomerOrgGroup"]), |
|
|
|
|
|
|
|
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;"; |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//数据初始化 |
|
|
|
dictInit() { |
|
|
|
//性别(仅档案用) |
|
|
|
@ -134,7 +131,7 @@ export default { |
|
|
|
if (res.code == 1) { |
|
|
|
// this.dict.nation = res.data.items; |
|
|
|
this.dict.nation = res.data; |
|
|
|
console.log(res,'名族'); |
|
|
|
console.log(res, '名族'); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
@ -199,16 +196,6 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
"window.pageHeight"(newVal, oldVal) { |
|
|
|
if (newVal != oldVal) { |
|
|
|
this.resize(); |
|
|
|
} |
|
|
|
}, |
|
|
|
"window.pageWidth"(newVal, oldVal) { |
|
|
|
if (newVal != oldVal) { |
|
|
|
this.resize(); |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|