From e10ca83ec5d5a04765011accfdb04a644bad46b4 Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Tue, 17 Dec 2024 11:05:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BB=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/subject/index.ts | 34 +++ src/api/systerm.ts | 7 +- .../admin/components/popup/adminInfo.vue | 12 +- .../admin/components/popup/password.vue | 6 +- src/views/auth/menu/popupMenu.vue | 4 +- src/views/govern/device/control/index.vue | 16 +- .../govern/device/control/testItemRecords.vue | 22 +- src/views/system/subject/form/index.vue | 236 ++++++++++++++++++ src/views/system/subject/index.vue | 150 +++++++++++ src/views/user/login.vue | 4 +- src/views/user/popupUpdatePwd.vue | 4 +- 11 files changed, 464 insertions(+), 31 deletions(-) create mode 100644 src/api/system/subject/index.ts create mode 100644 src/views/system/subject/form/index.vue create mode 100644 src/views/system/subject/index.vue diff --git a/src/api/system/subject/index.ts b/src/api/system/subject/index.ts new file mode 100644 index 0000000..45bb815 --- /dev/null +++ b/src/api/system/subject/index.ts @@ -0,0 +1,34 @@ +import createAxios from '@/utils/request' + +//激活主题 +export function activateTheme(params: String) { + return createAxios({ + url: '/system-boot/theme/activateTheme', + method: 'PUT', + params: params + }) +} +//删除主题 +export function deleteTheme(params: String) { + return createAxios({ + url: '/system-boot/theme/deleteTheme', + method: 'DELETE', + params: params + }) +} +//新增主题 +export function addTheme(data: anyObj) { + return createAxios({ + url: '/system-boot/theme/addTheme', + method: 'POST', + data + }) +} +//修改主题 +export function updateTheme(data: anyObj) { + return createAxios({ + url: '/system-boot/theme/updateTheme', + method: 'PUT', + data + }) +} diff --git a/src/api/systerm.ts b/src/api/systerm.ts index 7d71c2f..0f5225a 100644 --- a/src/api/systerm.ts +++ b/src/api/systerm.ts @@ -23,4 +23,9 @@ export function delMenu(id: string) { method: 'delete' }) } - +export function getTheme() { + return createAxios({ + url: '/system-boot/theme/getTheme', + method: 'get' + }) +} diff --git a/src/layouts/admin/components/popup/adminInfo.vue b/src/layouts/admin/components/popup/adminInfo.vue index ac2c396..0cefcbf 100644 --- a/src/layouts/admin/components/popup/adminInfo.vue +++ b/src/layouts/admin/components/popup/adminInfo.vue @@ -3,22 +3,22 @@ - + - + - + - + - + - + diff --git a/src/layouts/admin/components/popup/password.vue b/src/layouts/admin/components/popup/password.vue index fe27db3..4f82693 100644 --- a/src/layouts/admin/components/popup/password.vue +++ b/src/layouts/admin/components/popup/password.vue @@ -3,15 +3,15 @@ - - - diff --git a/src/views/auth/menu/popupMenu.vue b/src/views/auth/menu/popupMenu.vue index 72eaa87..d741109 100644 --- a/src/views/auth/menu/popupMenu.vue +++ b/src/views/auth/menu/popupMenu.vue @@ -13,10 +13,10 @@ - + - diff --git a/src/views/govern/device/control/index.vue b/src/views/govern/device/control/index.vue index fd1994f..cd8e94e 100644 --- a/src/views/govern/device/control/index.vue +++ b/src/views/govern/device/control/index.vue @@ -825,12 +825,12 @@ const getRealDataMqttMsg = async () => { ...obj, // 电压有效值 vRmsA: ((obj.vRmsA * obj.pt)) / 1000, - vRmsB: ((obj.vRmsA * obj.pt)) / 1000, - vRmsC: ((obj.vRmsA * obj.pt)) / 1000, + vRmsB: ((obj.vRmsB * obj.pt)) / 1000, + vRmsC: ((obj.vRmsC * obj.pt)) / 1000, // 电流有效值 iRmsA: (obj.iRmsA * obj.ct), - iRmsB: (obj.iRmsA * obj.ct), - iRmsC: (obj.iRmsA * obj.ct), + iRmsB: (obj.iRmsB * obj.ct), + iRmsC: (obj.iRmsC * obj.ct), //基波电压幅值 v1A: ((obj.v1A * obj.pt)) / 1000, v1B: ((obj.v1B * obj.pt)) / 1000, @@ -862,12 +862,12 @@ const getRealDataMqttMsg = async () => { ...obj, // 电压有效值 vRmsA: (obj.vRmsA / obj.pt) * 1000, - vRmsB: (obj.vRmsA / obj.pt) * 1000, - vRmsC: (obj.vRmsA / obj.pt) * 1000, + vRmsB: (obj.vRmsB / obj.pt) * 1000, + vRmsC: (obj.vRmsC / obj.pt) * 1000, // 电流有效值 iRmsA: obj.iRmsA / obj.ct, - iRmsB: obj.iRmsA / obj.ct, - iRmsC: obj.iRmsA / obj.ct, + iRmsB: obj.iRmsB / obj.ct, + iRmsC: obj.iRmsC / obj.ct, //基波电压幅值 v1A: (obj.v1A / obj.pt) * 1000, v1B: (obj.v1B / obj.pt) * 1000, diff --git a/src/views/govern/device/control/testItemRecords.vue b/src/views/govern/device/control/testItemRecords.vue index ca81c86..abcd957 100644 --- a/src/views/govern/device/control/testItemRecords.vue +++ b/src/views/govern/device/control/testItemRecords.vue @@ -33,18 +33,22 @@ const column: any = ref([ { field: 'startTime', title: '数据起始时间', width: '140px', sortable: true }, { field: 'endTime', title: '数据结束时间', width: '140px', sortable: true }, { field: 'itemName', title: '数据来源', width: '100px' }, - { field: 'statisticalInterval', title: '统计间隔', width: '100px', }, - { field: '', title: '时间间隔', width: '140px', }, - { field: 'voltageLevel', title: '电压等级', width: '100px',sortable: true }, - { field: 'volConType', title: ' 电压接线方式', width: '100px', sortable: true }, + { field: 'statisticalInterval', title: '时间间隔(分钟)', width: '120px', }, + { field: 'voltageLevel', title: '电压等级', width: '100px', sortable: true }, + + { field: 'volConType', title: ' 电压接线方式', width: '120px', sortable: true }, + { + field: 'pt', title: 'PT变比', width: '100px', + }, + { field: 'ct', title: 'CT变比', width: '100px', }, { field: 'capacitySi', title: '用户协议容量(MVA)', width: '140px', }, + { field: 'capacitySt', title: '供电设备容量(MVA)', width: '140px', }, { field: 'capacitySscb', title: '基准短路容量(MVA)', width: '140px', }, { field: 'capacitySscmin', title: '最小短路容量(MVA)', width: '140px', }, - { field: 'capacitySt', title: '供电设备容量(MVA)', width: '140px', }, + { field: 'location', title: ' 测试位置', width: '100px', }, - { field: 'ct', title: 'CT', width: '70px', }, - { field: 'pt', title: 'PT', width: '70px', }, + ]) const setData = (data: any) => { @@ -54,6 +58,10 @@ const setData = (data: any) => { const formatter = (row: any) => { if (row.column.field == 'voltageLevel') { return row.cellValue == null ? '/' : voltageLevelList.filter((item: any) => item.id == row.cellValue)[0]?.name + } else if (row.column.field == 'pt') { + return row.row.pt == null ? '/' : (row.row.pt + '/' + row.row.pt1) + } else if (row.column.field == 'ct') { + return row.row.ct == null ? '/' : (row.row.ct + '/' + row.row.ct1) } else if (row.column.field == 'volConType') { return row.cellValue == null ? '/' : volConTypeList.filter((item: any) => item.id == row.cellValue)[0]?.name } else { diff --git a/src/views/system/subject/form/index.vue b/src/views/system/subject/form/index.vue new file mode 100644 index 0000000..58f1b8e --- /dev/null +++ b/src/views/system/subject/form/index.vue @@ -0,0 +1,236 @@ + + + + 全局 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 侧边栏 + + + + + + + + + + + + + + + + + + + 顶栏 + + + + + + + + + + + 上传图片 + + + + + + + + + + + diff --git a/src/views/system/subject/index.vue b/src/views/system/subject/index.vue new file mode 100644 index 0000000..a5c775c --- /dev/null +++ b/src/views/system/subject/index.vue @@ -0,0 +1,150 @@ + + + + + 新增 + + + + + + + diff --git a/src/views/user/login.vue b/src/views/user/login.vue index 53a095c..3ec1167 100644 --- a/src/views/user/login.vue +++ b/src/views/user/login.vue @@ -12,7 +12,7 @@ - @@ -20,7 +20,7 @@ - diff --git a/src/views/user/popupUpdatePwd.vue b/src/views/user/popupUpdatePwd.vue index 62a282f..c70283a 100644 --- a/src/views/user/popupUpdatePwd.vue +++ b/src/views/user/popupUpdatePwd.vue @@ -3,11 +3,11 @@ - -