From a62d5c744c2635edb6a6c82dc4b14db9ae38ba1b Mon Sep 17 00:00:00 2001 From: Jimmy Liow <18777396951@163.com> Date: Wed, 14 Dec 2022 15:08:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=9C=B0=E6=8E=A5=E7=A4=BE?= =?UTF-8?q?=E6=8E=A5=E5=9B=A2=E6=95=B0=E6=8D=AE=E5=A2=9E=E5=8A=A0=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=9D=A1=E4=BB=B6=EF=BC=8C=E6=94=B6=E7=BC=A9=E8=AF=84?= =?UTF-8?q?=E8=AE=BA=E5=92=8C=E5=9F=8E=E5=B8=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/CustomerServices.js | 38 ++++++++-------- src/views/GroupList.js | 79 +++++++++++++++++++++++++++++++--- 2 files changed, 93 insertions(+), 24 deletions(-) diff --git a/src/stores/CustomerServices.js b/src/stores/CustomerServices.js index 4e3a665..92ce906 100644 --- a/src/stores/CustomerServices.js +++ b/src/stores/CustomerServices.js @@ -48,7 +48,6 @@ class CustomerServices { .append('DepList', this.selectedTeam) .append('Country', this.selectedCountry) .build(); - console.info('fetchUrl: ' + fetchUrl); req.fetchJSON(fetchUrl) .then(json => { if (json.errcode === 0) { @@ -167,16 +166,26 @@ class CustomerServices { fetchGroupListByAgentId(agentId) { this.inProgress = true; - this.selectedAgent = {VendorName: '...'}; + this.agentCompany = '...'; this.groupList = []; this.groupListColumns = []; - req.fetchJSON(config.HT_HOST + '/service-web/QueryData/GetAgentGroupInfo?VEI_SN=' + agentId + '&DateType=' + this.dateType + '&Date1=' + this.startDateString + '&Date2=' + this.endDateString + '&OldDate1=' + this.startDateString + '&OldDate2=' + this.endDateString) + const fetchUrl = prepareUrl(config.HT_HOST + '/service-web/QueryData/GetAgentGroupInfo') + .append('VEI_SN', agentId) + .append('DateType', this.dateType) + .append('Date1', this.startDateString) + .append('Date2', this.endDateString) + .append('OldDate1', this.startDateString) + .append('OldDate2', this.endDateString) + .append('DepList', this.selectedTeam) + .append('Country', this.selectedCountry) + .build(); + req.fetchJSON(fetchUrl) .then(json => { if (json.errcode === 0) { runInAction(() => { this.groupList = json.result1; if (json.result1.length > 0) { - this.selectedAgent = {VendorName: json.result1[0].VendorName}; + this.agentCompany = json.result1[0].VendorName; } const total1 = json.total1; this.groupListColumns = [ @@ -220,20 +229,20 @@ class CustomerServices { ] }, { - title: '经过城市', - dataIndex: 'PassCity', + title: '导游', + dataIndex: 'GuideName', children: [{ title: '-', - dataIndex: 'PassCity' + dataIndex: 'GuideName' } ] }, { - title: '导游', - dataIndex: 'GuideName', + title: '前勤分', + dataIndex: 'qianqin', children: [{ title: '-', - dataIndex: 'GuideName' + dataIndex: 'qianqin' } ] }, @@ -256,15 +265,6 @@ class CustomerServices { dataIndex: 'Bad' } ] - }, - { - title: '评论内容', - dataIndex: 'ECI_Content', - children: [{ - title: '-', - dataIndex: 'ECI_Content' - } - ] } ]; }); diff --git a/src/views/GroupList.js b/src/views/GroupList.js index 99e795d..8009050 100644 --- a/src/views/GroupList.js +++ b/src/views/GroupList.js @@ -1,5 +1,5 @@ import React, {useContext, useEffect} from 'react'; -import {Row, Col, Typography, Space, DatePicker, Button, Select, Table} from 'antd'; +import {Row, Col, Typography, Space, DatePicker, Button, Select, Table, List} from 'antd'; import { SearchOutlined, } from '@ant-design/icons'; @@ -28,8 +28,48 @@ const GroupList = () => { <> - + 返回 + + + + + +