From 8a014550428551dcef8b2788abc514d620336808 Mon Sep 17 00:00:00 2001 From: hongawen <83944980@qq.com> Date: Mon, 3 Jun 2024 16:46:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=8F=E6=84=9F=E5=8F=8A=E9=87=8D=E8=A6=81?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/supervision-boot/userReport/form.ts | 21 ++ .../components/undocumented/detail.vue | 57 ++++-- .../components/sensitiveUserPopup.vue | 121 +++++++++++ .../components/sensitiveUserTable.vue | 188 ++++++++++++++++++ src/views/pqs/supervise/terminal/index.vue | 13 +- .../businessUser/event/eventUploadPopup.vue | 1 - 6 files changed, 376 insertions(+), 25 deletions(-) create mode 100644 src/views/pqs/supervise/terminal/components/sensitiveUserPopup.vue create mode 100644 src/views/pqs/supervise/terminal/components/sensitiveUserTable.vue diff --git a/src/api/supervision-boot/userReport/form.ts b/src/api/supervision-boot/userReport/form.ts index ffb9e1b5..9b5f0b28 100644 --- a/src/api/supervision-boot/userReport/form.ts +++ b/src/api/supervision-boot/userReport/form.ts @@ -26,6 +26,27 @@ export const getUserReportById = (id: any) => { }) } +/** + * 下载敏感及重要用户模板 + */ +export const downloadSensitiveUserTemplate = () => { + return createAxios({ + url: MAPPING_PATH + '/downloadSensitiveUserTemplate', + method: 'GET', + responseType: 'blob' + }) +} + +/** + * 导入敏感及重要用户数据 + */ +export const importSensitiveUserData = (data: any) => { + return createAxios({ + url: MAPPING_PATH + '/importSensitiveUserData', + method: 'POST', + data: data + }) +} diff --git a/src/views/pqs/supervise/interfere/components/undocumented/detail.vue b/src/views/pqs/supervise/interfere/components/undocumented/detail.vue index 94f20be0..14771451 100644 --- a/src/views/pqs/supervise/interfere/components/undocumented/detail.vue +++ b/src/views/pqs/supervise/interfere/components/undocumented/detail.vue @@ -175,9 +175,26 @@ {{ proviteData.deviceName }} - - {{ proviteData.powerSupplyCount }} - + + + + + {{ + powerSupplyInfoOptionList.find(item => { + return item.id == proviteData.powerSupplyInfo + })?.name + }} + + + {{ proviteData.powerSupply }} + + + {{ + loadLevelOptionList.find(item => { + return item.id == proviteData.loadLevel + })?.name + }} + {{ energyQualityIndexList.find(item => { @@ -188,7 +205,7 @@ - {{ proviteData.feasibilityReport.name }} + {{ proviteData.feasibilityReport?.name }} - {{ proviteData.feasibilityReport.name }} + {{ proviteData.feasibilityReport?.name }} - {{ proviteData.feasibilityReport.name }} + {{ proviteData.feasibilityReport?.name }} - - {{ proviteData?.preliminaryDesignDescription.name }} + + {{ proviteData?.preliminaryDesignDescription?.name }} - - {{ proviteData?.predictionEvaluationReport.name }} + + {{ proviteData?.predictionEvaluationReport?.name }} - - {{ proviteData?.predictionEvaluationReviewOpinions.name }} + + {{ proviteData?.predictionEvaluationReviewOpinions?.name }} - - {{ proviteData?.substationMainWiringDiagram.name }} + + {{ proviteData?.substationMainWiringDiagram?.name }} - {{ proviteData?.sensitiveDevices.name }} + {{ proviteData?.sensitiveDevices?.name }} - {{ proviteData?.antiInterferenceReport.name }} + {{ proviteData?.antiInterferenceReport?.name }} - {{ proviteData?.powerQualityReport.name }} + {{ proviteData?.powerQualityReport?.name }} - {{ proviteData?.additionalAttachments.name }} + {{ proviteData?.additionalAttachments?.name }} @@ -355,6 +372,8 @@ const voltageLevelList = dictData.getBasicData('Dev_Voltage_Stand') const evaluationTypeList = dictData.getBasicData('Evaluation_Type') //字典预测评估单位 const evaluationDeptList = dictData.getBasicData('evaluation_dept') +const loadLevelOptionList = dictData.getBasicData('load_level') +const powerSupplyInfoOptionList = dictData.getBasicData('supply_condition') /** 获得数据 */ const getInfo = async () => { detailLoading.value = true diff --git a/src/views/pqs/supervise/terminal/components/sensitiveUserPopup.vue b/src/views/pqs/supervise/terminal/components/sensitiveUserPopup.vue new file mode 100644 index 00000000..5ad43c42 --- /dev/null +++ b/src/views/pqs/supervise/terminal/components/sensitiveUserPopup.vue @@ -0,0 +1,121 @@ + + + + + diff --git a/src/views/pqs/supervise/terminal/components/sensitiveUserTable.vue b/src/views/pqs/supervise/terminal/components/sensitiveUserTable.vue new file mode 100644 index 00000000..2808e7c4 --- /dev/null +++ b/src/views/pqs/supervise/terminal/components/sensitiveUserTable.vue @@ -0,0 +1,188 @@ + + diff --git a/src/views/pqs/supervise/terminal/index.vue b/src/views/pqs/supervise/terminal/index.vue index 63d4893a..9145d9e9 100644 --- a/src/views/pqs/supervise/terminal/index.vue +++ b/src/views/pqs/supervise/terminal/index.vue @@ -2,14 +2,16 @@
- - - + + - - + + + + +
@@ -18,6 +20,7 @@