From 9d3f1aa7571cd532c0c27bf8376ebf4b2178a252 Mon Sep 17 00:00:00 2001 From: charles <981744753@qq.com> Date: 星期三, 24 七月 2024 17:45:45 +0800 Subject: [PATCH] fix:解决srm之前改了域名,处理各种异常状态,跳转也会出现异常等问题。 --- src/views/supplierManage/supplier/AddSupplier.vue | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/supplierManage/supplier/AddSupplier.vue b/src/views/supplierManage/supplier/AddSupplier.vue index 37b31a4..7b737ed 100644 --- a/src/views/supplierManage/supplier/AddSupplier.vue +++ b/src/views/supplierManage/supplier/AddSupplier.vue @@ -368,6 +368,7 @@ console.log(err) }) } else { + params.id=this.editConfig.infomation.id updateSupplier(params).then((res) => { this.editConfig.visible = false if (res.code === 200) { @@ -392,13 +393,13 @@ detailAddress: data.detailAddress || "", email: data.email || "", fileId: this.file_id || 0, - id: data.id || 0, + // id: data.id || 0, industry: data.industry || "", name: data.name || "", number: data.number || "", phone: data.phone || "", responsiblePersonName: - data.responsiblePersonName || document.cookie.replace(/(?:(?:^|.*;\s*)username\s*=\s*([^;]*).*$)|^.*$/, "$1"), + data.responsiblePersonName || document.cookie.replace(/(?:(?:^|.*;\s*)username\s*=\s*([^;]*).*$)|^.*$/, "$1"), status: data.status || 0, supplierType: data.supplierType || "", url: data.url || "" @@ -452,7 +453,7 @@ }, // 涓嬭浇鍚堝悓 downloadClick() { - let url = "/api/downloadContract?id=" + this.file_id + let url = "/api-srm/downloadContract?id=" + this.file_id download(url, "", "") }, // 鍒犻櫎鍚堝悓 @@ -467,7 +468,7 @@ }, // 棰勮鍚堝悓 // async previewClick() { - // this.previewUrl = "/api/con/previewContract?id=" + this.file_id + // this.previewUrl = "/api-srm/con/previewContract?id=" + this.file_id // if (this.file_name.includes("pdf")) { // window.open(this.previewUrl, "_blank") // } else { @@ -482,7 +483,7 @@ // } // } async previewClick() { - this.previewUrl = "/api/previewContract?id=" + this.file_id + this.previewUrl = "/api-srm/previewContract?id=" + this.file_id if (this.file_name.includes("pdf")) { console.log("鏄痯df鏂囦欢") await axios -- Gitblit v1.8.0