perf: 字段文字

main
Lei OT 3 months ago
parent 7cb91abea2
commit 1f5d6a9047

@ -318,7 +318,7 @@ export const pivotBy = (_data, [rows, columns, date]) => {
ele.isCusCommend_txt = ele.isCusCommend === '1' ? '老客户推荐' : '否'; ele.isCusCommend_txt = ele.isCusCommend === '1' ? '老客户推荐' : '否';
const hasOld = (ele.IsOld === '1' || ele.isCusCommend === '1') ? 1 : 0; const hasOld = (ele.IsOld === '1' || ele.isCusCommend === '1') ? 1 : 0;
ele.hasOld = hasOld; ele.hasOld = hasOld;
ele.hasOld_txt = hasOld === 1 ? '老客户(推荐)' : ''; ele.hasOld_txt = hasOld === 1 ? '老客户(推荐)' : '';
// ele.SumML_ctxt1 = ele.ML > 10000 ? '1W+' : '1W-'; // ele.SumML_ctxt1 = ele.ML > 10000 ? '1W+' : '1W-';
// ele.SumML_ctxt1_5 = ele.ML > 15000 ? '1.5W+' : '1.5W-'; // ele.SumML_ctxt1_5 = ele.ML > 15000 ? '1.5W+' : '1.5W-';
// ele.SumML_ctxt2 = ele.ML > 20000 ? '2W+' : '2W-'; // ele.SumML_ctxt2 = ele.ML > 20000 ? '2W+' : '2W-';

@ -28,7 +28,7 @@ const filterFields = [
options: [ options: [
{ key: 'productType', value: 'productType', label: '产品类型' }, { key: 'productType', value: 'productType', label: '产品类型' },
{ key: 'CLI_NO', value: 'CLI_NO', label: '线路' }, { key: 'CLI_NO', value: 'CLI_NO', label: '线路' },
{ key: 'destinationCountry', value: 'destinationCountry', label: '目的地国' }, { key: 'destinationCountry', value: 'destinationCountry', label: '目的地国' },
{ key: 'destinations', value: 'destinations', label: '目的地城市' }, { key: 'destinations', value: 'destinations', label: '目的地城市' },
{ key: 'HotelStar', value: 'HotelStar', label: '酒店星级' }, { key: 'HotelStar', value: 'HotelStar', label: '酒店星级' },
], ],
@ -40,7 +40,7 @@ const filterFields = [
{ key: 'travelMotivation', value: 'travelMotivation', label: '出行目的' }, { key: 'travelMotivation', value: 'travelMotivation', label: '出行目的' },
{ key: 'IsOld_txt', value: 'IsOld_txt', label: '是否老客户' }, { key: 'IsOld_txt', value: 'IsOld_txt', label: '是否老客户' },
{ key: 'isCusCommend_txt', value: 'isCusCommend_txt', label: '是否老客户推荐' }, { key: 'isCusCommend_txt', value: 'isCusCommend_txt', label: '是否老客户推荐' },
{ key: 'hasOld_txt', value: 'hasOld_txt', label: '老客户(推荐)' }, { key: 'hasOld_txt', value: 'hasOld_txt', label: '老客户(推荐)' },
{ key: 'RTXF_WB_range', value: 'RTXF_WB_range', label: '人天消费(外币)' }, { key: 'RTXF_WB_range', value: 'RTXF_WB_range', label: '人天消费(外币)' },
], ],
}, },
@ -74,7 +74,7 @@ const quickOptions = [
{ label: ' 来源站点 ', fields: [['WebCode'], []] }, { label: ' 来源站点 ', fields: [['WebCode'], []] },
{ label: '[ 产品×客群 ]', fields: [['productType', 'guestGroupType'], []] }, { label: '[ 产品×客群 ]', fields: [['productType', 'guestGroupType'], []] },
{ label: '[ 国籍×客群 ]', fields: [['country', 'guestGroupType'], []] }, { label: '[ 国籍×客群 ]', fields: [['country', 'guestGroupType'], []] },
{ label: '[ 客群×目的地国 ]', fields: [['guestGroupType', 'destinationCountry'], []] }, { label: '[ 客群×目的地国 ]', fields: [['guestGroupType', 'destinationCountry'], []] },
// { label: '[ × ]×[ ]', fields: [['country', 'guestGroupType'], []] }, // { label: '[ × ]×[ ]', fields: [['country', 'guestGroupType'], []] },
]; ];

Loading…
Cancel
Save