Browse Source

feat: 加表格收益

lihao
nili 8 months ago
parent
commit
d4e2217338
  1. 1
      dist/134.6fc81d91.async.js
  2. 1
      dist/134.957d5baa.async.js
  3. 3
      dist/169.57647c7d.async.js
  4. 3
      dist/169.c5babfbf.async.js
  5. 30
      dist/235.f7c67994.async.js
  6. 90
      dist/247.3fe8fb10.async.js
  7. 108
      dist/258.355f303f.async.js
  8. 233
      dist/269.4542f5a4.async.js
  9. 164
      dist/270.f1c2a3da.async.js
  10. 13
      dist/287.93586c34.async.js
  11. 13
      dist/287.b21721be.async.js
  12. 153
      dist/335.e3ecf74a.async.js
  13. 10
      dist/393.2a09f5b6.async.js
  14. 10
      dist/393.b64a7324.async.js
  15. 1
      dist/397.0ef2ea1f.async.js
  16. 1
      dist/397.fb5f72c1.async.js
  17. 83
      dist/51.d90b1fa5.async.js
  18. 83
      dist/51.e174e29e.async.js
  19. 246
      dist/531.5028b00b.async.js
  20. 8
      dist/559.016bfdbb.async.js
  21. 8
      dist/559.683b9a7b.async.js
  22. 96
      dist/601.e46b1579.async.js
  23. 42
      dist/63.d3cf24e7.async.js
  24. 27
      dist/635.09454aea.async.js
  25. 27
      dist/635.84db70b9.async.js
  26. 40
      dist/676.a53a9987.async.js
  27. 30
      dist/706.1c4598f2.async.js
  28. 1
      dist/905.6e225d1b.async.js
  29. 1
      dist/905.745134cb.async.js
  30. 58
      dist/930.05171fe3.async.js
  31. 59
      dist/930.42e2019f.async.js
  32. 13
      dist/index.html
  33. 1
      dist/p__AdminManagement.4ce10001.async.js
  34. 1
      dist/p__AdminManagement.a69b1d38.async.js
  35. 1
      dist/p__AdvRecordList.2fce5070.async.js
  36. 1
      dist/p__AdvRecordList.58dfb141.async.js
  37. 1
      dist/p__AppManagement.032a6188.async.js
  38. 1
      dist/p__AppManagement.94b1a1be.async.js
  39. 2
      dist/p__DeviceOwnerApp.0a01face.async.js
  40. 1
      dist/p__SuperAdmin.e98ce7d0.async.js
  41. 1
      dist/p__SuperAdmin.ffff8e8d.async.js
  42. 1
      dist/p__User__Login__index.9d3ab92e.async.js
  43. 1
      dist/p__User__Login__index.da479be3.async.js
  44. 433
      dist/umi.04a1e043.js
  45. 426
      dist/umi.d542bfe9.js
  46. 36
      src/pages/AdvRecordList.tsx

1
dist/134.6fc81d91.async.js

File diff suppressed because one or more lines are too long

1
dist/134.957d5baa.async.js

File diff suppressed because one or more lines are too long

3
dist/169.57647c7d.async.js

File diff suppressed because one or more lines are too long

3
dist/169.c5babfbf.async.js

File diff suppressed because one or more lines are too long

30
dist/235.f7c67994.async.js

File diff suppressed because one or more lines are too long

90
dist/247.3fe8fb10.async.js

File diff suppressed because one or more lines are too long

108
dist/258.355f303f.async.js

File diff suppressed because one or more lines are too long

233
dist/269.4542f5a4.async.js

File diff suppressed because one or more lines are too long

164
dist/270.f1c2a3da.async.js

File diff suppressed because one or more lines are too long

13
dist/287.93586c34.async.js

File diff suppressed because one or more lines are too long

13
dist/287.b21721be.async.js

File diff suppressed because one or more lines are too long

153
dist/335.e3ecf74a.async.js

File diff suppressed because one or more lines are too long

10
dist/393.2a09f5b6.async.js

File diff suppressed because one or more lines are too long

