e 3 years ago
commit 0a36bda121
  1. 5
      src/components/Header.vue
  2. 4
      src/config/index.js
  3. 4
      src/utils/http.js
  4. 8
      src/views/customer/AddCustomer.vue
  5. 2
      src/views/setting/Person.vue

@ -6,7 +6,7 @@
<div class="header-right"> <div class="header-right">
<div class="header-user-con"> <div class="header-user-con">
<div class="user" @click="toPerson"> <div class="user" @click="toPerson">
<el-avatar :size="40" :src="avatar"></el-avatar> <el-avatar :size="40" :src="$store.state.avatar"></el-avatar>
<span class="user-avator">{{userName}}</span> <span class="user-avator">{{userName}}</span>
</div> </div>
<el-divider class="ml20" direction="vertical"></el-divider> <el-divider class="ml20" direction="vertical"></el-divider>
@ -19,7 +19,6 @@
export default { export default {
data() { data() {
return { return {
avatar: 'https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png',
userName: '' userName: ''
}; };
}, },
@ -30,7 +29,7 @@ export default {
getUserInfo(){ getUserInfo(){
this.$get(this.api.queryUserInfoDetails).then(res => { this.$get(this.api.queryUserInfoDetails).then(res => {
let userInfo = res.result.hrUserInfo let userInfo = res.result.hrUserInfo
if(userInfo.userAvatars) this.avatar = userInfo.userAvatars if(userInfo.userAvatars) this.$store.commit('userAvatar',{avatar: userInfo.userAvatars})
this.userName = userInfo.userName this.userName = userInfo.userName
}).catch(err => {}) }).catch(err => {})
}, },

@ -18,9 +18,9 @@ export default {
*/ */
initialPassword: '111aaa', initialPassword: '111aaa',
/** /**
* 所属平台1->职站 2->数据平台 * 所属平台1->职站 2->数据平台 3->中台
*/ */
platformId: 1, platformId: 3,
/** /**
* @description 系统列表 * @description 系统列表
*/ */

@ -40,8 +40,8 @@ axios.interceptors.request.use(config => {
axios.interceptors.response.use( axios.interceptors.response.use(
response => { response => {
if (response.status === 200) { if (response.status === 200) {
if(response.data.status!==200){// 接口定义的非正常返回的时候,应当处于报错状态 if(response.data.status && response.data.status!==200){// 接口定义的非正常返回的时候,应当处于报错状态
Message.error(response.data.message)// 非服务器状态码对应的报错信息 Message.error(response.data.message)
return Promise.reject(response); return Promise.reject(response);
} }
return Promise.resolve(response); return Promise.resolve(response);

@ -182,8 +182,8 @@
<el-table-column prop="contractMoney" label="合同金额" align="center"> <el-table-column prop="contractMoney" label="合同金额" align="center">
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center"> <el-table-column label="操作" align="center">
<template> <template slot-scope="scope">
<el-button type="text">查看</el-button> <el-button type="text" @click="showContract(scope.row)">查看</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -440,7 +440,6 @@ export default {
}).then(res => { }).then(res => {
this.NoAdd = true this.NoAdd = true
}).catch(res => { }).catch(res => {
this.$message.warning('该客户已存在')
this.NoAdd = false this.NoAdd = false
}) })
} }
@ -528,6 +527,9 @@ export default {
IPSure(){ IPSure(){
this.ipVisible = false this.ipVisible = false
}, },
showContract(row){
window.open(`https://view.officeapps.live.com/op/view.aspx?src=${row.contractFile}`)
},
goback(){ goback(){
this.$router.go(-1) this.$router.go(-1)
} }

@ -567,7 +567,7 @@ export default {
// //
getRes(res) { getRes(res) {
this.avatar = res.message this.avatar = res.message
this.$store.commit('userPhoto',{avatar:res.message}) this.$store.commit('userAvatar',{avatar:res.message})
}, },
getdata() { getdata() {
this.$get(this.api.queryUserInfoDetails).then(res => { this.$get(this.api.queryUserInfoDetails).then(res => {

Loading…
Cancel
Save