From cb211ec20786031231035c36e9fd06bec114ee6a Mon Sep 17 00:00:00 2001 From: Lei OT Date: Fri, 22 Nov 2024 14:04:40 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=AE=A2=E8=BF=90-=E8=80=81=E5=AE=A2?= =?UTF-8?q?=E6=88=B7:=20=E5=A2=9E=E5=8A=A0=E6=9D=A1=E4=BB=B6`=E9=97=A8?= =?UTF-8?q?=E7=A5=A8`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/charts/Customer_care_regular.jsx | 2 +- src/stores/CustomerStore.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/charts/Customer_care_regular.jsx b/src/charts/Customer_care_regular.jsx index bf0833e..930d8f8 100644 --- a/src/charts/Customer_care_regular.jsx +++ b/src/charts/Customer_care_regular.jsx @@ -22,7 +22,7 @@ const Customer_care_regular = () => { ...date_picker_store.formValues, ...regular_data.searchValues, }, - shows: ['DateType', 'DepartmentList', 'WebCode', 'dates'], + shows: ['DateType', 'DepartmentList', 'WebCode', 'dates', 'IncludeTickets'], fieldProps: { DepartmentList: { show_all: false, mode: 'multiple' }, WebCode: { show_all: false, mode: 'multiple' }, diff --git a/src/stores/CustomerStore.js b/src/stores/CustomerStore.js index 598263b..e6686ea 100644 --- a/src/stores/CustomerStore.js +++ b/src/stores/CustomerStore.js @@ -119,13 +119,15 @@ class CustomerStore { } else { url += '&IsDetail=0'; } + url += `&IncludeTickets=${this.regular_data.include_tickets}`; + fetch(config.HT_HOST + url) .then((response) => response.json()) .then((json) => { runInAction(() => { if (get_detail) { this.regular_data.data_detail = json; - const dump_l = json.filter(ele => ele.COLI_IsOld !== '' && ele.COLI_IsCusCommend !== '').length; + const dump_l = (json || []).filter(ele => ele.COLI_IsOld !== '' && ele.COLI_IsCusCommend !== '').length; this.regular_data.total_data_tips = dump_l > 0 ? `包含 ${dump_l} 条同时勾选的数据` : ''; } else { this.regular_data.data = json; @@ -165,6 +167,7 @@ class CustomerStore { group_select_mode: 'multiple',// 是否多选分组 groups: ['1', '2', '28', '7'], date_type: 'applyDate', + include_tickets: 0, group_handleChange: this.handleChange_group_select_regular.bind(this), onChange_datetype: this.onChange_datetype_regular.bind(this), regular_customer_order: this.regular_customer_order.bind(this),