优化细节

This commit is contained in:
mmc
2026-05-18 14:28:42 +08:00
parent 00541fcf71
commit 002371a374
9 changed files with 202 additions and 295 deletions

View File

@@ -228,13 +228,11 @@ export default function AppLayout() {
style={{
border: '1px solid #e5e7eb',
borderRadius: 8,
//borderLeft: 0,
//borderRight: 0,
//borderBottom: 0,
margin: 4,
marginBottom: 50
}}
styles={{ body: { padding: '12px 8px' } }}
styles={{ body: { padding: '12px 4px' } }}
>
<div style={{ textAlign: 'left' }}>
<div style={{ fontSize: 14, fontWeight: 600, marginBottom: 8 }}>
@@ -244,15 +242,15 @@ export default function AppLayout() {
<img style={{ width: '100%', borderRadius: "8px", marginBottom: 8 }} src="https://images.unsplash.com/photo-1509391366360-2e959784a276?ixlib=rb-1.2.1&auto=format&fit=crop&w=1200&q=80" />
{/* <img src="电站图片地址" style={{ width: '100%', borderRadius: 4, marginBottom: 8 }} alt="电站" /> */}
<div style={{ fontSize: 10, color: '#666', lineHeight: 1.8 }}>
<div style={{ fontSize: 11, color: '#666', lineHeight: 1.8 }}>
<div>装机容量:{currentStation.capacity || '1.00'} MWp</div>
<div>并网时间:{currentStation.gridTime || '2024-01-15'}</div>
<div>电站地址:{currentStation.address || '浙江省杭州市'}</div>
<div>电站类型:{currentStation.type || '地面电站'}</div>
<div style={{ marginTop: 4, display: 'flex', alignItems: 'center' }}>
<span style={{ color: '#52c41a' }}>运行状态</span>
<span style={{ color: '#52c41a' }}>●</span>
<span style={{ color: '#52c41a', marginLeft: 4 }}>正常运行</span>
<div style={{ marginTop: 4, display: 'flex', alignItems: 'center', color: '#41ad0a' }}>
<span>运行状态:</span>
<span style={{ marginLeft: 4 }}>●</span>
<span style={{ marginLeft: 4 }}>正常运行</span>
</div>
</div>
</div>

View File

@@ -34,6 +34,7 @@ import {
SafetyCertificateOutlined,
ToolOutlined,
RightOutlined,
EyeOutlined,
} from '@ant-design/icons';
import {
Smartphone,
@@ -367,7 +368,16 @@ const BasicSettings = () => {
</Space>
)
},
{ title: '操作', key: 'action', width: 60, render: () => <Button type="link" size="small" style={{ padding: 0, fontSize: 11 }}>查看</Button>, fixed: 'right' },
{
title: '操作', key: 'action', width: 60, render: () => <Button
type="link"
size="small"
icon={<EyeOutlined />}
style={{ padding: 0, fontSize: 11 }}
>
查看
</Button>, fixed: 'right'
},
]}
dataSource={[
{ name: '张运维', role: '超级管理员', phone: '138****0001', email: 'zhangyw@pvsmart.com', status: '在线' },

View File

@@ -121,7 +121,7 @@ export default function Organization() {
const columns = [
{ title: '组织名称', dataIndex: 'orgName' },
{ title: '组织编码', dataIndex: 'orgCode' },
//{ title: '组织编码', dataIndex: 'orgCode' },
{ title: '负责人', dataIndex: 'manager' },
{ title: '联系电话', dataIndex: 'phone' },
{ title: '邮箱', dataIndex: 'email' },
@@ -189,9 +189,9 @@ export default function Organization() {
<Input placeholder="请输入组织名称" />
</Form.Item>
<Form.Item name="orgCode" label="组织编码" rules={[{ required: true }]}>
{/*<Form.Item name="orgCode" label="组织编码" rules={[{ required: true }]}>
<Input placeholder="请输入组织编码" />
</Form.Item>
</Form.Item>*/}
<Form.Item name="manager" label="负责人" rules={[{ required: true, message: '请输入负责人' }]}>
<Input placeholder="请输入负责人" />

View File

@@ -7,6 +7,11 @@ import QRCode from 'qrcode';
import DictManager from "../DictManager";
import request from '../../api/request';
import { Country, State } from 'country-state-city';
import {
EyeOutlined,
EditOutlined,
DeleteOutlined,
} from '@ant-design/icons';
// 接口导入
import {
@@ -378,12 +383,14 @@ const SerialNumGenerate = () => {
fixed: "right",
render: (_, r) => (
<Space>
<Button type="link" onClick={() => handleView(r)}>查看</Button>
<Button type="link" icon={<EyeOutlined />} onClick={() => handleView(r)}>查看</Button>
<Popconfirm
title="确定删除?"
onConfirm={() => handleDelete(r.id)}
>
<Button type="link" danger>删除</Button>
<Button type="link" danger icon={<DeleteOutlined />} >
删除
</Button>
</Popconfirm>
</Space>
)

View File

@@ -225,7 +225,7 @@ export default function StationManage() {
// ====================== 表格列 ======================
const columns = [
{ title: '场站名称', dataIndex: 'siteName' },
{ title: '场站编号', dataIndex: 'siteCode' },
//{ title: '场站编号', dataIndex: 'siteCode' },
{
title: '所属组织',
dataIndex: 'orgId',
@@ -316,21 +316,19 @@ export default function StationManage() {
</Form.Item>
</Col>
<Col span={12}>
<Form.Item name="siteCode" label="场站编号" rules={[{ required: true }]}>
<Input placeholder="唯一编码" />
<Form.Item name="orgId" label="所属组织" rules={[{ required: true }]}>
<Select placeholder="请选择所属组织" allowClear>
{orgList.map(item => (
<Option key={item.id} value={item.id}>
{item.orgName}
</Option>
))}
</Select>
</Form.Item>
</Col>
</Row>
<Form.Item name="orgId" label="所属组织" rules={[{ required: true }]}>
<Select placeholder="请选择所属组织" allowClear>
{orgList.map(item => (
<Option key={item.id} value={item.id}>
{item.orgName}
</Option>
))}
</Select>
</Form.Item>
<Row gutter={16}>
<Col span={12}>

View File

@@ -5,9 +5,10 @@ import {
} from 'antd';
import {
BellOutlined, ClockCircleOutlined, CheckCircleOutlined, ExclamationCircleOutlined,
SearchOutlined, ReloadOutlined, FileTextOutlined, NotificationOutlined
SearchOutlined, ReloadOutlined, FileTextOutlined, NotificationOutlined,
EyeOutlined,
EditOutlined
} from '@ant-design/icons';
import { Line, Pie, Bar } from '@ant-design/charts';
import dayjs from 'dayjs';
import { exportTable } from "../../lib/utils.js"
@@ -265,9 +266,21 @@ export default function AlarmCenterPage() {
fixed: 'right',
render: (_, record) => (
<Space>
<Button type="link" onClick={() => showDetail(record.id)}>查看</Button>
{/* 新增修改按钮 */}
<Button type="link" onClick={() => openEditModal(record)}>修改</Button>
<Button
type="link"
icon={<EyeOutlined />}
onClick={() => showDetail(record.id)}
>
查看
</Button>
<Button
type="link"
icon={<EditOutlined />}
onClick={() => openEditModal(record)}
>
修改
</Button>
</Space>
)