Browse Source

凡米游

fanmiyou
nili 9 months ago
parent
commit
e482f2bbd5
  1. 2
      config/config.ts
  2. 10
      config/defaultSettings.ts
  3. 3
      dist/index.html
  4. BIN
      dist/logo.jpg
  5. 1
      dist/p__AdvRecordList.7aa1880e.async.js
  6. 1
      dist/p__AdvRecordList.9dd0bcc8.async.js
  7. 2
      dist/p__User__Login__index.be34cf5d.async.js
  8. 2
      dist/t__plugin-layout__Layout.34225d11.async.js
  9. 66
      dist/umi.362ade8f.js
  10. BIN
      public/logo.jpg
  11. 6
      src/app.tsx
  12. 16
      src/pages/AdvRecordList.tsx
  13. 4
      src/pages/User/Login/index.tsx

2
config/config.ts

@ -15,6 +15,8 @@ export default defineConfig({
*/ */
hash: true, hash: true,
favicons : ['logo.jpg'],
/** /**
* @name * @name
* @description ie11 使 * @description ie11 使

10
config/defaultSettings.ts

@ -7,17 +7,17 @@ const Settings: ProLayoutProps & {
pwa?: boolean; pwa?: boolean;
logo?: string; logo?: string;
} = { } = {
navTheme: 'light', navTheme: 'realDark',
// 拂晓蓝 // 拂晓蓝
colorPrimary: '#1890ff', colorPrimary: '#eb0fcc',
layout: 'mix', layout: 'top',
contentWidth: 'Fluid', contentWidth: 'Fluid',
fixedHeader: false, fixedHeader: false,
fixSiderbar: true, fixSiderbar: true,
colorWeak: false, colorWeak: false,
title: 'Matrix', title: '凡米游',
pwa: true, pwa: true,
logo: 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg', logo: '/logo.jpg',
iconfontUrl: '', iconfontUrl: '',
token: { token: {
// 参见ts声明,demo 见文档,通过token 修改样式 // 参见ts声明,demo 见文档,通过token 修改样式

3
dist/index.html

@ -2,12 +2,13 @@
<meta charset="utf-8"> <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 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"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="shortcut icon" href="logo.jpg">
<title>Ant Design Pro</title> <title>Ant Design Pro</title>
<link rel="stylesheet" href="/umi.1ca9308c.css"> <link rel="stylesheet" href="/umi.1ca9308c.css">
<script async="" src="/scripts/loading.js"></script> <script async="" src="/scripts/loading.js"></script>
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
<script src="/umi.d5108968.js"></script> <script src="/umi.362ade8f.js"></script>
</body></html> </body></html>

BIN
dist/logo.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

1
dist/p__AdvRecordList.7aa1880e.async.js

@ -0,0 +1 @@
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[857],{46701:function(O,i,e){e.r(i);var p=e(15009),d=e.n(p),v=e(99289),o=e.n(v),m=e(48357),h=e(90930),E=e(76104),f=e(35312),I=e(67294),c=e(85893),x=function(){var T=(0,I.useRef)(),M=(0,f.useIntl)(),D=function(){var u=o()(d()().mark(function a(){var s,_,r;return d()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,m.ln)();case 2:return _=n.sent,r=[],(s=_.data)===null||s===void 0||s.forEach(function(t){r.push({label:t.name,value:t.code})}),n.abrupt("return",r);case 6:case"end":return n.stop()}},a)}));return function(){return u.apply(this,arguments)}}(),P=[{title:"\u5E94\u7528\u540D\u79F0",hideInTable:!0,dataIndex:"code",valueType:"select",request:D},{title:"\u8BBE\u5907Id",dataIndex:"deviceId",valueType:"textarea",ellipsis:!0,copyable:!0},{title:"\u5E94\u7528\u540D\u79F0",hideInSearch:!0,dataIndex:"appName",valueType:"textarea"},{title:"\u5E73\u53F0",dataIndex:"platform",valueEnum:{1:{text:"\u7A7F\u5C71\u7532"},2:{text:"\u817E\u8BAF"},3:{text:"\u767E\u5EA6\u8054\u76DF"},4:{text:"Mintegral"},5:{text:"\u5FEB\u624B"},6:{text:"\u6E38\u53EF\u8D62"},7:{text:"Sigmob"},8:{text:"Admob"}}},{title:"\u5E7F\u544A\u7C7B\u578B",dataIndex:"advType",valueEnum:{1:{text:"\u6A2A\u5E45",status:"Default"},2:{text:"\u63D2\u9875",status:"Processing"},3:{text:"\u6FC0\u52B1\u89C6\u9891",status:"Success"}}},{title:"ecpm(\u5143)",dataIndex:"ecpm",hideInSearch:!0,renderText:function(a){return a/100}},{title:"\u8BBE\u5907\u54C1\u724C",dataIndex:"deviceBrand",hideInSearch:!0,valueType:"textarea"},{title:"\u8BBE\u5907\u540D",dataIndex:"deviceName",hideInSearch:!0,valueType:"textarea"},{title:"ip",dataIndex:"ip",hideInSearch:!0,valueType:"textarea"},{title:"\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"}];return(0,c.jsx)(h._z,{children:(0,c.jsx)(E.Z,{headerTitle:M.formatMessage({id:"pages.searchTable.title",defaultMessage:"Enquiry form"}),actionRef:T,rowKey:"key",search:{labelWidth:120},request:function(){var u=o()(d()().mark(function a(s){var _,r,l;return d()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,m._5)(s);case 2:return l=t.sent,t.abrupt("return",{data:(_=l.data)===null||_===void 0?void 0:_.data,total:(r=l.data)===null||r===void 0?void 0:r.total,success:!0});case 4:case"end":return t.stop()}},a)}));return function(a){return u.apply(this,arguments)}}(),columns:P})})};i.default=x}}]);

1
dist/p__AdvRecordList.9dd0bcc8.async.js

@ -1 +0,0 @@
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[857],{46701:function(O,i,e){e.r(i);var p=e(15009),d=e.n(p),v=e(99289),o=e.n(v),m=e(48357),h=e(90930),E=e(76104),I=e(35312),f=e(67294),c=e(85893),x=function(){var T=(0,f.useRef)(),M=(0,I.useIntl)(),D=function(){var u=o()(d()().mark(function a(){var s,_,r;return d()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,m.ln)();case 2:return _=n.sent,r=[],(s=_.data)===null||s===void 0||s.forEach(function(t){r.push({label:t.name,value:t.id})}),n.abrupt("return",r);case 6:case"end":return n.stop()}},a)}));return function(){return u.apply(this,arguments)}}(),P=[{title:"\u8BBE\u5907Id",dataIndex:"deviceId",valueType:"textarea",ellipsis:!0,copyable:!0},{title:"\u5E94\u7528\u540D\u79F0",hideInSearch:!0,dataIndex:"appName",valueType:"textarea"},{title:"\u5E73\u53F0",dataIndex:"platform",valueEnum:{1:{text:"\u7A7F\u5C71\u7532"},2:{text:"\u817E\u8BAF"},3:{text:"\u767E\u5EA6\u8054\u76DF"},4:{text:"Mintegral"},5:{text:"\u5FEB\u624B"},6:{text:"\u6E38\u53EF\u8D62"},7:{text:"Sigmob"},8:{text:"Admob"}}},{title:"\u5E7F\u544A\u7C7B\u578B",dataIndex:"advType",valueEnum:{1:{text:"\u6A2A\u5E45",status:"Default"},2:{text:"\u63D2\u9875",status:"Processing"},3:{text:"\u6FC0\u52B1\u89C6\u9891",status:"Success"}}},{title:"ecpm(\u5143)",dataIndex:"ecpm",hideInSearch:!0,renderText:function(a){return a/100}},{title:"\u8BBE\u5907\u54C1\u724C",dataIndex:"deviceBrand",hideInSearch:!0,valueType:"textarea"},{title:"\u8BBE\u5907\u540D",dataIndex:"deviceName",hideInSearch:!0,valueType:"textarea"},{title:"ip",dataIndex:"ip",hideInSearch:!0,valueType:"textarea"},{title:"\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"},{title:"\u5E94\u7528\u540D\u79F0",hideInTable:!0,dataIndex:"appId",valueType:"select",request:D}];return(0,c.jsx)(h._z,{children:(0,c.jsx)(E.Z,{headerTitle:M.formatMessage({id:"pages.searchTable.title",defaultMessage:"Enquiry form"}),actionRef:T,rowKey:"key",search:{labelWidth:120},request:function(){var u=o()(d()().mark(function a(s){var _,r,l;return d()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,m._5)(s);case 2:return l=t.sent,t.abrupt("return",{data:(_=l.data)===null||_===void 0?void 0:_.data,total:(r=l.data)===null||r===void 0?void 0:r.total,success:!0});case 4:case"end":return t.stop()}},a)}));return function(a){return u.apply(this,arguments)}}(),columns:P})})};i.default=x}}]);

2
dist/p__User__Login__index.f3ef3531.async.js → dist/p__User__Login__index.be34cf5d.async.js

File diff suppressed because one or more lines are too long

2
dist/t__plugin-layout__Layout.afe80231.async.js → dist/t__plugin-layout__Layout.34225d11.async.js

File diff suppressed because one or more lines are too long

66
dist/umi.d5108968.js → dist/umi.362ade8f.js

File diff suppressed because one or more lines are too long

BIN
public/logo.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

6
src/app.tsx

@ -60,9 +60,9 @@ export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) =
return <AvatarDropdown>{avatarChildren}</AvatarDropdown>; return <AvatarDropdown>{avatarChildren}</AvatarDropdown>;
}, },
}, },
waterMarkProps: { // waterMarkProps: {
content: initialState?.currentUser?.name, // content: initialState?.currentUser?.name,
}, // },
footerRender: () => <Footer />, footerRender: () => <Footer />,
onPageChange: () => { onPageChange: () => {
const { location } = history; const { location } = history;

16
src/pages/AdvRecordList.tsx

@ -20,12 +20,19 @@ const AdvRecordList: React.FC = () => {
let data: RequestOptionsType[] = []; let data: RequestOptionsType[] = [];
res.data?.forEach(x=>{ res.data?.forEach(x=>{
data.push({label: x.name, value: x.id}) data.push({label: x.name, value: x.code})
}) })
return data; return data;
} }
const columns: ProColumns<API.MatrixAdvRecordBo>[] = [ const columns: ProColumns<API.MatrixAdvRecordBo>[] = [
{
title: "应用名称",
hideInTable: true,
dataIndex: 'code',
valueType: "select",
request: appNameMap
},
{ {
title: "设备Id", title: "设备Id",
dataIndex: 'deviceId', dataIndex: 'deviceId',
@ -124,13 +131,6 @@ const AdvRecordList: React.FC = () => {
hideInTable: true, hideInTable: true,
dataIndex: 'createdAt', dataIndex: 'createdAt',
valueType: 'dateRange' valueType: 'dateRange'
},
{
title: "应用名称",
hideInTable: true,
dataIndex: 'appId',
valueType: "select",
request: appNameMap
} }
]; ];

4
src/pages/User/Login/index.tsx

@ -122,8 +122,8 @@ const Login: React.FC = () => {
minWidth: 280, minWidth: 280,
maxWidth: '75vw', maxWidth: '75vw',
}} }}
logo={<img alt="logo" src="/logo.svg" />} logo={<img alt="logo" src="/logo.jpg" />}
title="Matrix" title="凡米游"
// subTitle={intl.formatMessage({ id: 'pages.layouts.userLayout.title' })} // subTitle={intl.formatMessage({ id: 'pages.layouts.userLayout.title' })}
initialValues={{ initialValues={{
autoLogin: true, autoLogin: true,

Loading…
Cancel
Save