From 5d13e90c9a149a977360f0bbf9ebdc9ebd17a5a8 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期日, 16 三月 2025 15:53:16 +0800 Subject: [PATCH] 成品下单-修改编号,和跳转详情 --- src/views/structural/premises/index.vue | 16 ++++------------ 1 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/views/structural/premises/index.vue b/src/views/structural/premises/index.vue index 8ff0e53..d7e6395 100644 --- a/src/views/structural/premises/index.vue +++ b/src/views/structural/premises/index.vue @@ -67,9 +67,9 @@ placeholder="璇烽�夋嫨" size="small" style="width:100%" collapse-tags clearable></el-cascader> </el-form-item> <el-form-item label="鍗扮珷鍥剧墖" prop="address"> - <el-upload class="avatar-uploader" :action="action" :headers="headers" accept='image/jpg,image/jpeg,image/png' - :show-file-list="false" :on-success="handleSuccess" :on-change="beforeUpload" ref="upload" - :on-error="onError"> + <el-upload class="avatar-uploader" :action="action" :headers="uploadHeader" + accept='image/jpg,image/jpeg,image/png' :show-file-list="false" :on-success="handleSuccess" + :on-change="beforeUpload" ref="upload" :on-error="onError"> <img v-if="dataForm.address" :src="javaApi + '/img/' + dataForm.address" class="avatar"> <i v-else class="el-icon-plus avatar-uploader-icon"></i> </el-upload> @@ -94,20 +94,14 @@ upParameter } from "@/api/structural/laboratoryScope"; import { getCertificationDetail } from "@/api/structural/laboratory"; -import { getToken } from "@/utils/auth"; export default { components: { limsTable }, computed: { - headers() { - return { - 'Authorization': "Bearer " + getToken() - } - }, action() { - return this.javaApi + return this.javaApi + '/deviceScope/uploadFile' } }, data() { @@ -296,8 +290,6 @@ delParameter({ id: row.id }).then(res => { this.$message.success('鍒犻櫎鎴愬姛') this.refreshTable() - }).catch(e => { - this.$message.error('鍒犻櫎澶辫触') }) }).catch(() => { }) }, -- Gitblit v1.9.3