From 5e44faee0da3625c18fc5964558a21f5da41455e Mon Sep 17 00:00:00 2001 From: zhoumengru Date: Fri, 12 Sep 2025 16:34:29 +0800 Subject: [PATCH] =?UTF-8?q?feat(system):=20=E4=BC=98=E5=8C=96=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E5=88=97=E8=A1=A8=E5=B1=95=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 调整设备编号展示位置,解决信息冗余问题 - 优化设备状态展示方式,增加颜色区分 - 改进设备参数展示布局,提高可读性 - 统一模态样式,调整弹窗位置 --- .DS_Store | Bin 6148 -> 6148 bytes web/components.d.ts | 1 + web/public/config/columnList.js | 8 +- web/src/components/ComTable.vue | 2 +- web/src/components/DetailInfo.vue | 8 +- web/src/components/EditCom.vue | 15 ++ web/src/components/monitor/device.vue | 137 ++++++++++-- web/src/components/monitor/videos.vue | 22 +- web/src/components/system/policyForm.vue | 259 +++++++++++++++-------- web/src/router/index.js | 19 ++ web/src/style/antd.scss | 2 +- web/src/style/index.scss | 4 +- web/src/views/MainView.vue | 5 +- web/src/views/monitor.vue | 15 +- web/src/views/predict.vue | 4 +- web/src/views/system/alarmLog.vue | 2 +- web/src/views/system/device.vue | 73 +++---- web/src/views/system/log.vue | 2 +- web/src/views/system/permission.vue | 2 +- web/src/views/system/policy.vue | 11 +- web/src/views/system/role.vue | 2 +- web/src/views/system/service.vue | 2 +- web/src/views/system/station.vue | 2 +- web/src/views/system/user.vue | 2 +- 24 files changed, 409 insertions(+), 190 deletions(-) diff --git a/.DS_Store b/.DS_Store index 7cbe275046a42350e05301fa3e51caa9dcc81710..0fb8c0da4cc38c17f3d9e38c8b8f85a39282e6df 100644 GIT binary patch delta 24 gcmZoMXfc>z$H*|zUVdZZGWN;3BJ7*FIezj30AOtgj{pDw delta 26 icmZoMXfc>z$H+L*UY?P0W8yOQ$$BDeo4GlD@&f>7?FW(o diff --git a/web/components.d.ts b/web/components.d.ts index 9bcec6f..37fb8d1 100644 --- a/web/components.d.ts +++ b/web/components.d.ts @@ -55,6 +55,7 @@ declare module 'vue' { OperateCom: typeof import('./src/components/OperateCom.vue')['default'] Operational: typeof import('./src/components/Home/Operational.vue')['default'] OperationalInfo: typeof import('./src/components/Home/Modal/OperationalInfo.vue')['default'] + PlusOutlined: typeof import('@ant-design/icons-vue')['PlusOutlined'] PolicyForm: typeof import('./src/components/system/policyForm.vue')['default'] 'PolicyForm copy': typeof import('./src/components/system/policyForm copy.vue')['default'] PredictEcharts: typeof import('./src/components/predict/predictEcharts.vue')['default'] diff --git a/web/public/config/columnList.js b/web/public/config/columnList.js index 42b1c99..f85db68 100644 --- a/web/public/config/columnList.js +++ b/web/public/config/columnList.js @@ -244,6 +244,10 @@ export const columnList = [ ellipsis: true, fixed: 'left' }, + { + title: '设备编号', + dataIndex: 'code' + }, { title: '所属场站', dataIndex: 'station_id', @@ -261,10 +265,6 @@ export const columnList = [ title: '设备名称', dataIndex: 'name' }, - { - title: '设备编号', - dataIndex: 'code' - }, { title: '厂家信息', diff --git a/web/src/components/ComTable.vue b/web/src/components/ComTable.vue index 47a8073..4695466 100644 --- a/web/src/components/ComTable.vue +++ b/web/src/components/ComTable.vue @@ -17,7 +17,7 @@ selectedRowKeys: data.selectedRowKeys, onChange: onSelectChange } - : {} + : null " :expanded-row-keys="data.newTableOpt.expand ? data.expandedKeys : null" size="middle" diff --git a/web/src/components/DetailInfo.vue b/web/src/components/DetailInfo.vue index 0d8130b..f53fa8f 100644 --- a/web/src/components/DetailInfo.vue +++ b/web/src/components/DetailInfo.vue @@ -704,7 +704,13 @@ defineExpose({ border: none !important; color: var(--theme-text-default) !important; } - +:deep(.ant-input-clear-icon){ + color: #fff; +} +:deep(.ant-select .ant-select-clear,.ant-select-clear:hover){ + color: #fff; + background: none !important; +} :deep(.ant-checkbox-wrapper) { color: var(--theme-text-default); } diff --git a/web/src/components/EditCom.vue b/web/src/components/EditCom.vue index 05fbead..5d4a05a 100644 --- a/web/src/components/EditCom.vue +++ b/web/src/components/EditCom.vue @@ -9,6 +9,7 @@ :disabled="disabled" > - +
- +
{{ getType(record.type) }} -
- +
- + -
+ - + -
+