| | |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | <div style="width: 50%"> |
| | | <div style="width: 50%" v-if="this.rightTabShow"> |
| | | <el-table |
| | | |
| | | v-loading="loading" |
| | | :data="tableList" |
| | | @selection-change="handleChange" |
| | |
| | | form: {}, |
| | | // 表单校验 |
| | | rules: {}, |
| | | rightTabShow: false |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | this.$nextTick(() => { |
| | | this.$refs.tb.toggleRowSelection(this.samplingList[0], true); |
| | | // this.fetchData(this.samplingList[0].tjNumber); |
| | | // ddddddddddddddd |
| | | this.rightTabShow = true |
| | | }); |
| | | |
| | | } |
| | |
| | | handleChange(selection) { |
| | | // console.log(selection); |
| | | |
| | | // this.selectList = selection; |
| | | this.selectList = selection; |
| | | // console.log(this.selectList, 5555); |
| | | var array = selection; |
| | | |
| | | this.ids = array.map((item) => item.id); |
| | | }, |
| | | selectAllRows() { |
| | | this.$nextTick(() => { |
| | | if (this.$refs.tab1) { |
| | | this.$refs.tab1.toggleAllSelection(); |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | // 禁选 |