Browse Source

加应用图片

master
nili 5 months ago
parent
commit
3a382cffdc
  1. 2
      dist/index.html
  2. 1
      dist/p__AdminManagement.4ce10001.async.js
  3. 1
      dist/p__AdminManagement.ea9c12e1.async.js
  4. 1
      dist/p__AppManagement.032a6188.async.js
  5. 1
      dist/p__AppManagement.4953f9d3.async.js
  6. 2
      dist/umi.04a1e043.js
  7. 5
      src/pages/AdminManagement.tsx
  8. 9
      src/pages/AppManagement.tsx
  9. 1
      src/services/matrix/typings.d.ts

2
dist/index.html

@ -8,6 +8,6 @@
</head>
<body>
<div id="root"></div>
<script src="/umi.01ef40c4.js"></script>
<script src="/umi.04a1e043.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.ea9c12e1.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.4953f9d3.async.js

File diff suppressed because one or more lines are too long

2
dist/umi.01ef40c4.js → dist/umi.04a1e043.js

File diff suppressed because one or more lines are too long

5
src/pages/AdminManagement.tsx

@ -223,6 +223,11 @@ const AdminManagement = () => {
<TabPane tab="设备主" key="2">
<Table columns={deviceColumns} dataSource={data.filter((x) => x.role === 4)} />
</TabPane>
{currentUser?.role && currentUser.role < 2 && (
<TabPane tab="管理员" key="3">
<Table columns={columns} dataSource={data.filter((x) => x.role === 2)} />
</TabPane>
)}
</Tabs>
<Modal title="编辑" visible={visible} onOk={handleOk} onCancel={handleCancel}>

9
src/pages/AppManagement.tsx

@ -28,6 +28,12 @@ const AppManagement = () => {
copyable: true,
hideInSearch: true,
},
{
title: '应用图片',
dataIndex: 'img',
hideInSearch: true,
renderText: (img: string) => <img style={{ width: '40px' }} src={img} />,
},
{
title: 'code',
dataIndex: 'code',
@ -174,6 +180,9 @@ const AppManagement = () => {
<Form.Item label="应用名" name="name">
<Input />
</Form.Item>
<Form.Item label="应用图片" name="img">
<Input />
</Form.Item>
<Form.Item label="下载地址" name="url">
<Input />
</Form.Item>

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

@ -199,6 +199,7 @@ declare namespace API {
id?: number;
name?: string;
code?: string;
img?: string;
url?: string;
income?: number;
channel?: string;

Loading…
Cancel
Save