fix
13404089107
2025-06-26 19ca0d81ddfefa0cfb46d992f67589c531cfcead
fix
2个文件已修改
29 ■■■■ 已修改文件
culture/src/views/deliveryAssessment/projectTeamIntegral/detail.vue 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
culture/src/views/strain-library/strain-library-manage/record.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
culture/src/views/deliveryAssessment/projectTeamIntegral/detail.vue
@@ -32,10 +32,10 @@
                <div class="integral-content-box-right">
                    <div v-show="actionsLeftTab != 1" @wheel.prevent="handleWheel"
                        class="integral-content-box-right-nameTab">
                        <div @click="changeActiveName(item.userName)"
                        <div  v-for="(item, index) in detailData.detailExperimentVOS" @click="changeActiveName(item.userName)"
                            :class="activeNameTab == item.userName && 'activeName'"
                            class="integral-content-box-right-nameTab-name"
                            v-for="{ item, index } in detailData.detailExperimentVOS" :key="index">{{ item.userName }}
                           :key="index">{{ item.userName }}
                        </div>
                    </div>
                    <div class="integral-content-box-right-thead">
@@ -52,23 +52,23 @@
                                <div>{{ item.situationOne }}{{
                                    actionsLeftTab === 2 ?
                                        (selectedExperimenter || {})[item.keys[0]] :
                                        detailData[item.keys[0]]
                                        detailData.detailEngineerVO[item.keys[0]]
                                }}</div>
                                <div>{{ item.situationTwo }}{{
                                    actionsLeftTab === 2 ?
                                        (selectedExperimenter || {})[item.keys[1]] :
                                        detailData[item.keys[1]]
                                        detailData.detailEngineerVO[item.keys[1]]
                                }}</div>
                            </div>
                            <div>{{
                                actionsLeftTab === 2 ?
                                    (selectedExperimenter || {})[item.keys[2]] :
                                    detailData[item.keys[2]]
                                    detailData.detailEngineerVO[item.keys[2]]
                            }}</div>
                            <div>{{
                                actionsLeftTab === 2 ?
                                    (selectedExperimenter || {})[item.keys[3]] :
                                    detailData[item.keys[3]]
                                    detailData.detailEngineerVO[item.keys[3]]
                            }}</div>
                        </div>
                    </div>
@@ -131,17 +131,16 @@
    },
    created() {
        getDetailData(this.$route.query.id).then(res => {
            console.log('接口返回数据:', res)
            if(!res.detailExperimentVOS){
                res.detailExperimentVOS = [];
            }
            this.detailData = res;
            // 确保detailExperimentVOS存在且是数组
            // this.detailData.detailExperimentVOS = this.detailData.detailExperimentVOS || [];
            if (this.detailData.detailExperimentVOS.length) {
                this.selectedExperimenter = this.detailData.detailExperimentVOS[0];
                this.activeNameTab = this.selectedExperimenter.userName;
            // 正确判断 detailExperimentVOS 是否有数据
            if (res.detailExperimentVOS && res.detailExperimentVOS.length) {
                this.selectedExperimenter = res.detailExperimentVOS[0];
                this.activeNameTab = res.detailExperimentVOS[0].userName;
            } else {
                // 设置空对象保护
                this.selectedExperimenter = {};
                this.activeNameTab = '';
            }
culture/src/views/strain-library/strain-library-manage/record.vue
@@ -94,10 +94,10 @@
        <el-table-column prop="signature" label="操作人签字">
          <template #default="{ row }">
            <el-image
              v-if="row.signature"
              v-if="row.handleSignature"
              style="width: 100px; height: 100px"
              :src="row.signature"
              :preview-src-list="[row.signature]"
              :src="row.handleSignature"
              :preview-src-list="[row.handleSignature]"
            >
            </el-image>
          </template>