Browse Source

feat: 刷数据批量选应用

lihao
nili 6 months ago
parent
commit
f3acb0fbef
  1. 14
      dist/427.f16a2970.async.js
  2. 13
      dist/804.139cd916.async.js
  3. 13
      dist/848.32a73e48.async.js
  4. 1
      dist/_umi_route_preload_helper.31d6ae80.js
  5. 1
      dist/_umi_route_preload_helper.5d8ddf90.js
  6. 4
      dist/index.html
  7. 1
      dist/p__App__AppManagement.82005a8e.async.js
  8. 1
      dist/p__App__AppManagement.a85385ea.async.js
  9. 1
      dist/p__SuperAdmin.6fe38dca.async.js
  10. 1
      dist/p__SuperAdmin.f12ee586.async.js
  11. 4
      dist/umi.ed892a2f.js
  12. 23
      src/pages/App/CashConfigForm.tsx
  13. 50
      src/pages/SuperAdmin.tsx
  14. 2
      src/services/matrix/typings.d.ts

14
dist/235.ac8537cc.async.js → dist/427.f16a2970.async.js

File diff suppressed because one or more lines are too long

13
dist/804.139cd916.async.js

File diff suppressed because one or more lines are too long

13
dist/848.32a73e48.async.js

File diff suppressed because one or more lines are too long

1
dist/_umi_route_preload_helper.31d6ae80.js

