| | |
| | | <el-table-column |
| | | prop="lm_date" |
| | | label="创建时间" |
| | | show-overflow-tooltip |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | |
| | | <el-dialog |
| | | :title="operation==='add'?'新增':'编辑'" |
| | | :visible.sync="dialogVisible" |
| | | width="50%" |
| | | width="60%" |
| | | top="15vh" |
| | | :close-on-click-modal="false" |
| | | @closed="handleClose" |
| | |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="组织编码" prop="OrgCode"> |
| | | <el-input v-model="dialogForm.OrgCode" disabled style="width: 220px" /> |
| | | <el-input v-model="dialogForm.OrgCode" disabled style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="组织名称" prop="OrgName"> |
| | | <el-input v-model="dialogForm.OrgName" style="width: 220px" /> |
| | | <el-input v-model="dialogForm.OrgName" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item v-if="dialogFormOrgTypeSelected!=='F'" prop="SupUnit" label="上级单位"> |
| | | <el-select |
| | | v-model="dialogForm.SupUnit" |
| | | style="width: 220px" |
| | | style="width: 200px" |
| | | filterable |
| | | :popper-append-to-body="false" |
| | | placeholder="请选择" |
| | |
| | | } |
| | | } |
| | | return { |
| | | windowHeight: 0, |
| | | windowWidth: 0, |
| | | mainHeight: 0, |
| | | tableHeight: 0, |
| | | numvalue: 0, |
| | |
| | | |
| | | } |
| | | }, |
| | | // watch: { |
| | | // windowHeight(val) { |
| | | // console.log('实时屏幕高度:', val, this.windowHeight) |
| | | // }, |
| | | // windowWidth(val) { |
| | | // if (val < 768) { |
| | | // this.dialogWidth = '100%' |
| | | // } else { |
| | | // this.dialogWidth = '75%' |
| | | // } |
| | | // console.log('实时屏幕宽度:', val, this.windowHeight) |
| | | // } |
| | | // }, |
| | | created() { |
| | | this.getOrganizationSearch() |
| | | }, |
| | | mounted() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | |
| | | // console.log('页面进入时的宽度:', document.body.clientWidth) |
| | | // if (document.body.clientWidth < 768) { |
| | | // this.dialogWidth = '100%' |
| | | // } |
| | | // |
| | | // // <!--把window.onresize事件挂在到mounted函数上--> |
| | | // window.onresize = () => { |
| | | // return (() => { |
| | | // this.windowHeight = document.documentElement.clientHeight// 高 |
| | | // this.windowWidth = document.documentElement.clientWidth // 宽 |
| | | // })() |
| | | // } |
| | | }, |
| | | methods: { |
| | | async getOrganizationSearch() { |
| | |
| | | color: #606266; |
| | | } |
| | | |
| | | ::v-deep .el-dialog__body { |
| | | padding: 20px 100px !important; |
| | | } |
| | | //::v-deep .el-dialog__body { |
| | | // padding: 20px 100px !important; |
| | | //} |
| | | |
| | | ::v-deep .el-radio__input.is-checked .el-radio__inner { |
| | | background-color: $main_color; |