干扰源接入问题修改
This commit is contained in:
@@ -239,7 +239,7 @@
|
||||
<el-icon>
|
||||
<Link />
|
||||
</el-icon>
|
||||
<a :href="proviteData?.substationMainWiringDiagram.url">
|
||||
<a :href="proviteData?.substationMainWiringDiagram.url" target="_blank">
|
||||
{{ proviteData?.substationMainWiringDiagram.name }}
|
||||
</a>
|
||||
</el-descriptions-item>
|
||||
@@ -268,13 +268,13 @@
|
||||
<el-icon>
|
||||
<Link />
|
||||
</el-icon>
|
||||
<a :href="proviteData?.additionalAttachments.url">{{ proviteData?.additionalAttachments.name }}</a>
|
||||
<a :href="proviteData?.additionalAttachments.url" target="_blank">{{ proviteData?.additionalAttachments.name }}</a>
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import { onMounted, ref, reactive } from 'vue'
|
||||
import { onMounted, ref, reactive, watch } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
import { formatDate } from '@/utils/formatTime'
|
||||
import { propTypes } from '@/utils/propTypes'
|
||||
@@ -359,6 +359,7 @@ const evaluationTypeList = dictData.getBasicData('Evaluation_Type')
|
||||
const evaluationDeptList = dictData.getBasicData('evaluation_dept')
|
||||
/** 获得数据 */
|
||||
const getInfo = async () => {
|
||||
console.log(666666666, '加载了')
|
||||
detailLoading.value = true
|
||||
try {
|
||||
await getUserReportById(props.id || queryId).then(res => {
|
||||
@@ -443,7 +444,6 @@ const getProviteData = async () => {
|
||||
//根据文件名请求
|
||||
const getFileNamePath = async (val: any, pathName: any) => {
|
||||
await getFileNameAndFilePath({ filePath: val }).then(res => {
|
||||
console.log(111111111)
|
||||
if (res.data && res.data.name && res.data.url) {
|
||||
//可研报告
|
||||
if (pathName == 'feasibilityReport' && proviteData.value.feasibilityReport) {
|
||||
@@ -516,6 +516,12 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
||||
}
|
||||
defineExpose({ open: getInfo }) // 提供 open 方法,用于打开弹窗
|
||||
|
||||
watch(
|
||||
() => props.id,
|
||||
(val, oldVal) => {
|
||||
val && getInfo()
|
||||
}
|
||||
)
|
||||
/** 初始化 **/
|
||||
onMounted(() => {
|
||||
getInfo()
|
||||
@@ -532,4 +538,12 @@ onMounted(() => {
|
||||
position: absolute !important;
|
||||
top: 20px !important;
|
||||
}
|
||||
.el-icon{
|
||||
float: left;
|
||||
}
|
||||
a{
|
||||
display: block;
|
||||
width: 200px;
|
||||
float: left;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user