@ -0,0 +1 @@
!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":[["51.a2ea1b3b.async.js",51],["63.86ff1d28.async.js",63],["134.6fc81d91.async.js",134],["169.57647c7d.async.js",169],["p__Welcome.61596037.async.js",185],["p__MoneyManagement.8db966b3.async.js",190],["247.3fe8fb10.async.js",247],["t__plugin-layout__Layout.6cae69f5.chunk.css",301],["t__plugin-layout__Layout.4594a64b.async.js",301],["p__User__Login__index.9d3ab92e.async.js",366],["p__DeviceOwnerApp.ec53e5c4.async.js",371],["390.41467286.async.js",390],["393.38316f72.async.js",393],["397.fb5f72c1.async.js",397],["427.f16a2970.async.js",427],["p__SuperAdmin.f12ee586.async.js",455],["531.3d4ec55a.async.js",531],["539.49b7b156.async.js",539],["p__AdvRecordListV2.52c0941e.async.js",542],["p__Bind.b6ee068f.async.js",557],["559.016bfdbb.async.js",559],["p__404.0c100574.async.js",571],["635.20e45f05.async.js",635],["p__App__AppManagement.a85385ea.async.js",731],["804.139cd916.async.js",804],["p__AdminManagement.4b0ea38b.async.js",816],["841.614ef4c0.async.js",841],["p__AdvRecordList.8e5ef22c.async.js",857],["p__UserManagement.2c68b70b.async.js",903],["905.6e225d1b.async.js",905],["930.fca7adbf.async.js",930]],"r":{"/*":[21,29],"/":[2,7,8,20,22,29],"/welcome":[2,3,4,12,20,30,7,8,22,29],"/super":[0,1,2,3,6,14,15,30,7,8,20,22,29],"/adminList":[0,3,14,24,25,2,7,8,20,22,29],"/bind":[2,3,12,13,19,20,30,7,8,22,29],"/appList":[0,1,2,3,6,13,14,16,17,23,24,29,30,7,8,20,22],"/advList/:code":[0,1,2,3,14,16,17,20,24,26,27,29,30,7,8,22],"/advListV2/:code":[0,1,2,3,14,16,17,18,20,24,26,29,30,7,8,22],"/user/:code":[0,1,2,3,14,16,17,24,28,29,30,7,8,20,22],"/money/:code":[0,1,2,3,5,14,16,17,24,29,30,7,8,20,22],"/app/:code":[0,1,2,3,10,14,16,17,20,24,26,29,30,7,8,22],"/user/login":[1,2,3,9,14,16,24]}},{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)}))}}();

1
dist/_umi_route_preload_helper.5d8ddf90.js

@ -1 +0,0 @@
!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":[["51.a2ea1b3b.async.js",51],["63.86ff1d28.async.js",63],["134.6fc81d91.async.js",134],["169.57647c7d.async.js",169],["p__Welcome.61596037.async.js",185],["p__MoneyManagement.8db966b3.async.js",190],["235.ac8537cc.async.js",235],["247.3fe8fb10.async.js",247],["t__plugin-layout__Layout.6cae69f5.chunk.css",301],["t__plugin-layout__Layout.4594a64b.async.js",301],["p__User__Login__index.9d3ab92e.async.js",366],["p__DeviceOwnerApp.ec53e5c4.async.js",371],["390.41467286.async.js",390],["393.38316f72.async.js",393],["397.fb5f72c1.async.js",397],["p__SuperAdmin.6fe38dca.async.js",455],["531.3d4ec55a.async.js",531],["539.49b7b156.async.js",539],["p__AdvRecordListV2.52c0941e.async.js",542],["p__Bind.b6ee068f.async.js",557],["559.016bfdbb.async.js",559],["p__404.0c100574.async.js",571],["635.20e45f05.async.js",635],["p__App__AppManagement.82005a8e.async.js",731],["p__AdminManagement.4b0ea38b.async.js",816],["841.614ef4c0.async.js",841],["848.32a73e48.async.js",848],["p__AdvRecordList.8e5ef22c.async.js",857],["p__UserManagement.2c68b70b.async.js",903],["905.6e225d1b.async.js",905],["930.fca7adbf.async.js",930]],"r":{"/*":[21,29],"/":[2,8,9,20,22,29],"/welcome":[2,3,4,13,20,30,8,9,22,29],"/super":[0,1,2,3,6,7,15,30,8,9,20,22,29],"/adminList":[0,3,6,24,26,2,8,9,20,22,29],"/bind":[2,3,13,14,19,20,30,8,9,22,29],"/appList":[0,1,2,3,6,7,14,16,17,23,26,29,30,8,9,20,22],"/advList/:code":[0,1,2,3,6,16,17,20,25,26,27,29,30,8,9,22],"/advListV2/:code":[0,1,2,3,6,16,17,18,20,25,26,29,30,8,9,22],"/user/:code":[0,1,2,3,6,16,17,26,28,29,30,8,9,20,22],"/money/:code":[0,1,2,3,5,6,16,17,26,29,30,8,9,20,22],"/app/:code":[0,1,2,3,6,11,16,17,20,25,26,29,30,8,9,22],"/user/login":[1,2,3,6,10,16,26]}},{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)}))}}();

4
dist/index.html

@ -7,10 +7,10 @@
<title>Ant Design Pro</title>
<link rel="stylesheet" href="/umi.1ca9308c.css">
<script async src="/scripts/loading.js"></script>
<script src="/_umi_route_preload_helper.5d8ddf90.js"></script>
<script src="/_umi_route_preload_helper.31d6ae80.js"></script>
</head>
<body>
<div id="root"></div>
<script src="/umi.6385cc0f.js"></script>
<script src="/umi.ed892a2f.js"></script>
</body>
</html>

1
dist/p__App__AppManagement.82005a8e.async.js

File diff suppressed because one or more lines are too long

1
dist/p__App__AppManagement.a85385ea.async.js

File diff suppressed because one or more lines are too long

1
dist/p__SuperAdmin.6fe38dca.async.js

File diff suppressed because one or more lines are too long

1
dist/p__SuperAdmin.f12ee586.async.js

File diff suppressed because one or more lines are too long

4
dist/umi.6385cc0f.js → dist/umi.ed892a2f.js

File diff suppressed because one or more lines are too long

23
src/pages/App/CashConfigForm.tsx

@ -43,7 +43,7 @@ const CashConfigForm: React.FC<CashConfigFormProps> = (props) => {
const formItemLayout = {
labelCol: {
xs: { span: 24 },
sm: { span: 8 },
sm: { span: 6 },
},
wrapperCol: {
xs: { span: 24 },
@ -53,19 +53,28 @@ const CashConfigForm: React.FC<CashConfigFormProps> = (props) => {
const formItemLayoutWithOutLabel = {
wrapperCol: {
xs: { span: 24, offset: 10 },
sm: { span: 20, offset: 8 },
sm: { span: 20, offset: 6 },
},
};
return (
<Modal title="编辑" visible={props.updateModalOpen} onOk={handleOk} onCancel={handleCancel}>
<Form form={form} onFinish={handleSaveApp}>
<Form labelCol={{ span: 6 }} wrapperCol={{ span: 18 }} form={form} onFinish={handleSaveApp}>
<Form.List name="moneyLadder">
{(fields, { add, remove }) => (
<>
<Form.Item
// {...(index === 0 ? formItemLayout : formItemLayoutWithOutLabel)}
label={'提现梯度(分)'}
label={
<>
<span style={{ marginLeft: 4 }}>
<Tooltip title="用户可选的提现金额档位,单位分">
<InfoCircleOutlined />
</Tooltip>
</span>
</>
}
required={false}
>
<Row>
@ -113,9 +122,9 @@ const CashConfigForm: React.FC<CashConfigFormProps> = (props) => {
name="noAuditMoney"
label={
<>
<span style={{ marginLeft: 4 }}>
<Tooltip title="低于此金额的提现申请将会自动审核通过">
<Tooltip title="低于此金额的提现申请将会自动审核通过,单位分">
<InfoCircleOutlined />
</Tooltip>
</span>
@ -189,7 +198,7 @@ const CashConfigForm: React.FC<CashConfigFormProps> = (props) => {
</Form.Item>
</>
))}
<Form.Item>
<Form.Item {...formItemLayoutWithOutLabel}>
<Button type="dashed" onClick={() => add()} block>
</Button>

50
src/pages/SuperAdmin.tsx

@ -11,11 +11,13 @@ import { MinusCircleOutlined } from '@ant-design/icons';
import { PageContainer } from '@ant-design/pro-components';
import {
Button,
Col,
DatePicker,
Form,
Input,
Modal,
Popover,
Row,
Select,
Table,
Tabs,
@ -289,9 +291,15 @@ const SuperAdmin: React.FC = () => {
<Table columns={sColumns} dataSource={scheduleArr} />
<Modal title="添加任务" visible={sVisible} onOk={handleSOk} onCancel={handleSCancel}>
<Form form={scheduleForm} onFinish={handleSaveMock}>
<Form
labelCol={{ span: 6 }}
wrapperCol={{ span: 18 }}
form={scheduleForm}
onFinish={handleSaveMock}
>
<Form.Item label="应用" name="appId">
<Select
mode="multiple"
options={appArr.map((app) => ({
label: app.name,
value: app.id,
@ -301,27 +309,33 @@ const SuperAdmin: React.FC = () => {
<Form.Item name="incomeYuan" label="金额(元)">
<Input />
</Form.Item>
{/* <Form.Item name="sheduleTime" label="">
<DatePicker format="YYYY-MM-DD HH:mm" showTime={{ format: 'HH:mm' }} />
</Form.Item> */}
<Form.List name="scheduleTime">
{(fields, { add, remove }) => (
<>
{fields.map(({ key, name }) => (
<div key={key}>
<Form.Item
name={[name, 'time']}
label="开始时间"
rules={[{ required: true, message: '请选择开始时间' }]}
>
<DatePicker format="YYYY-MM-DD HH:mm" showTime={{ format: 'HH:mm' }} />
</Form.Item>
<MinusCircleOutlined
onClick={() => remove(name)}
onPointerOverCapture={undefined}
onPointerMoveCapture={undefined}
/>
</div>
<>
<Row key={key} align="stretch" gutter={16}>
<Col span={18}>
<Form.Item
labelCol={{
xs: { span: 24 },
sm: { span: 8 },
}}
name={[name, 'time']}
label="开始时间"
rules={[{ required: true, message: '请选择开始时间' }]}
>
<DatePicker
format="YYYY-MM-DD HH:mm"
showTime={{ format: 'HH:mm' }}
/>
</Form.Item>
</Col>
<Col>
<MinusCircleOutlined onClick={() => remove(name)} />
</Col>
</Row>
</>
))}
<Form.Item>
<Button type="dashed" onClick={() => add()} block>

2
src/services/matrix/typings.d.ts

@ -1,6 +1,6 @@
declare namespace API {
type AddMockScheduleReq = {
appId?: number;
appId?: number[];
incomeYuan?: number;
scheduleTime?: number[];
};

Loading…
Cancel
Save