From d84ce4c19f67b22cbca8cb14bda37ec0cbb718fd Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期三, 05 三月 2025 15:43:57 +0800 Subject: [PATCH] Merge branch 'dev' of http://114.132.189.42:9002/r/lims-ruoyi-before into dev --- src/views/structural/capabilityAndLaboratory/capability/index.vue | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/structural/capabilityAndLaboratory/capability/index.vue b/src/views/structural/capabilityAndLaboratory/capability/index.vue index 713b339..96083ab 100644 --- a/src/views/structural/capabilityAndLaboratory/capability/index.vue +++ b/src/views/structural/capabilityAndLaboratory/capability/index.vue @@ -13,7 +13,7 @@ style="display: inline;margin-right: 8px" :action="uploadAction1" :before-upload="beforeUpload1" :headers="token" :on-error="onError1" - :on-success="handleSuccessUp" :show-file-list="false" accept='.doc,.docx,.xls,.xlsx'> + :on-success="handleSuccessUp1" :show-file-list="false" accept='.doc,.docx,.xls,.xlsx'> <el-button size="small" type="primary">瀵煎叆</el-button> </el-upload> <el-button size="small" type="primary" v-if="radio === 1" @click="uploadDia = true">瀵煎叆</el-button> @@ -430,10 +430,10 @@ return true; } }, - handleSuccessUp (response, file, fileList) { - this.$refs.upload.clearFiles() - if (response.code === 201) { - this.$message.error(response.message) + handleSuccessUp1 (response, file, fileList) { + this.$refs.upload1.clearFiles() + if (response.code !== 200) { + this.$message.error(response.msg) return } this.$message.success('涓婁紶鎴愬姛') -- Gitblit v1.9.3