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)
}