| | |
| | | <el-tree |
| | | ref="treeLeftRef" |
| | | style="padding: 10px;overflow: auto;" |
| | | :style="{height:(tableHeight+140)+'px'}" |
| | | :style="{height:(tableHeight+180)+'px'}" |
| | | :data="treeLeft" |
| | | node-key="torg_code" |
| | | highlight-current |
| | |
| | | <el-form-item label="用户名称" style=" display: flex;"> |
| | | <el-input v-model="form.username" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="用户编码" style=" display: flex;"> |
| | | <el-input v-model="form.usercode" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item v-show="isExpandForm" label="用户名称" style=" display: flex;"> |
| | | <el-input v-model="form.username" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item v-show="isExpandForm" label="用户编码" style=" display: flex;"> |
| | | <el-input v-model="form.usercode" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item v-show="isExpandForm" label="用户名称" style=" display: flex;"> |
| | | <el-input v-model="form.username" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item v-show="isExpandForm" label="用户编码" style=" display: flex;"> |
| | | <el-input v-model="form.usercode" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item v-show="isExpandForm" label="用户名称" style=" display: flex;"> |
| | | <el-input v-model="form.username" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | | </div> |
| | | <div |
| | | class="bodySearchReset" |
| | |
| | | <el-button v-waves type="info" icon="el-icon-refresh" @click="reset">重置</el-button> |
| | | </div> |
| | | </el-form> |
| | | |
| | | <div |
| | | class="bodyTopFormExpand" |
| | | > |
| | | <svg-icon |
| | | v-show="mouseHoverType==='mouseout'" |
| | | style="cursor: pointer" |
| | | :icon-class="!isExpandForm?'doubleDown3':'doubleUp3'" |
| | | @mouseenter="mouseHoverType=$event.type" |
| | | /> |
| | | <svg-icon |
| | | v-show="mouseHoverType==='mouseenter'" |
| | | style="cursor: pointer" |
| | | :icon-class="!isExpandForm?'doubleDown':'doubleUp'" |
| | | @click="isExpandForm=!isExpandForm" |
| | | @mouseout="mouseHoverType=$event.type" |
| | | /> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="elTableDiv"> |
| | |
| | | ref="tableDataRef" |
| | | class="tableFixed" |
| | | :data="tableData" |
| | | :height="tableHeight+'px'" |
| | | :height="isExpandForm?tableHeight:(tableHeight+80)+'px'" |
| | | border |
| | | row-class-name="custom-row" |
| | | :style="{width: 100+'%',height:tableHeight+'px',}" |
| | | :style="{width: 100+'%',height:isExpandForm?tableHeight:(tableHeight+80)+'px',}" |
| | | highlight-current-row |
| | | :header-cell-style="this.$headerCellStyle" |
| | | :cell-style="this.$cellStyle" |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="username" |
| | | prop="group_name" |
| | | label="班组" |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | {{ row.group_name ? row.group_name : '/' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="createusername" |
| | | label="创建人员" |
| | | sortable="custom" |
| | | /> |
| | |
| | | } |
| | | } |
| | | return { |
| | | mouseHoverType: 'mouseout', |
| | | isExpandForm: false, |
| | | mainHeight: 0, |
| | | tableHeight: 0, |
| | | form: { |
| | |
| | | handleClose() { |
| | | this.dialogForm.usercode = '' |
| | | this.dialogForm.username = '' |
| | | this.dialogForm.storg_code = '' |
| | | this.dialogForm.status = 'Y' |
| | | |
| | | this.dialogForm.post_code = [] |
| | |
| | | this.dialogForm.password = '123456' |
| | | this.dialogForm.mobile = '' |
| | | this.dialogForm.email = '' |
| | | |
| | | // this.dialogForm.storg_code = '' |
| | | |
| | | this.$refs.cascader.checkedValue = '' |
| | | this.$refs.dialogForm.clearValidate() |
| | |
| | | getHeight() { |
| | | this.$nextTick(() => { |
| | | this.mainHeight = window.innerHeight - 85 |
| | | this.tableHeight = this.mainHeight - 200 |
| | | this.tableHeight = this.mainHeight - 295 |
| | | this.$refs.tableDataRef.doLayout() |
| | | }) |
| | | } |