From b3fbb6888160bfebe85a3bb7510fc7176c6084f2 Mon Sep 17 00:00:00 2001
From: zhujiyan <17812234322@163.com>
Date: Thu, 6 Jun 2024 22:14:20 +0800
Subject: [PATCH] =?UTF-8?q?=E8=AF=A6=E6=83=85=E6=96=87=E4=BB=B6=E9=A2=84?=
=?UTF-8?q?=E8=A7=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/PreviewFile/index.vue | 28 +++
src/router/index.ts | 2 +-
src/router/static.ts | 8 +
src/styles/app.scss | 1 -
.../pqs/supervise/harmonicSurvey/detail.vue | 8 +-
.../supervise/harmonicSurvey/plan/detail.vue | 4 +-
.../supervise/harmonicSurvey/test/detail.vue | 5 +-
.../normalizationManager/detail.vue | 16 +-
.../components/undocumented/detail.vue | 163 ++++++++++++++----
.../pqs/supervise/retire/deviceQuitPopup.vue | 10 +-
src/views/pqs/supervise/technology/detail.vue | 6 +-
.../supervise/technology/feedbackPopup.vue | 4 +
.../components/monitorpoint/addForm.vue | 42 ++---
.../components/monitorpoint/detail.vue | 5 +-
.../components/terminainal/detail.vue | 13 +-
15 files changed, 238 insertions(+), 77 deletions(-)
create mode 100644 src/components/PreviewFile/index.vue
diff --git a/src/components/PreviewFile/index.vue b/src/components/PreviewFile/index.vue
new file mode 100644
index 00000000..662e1136
--- /dev/null
+++ b/src/components/PreviewFile/index.vue
@@ -0,0 +1,28 @@
+
+
+
+
+
+
![]()
+
+
+
+
diff --git a/src/router/index.ts b/src/router/index.ts
index 3a33c19c..885c43cf 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -1,4 +1,4 @@
- import { createRouter, createWebHashHistory } from 'vue-router'
+import { createRouter, createWebHashHistory } from 'vue-router'
import staticRoutes from '@/router/static'
import { useAdminInfo } from '@/stores/adminInfo'
import NProgress from 'nprogress'
diff --git a/src/router/static.ts b/src/router/static.ts
index 88288a9a..159e3782 100644
--- a/src/router/static.ts
+++ b/src/router/static.ts
@@ -225,6 +225,14 @@ const staticRoutes: Array = [
title: pageTitle('notFound') // 页面不存在
}
},
+ {
+ path: '/previewFile',
+ name: 'previewFile',
+ component: () => import('@/components/PreviewFile/index.vue'),
+ meta: {
+ title: pageTitle('previewFile')
+ }
+ },
{
// 后台找不到页面了-可能是路由未加载上
path: adminBaseRoutePath + ':path(.*)*',
diff --git a/src/styles/app.scss b/src/styles/app.scss
index c346638e..3d1f574a 100644
--- a/src/styles/app.scss
+++ b/src/styles/app.scss
@@ -123,7 +123,6 @@ body,
}
}
}
-
.zoom-handle {
position: absolute;
width: 20px;
diff --git a/src/views/pqs/supervise/harmonicSurvey/detail.vue b/src/views/pqs/supervise/harmonicSurvey/detail.vue
index a319a7a2..554f4714 100644
--- a/src/views/pqs/supervise/harmonicSurvey/detail.vue
+++ b/src/views/pqs/supervise/harmonicSurvey/detail.vue
@@ -27,9 +27,7 @@
{{ item.fileName }}
-
+ 预览
@@ -65,7 +63,9 @@ import { defaultAttribute } from '@/components/table/defaultAttribute'
import { useDictData } from '@/stores/dictData'
import { Link } from '@element-plus/icons-vue'
const { query } = useRoute() // 查询参数
-
+const openFile = (name: any) => {
+ window.open(window.location.origin + '/#/previewFile?' + name)
+}
const props = defineProps({
id: propTypes.string.def(undefined)
})
diff --git a/src/views/pqs/supervise/harmonicSurvey/plan/detail.vue b/src/views/pqs/supervise/harmonicSurvey/plan/detail.vue
index 1af6d0c1..c0236186 100644
--- a/src/views/pqs/supervise/harmonicSurvey/plan/detail.vue
+++ b/src/views/pqs/supervise/harmonicSurvey/plan/detail.vue
@@ -53,7 +53,9 @@ import { propTypes } from '@/utils/propTypes'
import { defaultAttribute } from '@/components/table/defaultAttribute'
import { useDictData } from '@/stores/dictData'
import { getPlanById } from '@/api/supervision-boot/survey/plan'
-
+const openFile = (name:any) => {
+ window.open(window.location.origin + '/#/previewFile?'+name)
+}
const { query } = useRoute() // 查询参数
const props = defineProps({
id: propTypes.string.def(undefined)
diff --git a/src/views/pqs/supervise/harmonicSurvey/test/detail.vue b/src/views/pqs/supervise/harmonicSurvey/test/detail.vue
index 0153c7e7..a88e7627 100644
--- a/src/views/pqs/supervise/harmonicSurvey/test/detail.vue
+++ b/src/views/pqs/supervise/harmonicSurvey/test/detail.vue
@@ -52,6 +52,7 @@
{{ detailData.testReportName }}
+ 预览
@@ -73,7 +74,9 @@ import { defaultAttribute } from '@/components/table/defaultAttribute'
import { getTestById } from '@/api/supervision-boot/survey/test'
import { getFileNameAndFilePath } from '@/api/system-boot/file'
import { Link } from '@element-plus/icons-vue'
-
+const openFile = (name:any) => {
+ window.open(window.location.origin + '/#/previewFile?'+name)
+}
const { query } = useRoute() // 查询参数
const props = defineProps({
id: propTypes.string.def(undefined)
diff --git a/src/views/pqs/supervise/interfere/components/normalizationManager/detail.vue b/src/views/pqs/supervise/interfere/components/normalizationManager/detail.vue
index 73991b6f..1513bbdc 100644
--- a/src/views/pqs/supervise/interfere/components/normalizationManager/detail.vue
+++ b/src/views/pqs/supervise/interfere/components/normalizationManager/detail.vue
@@ -254,6 +254,7 @@
{{ proviteData.feasibilityReport.name }}
+ 预览
{{ proviteData.feasibilityReport.name }}
+ 预览
{{ proviteData.feasibilityReport.name }}
+ 预览
@@ -281,6 +284,7 @@
{{ proviteData?.preliminaryDesignDescription.name }}
+ 预览
@@ -292,6 +296,7 @@
{{ proviteData?.predictionEvaluationReport.name }}
+ 预览
@@ -303,6 +308,7 @@
{{ proviteData?.predictionEvaluationReviewOpinions.name }}
+ 预览
@@ -314,6 +320,7 @@
{{ proviteData?.substationMainWiringDiagram.name }}
+ 预览
@@ -323,6 +330,7 @@
{{ proviteData?.sensitiveDevices.name }}
+ 预览
@@ -332,6 +340,7 @@
{{ proviteData?.antiInterferenceReport.name }}
+ 预览
@@ -341,6 +350,7 @@
{{ proviteData?.powerQualityReport.name }}
+ 预览
@@ -350,6 +360,7 @@
{{ proviteData?.additionalAttachments.name }}
+ 预览
{{ applyTitle + '填报信息' }}
@@ -376,6 +387,7 @@
{{ proviteData?.otherReport.name }}
+ 预览
@@ -393,7 +405,9 @@ import { Link } from '@element-plus/icons-vue'
import { userReportGoNetById } from '@/api/supervision-boot/interfere'
import details_item from './components/detailsItem.vue'
defineOptions({ name: 'BpmUserReportDetail' })
-
+const openFile = (name: any) => {
+ window.open(window.location.origin + '/#/previewFile?' + name)
+}
const { query } = useRoute() // 查询参数
const props = defineProps({
diff --git a/src/views/pqs/supervise/interfere/components/undocumented/detail.vue b/src/views/pqs/supervise/interfere/components/undocumented/detail.vue
index 14771451..8b3dc7cc 100644
--- a/src/views/pqs/supervise/interfere/components/undocumented/detail.vue
+++ b/src/views/pqs/supervise/interfere/components/undocumented/detail.vue
@@ -105,7 +105,10 @@
{{ proviteData.antiInterferenceTest == 0 ? '否' : '是' }}
-
+
{{ proviteData.agreementCapacity }}
{{ proviteData.deviceName }}
-
-
-
-
- {{
- powerSupplyInfoOptionList.find(item => {
- return item.id == proviteData.powerSupplyInfo
- })?.name
- }}
-
-
- {{ proviteData.powerSupply }}
-
-
- {{
- loadLevelOptionList.find(item => {
- return item.id == proviteData.loadLevel
- })?.name
- }}
-
+
+
+
+
+ {{
+ powerSupplyInfoOptionList.find(item => {
+ return item.id == proviteData.powerSupplyInfo
+ })?.name
+ }}
+
+
+ {{ proviteData.powerSupply }}
+
+
+ {{
+ loadLevelOptionList.find(item => {
+ return item.id == proviteData.loadLevel
+ })?.name
+ }}
+
{{
energyQualityIndexList.find(item => {
@@ -205,7 +208,10 @@
- {{ proviteData.feasibilityReport?.name }}
+
+ {{ proviteData.feasibilityReport?.name }}
+
+ 预览
- {{ proviteData.feasibilityReport?.name }}
+
+ {{ proviteData.feasibilityReport?.name }}
+
+ 预览
- {{ proviteData.feasibilityReport?.name }}
+
+ {{ proviteData.feasibilityReport?.name }}
+
+ 预览
-
+
{{ proviteData?.preliminaryDesignDescription?.name }}
+ 预览
-
+
{{ proviteData?.predictionEvaluationReport?.name }}
+ 预览
-
+
{{ proviteData?.predictionEvaluationReviewOpinions?.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 }}
+
+ 预览
-
diff --git a/src/views/pqs/supervise/technology/detail.vue b/src/views/pqs/supervise/technology/detail.vue
index da673124..9e2d6c23 100644
--- a/src/views/pqs/supervise/technology/detail.vue
+++ b/src/views/pqs/supervise/technology/detail.vue
@@ -18,6 +18,7 @@
{{ detailData.problemName }}
+ 预览
@@ -28,6 +29,7 @@
{{ detailData.reportName }}
+ 预览
@@ -41,7 +43,9 @@ import { getFileNameAndFilePath } from '@/api/system-boot/file'
import { Link } from '@element-plus/icons-vue'
defineOptions({ name: 'technology/detail' })
-
+const openFile = (name: any) => {
+ window.open(window.location.origin + '/#/previewFile?' + name)
+}
const { query } = useRoute() // 查询参数
const props = defineProps({
diff --git a/src/views/pqs/supervise/technology/feedbackPopup.vue b/src/views/pqs/supervise/technology/feedbackPopup.vue
index 38479841..d81cb37d 100644
--- a/src/views/pqs/supervise/technology/feedbackPopup.vue
+++ b/src/views/pqs/supervise/technology/feedbackPopup.vue
@@ -17,6 +17,7 @@
{{ problemDetail.problemName }}
+ 预览
@@ -63,6 +64,9 @@ import TableStore from '@/utils/tableStore' // 若不是列表页面弹框可删
import { getFileNameAndFilePath, uploadFile } from '@/api/system-boot/file'
import { addFeedback, updateFeedback } from '@/api/supervision-boot/leaflet'
import { Link } from '@element-plus/icons-vue'
+const openFile = (name: any) => {
+ window.open(window.location.origin + '/#/previewFile?' + name)
+}
//.doc,.docx,.xlsx,.xls,.pdf
const acceptType = ref('')
//下拉数据源
diff --git a/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/addForm.vue b/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/addForm.vue
index 7e05e599..55d77aea 100644
--- a/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/addForm.vue
+++ b/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/addForm.vue
@@ -509,19 +509,6 @@ const changeDevice = () => {
monitoringTerminalName: obj.monitoringTerminalName
}
}
-//用户类型为2.新建/扩建非线性负荷用户 新建/扩建新能源发电站回显容量
-const getDataByUserType=(id:any)=>{
- getUserReportById(id).then(res => {
- const obj = res.data
- form.value = {
- ...form.value,
- shortCapacity: obj.userReportSubstationPO?.minShortCircuitCapacity, // 短路容量
- dealCapacity: obj.userReportSubstationPO?.userAgreementCapacity, //协议容量
- devCapacity: obj.userReportSubstationPO.pccEquipmentCapacity, //设备容量
- standardCapacity: obj.userReportSubstationPO?.baseShortCircuitCapacity //基准容量
- }
- })
-}
//定义切换form类型
const selectFormType = ref('')
selectFormType.value = '0'
@@ -576,19 +563,18 @@ const resetForm = () => {
if (title.value != '重新发起') {
form.value = {
...form.value,
- city: obj.city,
- reporter: obj.reporter,
- reporterName: obj.reporterName,
- reportDate: obj.reportDate,
- orgId: obj.orgId,
- orgName: obj.orgName,
- expectedProductionDate: obj.expectedProductionDate,
+ // city: obj.city,
+ // reporter: obj.reporter,
+ // reporterName: obj.reporterName,
+ reportDate: obj?.reportDate,
+ orgId: obj?.orgId,
+ orgName: obj?.orgName,
+ expectedProductionDate: obj?.expectedProductionDate,
userName: userNameList.value[0]?.projectName,
userId: userNameList.value[0]?.id,
objName: userNameList.value[0]?.projectName
}
}
- getDataByUserType(obj.id)
})
changevoltageDeviationLimit()
}
@@ -671,9 +657,19 @@ const changeUserName = () => {
userStatus: obj?.userStatus + ''
}
- //回显数据 2.新建/扩建非线性负荷用户 新建/扩建新能源发电站
+ //回显数据
if (obj.userType == '2' || obj.userType == '3' || obj.userType == '4' || obj.userType == '5') {
- getDataByUserType(obj.id)
+ getUserReportById(obj.id).then(res => {
+ console.log(res.data, '继续查询数据')
+ const obj = res.data
+ form.value = {
+ ...form.value,
+ shortCapacity: obj.userReportSubstationPO?.minShortCircuitCapacity, // 短路容量
+ dealCapacity: obj.userReportSubstationPO?.userAgreementCapacity, //协议容量
+ devCapacity: obj.userReportSubstationPO?.pccEquipmentCapacity, //设备容量
+ standardCapacity: obj.userReportSubstationPO?.baseShortCircuitCapacity //基准容量
+ }
+ })
}
}
//定义校验规则
diff --git a/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/detail.vue b/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/detail.vue
index 88d01a58..5f277769 100644
--- a/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/detail.vue
+++ b/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/detail.vue
@@ -115,6 +115,7 @@
{{ detailData?.mainWiringDiagram.name }}
+ 预览
@@ -127,7 +128,9 @@ import { getTempLineDetailsById } from '@/api/supervision-boot/monitorpoint/inde
import { useDictData } from '@/stores/dictData'
import { getFileNameAndFilePath } from '@/api/system-boot/file'
import { Link } from '@element-plus/icons-vue'
-
+const openFile = (name:any) => {
+ window.open(window.location.origin + '/#/previewFile?'+name)
+}
defineOptions({ name: 'BpmUserReportDetail' })
const { query } = useRoute() // 查询参数
diff --git a/src/views/pqs/supervise/terminalNetworkDetection/components/terminainal/detail.vue b/src/views/pqs/supervise/terminalNetworkDetection/components/terminainal/detail.vue
index 09305754..203214b5 100644
--- a/src/views/pqs/supervise/terminalNetworkDetection/components/terminainal/detail.vue
+++ b/src/views/pqs/supervise/terminalNetworkDetection/components/terminainal/detail.vue
@@ -192,6 +192,7 @@
{{ detailData?.informationSecurityTestReport.name }}
+ 预览
@@ -200,38 +201,42 @@
{{ detailData?.acceptanceInspectionReportSingle.name }}
+ 预览
{{ detailData?.acceptanceInspectionReport.name }}
+ 预览
-
{{ detailData?.typeExperimentReport.name }}
+ 预览
-
{{ detailData?.factoryInspectionReport.name }}
+ 预览
{{ detailData?.performanceTestReport.name }}
+ 预览
{{ detailData?.otherAttachments.name }}
+ 预览
@@ -247,7 +252,9 @@ import { getFileNameAndFilePath } from '@/api/system-boot/file'
import { Link } from '@element-plus/icons-vue'
import { nodeAllList } from '@/api/device-boot/Business'
defineOptions({ name: 'BpmUserReportDetail' })
-
+const openFile = (name:any) => {
+ window.open(window.location.origin + '/#/previewFile?'+name)
+}
const { query } = useRoute() // 查询参数
const props = defineProps({