zouyu
5 天以前 12c8999bab7206bc652fd69ac4f364d84c9e7153
src/components/Table/lims-table.vue
@@ -316,6 +316,7 @@
        this.tableData.forEach((_, index) => {
          this.$set(this.uploadKeys, index, Date.now());
        });
        this.calculateSpanInfo();
        this.refreshTableLayout();
      },
      immediate: true
@@ -471,13 +472,15 @@
    calculateSpanInfo() {
      // 初始化每列的合并信息
      this.spanList = [];
      // 计算数据列在el-table中的真实起始索引:序号列(1列) + 可选的选择列(1列)
      const colOffset = this.isSelection ? 2 : 1;
      this.column.forEach((m, i) => {
        if (m.mergeCol) {
          this.spanList.push({
            arr: [],
            position: 0,
            name: m.prop,
            index: i + 1,
            index: i + colOffset,
          });
        }
      });