licp
2024-12-25 8867a4415e7e7ad06f30fa2a7f7112c26ce45105
src/components/view/a7-sample-registration.vue
@@ -6,7 +6,7 @@
    <el-tabs type="border-card" v-model="activeName" style="height: 100%;" @tab-click="componentData0.entity.totalSampleId=''">
      <el-tab-pane label="填写" name="填写" style="height: 100%;" :key="1">
        <el-button size="small" type="primary" @click="handleAdd0" style="margin-left: 20px;" v-if="addPower">新增</el-button>
        <div class="table" style="height: calc(100% - 200px)" v-if="activeName=='填写'">
        <div class="table" style="height: calc(100% - 200px)" F>
          <ValueTable ref="ValueTable0" :url="$api.processSample.pageProcessSample"
      :componentData="componentData0" :key="upIndex0" :delUrl="$api.processSample.delProcessSample" />
        </div>
@@ -30,7 +30,7 @@
          </div>
        </div>
        <div class="table">
          <ValueTable ref="ValueTable" :url="$api.processSample.pageProcessTotalSample"
          <ValueTable ref="ValueTable" v-if="activeName=='历史记录'" :url="$api.processSample.pageProcessTotalSample"
            :componentData="componentData" :key="upIndex"/>
        </div>
      </el-tab-pane>
@@ -416,7 +416,7 @@
      }).catch(err=>{});
    },
    refreshTable() {
      this.$refs['ValueTable'].selectList()
      this.$refs['ValueTable']&&this.$refs['ValueTable'].selectList()
    },
    refresh() {
      this.componentData.entity = this.HaveJson(this.entityCopy)
@@ -505,7 +505,9 @@
      // this.commonFun(row)
      this.activeName = '填写'
      this.componentData0.entity.totalSampleId = row.id
      this.$refs['ValueTable0'].selectList()
      this.$nextTick(()=>{
        this.$refs['ValueTable0'].selectList()
      })
    },
    commonFun(row,callbanck){
      this.currentInfo = row