详情文件预览
This commit is contained in:
@@ -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 //基准容量
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
//定义校验规则
|
||||
|
||||
@@ -115,6 +115,7 @@
|
||||
<a target="_blank"href="detailData?.mainWiringDiagram.url">
|
||||
{{ detailData?.mainWiringDiagram.name }}
|
||||
</a>
|
||||
<span @click="openFile(detailData?.mainWiringDiagram.name )">预览</span>
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</template>
|
||||
@@ -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() // 查询参数
|
||||
|
||||
Reference in New Issue
Block a user