From 84dfaf7b7ee6f4fccf5dfe7534c81ab2687a2b07 Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期五, 13 十月 2023 17:19:48 +0800 Subject: [PATCH] feat: 所有请求都走拦截器 --- src/views/client/followupRecords/AddFollowupRecordsDialog.vue | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/views/client/followupRecords/AddFollowupRecordsDialog.vue b/src/views/client/followupRecords/AddFollowupRecordsDialog.vue index 79e4250..3ee7e0d 100644 --- a/src/views/client/followupRecords/AddFollowupRecordsDialog.vue +++ b/src/views/client/followupRecords/AddFollowupRecordsDialog.vue @@ -340,6 +340,9 @@ import SelectChanceDialog from "@/views/other/commonDialog/SelectChanceDialog" import SelectLeadDialog from "@/views/other/commonDialog/SelectLeadDialog" import codeMixin from "./mixin/codeMixin"; +import { getContactList } from "@/api/client/contacts" +import { mapActions } from 'vuex'; + export default { name: "AddFollowupRecordsDialog", mixins: [codeMixin], @@ -450,6 +453,7 @@ } }, methods: { + ...mapActions (['getContactFilter']), formInfo(){ this.objCode.type='璺熻繘璁板綍缂栫爜' this.objCode.codeStandID = '' @@ -566,10 +570,16 @@ return state.name.toLowerCase().indexOf(queryString.toLowerCase()) === 0 } }, - handleSelectClient(value, item) { + async handleSelectClient(value, item) { if (value === "client") { this.clientId = item.id this.editConfig.infomation.client_name = item.name + await getContactList({ + clientId:this.clientId + }).then((res)=>{ + this.getContactFilter(res.data.list) + }) + // console.log("clientId",this.clientId,this.editConfig.infomation.client_name) } else if (value === "contact") { this.contactId = item.id this.editConfig.infomation.contact_name = item.name -- Gitblit v1.8.0