监控、工单报表清洗在线用户页面

This commit is contained in:
mmc
2026-05-08 11:00:11 +08:00
parent 9645c2b651
commit 254ab64358
12 changed files with 1805 additions and 101 deletions

View File

@@ -2,7 +2,8 @@ import React, { useState, useEffect } from 'react';
import {
Layout, Tabs, Card, Row, Col, Button, Typography, Space, Modal, Form, Tree, message,
Input, Popconfirm, Divider, InputNumber, Pagination, Table, Select,
Tag, Checkbox, App
Tag, Checkbox, App,
Switch
} from 'antd';
import {
PlusOutlined, EditOutlined, DeleteOutlined, UserOutlined
@@ -445,6 +446,12 @@ export default function UserRolePage() {
? <Tag color="green">正常</Tag>
: <Tag color="red">停用</Tag>
},
{
title: '是否有设备权限', dataIndex: 'deviceOperatePerm', width: 80,
render: (_, s) => s.deviceOperatePerm == true
? <Tag color="green">有权限</Tag>
: <Tag color="red">无权限</Tag>
},
{
title: '操作',
width: 220,
@@ -719,7 +726,22 @@ export default function UserRolePage() {
</Select>
</Form.Item>
</Col>
)}
<Col span={12}>
<Form.Item
name="deviceOperatePerm"
label="设备操作权限"
valuePropName="checked"
initialValue={false}
>
<Switch
checkedChildren="有"
unCheckedChildren="无"
/>
</Form.Item>
</Col>
</Row>
</Form>
</Modal>