From 1075b33aa697aeafcdc6fce1a1d0bf4279dae176 Mon Sep 17 00:00:00 2001
From: zhujiyan <17812234322@163.com>
Date: Tue, 14 May 2024 14:04:53 +0800
Subject: [PATCH] =?UTF-8?q?=E8=AF=A6=E6=83=85=E8=AF=B7=E6=B1=82=E6=96=87?=
=?UTF-8?q?=E4=BB=B6=E6=8E=A5=E5=8F=A3=E6=B7=BB=E5=8A=A0await?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/undocumented/detail.vue | 20 ++++++++++++-------
.../components/undocumented/index.vue | 10 ++++++++--
2 files changed, 21 insertions(+), 9 deletions(-)
diff --git a/src/views/pqs/supervise/interfere/components/undocumented/detail.vue b/src/views/pqs/supervise/interfere/components/undocumented/detail.vue
index bf39c592..d8cae169 100644
--- a/src/views/pqs/supervise/interfere/components/undocumented/detail.vue
+++ b/src/views/pqs/supervise/interfere/components/undocumented/detail.vue
@@ -351,12 +351,11 @@ const getInfo = async () => {
}
const proviteData = ref()
//判断userType选择取用的对象
-const getProviteData = async() => {
+const getProviteData = async () => {
if (detailData.value.userType == '0' || detailData.value.userType == '1') {
proviteData.value = detailData.value.userReportProjectPO
//查询非线性设备类型
- // proviteData.value.nonlinearDeviceType
- await getDictTreeById(proviteData.value.nonlinearDeviceType).then(res => {
+ await getDictTreeById(proviteData.value.nonlinearDeviceType).then(res => {
console.log(res, '==========')
proviteData.value.nonlinearDeviceType = res.data?.name
})
@@ -367,6 +366,11 @@ const getProviteData = async() => {
detailData.value.userType == '5'
) {
proviteData.value = detailData.value.userReportSubstationPO
+ //查询非线性负荷类型
+ await getDictTreeById(proviteData.value.nonlinearLoadType).then(res => {
+ console.log(res, '==========')
+ proviteData.value.nonlinearLoadType = res.data?.name
+ })
} else {
proviteData.value = detailData.value.userReportSensitivePO
}
@@ -386,7 +390,10 @@ const getProviteData = async() => {
//预测评估评审意见报告
if (proviteData.value.predictionEvaluationReviewOpinions) {
- await getFileNamePath(proviteData.value.predictionEvaluationReviewOpinions, 'predictionEvaluationReviewOpinions')
+ await getFileNamePath(
+ proviteData.value.predictionEvaluationReviewOpinions,
+ 'predictionEvaluationReviewOpinions'
+ )
}
//用户接入变电站主接线示意图
if (proviteData.value.substationMainWiringDiagram) {
@@ -415,9 +422,8 @@ const getProviteData = async() => {
}
//根据文件名请求
const getFileNamePath = async (val: any, pathName: any) => {
-
- await getFileNameAndFilePath({ filePath: val }).then(res => {
- console.log(111111111)
+ await getFileNameAndFilePath({ filePath: val }).then(res => {
+ console.log(111111111)
if (res.data && res.data.name && res.data.url) {
//可研报告
if (pathName == 'feasibilityReport' && proviteData.value.feasibilityReport) {
diff --git a/src/views/pqs/supervise/interfere/components/undocumented/index.vue b/src/views/pqs/supervise/interfere/components/undocumented/index.vue
index 17dbe09b..ab9262b3 100644
--- a/src/views/pqs/supervise/interfere/components/undocumented/index.vue
+++ b/src/views/pqs/supervise/interfere/components/undocumented/index.vue
@@ -27,7 +27,7 @@
-
+