From 9692dce5436bd82f57f166ef83399ddf4fd203e4 Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Thu, 15 Jul 2021 16:26:39 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=AE=A2=E6=88=B7->=E6=9F=A5?=
=?UTF-8?q?=E7=9C=8B=E5=90=88=E5=90=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/config/index.js | 4 ++--
src/utils/http.js | 2 +-
src/views/customer/AddCustomer.vue | 8 +++++---
3 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/config/index.js b/src/config/index.js
index 17241d2..e5f4c83 100644
--- a/src/config/index.js
+++ b/src/config/index.js
@@ -18,9 +18,9 @@ export default {
*/
initialPassword: '111aaa',
/**
- * 所属平台:1->职站 2->数据平台
+ * 所属平台:1->职站 2->数据平台 3->中台
*/
- platformId: 1,
+ platformId: 3,
/**
* @description 系统列表
*/
diff --git a/src/utils/http.js b/src/utils/http.js
index 4c86c9b..532b93d 100644
--- a/src/utils/http.js
+++ b/src/utils/http.js
@@ -40,7 +40,7 @@ axios.interceptors.request.use(config => {
axios.interceptors.response.use(
response => {
if (response.status === 200) {
- if(response.data.status!==200){// 接口定义的非正常返回的时候,应当处于报错状态
+ if(response.data.status && response.data.status!==200){// 接口定义的非正常返回的时候,应当处于报错状态
Message.error(response.data.message)
return Promise.reject(response);
}
diff --git a/src/views/customer/AddCustomer.vue b/src/views/customer/AddCustomer.vue
index 9b0b776..5e35c29 100644
--- a/src/views/customer/AddCustomer.vue
+++ b/src/views/customer/AddCustomer.vue
@@ -182,8 +182,8 @@
-
- 查看
+
+ 查看
@@ -440,7 +440,6 @@ export default {
}).then(res => {
this.NoAdd = true
}).catch(res => {
- this.$message.warning('该客户已存在')
this.NoAdd = false
})
}
@@ -528,6 +527,9 @@ export default {
IPSure(){
this.ipVisible = false
},
+ showContract(row){
+ window.open(`https://view.officeapps.live.com/op/view.aspx?src=${row.contractFile}`)
+ },
goback(){
this.$router.go(-1)
}