| | |
| | | </header> |
| | | <!-- 数据展示 --> |
| | | <el-table |
| | | border |
| | | stripe |
| | | border |
| | | stripe |
| | | ref="multipleTable" |
| | | :header-cell-style="{'background':'#F5F5F5', 'font-weight': '650', 'line-height': '45px' }" |
| | | :header-cell-style="{ |
| | | background: '#F5F5F5', |
| | | 'font-weight': '650', |
| | | 'line-height': '45px', |
| | | }" |
| | | :data="tableData" |
| | | style="width: 100%" |
| | | :row-class-name="tableRowClassName" |
| | |
| | | // 获取列表 |
| | | getList() { |
| | | const that = this; |
| | | const { currentPage, pageSize, context } = this; |
| | | const { currentPage, pageSize, context } = this; |
| | | this.getOrgGridList({ |
| | | currentPage, |
| | | pageSize, |
| | | name: context, |
| | | }) |
| | | .then((res) => { |
| | | if (res.code === 200) { |
| | | res.data.records.forEach((item) => { |
| | | item.status === 1 ? (item.status = true) : (item.status = false); |
| | | }); |
| | | that.totalNum = res.data.total; |
| | | that.tableData = res.data.records; |
| | | this.renderFlag = true; |
| | | } |
| | | }); |
| | | }).then((res) => { |
| | | that.totalNum = res.total; |
| | | that.tableData = res.records; |
| | | this.renderFlag = true; |
| | | }); |
| | | }, |
| | | handleAdd() { |
| | | this.handheldGrid = { |