| | |
| | | border |
| | | stripe |
| | | :height="tableHeight+'px'" |
| | | :style="{width: 100+'%',height:tableHeight+'px'}" |
| | | :style="{width: 100+'%',height: tableHeight+'px'}" |
| | | highlight-current-row |
| | | :header-cell-style="this.$headerCellStyle" |
| | | :cell-style="this.$cellStyle" |
| | |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | width="120" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | |
| | | <el-dialog |
| | | title="角色关联用户" |
| | | :visible.sync="userDialogVisible" |
| | | width="1500px" |
| | | width="900px" |
| | | :close-on-click-modal="false" |
| | | top="15vh" |
| | | :fullscreen="isFullscreen" |
| | | :fullscreen="isIpad" |
| | | class="userDialogVisible" |
| | | @closed="handleCloseUser" |
| | | @close="handleCloseUser" |
| | |
| | | <div style="display: flex;min-height: 50px"> |
| | | <el-form ref="dialogFormUser" inline :model="dialogFormUser" label-width="80px"> |
| | | <el-form-item label="用户编码"> |
| | | <el-input v-model="dialogFormUser.usercode" style="width: 200px" /> |
| | | <el-input |
| | | v-model="dialogFormUser.usercode" |
| | | :style="{width:isIpad? '180px':'200px'}" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="用户名称"> |
| | | <el-input v-model="dialogFormUser.username" style="width: 200px" /> |
| | | <el-input |
| | | v-model="dialogFormUser.username" |
| | | :style="{width:isIpad? '180px':'200px'}" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="所属组织"> |
| | | <el-cascader |
| | |
| | | :append-to-body="false" |
| | | :options="StuOrgArr" |
| | | :props="defaultProps" |
| | | style="width: 200px;" |
| | | :style="{width:isIpad? '180px':'200px'}" |
| | | |
| | | @change="dialogCascaderChange" |
| | | /> |
| | |
| | | v-model="dialogFormUser.isrole" |
| | | filterable |
| | | :popper-append-to-body="false" |
| | | style="width: 200px" |
| | | :style="{width:isIpad? '180px':'200px'}" |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | |
| | | :data="dialogFormUserTable" |
| | | border |
| | | highlight-current-row |
| | | height="300" |
| | | height="370" |
| | | :header-cell-style="this.$headerCellStyle" |
| | | :cell-style="this.$cellStyle" |
| | | :row-key="getRowKey" |
| | |
| | | :visible.sync="dialogVisibleRight" |
| | | width="800px" |
| | | top="15vh" |
| | | :fullscreen="isFullscreen" |
| | | :fullscreen="isIpad" |
| | | :close-on-click-modal="false" |
| | | class="dialogVisibleRight" |
| | | @closed="handleCloseRight" |
| | |
| | | } |
| | | } |
| | | return { |
| | | isFullscreen: false, |
| | | isIpad: false, |
| | | mainHeight: 0, |
| | | tableHeight: 0, |
| | | form: { |
| | |
| | | // 获取页面高度 |
| | | getHeight() { |
| | | this.$nextTick(() => { |
| | | console.log(window.innerHeight) |
| | | console.log(window.innerHeight) |
| | | this.mainHeight = window.innerHeight - 250 |
| | | this.tableHeight = this.mainHeight - 100 |
| | | // this.isFullscreen = window.innerHeight < 800 |
| | | this.tableHeight = this.mainHeight - 50 |
| | | if (window.innerHeight < 769) { |
| | | this.tableHeight = this.tableHeight - 50 |
| | | } |
| | | |
| | | this.isIpad = window.innerHeight < 769 && window.innerWidth < 1367 |
| | | }) |
| | | }, |
| | | /* 设置模块*/ |