10
dist/393.b64a7324.async.js

File diff suppressed because one or more lines are too long

1
dist/397.0ef2ea1f.async.js

File diff suppressed because one or more lines are too long

1
dist/397.fb5f72c1.async.js

File diff suppressed because one or more lines are too long

83
dist/51.d90b1fa5.async.js

File diff suppressed because one or more lines are too long

83
dist/51.e174e29e.async.js

File diff suppressed because one or more lines are too long

246
dist/531.5028b00b.async.js

File diff suppressed because one or more lines are too long

8
dist/559.016bfdbb.async.js

File diff suppressed because one or more lines are too long

8
dist/559.683b9a7b.async.js

File diff suppressed because one or more lines are too long

96
dist/601.e46b1579.async.js

File diff suppressed because one or more lines are too long

42
dist/63.d3cf24e7.async.js

File diff suppressed because one or more lines are too long

27
dist/635.09454aea.async.js

File diff suppressed because one or more lines are too long

27
dist/635.84db70b9.async.js

File diff suppressed because one or more lines are too long

40
dist/676.a53a9987.async.js

File diff suppressed because one or more lines are too long

30
dist/706.1c4598f2.async.js

File diff suppressed because one or more lines are too long

1
dist/905.6e225d1b.async.js

File diff suppressed because one or more lines are too long

1
dist/905.745134cb.async.js

File diff suppressed because one or more lines are too long

58
dist/930.05171fe3.async.js

File diff suppressed because one or more lines are too long

59
dist/930.42e2019f.async.js

File diff suppressed because one or more lines are too long

13
dist/index.html

