|
|
|
@ -13,13 +13,6 @@ |
|
|
|
<!-- 人员列表信息 --> |
|
|
|
<PatientRegisterList /> |
|
|
|
|
|
|
|
<!-- 给合项目 基本信息 --> |
|
|
|
<el-tabs v-model="tabChoosed"> |
|
|
|
<!-- 给合项目 --> |
|
|
|
<el-tab-pane label="组合项目" name="1"> |
|
|
|
<PatientRegisterAsbItem /> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
@ -33,18 +26,16 @@ import { tcdate } from "../../utlis/proFunc"; |
|
|
|
import CustomerOrgTreeAll from "../../components/patientRegister/customerOrgTreeAll.vue"; |
|
|
|
import PatientRegisterQuery from "../../components/patientRegister/patientRegisterQuery.vue"; |
|
|
|
import PatientRegisterList from "../../components/patientRegister/PatientRegisterList.vue"; |
|
|
|
import PatientRegisterAsbItem from "../../components/patientRegister/patientRegisterAsbItem.vue"; |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
components: { |
|
|
|
CustomerOrgTreeAll, |
|
|
|
PatientRegisterQuery, |
|
|
|
PatientRegisterList, |
|
|
|
PatientRegisterAsbItem, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
tabChoosed: "1", |
|
|
|
CustomerOrgTreeStyle:"", |
|
|
|
CustomerOrgRightStyle:"margin-left: 10px;", |
|
|
|
}; |
|
|
|
@ -177,8 +168,9 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
resize() { |
|
|
|
console.log(this.window.pageHeight,this.window.pageWidth) |
|
|
|
let headerHeight = Number(150); |
|
|
|
let orgDetailHeight = Number(200); |
|
|
|
let orgDetailHeight = Number(100); |
|
|
|
let editHeight = Number(200); |
|
|
|
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;"; |
|
|
|
@ -186,23 +178,16 @@ export default { |
|
|
|
this.customerOrg.orgEditStyle = 'display: flex;'; |
|
|
|
this.customerOrg.orgDetailStyle = 'display: flex;'; |
|
|
|
if (this.window.pageHeight < 600) { |
|
|
|
this.customerOrg.orgDetailHeight = orgDetailHeight; |
|
|
|
this.CustomerOrgTreeStyle = "overflow: scroll;border: 1px solid;width:200px; height:" + (orgDetailHeight*2 + Number(50)) + "px;"; |
|
|
|
this.customerOrg.orgEditStyle += "overflow-y: scroll;height:" + orgDetailHeight + "px;"; |
|
|
|
this.customerOrg.orgDetailStyle += "overflow-y: scroll;height:" + orgDetailHeight + "px;"; |
|
|
|
} else { |
|
|
|
this.customerOrg.orgDetailHeight = orgDetailHeight + Math.floor((this.window.pageHeight - 600) * 1 / 3); |
|
|
|
editHeight = this.window.pageHeight - headerHeight - this.customerOrg.orgDetailHeight - 50; |
|
|
|
if (editHeight > 400) { |
|
|
|
this.customerOrg.orgEditStyle += "height:" + editHeight + "px;"; |
|
|
|
this.customerOrg.orgDetailStyle += "height:" + this.customerOrg.orgDetailHeight + "px;"; |
|
|
|
} else { |
|
|
|
this.customerOrg.orgEditStyle += "overflow-y: scroll;height:" + editHeight + "px;"; |
|
|
|
this.customerOrg.orgDetailStyle += "overflow-y: scroll;height:" + this.customerOrg.orgDetailHeight + "px;"; |
|
|
|
} |
|
|
|
this.patientRegister.prListHeight = editHeight; |
|
|
|
this.patientRegister.prAsbItemHeight = orgDetailHeight; |
|
|
|
|
|
|
|
} |
|
|
|
this.CustomerOrgTreeStyle = "overflow: scroll;border: 1px solid;width:200px; height:" + (600 - headerHeight) + "px;"; |
|
|
|
|
|
|
|
} else { |
|
|
|
this.patientRegister.prListHeight = Math.floor((this.window.pageHeight - 300) * 2 / 3); |
|
|
|
this.patientRegister.prAsbItemHeight = Math.floor((this.window.pageHeight - 300) * 1 / 3); |
|
|
|
console.log(this.patientRegister.prListHeight,this.patientRegister.prAsbItemHeight) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|