From ecc5079c63e86dd6caba6753b51ed480022bf89b Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期一, 05 二月 2024 19:19:01 +0800 Subject: [PATCH] 添加api拦截 --- src/views/client/followupRecords/index.vue | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/views/client/followupRecords/index.vue b/src/views/client/followupRecords/index.vue index 0e14e4a..5edba03 100644 --- a/src/views/client/followupRecords/index.vue +++ b/src/views/client/followupRecords/index.vue @@ -50,7 +50,7 @@ </div> </div> <!-- 鏂板缓/缂栬緫璺熻繘璁板綍 --> - <AddFollowupRecordsDialog v-if="editConfig.visible" :edit-contacts-config="editConfig" /> + <AddFollowupRecordsDialog :is-detail="isDetail" v-if="editConfig.visible" :edit-contacts-config="editConfig" /> <!-- 鑱旂郴浜鸿鎯� --> <DetailContacts v-if="contactsDeail.visible" :contacts-detail="contactsDeail" /> <!-- 瀹㈡埛璇︽儏 --> @@ -171,10 +171,11 @@ if (this.addConfig.keywordType === "閿�鍞満浼�") { content = this.addConfig.id } else { - content = this.addConfig.common_name + content = this.addConfig.id } this.search_map = { - [this.addConfig.id_name]: content + // [this.addConfig.id_name]: content + contact_id: content } } this.getData(this.search_map) @@ -249,14 +250,14 @@ }, // 鎼滅储 onFilterSearch(searchText) { - this.search_map.name = searchText ?? "" + this.search_map.client_name = searchText ?? "" this.pagerOptions.currPage = 1 this.getData() }, // 鏂板缓 addBtnClick() { this.editConfig.title = "鏂板缓" - this.editConfig.infomation = { ...this.addConfig } + this.editConfig.infomation = { ...this.addConfig ,contact_name:"",sales_leads_name:"",sale_chance_name:""} this.editConfig.visible = true }, // 缂栬緫 @@ -266,7 +267,7 @@ let config=JSON.parse(JSON.stringify(row)); config.client_status_id=config.client_status_id?config.client_status_id:null config.contact_information_id=config.contact_information_id?config.contact_information_id:null - this.editConfig.infomation = { ...config, sale_chance_name: "", sales_leads_name: "" } + this.editConfig.infomation = { ...config, sale_chance_name:row.sale_chance.name, sales_leads_name: "" } this.editConfig.visible = true }, // 鍒犻櫎 -- Gitblit v1.8.0