@ -1,13 +1,16 @@
<!DOCTYPE html><html><head>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Ant Design Pro</title>
<link rel="stylesheet" href="/umi.1ca9308c.css">
<script async="" src="/scripts/loading.js"></script>
<script async src="/scripts/loading.js"></script>
<script>!function(){"use strict";var t="/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"ant-design-pro","b":"webpack","f":[["p__AppManagement.94b1a1be.async.js",39],["51.e174e29e.async.js",51],["63.d3cf24e7.async.js",63],["134.6fc81d91.async.js",134],["169.57647c7d.async.js",169],["p__Welcome.61596037.async.js",185],["235.f7c67994.async.js",235],["247.3fe8fb10.async.js",247],["258.355f303f.async.js",258],["287.b21721be.async.js",287],["t__plugin-layout__Layout.6cae69f5.chunk.css",301],["t__plugin-layout__Layout.afe80231.async.js",301],["335.e3ecf74a.async.js",335],["p__User__Login__index.9d3ab92e.async.js",366],["p__DeviceOwnerApp.0a01face.async.js",371],["390.41467286.async.js",390],["393.b64a7324.async.js",393],["397.fb5f72c1.async.js",397],["p__SuperAdmin.e98ce7d0.async.js",455],["531.5028b00b.async.js",531],["p__Bind.b6ee068f.async.js",557],["559.016bfdbb.async.js",559],["p__404.0c100574.async.js",571],["635.84db70b9.async.js",635],["p__AdminManagement.a69b1d38.async.js",816],["p__AdvRecordList.58dfb141.async.js",857],["905.6e225d1b.async.js",905],["930.42e2019f.async.js",930]],"r":{"/*":[22,26],"/":[3,10,11,21,23,26],"/welcome":[3,4,5,16,21,27,10,11,23,26],"/super":[1,2,3,4,6,7,18,27,10,11,21,23,26],"/adminList":[1,4,6,9,24,3,10,11,21,23,26],"/bind":[3,4,16,17,20,21,27,10,11,23,26],"/appList":[0,1,2,3,4,6,9,12,17,19,26,27,10,11,21,23],"/advList/:code":[1,2,3,4,6,8,9,12,19,21,25,26,27,10,11,23],"/app/:code":[1,2,3,4,6,8,9,12,14,19,21,26,27,10,11,23],"/user/login":[2,3,4,6,9,13,19]}},{publicPath:"/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}();</script>
</head>
<body>
<div id="root"></div>
<script src="/umi.04a1e043.js"></script>
</body></html>
<script src="/umi.d542bfe9.js"></script>
</body>
</html>

1
dist/p__AdminManagement.4ce10001.async.js

File diff suppressed because one or more lines are too long

1
dist/p__AdminManagement.a69b1d38.async.js

File diff suppressed because one or more lines are too long

1
dist/p__AdvRecordList.2fce5070.async.js

File diff suppressed because one or more lines are too long

1
dist/p__AdvRecordList.58dfb141.async.js

File diff suppressed because one or more lines are too long

1
dist/p__AppManagement.032a6188.async.js

File diff suppressed because one or more lines are too long

1
dist/p__AppManagement.94b1a1be.async.js

File diff suppressed because one or more lines are too long

2
dist/p__DeviceOwnerApp.6709cb8d.async.js → dist/p__DeviceOwnerApp.0a01face.async.js

File diff suppressed because one or more lines are too long

1
dist/p__SuperAdmin.e98ce7d0.async.js

File diff suppressed because one or more lines are too long

1
dist/p__SuperAdmin.ffff8e8d.async.js

File diff suppressed because one or more lines are too long

1
dist/p__User__Login__index.9d3ab92e.async.js

File diff suppressed because one or more lines are too long

1
dist/p__User__Login__index.da479be3.async.js

File diff suppressed because one or more lines are too long

433
dist/umi.04a1e043.js

File diff suppressed because one or more lines are too long

426
dist/umi.d542bfe9.js

File diff suppressed because one or more lines are too long

36
src/pages/AdvRecordList.tsx

@ -1,3 +1,4 @@
import { advList, incomeDaily, incomeOverview } from '@/services/matrix/admin';
import { Column } from '@ant-design/charts';
import {
ColumnsState,
@ -9,7 +10,6 @@ import {
QueryFilter,
StatisticCard,
} from '@ant-design/pro-components';
import { useIntl } from '@umijs/max';
import { Tabs } from 'antd';
import TabPane from 'antd/es/tabs/TabPane';
import moment from 'moment';
@ -19,17 +19,10 @@ import { useParams } from 'react-router-dom';
// import { RequestOptionsType, ProFieldRequestData } from "@ant-design/pro-utils";
import { advList, incomeDaily, incomeOverview } from '@/services/matrix/admin';
import type { ActionType } from '@ant-design/pro-components';
const AdvRecordList: React.FC = () => {
const actionRef = useRef<ActionType>();
/**
* @en-US International configuration
* @zh-CN
* */
const intl = useIntl();
const [income, setIncome] = useState<number | undefined>(undefined);
const isMobile = () => {
return window.innerWidth <= 768;
@ -155,14 +148,6 @@ const AdvRecordList: React.FC = () => {
];
const { code } = useParams();
const fetchData = async (params: any) => {
const res = await advList({ ...params, code: code });
return {
data: res.data?.data,
total: res.data?.total,
success: true,
};
};
const [overview, setOverview] = useState<API.OverviewBo>();
const [daily, setDaily] = useState<API.DateIncome[]>([]);
@ -237,16 +222,23 @@ const AdvRecordList: React.FC = () => {
<Tabs defaultActiveKey="1" centered style={{ backgroundColor: 'white', padding: '20px' }}>
<TabPane tab="广告详情" key="1">
<ProTable<API.MatrixAdvRecordBo, API.AdvRecordQuery>
headerTitle={intl.formatMessage({
id: 'pages.searchTable.title',
defaultMessage: 'Enquiry form',
})}
headerTitle={income ? '表格累计:' + formatIncome(income) + '元' : ''}
actionRef={actionRef}
rowKey="key"
search={{
labelWidth: 120,
}}
request={fetchData}
request={async (params: API.AdvRecordQuery) => {
const res = await advList({ ...params, code: code });
if (params.current === 1) {
setIncome(res.data?.sum);
}
return {
data: res.data?.data,
total: res.data?.total,
success: true,
};
}}
columns={columns}
columnsState={{
value: columnsState,

Loading…
Cancel
Save