wwl
2024-12-06 8a5a5ff615e1ac7cf65c298b2e641368f7b1e2b3
src/views/sampling/sampling/index.vue
@@ -188,13 +188,9 @@
          </el-table-column>
        </el-table>
      </div>
      <div style="width: 50%">
        <!-- :default-sort="{ prop: 'specimenType', order: 'ascending' }"  :default-sort="{ prop: 'specimenType', order: 'ascending' }"
          @sort-change="handleSortChange"
          :span-method="objectSpanMethod"
          @selection-change="handleChange" ref="tab1"
          :row-class-name="tableRowClassName"-->
      <div style="width: 50%" v-if="this.rightTabShow">
        <el-table
          v-loading="loading"
          :data="tableList"
          @selection-change="handleChange"
@@ -458,12 +454,15 @@
      form: {},
      // 表单校验
      rules: {},
      rightTabShow: false
    };
  },
  created() {
    // this.getNowTime();
    getTxmmccd().then((res) => {
      this.msg = Number(res.msg);
      console.log(res,444);
    });
    this.getdate();
  },
@@ -471,6 +470,7 @@
    this.$nextTick(() => {
      this.$refs.inputName.focus();
    });
  },
  computed: {
    disabled() {
@@ -598,7 +598,10 @@
            this.$nextTick(() => {
              this.$refs.tb.toggleRowSelection(this.samplingList[0], true);
              // this.fetchData(this.samplingList[0].tjNumber);
              // ddddddddddddddd
              this.rightTabShow = true
            });
          }
          this.total = response.data.total;
          this.loading1 = false;
@@ -963,9 +966,10 @@
      // console.log(selection);
      this.selectList = selection;
      console.log(this.selectList, 5555);
      // console.log(this.selectList, 5555);
      var array = selection;
      this.ids = selection.map((item) => item.id);
      this.ids = array.map((item) => item.id);
    },
    // 禁选