This commit is contained in:
sjl
2025-12-19 13:12:46 +08:00
32 changed files with 865 additions and 425 deletions

View File

@@ -253,6 +253,7 @@ const treeData = ref()
const loadData = () => {
initDetpStataionTree({ orgId: dictData.state.area[0].id }).then(res => {
treeList.value = res.data
initDetpStataionTree({ orgId: 'a3069759b0b6072c99cf9a7af6c162e9' }).then(res => {
treeListCgy.value = res.data
setTimeout(() => {
@@ -331,24 +332,30 @@ const submitFn = async (flag: boolean) => {
// 修改关联电站
const changeArea = () => {
let list: any = []
if (VITE_FLAG) {
treeList.value.forEach((item: any) => {
if (item.id == form.value.deptId) {
list.push(item)
if (item.id != treeListCgy.value[0].id && item.name != '冀北电力有限公司' && item.name != '超高压') {
list.push(...treeListCgy.value)
}
} else {
list.push(item.children.filter((v: any) => v.id == form.value.deptId)[0])
if (form.value.deptId != treeListCgy.value[0].id) {
list.push(...treeListCgy.value)
}
}
})
} else {
treeList.value.forEach((item: any) => {
if (item.id == form.value.deptId) {
list.push(item)
} else {
list.push(item.children.filter((v: any) => v.id == form.value.deptId)[0])
}
})
}
treeList.value.forEach((item: any) => {
if (item.id == form.value.deptId) {
list.push(item)
if (
item.id != treeListCgy.value[0].id && VITE_FLAG
? item.name != '冀北电力有限公司' && item.name != '超高压'
: true
) {
list.push(...treeListCgy.value)
}
} else {
list.push(item.children.filter((v: any) => v.id == form.value.deptId)[0])
if (form.value.deptId != treeListCgy.value[0].id) {
list.push(...treeListCgy.value)
}
}
})
treeData.value = list
}
const audit = (filePath: any) => {

View File

@@ -24,9 +24,9 @@
<el-icon class="elView" v-if="item?.fileName && VITE_FLAG">
<View @click="openFile(item?.fileName)" />
</el-icon>
<a class="aLoad" @click="download(item.keyName)">
<span class="aLoad" @click="download(item.keyName)">
{{ item.fileName }}
</a>
</span >
</div>
</el-descriptions-item>
</el-descriptions>

View File

@@ -59,27 +59,27 @@
<el-icon class="elView" v-if="detailData?.supervisionReportName && VITE_FLAG">
<View @click="openFile(detailData?.supervisionReportName)" />
</el-icon>
<a class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.supervisionReportName }}</a>
<span class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.supervisionReportName }}</span >
</el-descriptions-item>
<el-descriptions-item :span="2" label="测试报告">
<el-icon class="elView" v-if="detailData?.testReportName && VITE_FLAG">
<View @click="openFile(detailData?.testReportName)" />
</el-icon>
<a class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.testReportName }}</a>
<span class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.testReportName }}</span >
</el-descriptions-item>
<el-descriptions-item :span="2" label="其他报告">
<div v-for="item in detailData.otherReports">
<el-icon class="elView" v-if="item.fileName && VITE_FLAG">
<View @click="openFile(item.fileName)" />
</el-icon>
<a class="aLoad" @click="download(item.keyName)" target="_blank">{{ item.fileName }}</a>
<span class="aLoad" @click="download(item.keyName)" target="_blank">{{ item.fileName }}</span >
</div>
</el-descriptions-item>
<el-descriptions-item :span="2" label="处理成效报告" v-if="props.flag">
<el-icon class="elView " v-if="detailData?.reportName && VITE_FLAG">
<View @click="openFile(detailData?.reportName)" />
</el-icon>
<a class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.reportName }}</a>
<span class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.reportName }}</span >
</el-descriptions-item>
<!-- <el-descriptions-item label="流程状态" >
<el-tag :type="getDeviceStatusType(detailData?.status)">