| | |
| | | <template> |
| | | <div> |
| | | <div class="body" style="background-color: #ffffff; padding: 20px 10px 0 20px;" :style="{height:mainHeight+'px'}"> |
| | | <div style="height: 50px;"> |
| | | <div class="body" style="background-color: #ffffff; padding: 20px 10px 0 20px;"> |
| | | <!-- <div class="body" style="background-color: #ffffff; padding: 20px 10px 0 20px;" :style="{height:mainHeight+'px'}">--> |
| | | <div> |
| | | <el-form |
| | | ref="form" |
| | | :model="form" |
| | |
| | | <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">新增</el-button> |
| | | <el-button type="primary" icon="el-icon-upload2" @click="upload">导入</el-button> |
| | | </div> |
| | | |
| | | <!-- :style="{width: 100+'%',height:tableHeight+'px'}"--> |
| | | <div style="display: flex;border: 1px solid #eee"> |
| | | <el-table |
| | | :data="tableData" |
| | | border |
| | | highlight-current-row |
| | | :style="{width: 100+'%',height:tableHeight+'px'}" |
| | | |
| | | :header-cell-style="this.$headerCellStyle" |
| | | :cell-style="this.$cellStyle" |
| | | @sort-change="sortChange" |
| | |
| | | prop="lm_date" |
| | | label="创建时间" |
| | | width="200" |
| | | show-overflow-tooltip |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | |
| | | AddUpdateUser(data).then(res => { |
| | | if (res.code === '200') { |
| | | this.$message.success(this.operation === 'add' ? '添加成功!' : '修改成功!') |
| | | this.dialogVisible = false |
| | | this.getUserSearch() |
| | | } else { |
| | | this.$message.error(this.operation === 'add' ? '添加失败!' : '修改失败!') |
| | | } |
| | | this.dialogVisible = false |
| | | }) |
| | | } |
| | | }) |
| | |
| | | } |
| | | |
| | | ::v-deep .el-input__inner { |
| | | height: 30px |
| | | height: 30px; |
| | | line-height:30px; |
| | | } |
| | | |
| | | ::v-deep .el-table .caret-wrapper { |