Browse Source

sign

master
pengjun 2 years ago
parent
commit
fc975ebca7
  1. 4
      src/components/patientRegister/PatientRegisterSignList.vue
  2. 36
      src/views/customerOrg/patientRegisterSign.vue

4
src/components/patientRegister/PatientRegisterSignList.vue

@ -1,10 +1,10 @@
<template> <template>
<div style="display: flex"> <div style="display: flex">
<div :style="'width:' + (window.pageWidth - 200 - 120 - 70) + 'px;'">
<div :style="'width:' + (window.pageWidth - 200 - 120 - 80) + 'px;'">
<el-table :data="dataList" border <el-table :data="dataList" border
width="100%" width="100%"
:height="window.pageHeight < 600 ? 350:window.pageHeight-250"
:height="window.pageHeight < 600 ? 310:window.pageHeight-290"
row-key="id" size="small" highlight-current-row ref="dataList" row-key="id" size="small" highlight-current-row ref="dataList"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" width="40"/> <el-table-column type="selection" width="40"/>

36
src/views/customerOrg/patientRegisterSign.vue

@ -1,12 +1,22 @@
<template> <template>
<div> <div>
<el-card> <el-card>
<div class="publiccss">体检人员签到</div>
<div style="display: flex"> <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 /> <CustomerOrgTreeAll />
</div> </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 /> <PatientRegisterQuery />
@ -36,8 +46,6 @@ export default {
data() { data() {
return { return {
tabChoosed: "1", tabChoosed: "1",
CustomerOrgTreeStyle:'',
CustomerOrgRightStyle:'',
}; };
}, },
@ -168,17 +176,7 @@ 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;";
}
},
}, },
//() //()
@ -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> </script>

Loading…
Cancel
Save