Commit c8c72359 authored by Smile's avatar Smile Committed by wux

任务103:跟进记录调整

parent 05fd919e
No related merge requests found
......@@ -265,13 +265,12 @@ export default {
}
},
created() {
this.$nextTick(() => {
// 在页面加载完后执行的代码
this.setCustomerFollow()
});
this.hasAccountRole();
listServiceUser().then((r) => {
this.serviceUserList = r.data
this.$nextTick(() => {
// 在页面加载完后执行的代码
this.setCustomerFollow()
});
})
listAllSimpl().then((r) => {
this.allSimplList = r.data
......@@ -347,15 +346,16 @@ export default {
},
methods: {
setCustomerFollow(){
if (this.isAccountManager&&!this.form.followUserId){
this.$set(this.form,"followUserId",this.$store.getters.userId)
if (!this.form.followUserId){
const user = this.serviceUserList.find(item =>item.id === this.$store.getters.userId);
if (user.id) {
this.$set(this.form, "followUserId", user.id);
} else {
// 处理未找到用户的情况
this.$set(this.form, "followUserId", null); // 或者其他默认值
}
}
},
hasAccountRole(){
this.isAccountManager=this.$store.getters.roles.some((item) => {
return item === "Account Manager"
})
},
selectOffer(offerId) {
this.form.offerId = offerId
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment