| | |
| | | </div> |
| | | <div style="width: 50%"> |
| | | <!-- v-if="this.rightTabShow" --> |
| | | <el-table :row-key="getRowKey" v-if="tableList.length > 0" v-loading="loading" :data="tableList" @selection-change="handleChange" |
| | | <el-table :key="tableKey" :row-key="getRowKey" v-if="tableList.length > 0" v-loading="loading" :data="tableList" @selection-change="handleChange" |
| | | :span-method="objectSpanMethod" ref="tab1" :row-class-name="tableRowClassName" border height="520px"> |
| | | <el-table-column type="selection" width="40" align="center" /> |
| | | <!-- :selectable="selectEnable" --> |
| | |
| | | proName: null, |
| | | }, |
| | | startTime: "", |
| | | tableKey : "", |
| | | pickerOptions: { |
| | | shortcuts: [ |
| | | { |
| | |
| | | .then((response) => { |
| | | if (response.data) { |
| | | this.tableList = response.data; |
| | | this.tableKey = Date.now() |
| | | this.$nextTick(() => { |
| | | if (this.$refs.tab1) { |
| | | this.$refs.tab1.doLayout(); // 修改为正确的 ref 名称 |
| | |
| | | } |
| | | }); |
| | | resolve(this.tableList); |
| | | this.loading = false; |
| | | } else { |
| | | this.tableList = []; |
| | | this.selectList = []; |
| | |
| | | |
| | | <style> |
| | | #ta .el-table__header-wrapper .el-checkbox { |
| | | /* display: none; */ |
| | | display: none; |
| | | } |
| | | |
| | | .el-table .warning-row { |