Merge branch 'master' of http://192.168.1.22:3000/Web/admin-sjzx
# Conflicts: # src/components/PreviewFile/index.vue
This commit is contained in:
@@ -134,6 +134,22 @@ export function selectUserList(data: any) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
//获取用户
|
||||||
|
export function selectUserAssessMentList(data: any) {
|
||||||
|
return createAxios({
|
||||||
|
url: '/supervision-boot/userReport/selectUserAssessMentList',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
//绑定用户
|
||||||
|
export function bindAssessmentId(data: any) {
|
||||||
|
return createAxios({
|
||||||
|
url: '/supervision-boot/userReport/bindAssessmentId',
|
||||||
|
method: 'get',
|
||||||
|
params: data
|
||||||
|
})
|
||||||
|
}
|
||||||
//查询列表
|
//查询列表
|
||||||
export function getStatusManageList(data: any) {
|
export function getStatusManageList(data: any) {
|
||||||
return createAxios({
|
return createAxios({
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
:options="excelOptions"
|
:options="excelOptions"
|
||||||
/>
|
/>
|
||||||
<!-- <vue-office-pdf v-if="url.includes('.pdf')" :src="url" /> -->
|
<!-- <vue-office-pdf v-if="url.includes('.pdf')" :src="url" /> -->
|
||||||
<iframe v-if="urlKey.includes('.pdf')" :src="url" style="width: 100%; height: 99%"></iframe>
|
<iframe v-if="urlKey.includes('.pdf')||urlKey.includes('.txt')" :src="url" style="width: 100%; height: 99%"></iframe>
|
||||||
<img
|
<img
|
||||||
v-if="
|
v-if="
|
||||||
urlKey.includes('.png') || urlKey.includes('.jpg') || urlKey.includes('.gif') || urlKey.includes('.bmp')
|
urlKey.includes('.png') || urlKey.includes('.jpg') || urlKey.includes('.gif') || urlKey.includes('.bmp')
|
||||||
@@ -35,18 +35,21 @@ const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
|||||||
const url = ref('')
|
const url = ref('')
|
||||||
const excelOptions = ref({})
|
const excelOptions = ref({})
|
||||||
const urlKey = currentRoute.value?.href?.split('?')[1]
|
const urlKey = currentRoute.value?.href?.split('?')[1]
|
||||||
|
|
||||||
if (VITE_FLAG) {
|
if (VITE_FLAG) {
|
||||||
url.value = '/api-docx/excelreport' + currentRoute.value?.href?.split('?')[1]
|
url.value = '/api-docx/excelreport' + currentRoute.value?.href?.split('?')[1]
|
||||||
excelOptions.value = ref({
|
excelOptions.value = ref({
|
||||||
xls: currentRoute.value.href?.split('?')[1].split('.')[1] == 'xls' ? true : false
|
xls: currentRoute.value.href?.split('?')[1].split('.')[1] == 'xls' ? true : false
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
console.log('🚀 ~ urlKey:', urlKey)
|
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
const previewUrl = await previewFile(currentRoute.value?.href?.split('?')[1])
|
const previewUrl = await previewFile(currentRoute.value?.href?.split('?')[1])
|
||||||
url.value = previewUrl
|
url.value = previewUrl
|
||||||
|
excelOptions.value = ref({
|
||||||
|
xls: currentRoute.value.href?.split('?')[1].split('.')[1] == 'xls' ? true : false
|
||||||
|
})
|
||||||
}, 0)
|
}, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
// 从路由参数获取文件路径
|
// 从路由参数获取文件路径
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
style="width: 100%; height: 100%"
|
style="width: 100%; height: 100%"
|
||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
default-expand-all
|
default-expand-all
|
||||||
|
|
||||||
@onAddTree="onAddTree"
|
@onAddTree="onAddTree"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -72,8 +71,28 @@ const loadData = (id?: any) => {
|
|||||||
const onAddTree = () => {
|
const onAddTree = () => {
|
||||||
emit('onAddTree')
|
emit('onAddTree')
|
||||||
}
|
}
|
||||||
|
const setKey = (id: string) => {
|
||||||
|
treeRef.value.treeRef.setCurrentKey(id)
|
||||||
|
return findNodeById(tree.value, id)
|
||||||
|
}
|
||||||
|
const findNodeById = (tree1: any, targetId: any) => {
|
||||||
|
for (const node of tree1) {
|
||||||
|
// 1. 当前节点匹配ID,直接返回该节点
|
||||||
|
if (node.id === targetId) {
|
||||||
|
return node
|
||||||
|
}
|
||||||
|
// 2. 当前节点有子节点,递归查找子节点
|
||||||
|
if (node.children && node.children.length > 0) {
|
||||||
|
const result: any = findNodeById(node.children, targetId)
|
||||||
|
// 子节点中找到结果,立即返回(终止递归)
|
||||||
|
if (result) return result
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 3. 遍历完未找到,返回null
|
||||||
|
return null
|
||||||
|
}
|
||||||
loadData()
|
loadData()
|
||||||
defineExpose({ loadData })
|
defineExpose({ loadData, setKey })
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.point-tree {
|
.point-tree {
|
||||||
@@ -85,4 +104,3 @@ defineExpose({ loadData })
|
|||||||
border: 1px solid var(--el-border-color);
|
border: 1px solid var(--el-border-color);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
@@ -4,8 +4,8 @@ import { ElLoading, ElNotification, type LoadingOptions } from 'element-plus'
|
|||||||
import { refreshToken } from '@/api/user-boot/user'
|
import { refreshToken } from '@/api/user-boot/user'
|
||||||
import router from '@/router/index'
|
import router from '@/router/index'
|
||||||
import { useAdminInfo } from '@/stores/adminInfo'
|
import { useAdminInfo } from '@/stores/adminInfo'
|
||||||
import { debounce } from 'lodash-es';
|
import { debounce } from 'lodash-es'
|
||||||
let loginExpireTimer:any = null
|
let loginExpireTimer: any = null
|
||||||
window.requests = []
|
window.requests = []
|
||||||
window.tokenRefreshing = false
|
window.tokenRefreshing = false
|
||||||
const pendingMap = new Map()
|
const pendingMap = new Map()
|
||||||
@@ -84,7 +84,8 @@ function createAxios<Data = any, T = ApiPromise<Data>>(
|
|||||||
config.url == '/system-boot/file/upload' ||
|
config.url == '/system-boot/file/upload' ||
|
||||||
config.url == '/harmonic-boot/grid/getAssessOverview' ||
|
config.url == '/harmonic-boot/grid/getAssessOverview' ||
|
||||||
config.url == '/system-boot/file/getFileVO' ||
|
config.url == '/system-boot/file/getFileVO' ||
|
||||||
config.url == '/harmonic-boot/gridDiagram/getGridDiagramAreaData'
|
config.url == '/harmonic-boot/gridDiagram/getGridDiagramAreaData' ||
|
||||||
|
config.url == '/supervision-boot/userReport/bindAssessmentId'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
removePending(config)
|
removePending(config)
|
||||||
|
|||||||
@@ -218,6 +218,7 @@ import { ElMessage, ElMessageBox } from 'element-plus'
|
|||||||
import { ElButton } from 'element-plus'
|
import { ElButton } from 'element-plus'
|
||||||
import { mainHeight } from '@/utils/layout'
|
import { mainHeight } from '@/utils/layout'
|
||||||
import Bind from './bind.vue'
|
import Bind from './bind.vue'
|
||||||
|
const VITE_FLAG = import.meta.env.VITE_NAME == 'hainan'
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'BusinessAdministrator/TerminalManagement/FrontManagement'
|
name: 'BusinessAdministrator/TerminalManagement/FrontManagement'
|
||||||
})
|
})
|
||||||
@@ -332,29 +333,32 @@ const tableStore = new TableStore({
|
|||||||
formData.value = JSON.parse(JSON.stringify(row))
|
formData.value = JSON.parse(JSON.stringify(row))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// {
|
{
|
||||||
// name: 'edit',
|
name: 'edit',
|
||||||
// title: '重启',
|
title: '重启',
|
||||||
// type: 'warning',
|
type: 'warning',
|
||||||
// icon: 'el-icon-Delete',
|
icon: 'el-icon-Delete',
|
||||||
// render: 'confirmButton',
|
render: 'confirmButton',
|
||||||
// popconfirm: {
|
disabled: row => {
|
||||||
// confirmButtonText: '确认',
|
return VITE_FLAG
|
||||||
// cancelButtonText: '取消',
|
},
|
||||||
// confirmButtonType: 'warning',
|
popconfirm: {
|
||||||
// title: '确定重启吗?'
|
confirmButtonText: '确认',
|
||||||
// },
|
cancelButtonText: '取消',
|
||||||
// click: row => {
|
confirmButtonType: 'warning',
|
||||||
// askRestartProcess({
|
title: '确定重启吗?'
|
||||||
// deviceRebootType: null,
|
},
|
||||||
// nodeId: row.id,
|
click: row => {
|
||||||
// processNo: 1
|
askRestartProcess({
|
||||||
// }).then(res => {
|
deviceRebootType: null,
|
||||||
// ElMessage.success('重启成功')
|
nodeId: row.id,
|
||||||
// tableStore.index()
|
processNo: 1
|
||||||
// })
|
}).then(res => {
|
||||||
// }
|
ElMessage.success('重启成功')
|
||||||
// },
|
tableStore.index()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
name: 'del',
|
name: 'del',
|
||||||
|
|||||||
@@ -1,346 +1,59 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main" :style="height">
|
<div class="default-main">
|
||||||
<!-- 算法库 -->
|
<el-tabs v-model="activeName" type="border-card">
|
||||||
<splitpanes style="height: 100%" class="default-theme" id="navigation-splitpanes">
|
<el-tab-pane label="总览" name="1" v-if="tabList.includes('1')">
|
||||||
<pane :size="size">
|
<overview v-if="activeName == '1'" @algorithm="algorithm" />
|
||||||
<algorithmTree
|
</el-tab-pane>
|
||||||
ref="treeRef"
|
<el-tab-pane label="算法库" name="2" v-if="tabList.includes('2')">
|
||||||
:default-expand-all="false"
|
<list v-if="activeName == '2'" ref="listRef" />
|
||||||
:default-expanded-keys="monitoringPoint.state.lineId ? [monitoringPoint.state.lineId] : []"
|
</el-tab-pane>
|
||||||
:current-node-key="monitoringPoint.state.lineId"
|
</el-tabs>
|
||||||
@node-click="handleNodeClick"
|
|
||||||
@init="handleNodeClick"
|
|
||||||
@onAddTree="onAddTree"
|
|
||||||
></algorithmTree>
|
|
||||||
</pane>
|
|
||||||
<pane style="background: #fff" :style="height">
|
|
||||||
<div class="boxTop">
|
|
||||||
<div>
|
|
||||||
<el-radio-group v-model="radio">
|
|
||||||
<el-radio-button v-for="(item, i) in dotList?.childrens" :label="item.name" :value="i" />
|
|
||||||
</el-radio-group>
|
|
||||||
</div>
|
|
||||||
<div v-if="information">
|
|
||||||
<el-button icon="el-icon-Plus" type="primary" @click="addUser">新增</el-button>
|
|
||||||
<el-button icon="el-icon-Edit" type="primary" @click="revise">修改</el-button>
|
|
||||||
<el-button icon="el-icon-Delete" type="primary" @click="deletes">删除</el-button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div :style="heightTab">
|
|
||||||
<vxe-table height="auto" v-bind="defaultAttribute" :data="dotList?.childrens[radio]?.children">
|
|
||||||
<vxe-column field="name" title="算法名称"></vxe-column>
|
|
||||||
<vxe-column field="createTime" title="创建时间"></vxe-column>
|
|
||||||
|
|
||||||
<vxe-column field="period" title="计算周期">
|
|
||||||
<template #default="{ row }">
|
|
||||||
{{
|
|
||||||
row.period == 0
|
|
||||||
? '日'
|
|
||||||
: row.period == 1
|
|
||||||
? '月'
|
|
||||||
: row.period == 2
|
|
||||||
? '季'
|
|
||||||
: row.period == 3
|
|
||||||
? '年'
|
|
||||||
: ''
|
|
||||||
}}
|
|
||||||
</template>
|
|
||||||
</vxe-column>
|
|
||||||
<vxe-column field="source" title="数据来源"></vxe-column>
|
|
||||||
<!-- <vxe-column field="useFLag" title="是否启用">
|
|
||||||
<template #default="{ row }">
|
|
||||||
<el-tag :type="row.useFLag === 1 ? 'success' : 'info'" effect="dark"
|
|
||||||
style="cursor: pointer" @click="change(row)">
|
|
||||||
{{ row.useFLag === 1 ? '是' : '否' }}
|
|
||||||
</el-tag>
|
|
||||||
</template>
|
|
||||||
</vxe-column> -->
|
|
||||||
<vxe-column field="definition" title="定义">
|
|
||||||
<template #default="{ row }">
|
|
||||||
<el-button type="primary" link @click="view(row)">查看</el-button>
|
|
||||||
</template>
|
|
||||||
</vxe-column>
|
|
||||||
<!-- <vxe-column title="操作" width="150px">
|
|
||||||
<template #default="{ row }">
|
|
||||||
<el-button type="primary" link @click="edit(row)">修改</el-button>
|
|
||||||
<el-button type="danger" link @click="del(row)">删除</el-button>
|
|
||||||
<el-popconfirm title="确定删除吗?" confirm-button-type='danger' @confirm="del(row)">
|
|
||||||
<template #reference>
|
|
||||||
<el-button type="danger" link>删除</el-button>
|
|
||||||
</template>
|
|
||||||
</el-popconfirm>
|
|
||||||
</template>
|
|
||||||
</vxe-column> -->
|
|
||||||
</vxe-table>
|
|
||||||
</div>
|
|
||||||
</pane>
|
|
||||||
</splitpanes>
|
|
||||||
<!-- 树弹框 -->
|
|
||||||
<addTree ref="addTreeRef" @getTree="treeRef.loadData(dotList.id)" />
|
|
||||||
<!-- 弹框 -->
|
|
||||||
<PopupEdit
|
|
||||||
ref="popupEditRef"
|
|
||||||
v-if="popupEditFlag"
|
|
||||||
@getTree="treeRef.loadData(dotList.id), (popupEditFlag = false)"
|
|
||||||
/>
|
|
||||||
<!-- 定义 -->
|
|
||||||
<el-dialog draggable v-model="viewFlag" title="定义" width="60%">
|
|
||||||
<div style="min-height: 300px; max-height: 55vh">
|
|
||||||
<div class="editor" ref="editorRef" v-html="summary" />
|
|
||||||
</div>
|
|
||||||
</el-dialog>
|
|
||||||
<!-- 删除 -->
|
|
||||||
<el-dialog draggable v-model="dialogVisible" title="请选择需要删除的数据" width="400">
|
|
||||||
<el-tree-select
|
|
||||||
v-model="TreeValue"
|
|
||||||
:data="TreeData"
|
|
||||||
filterable
|
|
||||||
check-strictly
|
|
||||||
:props="defaultProps"
|
|
||||||
default-expand-all
|
|
||||||
:render-after-expand="false"
|
|
||||||
/>
|
|
||||||
<template #footer>
|
|
||||||
<div class="dialog-footer">
|
|
||||||
<el-button @click="dialogVisible = false">取消</el-button>
|
|
||||||
<el-button type="primary" @click="del">删除</el-button>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
</el-dialog>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, ref, provide } from 'vue'
|
import { nextTick, ref, provide, onMounted } from 'vue'
|
||||||
import 'splitpanes/dist/splitpanes.css'
|
|
||||||
import { Splitpanes, Pane } from 'splitpanes'
|
|
||||||
import algorithmTree from '@/components/tree/pqs/algorithmTree.vue'
|
|
||||||
import { mainHeight } from '@/utils/layout'
|
import { mainHeight } from '@/utils/layout'
|
||||||
import { defaultAttribute } from '@/components/table/defaultAttribute'
|
import overview from './overview.vue'
|
||||||
import { getLineExport, getList, selectReleation } from '@/api/event-boot/report'
|
import list from './list.vue'
|
||||||
import addTree from './components/addTree.vue'
|
import { useRoute } from 'vue-router'
|
||||||
import PopupEdit from './components/form.vue'
|
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
||||||
import { useMonitoringPoint } from '@/stores/monitoringPoint'
|
const route = useRoute()
|
||||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
const Undocumented = ref()
|
||||||
import { deleteyById } from '@/api/supervision-boot/database/index'
|
const InterferenceUserTable = ref()
|
||||||
import { queryAllAlgorithmLibrary, updateAlgorithmLibrary } from '@/api/supervision-boot/database/index'
|
|
||||||
import { useAdminInfo } from '@/stores/adminInfo'
|
|
||||||
import katex from 'katex'
|
|
||||||
import 'katex/dist/katex.css'
|
|
||||||
const adminInfo = useAdminInfo()
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'database/algorithm'
|
name: 'supervision/interferencemanagement '
|
||||||
})
|
})
|
||||||
const monitoringPoint = useMonitoringPoint()
|
const activeName = ref('1')
|
||||||
const height = mainHeight(20)
|
const id = ref('')
|
||||||
const heightTab = mainHeight(82)
|
const key = ref('')
|
||||||
const size = ref(23)
|
const listRef = ref()
|
||||||
const addTreeRef = ref()
|
const tabList = ref(['1', '2'])
|
||||||
const editorRef = ref()
|
|
||||||
const dialogVisible = ref(false)
|
|
||||||
const viewFlag = ref(false)
|
|
||||||
const popupEditFlag = ref(false)
|
|
||||||
const treeRef = ref()
|
|
||||||
const summary = ref('')
|
|
||||||
const popupEditRef = ref()
|
|
||||||
const TreeData = ref([])
|
|
||||||
const TreeValue = ref([])
|
|
||||||
const information = adminInfo.roleCode.includes('information_info')
|
|
||||||
|
|
||||||
const defaultProps = {
|
|
||||||
label: 'name',
|
|
||||||
value: 'id'
|
|
||||||
}
|
|
||||||
const dotList: any = ref()
|
|
||||||
|
|
||||||
const templatePolicy: any = ref([])
|
|
||||||
// const tableStore = new TableStore({
|
|
||||||
// url: '/supervision-boot/libalgorithm/queryAllAlgorithmLibrary',
|
|
||||||
// method: 'GET',
|
|
||||||
// column: [
|
|
||||||
// { title: '算法名称', field: 'name' },
|
|
||||||
// {
|
|
||||||
// title: '定义',
|
|
||||||
// field: 'name1'
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// title: '计算公式',
|
|
||||||
// field: 'name2'
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// title: '计算周期',
|
|
||||||
// field: 'name3'
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// title: '数据来源',
|
|
||||||
// field: 'name4'
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// title: '是否启用',
|
|
||||||
// field: 'name5',
|
|
||||||
// render: 'tag',
|
|
||||||
// effect: 'dark',
|
|
||||||
// custom: {
|
|
||||||
// 0: 'info',
|
|
||||||
// 1: 'success'
|
|
||||||
// },
|
|
||||||
// replaceValue: {
|
|
||||||
// 0: '否',
|
|
||||||
// 1: '是'
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// ],
|
|
||||||
// loadCallback: () => {}
|
|
||||||
// })
|
|
||||||
const radio = ref(0)
|
|
||||||
|
|
||||||
// 新增弹框
|
|
||||||
const addUser = () => {
|
|
||||||
popupEditFlag.value = true
|
|
||||||
setTimeout(() => {
|
|
||||||
popupEditRef.value.open({
|
|
||||||
title: '新增算法'
|
|
||||||
})
|
|
||||||
}, 100)
|
|
||||||
}
|
|
||||||
// 修改弹框
|
|
||||||
const revise = () => {
|
|
||||||
popupEditFlag.value = true
|
|
||||||
setTimeout(() => {
|
|
||||||
popupEditRef.value.open({
|
|
||||||
title: '修改算法',
|
|
||||||
row: dotList.value
|
|
||||||
})
|
|
||||||
}, 100)
|
|
||||||
}
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
const dom = document.getElementById('navigation-splitpanes')
|
let key = window.location.href.split('?')[0].slice(-1)
|
||||||
if (dom) {
|
const isNumber = /^\d$/.test(key)
|
||||||
size.value = Math.round((180 / dom.offsetHeight) * 120)
|
if (isNumber) {
|
||||||
|
tabList.value = [key]
|
||||||
|
activeName.value = key
|
||||||
}
|
}
|
||||||
// tableStore.index()
|
|
||||||
})
|
})
|
||||||
|
const algorithm = (val: any) => {
|
||||||
const view = (row: any) => {
|
activeName.value = '2'
|
||||||
viewFlag.value = true
|
|
||||||
summary.value = row.definition
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const spans = document.querySelectorAll('span[data-value]')
|
listRef.value.getList(val)
|
||||||
// 遍历每个 span 标签
|
|
||||||
spans.forEach(function (span) {
|
|
||||||
let val = katex.renderToString(span.getAttribute('data-value'), {
|
|
||||||
throwOnError: false
|
|
||||||
})
|
|
||||||
// var newDiv = document.createElement('div');
|
|
||||||
var newDiv = span
|
|
||||||
newDiv.innerHTML = val
|
|
||||||
|
|
||||||
span.parentNode.replaceChild(newDiv, span)
|
|
||||||
})
|
|
||||||
}, 100)
|
}, 100)
|
||||||
|
|
||||||
//
|
|
||||||
}
|
|
||||||
|
|
||||||
const handleNodeClick = (data: any, node: any) => {
|
|
||||||
if (data.pid != '0') {
|
|
||||||
dotList.value = data
|
|
||||||
radio.value = 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const onAddTree = () => {
|
|
||||||
addTreeRef.value.open('新增')
|
|
||||||
}
|
|
||||||
const deletes = () => {
|
|
||||||
TreeValue.value = []
|
|
||||||
queryAllAlgorithmLibrary().then(res => {
|
|
||||||
TreeData.value = res.data
|
|
||||||
})
|
|
||||||
dialogVisible.value = true
|
|
||||||
}
|
|
||||||
// 删除
|
|
||||||
const del = () => {
|
|
||||||
if (TreeValue.value.length == 0) {
|
|
||||||
return ElMessage.warning('请选择数据')
|
|
||||||
}
|
|
||||||
ElMessageBox.confirm('此操作将永久删除, 是否继续?', '提示', {
|
|
||||||
confirmButtonText: '确定',
|
|
||||||
cancelButtonText: '取消',
|
|
||||||
type: 'warning'
|
|
||||||
}).then(() => {
|
|
||||||
deleteyById({ id: TreeValue.value }).then(res => {
|
|
||||||
ElMessage.success('删除成功')
|
|
||||||
dialogVisible.value = false
|
|
||||||
treeRef.value.loadData()
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
// if (TreeValue.value.length > 0) {
|
|
||||||
// ElMessage.warning('请选择数据')
|
|
||||||
// return
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
// 启用
|
|
||||||
const change = (row: any) => {
|
|
||||||
console.log('🚀 ~ change ~ row:', row)
|
|
||||||
ElMessageBox.confirm(`请确认是否${row.useFLag == 0 ? '启用' : '关闭'}算法?`, '提示', {
|
|
||||||
confirmButtonText: '确定',
|
|
||||||
cancelButtonText: '取消',
|
|
||||||
type: 'warning'
|
|
||||||
}).then(() => {
|
|
||||||
updateAlgorithmLibrary({ ...row, useFLag: row.useFLag == 0 ? 1 : 0 }).then(res => {
|
|
||||||
ElMessage.success(row.useFLag == 0 ? '启用' : '关闭' + '成功')
|
|
||||||
treeRef.value.loadData(dotList.value.id)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
const layout = mainHeight(63) as any
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
|
||||||
.splitpanes.default-theme .splitpanes__pane {
|
|
||||||
background: #eaeef1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.grid-content {
|
<style lang="scss" scoped>
|
||||||
text-align: center;
|
.bars_w {
|
||||||
}
|
|
||||||
|
|
||||||
.el-divider--horizontal {
|
|
||||||
margin: 10px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mTop {
|
|
||||||
margin-top: 5px;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.boxTop {
|
|
||||||
height: 52px;
|
|
||||||
padding: 10px 10px 10px 0;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
|
||||||
|
|
||||||
.editor {
|
|
||||||
table {
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-collapse: collapse;
|
height: 500px;
|
||||||
}
|
}
|
||||||
|
|
||||||
th,
|
:deep(.el-tabs__content) {
|
||||||
td {
|
height: v-bind('layout.height');
|
||||||
border: 1px solid black;
|
overflow-y: auto;
|
||||||
padding: 8px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
th {
|
|
||||||
background-color: #f2f2f2;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
td {
|
|
||||||
background-color: #ffffff;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
359
src/views/pqs/database/algorithm/list.vue
Normal file
359
src/views/pqs/database/algorithm/list.vue
Normal file
@@ -0,0 +1,359 @@
|
|||||||
|
<template>
|
||||||
|
<div class="default-main" :style="height">
|
||||||
|
<!-- 算法库 -->
|
||||||
|
<splitpanes style="height: 100%" class="default-theme" id="navigation-splitpanes">
|
||||||
|
<pane :size="size">
|
||||||
|
<algorithmTree
|
||||||
|
ref="treeRef"
|
||||||
|
:default-expand-all="false"
|
||||||
|
:default-expanded-keys="monitoringPoint.state.lineId ? [monitoringPoint.state.lineId] : []"
|
||||||
|
:current-node-key="monitoringPoint.state.lineId"
|
||||||
|
@node-click="handleNodeClick"
|
||||||
|
@init="handleNodeClick"
|
||||||
|
@onAddTree="onAddTree"
|
||||||
|
></algorithmTree>
|
||||||
|
</pane>
|
||||||
|
<pane style="background: #fff; width: 100%" :style="height">
|
||||||
|
<div class="boxTop">
|
||||||
|
<div>
|
||||||
|
<el-radio-group v-model="radio">
|
||||||
|
<el-radio-button v-for="(item, i) in dotList?.childrens" :label="item.name" :value="i" />
|
||||||
|
</el-radio-group>
|
||||||
|
</div>
|
||||||
|
<div v-if="information">
|
||||||
|
<el-button icon="el-icon-Plus" type="primary" @click="addUser">新增</el-button>
|
||||||
|
<el-button icon="el-icon-Edit" type="primary" @click="revise">修改</el-button>
|
||||||
|
<el-button icon="el-icon-Delete" type="primary" @click="deletes">删除</el-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div :style="heightTab">
|
||||||
|
<vxe-table height="auto" v-bind="defaultAttribute" :data="dotList?.childrens[radio]?.children">
|
||||||
|
<vxe-column field="name" title="算法名称"></vxe-column>
|
||||||
|
<vxe-column field="createTime" title="创建时间"></vxe-column>
|
||||||
|
|
||||||
|
<vxe-column field="period" title="计算周期">
|
||||||
|
<template #default="{ row }">
|
||||||
|
{{
|
||||||
|
row.period == 0
|
||||||
|
? '日'
|
||||||
|
: row.period == 1
|
||||||
|
? '月'
|
||||||
|
: row.period == 2
|
||||||
|
? '季'
|
||||||
|
: row.period == 3
|
||||||
|
? '年'
|
||||||
|
: ''
|
||||||
|
}}
|
||||||
|
</template>
|
||||||
|
</vxe-column>
|
||||||
|
<vxe-column field="source" title="数据来源"></vxe-column>
|
||||||
|
<!-- <vxe-column field="useFLag" title="是否启用">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<el-tag :type="row.useFLag === 1 ? 'success' : 'info'" effect="dark"
|
||||||
|
style="cursor: pointer" @click="change(row)">
|
||||||
|
{{ row.useFLag === 1 ? '是' : '否' }}
|
||||||
|
</el-tag>
|
||||||
|
</template>
|
||||||
|
</vxe-column> -->
|
||||||
|
<vxe-column field="definition" title="定义">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<el-button type="primary" link @click="view(row)">查看</el-button>
|
||||||
|
</template>
|
||||||
|
</vxe-column>
|
||||||
|
<!-- <vxe-column title="操作" width="150px">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<el-button type="primary" link @click="edit(row)">修改</el-button>
|
||||||
|
<el-button type="danger" link @click="del(row)">删除</el-button>
|
||||||
|
<el-popconfirm title="确定删除吗?" confirm-button-type='danger' @confirm="del(row)">
|
||||||
|
<template #reference>
|
||||||
|
<el-button type="danger" link>删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-popconfirm>
|
||||||
|
</template>
|
||||||
|
</vxe-column> -->
|
||||||
|
</vxe-table>
|
||||||
|
</div>
|
||||||
|
</pane>
|
||||||
|
</splitpanes>
|
||||||
|
<!-- 树弹框 -->
|
||||||
|
<addTree ref="addTreeRef" @getTree="treeRef.loadData(dotList.id)" />
|
||||||
|
<!-- 弹框 -->
|
||||||
|
<PopupEdit
|
||||||
|
ref="popupEditRef"
|
||||||
|
v-if="popupEditFlag"
|
||||||
|
@getTree="treeRef.loadData(dotList.id), (popupEditFlag = false)"
|
||||||
|
/>
|
||||||
|
<!-- 定义 -->
|
||||||
|
<el-dialog draggable v-model="viewFlag" title="定义" width="60%">
|
||||||
|
<div style="min-height: 300px; max-height: 55vh">
|
||||||
|
<div class="editor" ref="editorRef" v-html="summary" />
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
<!-- 删除 -->
|
||||||
|
<el-dialog draggable v-model="dialogVisible" title="请选择需要删除的数据" width="400">
|
||||||
|
<el-tree-select
|
||||||
|
v-model="TreeValue"
|
||||||
|
:data="TreeData"
|
||||||
|
filterable
|
||||||
|
check-strictly
|
||||||
|
:props="defaultProps"
|
||||||
|
default-expand-all
|
||||||
|
:render-after-expand="false"
|
||||||
|
/>
|
||||||
|
<template #footer>
|
||||||
|
<div class="dialog-footer">
|
||||||
|
<el-button @click="dialogVisible = false">取消</el-button>
|
||||||
|
<el-button type="primary" @click="del">删除</el-button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { onMounted, ref, provide, nextTick } from 'vue'
|
||||||
|
import 'splitpanes/dist/splitpanes.css'
|
||||||
|
import { Splitpanes, Pane } from 'splitpanes'
|
||||||
|
import algorithmTree from '@/components/tree/pqs/algorithmTree.vue'
|
||||||
|
import { mainHeight } from '@/utils/layout'
|
||||||
|
import { defaultAttribute } from '@/components/table/defaultAttribute'
|
||||||
|
import { getLineExport, selectReleation } from '@/api/event-boot/report'
|
||||||
|
import addTree from './components/addTree.vue'
|
||||||
|
import PopupEdit from './components/form.vue'
|
||||||
|
import { useMonitoringPoint } from '@/stores/monitoringPoint'
|
||||||
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||||
|
import { deleteyById } from '@/api/supervision-boot/database/index'
|
||||||
|
import { queryAllAlgorithmLibrary, updateAlgorithmLibrary } from '@/api/supervision-boot/database/index'
|
||||||
|
import { useAdminInfo } from '@/stores/adminInfo'
|
||||||
|
import katex from 'katex'
|
||||||
|
import 'katex/dist/katex.css'
|
||||||
|
const adminInfo = useAdminInfo()
|
||||||
|
defineOptions({
|
||||||
|
name: 'database/algorithm'
|
||||||
|
})
|
||||||
|
const monitoringPoint = useMonitoringPoint()
|
||||||
|
const height = mainHeight(20)
|
||||||
|
const heightTab = mainHeight(82)
|
||||||
|
const size = ref(23)
|
||||||
|
const addTreeRef = ref()
|
||||||
|
const editorRef = ref()
|
||||||
|
const dialogVisible = ref(false)
|
||||||
|
const viewFlag = ref(false)
|
||||||
|
const popupEditFlag = ref(false)
|
||||||
|
const treeRef = ref()
|
||||||
|
const summary = ref('')
|
||||||
|
const popupEditRef = ref()
|
||||||
|
const TreeData = ref([])
|
||||||
|
const TreeValue = ref([])
|
||||||
|
const information = adminInfo.roleCode.includes('information_info')
|
||||||
|
|
||||||
|
const defaultProps = {
|
||||||
|
label: 'name',
|
||||||
|
value: 'id'
|
||||||
|
}
|
||||||
|
const dotList: any = ref()
|
||||||
|
|
||||||
|
const templatePolicy: any = ref([])
|
||||||
|
// const tableStore = new TableStore({
|
||||||
|
// url: '/supervision-boot/libalgorithm/queryAllAlgorithmLibrary',
|
||||||
|
// method: 'GET',
|
||||||
|
// column: [
|
||||||
|
// { title: '算法名称', field: 'name' },
|
||||||
|
// {
|
||||||
|
// title: '定义',
|
||||||
|
// field: 'name1'
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// title: '计算公式',
|
||||||
|
// field: 'name2'
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// title: '计算周期',
|
||||||
|
// field: 'name3'
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// title: '数据来源',
|
||||||
|
// field: 'name4'
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// title: '是否启用',
|
||||||
|
// field: 'name5',
|
||||||
|
// render: 'tag',
|
||||||
|
// effect: 'dark',
|
||||||
|
// custom: {
|
||||||
|
// 0: 'info',
|
||||||
|
// 1: 'success'
|
||||||
|
// },
|
||||||
|
// replaceValue: {
|
||||||
|
// 0: '否',
|
||||||
|
// 1: '是'
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// ],
|
||||||
|
// loadCallback: () => {}
|
||||||
|
// })
|
||||||
|
const radio = ref(0)
|
||||||
|
|
||||||
|
// 新增弹框
|
||||||
|
const addUser = () => {
|
||||||
|
popupEditFlag.value = true
|
||||||
|
setTimeout(() => {
|
||||||
|
popupEditRef.value.open({
|
||||||
|
title: '新增算法'
|
||||||
|
})
|
||||||
|
}, 100)
|
||||||
|
}
|
||||||
|
// 修改弹框
|
||||||
|
const revise = () => {
|
||||||
|
popupEditFlag.value = true
|
||||||
|
setTimeout(() => {
|
||||||
|
popupEditRef.value.open({
|
||||||
|
title: '修改算法',
|
||||||
|
row: dotList.value
|
||||||
|
})
|
||||||
|
}, 100)
|
||||||
|
}
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
const dom = document.getElementById('navigation-splitpanes')
|
||||||
|
if (dom) {
|
||||||
|
size.value = Math.round((180 / dom.offsetHeight) * 120)
|
||||||
|
}
|
||||||
|
// tableStore.index()
|
||||||
|
})
|
||||||
|
|
||||||
|
const view = (row: any) => {
|
||||||
|
viewFlag.value = true
|
||||||
|
summary.value = row.definition
|
||||||
|
setTimeout(() => {
|
||||||
|
const spans = document.querySelectorAll('span[data-value]')
|
||||||
|
// 遍历每个 span 标签
|
||||||
|
spans.forEach(function (span) {
|
||||||
|
let val = katex.renderToString(span.getAttribute('data-value'), {
|
||||||
|
throwOnError: false
|
||||||
|
})
|
||||||
|
// var newDiv = document.createElement('div');
|
||||||
|
var newDiv = span
|
||||||
|
newDiv.innerHTML = val
|
||||||
|
|
||||||
|
span.parentNode.replaceChild(newDiv, span)
|
||||||
|
})
|
||||||
|
}, 100)
|
||||||
|
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
const handleNodeClick = (data: any, node: any) => {
|
||||||
|
if (data.pid != '0') {
|
||||||
|
dotList.value = data
|
||||||
|
radio.value = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const onAddTree = () => {
|
||||||
|
addTreeRef.value.open('新增')
|
||||||
|
}
|
||||||
|
const deletes = () => {
|
||||||
|
TreeValue.value = []
|
||||||
|
queryAllAlgorithmLibrary().then(res => {
|
||||||
|
TreeData.value = res.data
|
||||||
|
})
|
||||||
|
dialogVisible.value = true
|
||||||
|
}
|
||||||
|
// 删除
|
||||||
|
const del = () => {
|
||||||
|
if (TreeValue.value.length == 0) {
|
||||||
|
return ElMessage.warning('请选择数据')
|
||||||
|
}
|
||||||
|
ElMessageBox.confirm('此操作将永久删除, 是否继续?', '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
deleteyById({ id: TreeValue.value }).then(res => {
|
||||||
|
ElMessage.success('删除成功')
|
||||||
|
dialogVisible.value = false
|
||||||
|
treeRef.value.loadData()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
// if (TreeValue.value.length > 0) {
|
||||||
|
// ElMessage.warning('请选择数据')
|
||||||
|
// return
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
// 启用
|
||||||
|
const change = (row: any) => {
|
||||||
|
console.log('🚀 ~ change ~ row:', row)
|
||||||
|
ElMessageBox.confirm(`请确认是否${row.useFLag == 0 ? '启用' : '关闭'}算法?`, '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
updateAlgorithmLibrary({ ...row, useFLag: row.useFLag == 0 ? 1 : 0 }).then(res => {
|
||||||
|
ElMessage.success(row.useFLag == 0 ? '启用' : '关闭' + '成功')
|
||||||
|
treeRef.value.loadData(dotList.value.id)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
const getList = (val: any) => {
|
||||||
|
setTimeout(async () => {
|
||||||
|
dotList.value = await treeRef.value.setKey(val.data.pid)
|
||||||
|
await dotList.value?.childrens.forEach((item: any, i: number) => {
|
||||||
|
if (item.id == val.data.id) {
|
||||||
|
radio.value = i
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}, 500)
|
||||||
|
}
|
||||||
|
defineExpose({
|
||||||
|
getList
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
<style lang="scss">
|
||||||
|
.splitpanes.default-theme .splitpanes__pane {
|
||||||
|
background: #eaeef1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid-content {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-divider--horizontal {
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mTop {
|
||||||
|
margin-top: 5px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.boxTop {
|
||||||
|
height: 52px;
|
||||||
|
padding: 10px 10px 10px 0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.editor {
|
||||||
|
table {
|
||||||
|
width: 100%;
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
|
||||||
|
th,
|
||||||
|
td {
|
||||||
|
border: 1px solid black;
|
||||||
|
padding: 8px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
th {
|
||||||
|
background-color: #f2f2f2;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
td {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
196
src/views/pqs/database/algorithm/overview.vue
Normal file
196
src/views/pqs/database/algorithm/overview.vue
Normal file
@@ -0,0 +1,196 @@
|
|||||||
|
<template>
|
||||||
|
<div class="default-main pt50" :style="height">
|
||||||
|
<!-- 算法库 -->
|
||||||
|
<!-- -->
|
||||||
|
|
||||||
|
<MyEchart :options="echartList" style="width: 100%" :style="height" @echart-click="echartClick"></MyEchart>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { onMounted, ref, provide } from 'vue'
|
||||||
|
import 'splitpanes/dist/splitpanes.css'
|
||||||
|
|
||||||
|
import { mainHeight } from '@/utils/layout'
|
||||||
|
|
||||||
|
import MyEchart from '@/components/echarts/MyEchart.vue'
|
||||||
|
import { useRouter } from 'vue-router'
|
||||||
|
import { queryAllAlgorithmLibrary, updateAlgorithmLibrary } from '@/api/supervision-boot/database/index'
|
||||||
|
import { useAdminInfo } from '@/stores/adminInfo'
|
||||||
|
import 'katex/dist/katex.css'
|
||||||
|
import { useConfig } from '@/stores/config'
|
||||||
|
const router = useRouter()
|
||||||
|
const config = useConfig()
|
||||||
|
const adminInfo = useAdminInfo()
|
||||||
|
defineOptions({
|
||||||
|
name: 'database/algorithm'
|
||||||
|
})
|
||||||
|
const emits = defineEmits(['algorithm'])
|
||||||
|
const height = mainHeight(20)
|
||||||
|
const size = ref(23)
|
||||||
|
|
||||||
|
const popupEditFlag = ref(false)
|
||||||
|
|
||||||
|
const popupEditRef = ref()
|
||||||
|
const TreeList: any = ref([])
|
||||||
|
|
||||||
|
const echartList = ref({})
|
||||||
|
|
||||||
|
const dotList: any = ref()
|
||||||
|
|
||||||
|
const radio = ref(0)
|
||||||
|
|
||||||
|
// 新增弹框
|
||||||
|
const addUser = () => {
|
||||||
|
popupEditFlag.value = true
|
||||||
|
setTimeout(() => {
|
||||||
|
popupEditRef.value.open({
|
||||||
|
title: '新增算法'
|
||||||
|
})
|
||||||
|
}, 100)
|
||||||
|
}
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
const dom = document.getElementById('navigation-splitpanes')
|
||||||
|
if (dom) {
|
||||||
|
size.value = Math.round((180 / dom.offsetHeight) * 120)
|
||||||
|
}
|
||||||
|
info()
|
||||||
|
// tableStore.index()
|
||||||
|
})
|
||||||
|
|
||||||
|
const info = () => {
|
||||||
|
queryAllAlgorithmLibrary().then(async res => {
|
||||||
|
TreeList.value = await setTreeAllNodeExpand([
|
||||||
|
{
|
||||||
|
name: '算法库',
|
||||||
|
level: 0,
|
||||||
|
children: res.data
|
||||||
|
}
|
||||||
|
])
|
||||||
|
|
||||||
|
echartList.value = {
|
||||||
|
series: [
|
||||||
|
{
|
||||||
|
type: 'tree',
|
||||||
|
data: TreeList.value,
|
||||||
|
top: '20',
|
||||||
|
bottom: '40',
|
||||||
|
left: '20',
|
||||||
|
symbolSize: 7,
|
||||||
|
label: {
|
||||||
|
position: 'left',
|
||||||
|
verticalAlign: 'middle',
|
||||||
|
align: 'left',
|
||||||
|
fontSize: 14,
|
||||||
|
fontWeight: 600,
|
||||||
|
backgroundColor: config.layout.elementUiPrimary[0],
|
||||||
|
color: '#fff',
|
||||||
|
borderRadius: 5,
|
||||||
|
formatter: function (params) {
|
||||||
|
return [`{name|${params.data.name}}`]
|
||||||
|
},
|
||||||
|
rich: {
|
||||||
|
name: {
|
||||||
|
fontSize: 14,
|
||||||
|
fontWeight: 'bold',
|
||||||
|
padding: [10, 10]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
leaves: {
|
||||||
|
label: {
|
||||||
|
position: 'left',
|
||||||
|
verticalAlign: 'middle',
|
||||||
|
fontWeight: 600,
|
||||||
|
align: 'left'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
edgeShape: 'polyline', // 折线连接线
|
||||||
|
roam: true, // 可移动,可缩放
|
||||||
|
expandAndCollapse: false,
|
||||||
|
animationDuration: 550,
|
||||||
|
animationDurationUpdate: 750
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 点击echart
|
||||||
|
const echartClick = (params: any) => {
|
||||||
|
if(params.data.level == 3){
|
||||||
|
emits('algorithm', params)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const setTreeAllNodeExpand = (treeData: any) => {
|
||||||
|
if (!treeData) return []
|
||||||
|
// 兼容单对象/数组两种树数据格式
|
||||||
|
const data = Array.isArray(treeData) ? treeData : [treeData]
|
||||||
|
return data.map(node => {
|
||||||
|
// 深拷贝节点,彻底隔离原数据
|
||||||
|
const newNode = {
|
||||||
|
...node,
|
||||||
|
collapsed: node.level <= 2 ? false : true // 强制添加展开属性
|
||||||
|
}
|
||||||
|
// 递归处理子节点
|
||||||
|
if (node.children && node.children.length > 0) {
|
||||||
|
newNode.children = setTreeAllNodeExpand(node.children)
|
||||||
|
}
|
||||||
|
return newNode
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss">
|
||||||
|
.splitpanes.default-theme .splitpanes__pane {
|
||||||
|
background: #eaeef1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid-content {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-divider--horizontal {
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mTop {
|
||||||
|
margin-top: 5px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.boxTop {
|
||||||
|
height: 52px;
|
||||||
|
padding: 10px 10px 10px 0;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.editor {
|
||||||
|
table {
|
||||||
|
width: 100%;
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
|
||||||
|
th,
|
||||||
|
td {
|
||||||
|
border: 1px solid black;
|
||||||
|
padding: 8px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
th {
|
||||||
|
background-color: #f2f2f2;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
td {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.button {
|
||||||
|
position: absolute;
|
||||||
|
right: 10px;
|
||||||
|
top: 10px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -105,6 +105,7 @@ const loading = ref(false)
|
|||||||
provide('tableStore', tableStore)
|
provide('tableStore', tableStore)
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
TableHeaderRef.value.setTheDate(4)
|
||||||
const dom = document.getElementById('navigation-splitpanes')
|
const dom = document.getElementById('navigation-splitpanes')
|
||||||
if (dom) {
|
if (dom) {
|
||||||
size.value = Math.round((180 / dom.offsetHeight) * 120)
|
size.value = Math.round((180 / dom.offsetHeight) * 120)
|
||||||
@@ -116,7 +117,7 @@ getTemplateByDept({ id: dictData.state.area[0].id })
|
|||||||
Template.value = res.data[0]
|
Template.value = res.data[0]
|
||||||
reportForm.value = res.data[0]?.reportForm
|
reportForm.value = res.data[0]?.reportForm
|
||||||
showTree.value = true
|
showTree.value = true
|
||||||
tableStore.index()
|
TableHeaderRef.value.onComSearch()
|
||||||
})
|
})
|
||||||
.catch((err: any) => {
|
.catch((err: any) => {
|
||||||
showTree.value = true
|
showTree.value = true
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="pie">
|
<div class="pie">
|
||||||
<!-- <MyEChart style="height: 260px" :options="picEChart" /> -->
|
<!-- <MyEChart style="height: 260px" :options="picEChart" /> -->
|
||||||
<MyEChart style="height: 260px; width: 50%" :options="picEChart" />
|
<MyEChart style="height: 260px; width: 50%" :options="picEChart" @echartClick="echartClick" />
|
||||||
<el-table size="small" height="260px" style="width: 50%" :data="picList">
|
<el-table size="small" height="260px" style="width: 50%" :data="picList">
|
||||||
<el-table-column prop="orgName" width="90px" align="center">
|
<el-table-column prop="orgName" width="90px" align="center">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
@@ -75,10 +75,12 @@ const picList: any = ref([])
|
|||||||
const Voltage = dictData.getBasicData('Dev_Voltage_Stand')
|
const Voltage = dictData.getBasicData('Dev_Voltage_Stand')
|
||||||
const tableData: any = ref([])
|
const tableData: any = ref([])
|
||||||
const options = dictData.getBasicData('Statistical_Type', ['Report_Type', 'Power_Network', 'JB_Power_Flag'])
|
const options = dictData.getBasicData('Statistical_Type', ['Report_Type', 'Power_Network', 'JB_Power_Flag'])
|
||||||
|
console.log("🚀 ~ options:", options)
|
||||||
const time = ref('1')
|
const time = ref('1')
|
||||||
const statisticalType = ref('Load_Type')
|
const statisticalType = ref('Load_Type')
|
||||||
const loadTypeArr = dictData.getBasicData('Interference_Source')
|
const loadTypeArr = dictData.getBasicData('Interference_Source')
|
||||||
|
import { useRouter } from 'vue-router'
|
||||||
|
const router = useRouter()
|
||||||
const rowList: any = ref({})
|
const rowList: any = ref({})
|
||||||
const trendEChart: any = ref()
|
const trendEChart: any = ref()
|
||||||
|
|
||||||
@@ -236,6 +238,18 @@ const handleClose = () => {
|
|||||||
tableData.value = []
|
tableData.value = []
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
}
|
}
|
||||||
|
const echartClick = (params: any) => {
|
||||||
|
console.log('🚀 ~ echartClick ~ params:', params.name.split('(')[0])
|
||||||
|
router.push({
|
||||||
|
name: 'Supervision/Terminaldetection',
|
||||||
|
query: {
|
||||||
|
type: 'lodType',
|
||||||
|
name: params.name.split('(')[0],
|
||||||
|
statisticalType:statisticalType.value,
|
||||||
|
t: Date.now()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
defineExpose({ open })
|
defineExpose({ open })
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ const open = (data: any) => {
|
|||||||
loading.value = true
|
loading.value = true
|
||||||
show.value = true
|
show.value = true
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
dataList.value = data
|
dataList.value = data.sort((a, b) => b.vharmonicValue - a.vharmonicValue)
|
||||||
loading.value = false
|
loading.value = false
|
||||||
}, 1000)
|
}, 1000)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -205,13 +205,16 @@
|
|||||||
width: 450px;
|
width: 450px;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
.psrmapBut{
|
.psrmapBut {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 103px;
|
bottom: 103px;
|
||||||
right: 60px;
|
right: 60px;
|
||||||
// z-index: 0.1;
|
// z-index: 0.1;
|
||||||
}
|
}
|
||||||
#nrDeviceCard{
|
#nrDeviceCard {
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:deep(.nari-devicecard-popup) {
|
||||||
|
display: none!important;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main">
|
<div class="default-main">
|
||||||
<div class="actionButtons">
|
<div class="actionButtons">
|
||||||
<el-button type="primary" icon="el-icon-Check" class="md8" @click="onsubmit" v-if="showSaveButton">保存</el-button>
|
<el-button type="primary" icon="el-icon-Check" class="md8" @click="onsubmit" v-if="showSaveButton">
|
||||||
|
保存
|
||||||
|
</el-button>
|
||||||
<back-component style="margin: 8px" />
|
<back-component style="margin: 8px" />
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div :style="pageHeight" style="overflow-y: auto">
|
<div :style="pageHeight" style="overflow-y: auto">
|
||||||
<el-collapse v-model="activeNames" class="pl10 pr10">
|
<el-collapse v-model="activeNames" class="pl10 pr10">
|
||||||
@@ -29,7 +30,13 @@
|
|||||||
<Area ref="areaRef" v-model="form.deptId" style="width: 100%" @changeValue="changeArea" />
|
<Area ref="areaRef" v-model="form.deptId" style="width: 100%" @changeValue="changeArea" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="用户名称" prop="assessName">
|
<el-form-item label="用户名称" prop="assessName">
|
||||||
<el-input v-model="form.assessName" placeholder="用户名称" clearable show-word-limit maxlength="32"/>
|
<el-input
|
||||||
|
v-model="form.assessName"
|
||||||
|
placeholder="用户名称"
|
||||||
|
clearable
|
||||||
|
show-word-limit
|
||||||
|
maxlength="32"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="用户电压等级" prop="userScale">
|
<el-form-item label="用户电压等级" prop="userScale">
|
||||||
<el-select v-model="form.userScale" clearable placeholder="请选择电压等级">
|
<el-select v-model="form.userScale" clearable placeholder="请选择电压等级">
|
||||||
@@ -47,8 +54,8 @@
|
|||||||
v-model.trim="form.agreedCapacity"
|
v-model.trim="form.agreedCapacity"
|
||||||
show-word-limit
|
show-word-limit
|
||||||
placeholder="请输入值"
|
placeholder="请输入值"
|
||||||
max="9999"
|
:max="9999"
|
||||||
min="0"
|
:min="0"
|
||||||
></el-input-number>
|
></el-input-number>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="是否包含电容器" prop="withCapacitor">
|
<el-form-item label="是否包含电容器" prop="withCapacitor">
|
||||||
@@ -78,6 +85,19 @@
|
|||||||
<el-option label="否" value="01"></el-option>
|
<el-option label="否" value="01"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="预测评估关联">
|
||||||
|
<el-select v-model="assessMentId" filterable clearable placeholder="请选择预测评估关联">
|
||||||
|
<el-option
|
||||||
|
v-for="option in userList.filter(
|
||||||
|
item =>
|
||||||
|
item.secondAssessmentId == null || item.secondAssessmentId == form.assessId
|
||||||
|
)"
|
||||||
|
:key="option.id"
|
||||||
|
:label="option.projectName"
|
||||||
|
:value="option.id"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
<el-collapse-item title="系统参数维护" :name="2">
|
<el-collapse-item title="系统参数维护" :name="2">
|
||||||
@@ -143,8 +163,8 @@
|
|||||||
v-model.trim="form.powersupplyCapacity"
|
v-model.trim="form.powersupplyCapacity"
|
||||||
show-word-limit
|
show-word-limit
|
||||||
placeholder="请输入值"
|
placeholder="请输入值"
|
||||||
min="0"
|
:min="0"
|
||||||
max="9999"
|
:max="9999"
|
||||||
></el-input-number>
|
></el-input-number>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="最小短路容量(MVA)" prop="minshortcircuitCapacity">
|
<el-form-item label="最小短路容量(MVA)" prop="minshortcircuitCapacity">
|
||||||
@@ -153,8 +173,8 @@
|
|||||||
v-model.trim="form.minshortcircuitCapacity"
|
v-model.trim="form.minshortcircuitCapacity"
|
||||||
show-word-limit
|
show-word-limit
|
||||||
placeholder="请输入值"
|
placeholder="请输入值"
|
||||||
min="0"
|
:min="0"
|
||||||
max="9999"
|
:max="9999"
|
||||||
></el-input-number>
|
></el-input-number>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="PCC点名称" prop="lineId">
|
<el-form-item label="PCC点名称" prop="lineId">
|
||||||
@@ -184,8 +204,8 @@
|
|||||||
v-model.trim="form.lineLen"
|
v-model.trim="form.lineLen"
|
||||||
show-word-limit
|
show-word-limit
|
||||||
placeholder="请输入值"
|
placeholder="请输入值"
|
||||||
max="9999"
|
:max="9999"
|
||||||
min="0"
|
:min="0"
|
||||||
></el-input-number>
|
></el-input-number>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="回路数" prop="lineNum">
|
<el-form-item label="回路数" prop="lineNum">
|
||||||
@@ -194,8 +214,8 @@
|
|||||||
v-model.trim="form.lineNum"
|
v-model.trim="form.lineNum"
|
||||||
show-word-limit
|
show-word-limit
|
||||||
placeholder="请输入值"
|
placeholder="请输入值"
|
||||||
max="9999"
|
:max="9999"
|
||||||
min="0"
|
:min="0"
|
||||||
></el-input-number>
|
></el-input-number>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="PCC点电网电阻" prop="lineGridreactance">
|
<el-form-item label="PCC点电网电阻" prop="lineGridreactance">
|
||||||
@@ -204,8 +224,8 @@
|
|||||||
v-model.trim="form.lineGridreactance"
|
v-model.trim="form.lineGridreactance"
|
||||||
show-word-limit
|
show-word-limit
|
||||||
placeholder="请输入值"
|
placeholder="请输入值"
|
||||||
max="9999"
|
:max="9999"
|
||||||
min="0"
|
:min="0"
|
||||||
></el-input-number>
|
></el-input-number>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="PCC电电网电抗" prop="lineGridresistance">
|
<el-form-item label="PCC电电网电抗" prop="lineGridresistance">
|
||||||
@@ -214,14 +234,19 @@
|
|||||||
v-model.trim="form.lineGridresistance"
|
v-model.trim="form.lineGridresistance"
|
||||||
show-word-limit
|
show-word-limit
|
||||||
placeholder="请输入值"
|
placeholder="请输入值"
|
||||||
max="9999"
|
:max="9999"
|
||||||
min="0"
|
:min="0"
|
||||||
></el-input-number>
|
></el-input-number>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
<div v-if="form.assessId">
|
<div v-if="form.assessId">
|
||||||
<tabFrom :assessId="form.assessId" :isWindfarm="form.isWindfarm" :isWithCapacitor="form.withCapacitor" :disabled="formDisabled"/>
|
<tabFrom
|
||||||
|
:assessId="form.assessId"
|
||||||
|
:isWindfarm="form.isWindfarm"
|
||||||
|
:isWithCapacitor="form.withCapacitor"
|
||||||
|
:disabled="formDisabled"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</el-collapse>
|
</el-collapse>
|
||||||
</div>
|
</div>
|
||||||
@@ -238,30 +263,29 @@ import { ElMessage, ElMessageBox, ElDatePicker } from 'element-plus'
|
|||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
import { getSubstationSelect } from '@/api/device-boot/line'
|
import { getSubstationSelect } from '@/api/device-boot/line'
|
||||||
import tabFrom from './tabFrom.vue'
|
import tabFrom from './tabFrom.vue'
|
||||||
import { cableList, getBusBarSelect, getMonitorSelect, userAdd, userGetInfo ,userEdit} from '@/api/advance-boot/assess'
|
import { cableList, getBusBarSelect, getMonitorSelect, userAdd, userGetInfo, userEdit } from '@/api/advance-boot/assess'
|
||||||
|
import { selectUserAssessMentList, bindAssessmentId } from '@/api/device-boot/Business'
|
||||||
const activeNames = ref([1, 2, 3, 4, 5, 6, 7])
|
const activeNames = ref([1, 2, 3, 4, 5, 6, 7])
|
||||||
const dictData = useDictData()
|
const dictData = useDictData()
|
||||||
const pageHeight = mainHeight(70)
|
const pageHeight = mainHeight(70)
|
||||||
const areaOptionList = dictData.getBasicData('jibei_area')
|
const areaOptionList = dictData.getBasicData('jibei_area')
|
||||||
const { query} = useRoute() // 查询参数
|
const { query } = useRoute() // 查询参数
|
||||||
//字典获取电压等级
|
//字典获取电压等级
|
||||||
const voltageleveloption = dictData.getBasicData('Dev_Voltage_Stand')
|
const voltageleveloption = dictData.getBasicData('Dev_Voltage_Stand')
|
||||||
const powerstationList: any = ref([]) //变电站列表
|
const powerstationList: any = ref([]) //变电站列表
|
||||||
const busList: any = ref([]) //generatrix列表
|
const busList: any = ref([]) //generatrix列表
|
||||||
const linetypeList: any = ref([]) //线路类型
|
const linetypeList: any = ref([]) //线路类型
|
||||||
const pccList: any = ref([]) //pcc列表
|
const pccList: any = ref([]) //pcc列表
|
||||||
|
const userList: any = ref([]) //用户列表
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const isViewMode = ref(route.query.mode === 'view')
|
const isViewMode = ref(route.query.mode === 'view')
|
||||||
|
const assessMentId = ref('')
|
||||||
// 根据 isViewMode 控制表单的禁用状态
|
// 根据 isViewMode 控制表单的禁用状态
|
||||||
const formDisabled = ref(isViewMode.value)
|
const formDisabled = ref(isViewMode.value)
|
||||||
|
|
||||||
// 或者在保存按钮上根据模式控制显示
|
// 或者在保存按钮上根据模式控制显示
|
||||||
const showSaveButton = !isViewMode.value
|
const showSaveButton = !isViewMode.value
|
||||||
|
|
||||||
|
|
||||||
const form: any = ref({
|
const form: any = ref({
|
||||||
assessId: '',
|
assessId: '',
|
||||||
deptId: dictData.state.area[0].id,
|
deptId: dictData.state.area[0].id,
|
||||||
@@ -327,18 +351,18 @@ const form2 = ref()
|
|||||||
const onsubmit = () => {
|
const onsubmit = () => {
|
||||||
form1.value.validate((valid: any) => {
|
form1.value.validate((valid: any) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
form2.value.validate((valid2: any) => {
|
form2.value.validate(async (valid2: any) => {
|
||||||
if (valid2) {
|
if (valid2) {
|
||||||
if(form.value.assessId){
|
if (form.value.assessId) {
|
||||||
userEdit(form.value).then((res: any) => {
|
await userEdit(form.value).then((res: any) => {
|
||||||
//form.value.assessId = res.data
|
//form.value.assessId = res.data
|
||||||
ElMessage({
|
ElMessage({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
message: '编辑成功!'
|
message: '编辑成功!'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}else{
|
} else {
|
||||||
userAdd(form.value).then((res: any) => {
|
await userAdd(form.value).then((res: any) => {
|
||||||
form.value.assessId = res.data
|
form.value.assessId = res.data
|
||||||
|
|
||||||
ElMessage({
|
ElMessage({
|
||||||
@@ -348,6 +372,10 @@ const onsubmit = () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await bindAssessmentId({
|
||||||
|
userReportId: form.value.assessId,
|
||||||
|
assessMentId: assessMentId.value || 'null'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -355,6 +383,8 @@ const onsubmit = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const info = async (id?: string) => {
|
const info = async (id?: string) => {
|
||||||
|
// 获取关联用户
|
||||||
|
|
||||||
// 获取电站
|
// 获取电站
|
||||||
await getSubstationSelect().then(res => {
|
await getSubstationSelect().then(res => {
|
||||||
powerstationList.value = res.data
|
powerstationList.value = res.data
|
||||||
@@ -364,15 +394,28 @@ const info = async (id?: string) => {
|
|||||||
linetypeList.value = res.data
|
linetypeList.value = res.data
|
||||||
})
|
})
|
||||||
if (id) {
|
if (id) {
|
||||||
userGetInfo({ assessId: id }).then(async (res: any) => {
|
await userGetInfo({ assessId: id }).then(async (res: any) => {
|
||||||
form.value = res.data
|
form.value = res.data
|
||||||
await changePowerstation(res.data.powerstationId, false)
|
await changePowerstation(res.data.powerstationId, false)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
getUserList(true)
|
||||||
|
}
|
||||||
|
const getUserList = async (e?: any) => {
|
||||||
|
selectUserAssessMentList({ orgId: form.value.deptId, secondAssessmentId: form.value.assessId || '' }).then(res => {
|
||||||
|
userList.value = res.data
|
||||||
|
console.log('🚀 ~ getUserList ~ e:', e)
|
||||||
|
if (e) {
|
||||||
|
assessMentId.value = res.data.filter(item => item.secondAssessmentId == form.value.assessId)[0]?.id || ''
|
||||||
|
} else {
|
||||||
|
assessMentId.value = ''
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
// 地市切换
|
// 地市切换
|
||||||
const changeArea = (e: any) => {
|
const changeArea = (e: any) => {
|
||||||
form.value.deptName = e.label
|
form.value.deptName = e.label
|
||||||
|
getUserList()
|
||||||
}
|
}
|
||||||
// 点击变电站
|
// 点击变电站
|
||||||
const changePowerstation = (e: any, flag: boolean = true) => {
|
const changePowerstation = (e: any, flag: boolean = true) => {
|
||||||
@@ -404,12 +447,9 @@ const LineChange = (e: any) => {
|
|||||||
form.value.lineName = data.name
|
form.value.lineName = data.name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
info(query?.id)
|
info(query?.id)
|
||||||
})
|
})
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.actionButtons {
|
.actionButtons {
|
||||||
@@ -450,5 +490,3 @@ onMounted(() => {
|
|||||||
min-width: 120px;
|
min-width: 120px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -102,7 +102,8 @@ import { ElMessage, ElMessageBox, ElDatePicker } from 'element-plus'
|
|||||||
import { cableList, batchDel } from '@/api/advance-boot/assess'
|
import { cableList, batchDel } from '@/api/advance-boot/assess'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import Form from './form.vue'
|
import Form from './form.vue'
|
||||||
|
import { selectUserList, bindAssessmentId } from '@/api/device-boot/Business'
|
||||||
|
import { forEach } from 'min-dash'
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'runManage/addUser'
|
name: 'runManage/addUser'
|
||||||
})
|
})
|
||||||
@@ -224,10 +225,9 @@ const tableStore: any = new TableStore({
|
|||||||
],
|
],
|
||||||
beforeSearchFun: () => {
|
beforeSearchFun: () => {
|
||||||
tableStore.table.params.deptId = tableStore.table.params.deptIndex
|
tableStore.table.params.deptId = tableStore.table.params.deptIndex
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
loadCallback: () => { }
|
loadCallback: () => {}
|
||||||
})
|
})
|
||||||
tableStore.table.params.assessName = ''
|
tableStore.table.params.assessName = ''
|
||||||
tableStore.table.params.deptId = ''
|
tableStore.table.params.deptId = ''
|
||||||
@@ -242,9 +242,9 @@ const route = useRoute()
|
|||||||
// 监听路由变化
|
// 监听路由变化
|
||||||
watch(
|
watch(
|
||||||
() => route.query,
|
() => route.query,
|
||||||
(newQuery) => {
|
newQuery => {
|
||||||
tableStore.index()
|
tableStore.index()
|
||||||
},
|
}
|
||||||
// { immediate: true }
|
// { immediate: true }
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -272,11 +272,19 @@ const del = () => {
|
|||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
batchDel(tableStore.table.selection.map(item => item.assessId)).then(res => {
|
let ids = tableStore.table.selection.map(item => item.assessId)
|
||||||
|
batchDel(ids).then(res => {
|
||||||
ElMessage({
|
ElMessage({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
message: '删除成功!'
|
message: '删除成功!'
|
||||||
})
|
})
|
||||||
|
ids.forEach(item => {
|
||||||
|
bindAssessmentId({
|
||||||
|
userReportId: item,
|
||||||
|
assessMentId: null
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
tableStore.index()
|
tableStore.index()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@@ -286,7 +294,4 @@ onMounted(() => {
|
|||||||
tableStore.index()
|
tableStore.index()
|
||||||
Info()
|
Info()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -161,13 +161,35 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
class="uploadFile"
|
||||||
|
v-if="bussType != 0"
|
||||||
|
label="治理方案仿真校验评估报告"
|
||||||
|
prop="simulationReportUrl"
|
||||||
|
>
|
||||||
|
<el-upload
|
||||||
|
v-model:file-list="form.simulationReportUrl"
|
||||||
|
ref="simulationReportRef"
|
||||||
|
action=""
|
||||||
|
accept=".doc,.docx,.xlsx,.xls,.pdf"
|
||||||
|
:limit="1"
|
||||||
|
:on-exceed="handleExceed1"
|
||||||
|
:on-change="choose1"
|
||||||
|
:auto-upload="false"
|
||||||
|
:on-remove="removeFile1"
|
||||||
|
>
|
||||||
|
<template #trigger>
|
||||||
|
<el-button type="primary">上传文件</el-button>
|
||||||
|
</template>
|
||||||
|
</el-upload>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<div class="dialog-footer">
|
<div class="dialog-footer">
|
||||||
<el-button @click="close()">取消</el-button>
|
<el-button @click="close()">取消</el-button>
|
||||||
<!-- <el-button type="primary" @click="confirmForm()">确定</el-button> -->
|
<!-- <el-button type="primary" @click="confirmForm()">确定</el-button> -->
|
||||||
<el-button type="primary" @click="confirmForm(true)" :loading="loading" >保存</el-button>
|
<el-button type="primary" @click="confirmForm(true)" :loading="loading">保存</el-button>
|
||||||
<el-button type="primary" @click="confirmForm(false)" :loading="loading" >提交审批</el-button>
|
<el-button type="primary" @click="confirmForm(false)" :loading="loading">提交审批</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@@ -179,9 +201,8 @@ import { genFileId, ElMessage } from 'element-plus'
|
|||||||
import { useDictData } from '@/stores/dictData'
|
import { useDictData } from '@/stores/dictData'
|
||||||
import { useAdminInfo } from '@/stores/adminInfo'
|
import { useAdminInfo } from '@/stores/adminInfo'
|
||||||
import { uploadFile } from '@/api/system-boot/file'
|
import { uploadFile } from '@/api/system-boot/file'
|
||||||
import { submitGoNet } from '@/api/supervision-boot/interfere/index'
|
import { submitGoNet, getFileById, addOrUpdateFile } from '@/api/supervision-boot/interfere/index'
|
||||||
import { getUserReportById } from '@/api/supervision-boot/userReport/form'
|
import { getUserReportById } from '@/api/supervision-boot/userReport/form'
|
||||||
import { lo } from 'element-plus/es/locale'
|
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
openType: {
|
openType: {
|
||||||
@@ -199,7 +220,8 @@ const props = defineProps({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
const rules = {
|
const rules = {
|
||||||
goToNetReport: [{ required: true, message: '请上传报告', trigger: 'blur' }]
|
goToNetReport: [{ required: true, message: '请上传报告', trigger: 'blur' }],
|
||||||
|
simulationReportUrl: [{ required: true, message: '请上传报告', trigger: 'blur' }]
|
||||||
}
|
}
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const emits = defineEmits(['onSubmit'])
|
const emits = defineEmits(['onSubmit'])
|
||||||
@@ -208,6 +230,7 @@ const dialogFormVisible = ref(false)
|
|||||||
|
|
||||||
const form: any = ref({})
|
const form: any = ref({})
|
||||||
const ruleFormRef: any = ref(null)
|
const ruleFormRef: any = ref(null)
|
||||||
|
const simulationReportRef: any = ref(null)
|
||||||
//字典获取所在地市
|
//字典获取所在地市
|
||||||
const areaOptionList = dictData.getBasicData('jibei_area')
|
const areaOptionList = dictData.getBasicData('jibei_area')
|
||||||
//字典电压等级
|
//字典电压等级
|
||||||
@@ -273,6 +296,7 @@ const resetForm = () => {
|
|||||||
reportDate: new Date(), //填报日期
|
reportDate: new Date(), //填报日期
|
||||||
orgId: '', //填报部门
|
orgId: '', //填报部门
|
||||||
goToNetReport: [], //报告
|
goToNetReport: [], //报告
|
||||||
|
simulationReportUrl: [], //报告
|
||||||
userType: 0, //用户性质
|
userType: 0, //用户性质
|
||||||
city: areaOptionList[0].name, //所在地市
|
city: areaOptionList[0].name, //所在地市
|
||||||
responsibleDepartment: '', //归口管理部门
|
responsibleDepartment: '', //归口管理部门
|
||||||
@@ -301,6 +325,7 @@ const getInfo = async (row?: any) => {
|
|||||||
form.value.reportDate = new Date()
|
form.value.reportDate = new Date()
|
||||||
if (row) {
|
if (row) {
|
||||||
goToNetReport.value = row.otherReport
|
goToNetReport.value = row.otherReport
|
||||||
|
simulationReportUrl.value = row.simulationReport
|
||||||
form.value.id = row.id
|
form.value.id = row.id
|
||||||
form.value.goToNetReport =
|
form.value.goToNetReport =
|
||||||
row.otherReport == null || row.otherReport == ''
|
row.otherReport == null || row.otherReport == ''
|
||||||
@@ -310,6 +335,14 @@ const getInfo = async (row?: any) => {
|
|||||||
name: row.otherReport.split('/')[2]
|
name: row.otherReport.split('/')[2]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
form.value.simulationReportUrl =
|
||||||
|
row.simulationReport == null || row.simulationReport == ''
|
||||||
|
? []
|
||||||
|
: [
|
||||||
|
{
|
||||||
|
name: row.simulationReport.split('/')[2]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} finally {
|
} finally {
|
||||||
@@ -337,6 +370,12 @@ const handleExceed: UploadProps['onExceed'] = files => {
|
|||||||
file.uid = genFileId()
|
file.uid = genFileId()
|
||||||
uploadRef.value!.handleStart(file)
|
uploadRef.value!.handleStart(file)
|
||||||
}
|
}
|
||||||
|
const handleExceed1: UploadProps['onExceed'] = files => {
|
||||||
|
simulationReportRef.value!.clearFiles()
|
||||||
|
const file = files[0] as UploadRawFile
|
||||||
|
file.uid = genFileId()
|
||||||
|
simulationReportRef.value!.handleStart(file)
|
||||||
|
}
|
||||||
|
|
||||||
//移除文件上传
|
//移除文件上传
|
||||||
const removeFile = (file: any, uploadFiles: any) => {
|
const removeFile = (file: any, uploadFiles: any) => {
|
||||||
@@ -344,9 +383,15 @@ const removeFile = (file: any, uploadFiles: any) => {
|
|||||||
goToNetReport.value = ''
|
goToNetReport.value = ''
|
||||||
form.value.goToNetReport = uploadFiles
|
form.value.goToNetReport = uploadFiles
|
||||||
}
|
}
|
||||||
|
const removeFile1 = (file: any, uploadFiles: any) => {
|
||||||
|
console.log(file, uploadFiles)
|
||||||
|
simulationReportUrl.value = ''
|
||||||
|
form.value.simulationReportUrl = uploadFiles
|
||||||
|
}
|
||||||
|
|
||||||
// 治理工程验收报告数组
|
// 治理工程验收报告数组
|
||||||
const goToNetReport = ref('')
|
const goToNetReport = ref('')
|
||||||
|
const simulationReportUrl = ref('')
|
||||||
|
|
||||||
const choose = (e: any) => {
|
const choose = (e: any) => {
|
||||||
uploadFile(e.raw, '/supervision/').then(res => {
|
uploadFile(e.raw, '/supervision/').then(res => {
|
||||||
@@ -354,6 +399,12 @@ const choose = (e: any) => {
|
|||||||
goToNetReport.value = res.data.name
|
goToNetReport.value = res.data.name
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
const choose1 = (e: any) => {
|
||||||
|
uploadFile(e.raw, '/supervision/').then(res => {
|
||||||
|
//治理工程验收报告
|
||||||
|
simulationReportUrl.value = res.data.name
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
//提交
|
//提交
|
||||||
const confirmForm = (flag: boolean) => {
|
const confirmForm = (flag: boolean) => {
|
||||||
@@ -363,6 +414,7 @@ const confirmForm = (flag: boolean) => {
|
|||||||
type: props.bussType,
|
type: props.bussType,
|
||||||
userReportId: props.id,
|
userReportId: props.id,
|
||||||
reportUrl: goToNetReport.value,
|
reportUrl: goToNetReport.value,
|
||||||
|
simulationReportUrl: simulationReportUrl.value,
|
||||||
id: form.value.id || null,
|
id: form.value.id || null,
|
||||||
saveOrCheckflag: '1'
|
saveOrCheckflag: '1'
|
||||||
}
|
}
|
||||||
@@ -386,6 +438,7 @@ const confirmForm = (flag: boolean) => {
|
|||||||
type: props.bussType,
|
type: props.bussType,
|
||||||
userReportId: props.id,
|
userReportId: props.id,
|
||||||
reportUrl: goToNetReport.value,
|
reportUrl: goToNetReport.value,
|
||||||
|
simulationReportUrl: simulationReportUrl.value,
|
||||||
id: form.value.id || null,
|
id: form.value.id || null,
|
||||||
saveOrCheckflag: '2'
|
saveOrCheckflag: '2'
|
||||||
}
|
}
|
||||||
@@ -404,5 +457,6 @@ const confirmForm = (flag: boolean) => {
|
|||||||
loading.value = false
|
loading.value = false
|
||||||
}, 0)
|
}, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
defineExpose({ open })
|
defineExpose({ open })
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -45,7 +45,10 @@
|
|||||||
})?.name
|
})?.name
|
||||||
}}
|
}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="非线性终端类型" v-if="detailData.userType == 0 || detailData.userType == 1">
|
<el-descriptions-item
|
||||||
|
label="非线性终端类型"
|
||||||
|
v-if="detailData.userType == 0 || detailData.userType == 1"
|
||||||
|
>
|
||||||
{{ proviteData.nonlinearDeviceType ? proviteData.nonlinearDeviceType : '-' }}
|
{{ proviteData.nonlinearDeviceType ? proviteData.nonlinearDeviceType : '-' }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="预测评估单位">
|
<el-descriptions-item label="预测评估单位">
|
||||||
@@ -56,7 +59,9 @@
|
|||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item
|
<el-descriptions-item
|
||||||
:label="
|
:label="
|
||||||
detailData.userType == '4' || detailData.userType == '5' ? '非线性设备类型: ' : '非线性负荷类型:'
|
detailData.userType == '4' || detailData.userType == '5'
|
||||||
|
? '非线性设备类型: '
|
||||||
|
: '非线性负荷类型:'
|
||||||
"
|
"
|
||||||
v-if="
|
v-if="
|
||||||
detailData.userType == '2' ||
|
detailData.userType == '2' ||
|
||||||
@@ -136,7 +141,10 @@
|
|||||||
})?.name
|
})?.name
|
||||||
}}
|
}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="预测评估评审单位" v-if="detailData.userType != 0 && detailData.userType != 1">
|
<el-descriptions-item
|
||||||
|
label="预测评估评审单位"
|
||||||
|
v-if="detailData.userType != 0 && detailData.userType != 1"
|
||||||
|
>
|
||||||
{{ proviteData?.evaluationChekDept }}
|
{{ proviteData?.evaluationChekDept }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item
|
<el-descriptions-item
|
||||||
@@ -183,7 +191,7 @@
|
|||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="可研报告11">
|
<el-descriptions-item label="可研报告11">
|
||||||
<span v-if="detailData.userType == 0 || detailData.userType == 1">
|
<span v-if="detailData.userType == 0 || detailData.userType == 1">
|
||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport.name ">
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport.name">
|
||||||
<View @click="openFile(proviteData.feasibilityReport.key)" />
|
<View @click="openFile(proviteData.feasibilityReport.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
||||||
@@ -198,7 +206,7 @@
|
|||||||
detailData.userType == 5
|
detailData.userType == 5
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport.name ">
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport.name">
|
||||||
<View @click="openFile(proviteData.feasibilityReport.key)" />
|
<View @click="openFile(proviteData.feasibilityReport.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
||||||
@@ -206,7 +214,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<span v-if="detailData.userType == 6">
|
<span v-if="detailData.userType == 6">
|
||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport.name ">
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport.name">
|
||||||
<View @click="openFile(proviteData.feasibilityReport.key)" />
|
<View @click="openFile(proviteData.feasibilityReport.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
||||||
@@ -215,7 +223,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="项目初步设计说明书">
|
<el-descriptions-item label="项目初步设计说明书">
|
||||||
<el-icon class="elView" v-if="proviteData?.preliminaryDesignDescription.name ">
|
<el-icon class="elView" v-if="proviteData?.preliminaryDesignDescription.name">
|
||||||
<View @click="openFile(proviteData?.preliminaryDesignDescription.key)" />
|
<View @click="openFile(proviteData?.preliminaryDesignDescription.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.preliminaryDesignDescription.keyName)">
|
<span class="aLoad" @click="download(proviteData.preliminaryDesignDescription.keyName)">
|
||||||
@@ -223,7 +231,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="预测评估报告">
|
<el-descriptions-item label="预测评估报告">
|
||||||
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReport.name ">
|
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReport.name">
|
||||||
<View @click="openFile(proviteData?.predictionEvaluationReport.key)" />
|
<View @click="openFile(proviteData?.predictionEvaluationReport.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.predictionEvaluationReport.keyName)">
|
<span class="aLoad" @click="download(proviteData.predictionEvaluationReport.keyName)">
|
||||||
@@ -231,7 +239,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="预测评估评审意见报告">
|
<el-descriptions-item label="预测评估评审意见报告">
|
||||||
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReviewOpinions.name ">
|
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReviewOpinions.name">
|
||||||
<View @click="openFile(proviteData?.predictionEvaluationReviewOpinions.key)" />
|
<View @click="openFile(proviteData?.predictionEvaluationReviewOpinions.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.predictionEvaluationReviewOpinions.keyName)">
|
<span class="aLoad" @click="download(proviteData.predictionEvaluationReviewOpinions.keyName)">
|
||||||
@@ -242,7 +250,7 @@
|
|||||||
label="用户接入变电站主接线示意图"
|
label="用户接入变电站主接线示意图"
|
||||||
v-if="detailData.userType != 0 && detailData.userType != 1"
|
v-if="detailData.userType != 0 && detailData.userType != 1"
|
||||||
>
|
>
|
||||||
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram.name ">
|
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram.name">
|
||||||
<View @click="openFile(proviteData?.substationMainWiringDiagram.key)" />
|
<View @click="openFile(proviteData?.substationMainWiringDiagram.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.substationMainWiringDiagram.keyName)">
|
<span class="aLoad" @click="download(proviteData.substationMainWiringDiagram.keyName)">
|
||||||
@@ -250,7 +258,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="主要敏感终端清单" v-if="detailData.userType == 6">
|
<el-descriptions-item label="主要敏感终端清单" v-if="detailData.userType == 6">
|
||||||
<el-icon class="elView" v-if="proviteData?.sensitiveDevices.name ">
|
<el-icon class="elView" v-if="proviteData?.sensitiveDevices.name">
|
||||||
<View @click="openFile(proviteData?.sensitiveDevices.key)" />
|
<View @click="openFile(proviteData?.sensitiveDevices.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.sensitiveDevices.keyName)">
|
<span class="aLoad" @click="download(proviteData.sensitiveDevices.keyName)">
|
||||||
@@ -258,7 +266,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="抗扰度测试报告" v-if="detailData.userType == 6">
|
<el-descriptions-item label="抗扰度测试报告" v-if="detailData.userType == 6">
|
||||||
<el-icon class="elView" v-if="proviteData?.antiInterferenceReport.name ">
|
<el-icon class="elView" v-if="proviteData?.antiInterferenceReport.name">
|
||||||
<View @click="openFile(proviteData?.antiInterferenceReport.key)" />
|
<View @click="openFile(proviteData?.antiInterferenceReport.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.antiInterferenceReport.keyName)">
|
<span class="aLoad" @click="download(proviteData.antiInterferenceReport.keyName)">
|
||||||
@@ -266,7 +274,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="背景电能质量测试报告" v-if="detailData.userType == 6">
|
<el-descriptions-item label="背景电能质量测试报告" v-if="detailData.userType == 6">
|
||||||
<el-icon class="elView" v-if="proviteData?.powerQualityReport.name ">
|
<el-icon class="elView" v-if="proviteData?.powerQualityReport.name">
|
||||||
<View @click="openFile(proviteData?.powerQualityReport.key)" />
|
<View @click="openFile(proviteData?.powerQualityReport.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.powerQualityReport.keyName)">
|
<span class="aLoad" @click="download(proviteData.powerQualityReport.keyName)">
|
||||||
@@ -275,7 +283,7 @@
|
|||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="系统接入方案" v-if="applyTitle == '干扰源用户治理工程验收'">
|
<el-descriptions-item label="系统接入方案" v-if="applyTitle == '干扰源用户治理工程验收'">
|
||||||
<div v-for="item in netInReportList">
|
<div v-for="item in netInReportList">
|
||||||
<el-icon class="elView" v-if="item.name ">
|
<el-icon class="elView" v-if="item.name">
|
||||||
<View @click="openFile(item.key)" />
|
<View @click="openFile(item.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(item.keyName)">
|
<span class="aLoad" @click="download(item.keyName)">
|
||||||
@@ -285,7 +293,7 @@
|
|||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
|
||||||
<el-descriptions-item label="其他附件" v-if="proviteData?.additionalAttachments.url">
|
<el-descriptions-item label="其他附件" v-if="proviteData?.additionalAttachments.url">
|
||||||
<el-icon class="elView" v-if="proviteData?.additionalAttachments.name ">
|
<el-icon class="elView" v-if="proviteData?.additionalAttachments.name">
|
||||||
<View @click="openFile(proviteData?.additionalAttachments.key)" />
|
<View @click="openFile(proviteData?.additionalAttachments.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.additionalAttachments.keyName)">
|
<span class="aLoad" @click="download(proviteData.additionalAttachments.keyName)">
|
||||||
@@ -315,6 +323,16 @@
|
|||||||
{{ proviteData?.otherReport.name }}
|
{{ proviteData?.otherReport.name }}
|
||||||
</span>
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="治理方案仿真校验评估报告" v-if="applyTitle == '干扰源用户治理工程验收'">
|
||||||
|
|
||||||
|
<el-icon class="elView" v-if="detailData?.simulationReport">
|
||||||
|
<View @click="openFile(detailData?.simulationReport)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(detailData?.simulationReport)">
|
||||||
|
{{ detailData?.simulationReport?.split('/')[2] }}
|
||||||
|
</span>
|
||||||
|
|
||||||
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -329,7 +347,7 @@ import { getDictTreeById } from '@/api/system-boot/dictTree'
|
|||||||
import { useDictData } from '@/stores/dictData'
|
import { useDictData } from '@/stores/dictData'
|
||||||
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
||||||
import { Key, Link, View } from '@element-plus/icons-vue'
|
import { Key, Link, View } from '@element-plus/icons-vue'
|
||||||
import { userReportGoNetById } from '@/api/supervision-boot/interfere'
|
import { userReportGoNetById, getFileById } from '@/api/supervision-boot/interfere'
|
||||||
import { download } from '@/utils/fileDownLoad'
|
import { download } from '@/utils/fileDownLoad'
|
||||||
// import el-descriptions-item from './components/detailsItem.vue'
|
// import el-descriptions-item from './components/detailsItem.vue'
|
||||||
defineOptions({ name: 'BpmUserReportDetail' })
|
defineOptions({ name: 'BpmUserReportDetail' })
|
||||||
@@ -344,6 +362,7 @@ const props = defineProps({
|
|||||||
applyTitle: propTypes.string.def(undefined)
|
applyTitle: propTypes.string.def(undefined)
|
||||||
})
|
})
|
||||||
const netInReportList: any = ref([])
|
const netInReportList: any = ref([])
|
||||||
|
const governanceList: any = ref([])
|
||||||
const detailLoading = ref(false) // 表单的加载中
|
const detailLoading = ref(false) // 表单的加载中
|
||||||
const detailData = ref<any>({}) // 详情数据
|
const detailData = ref<any>({}) // 详情数据
|
||||||
const queryId = query.id as unknown as string // 从 URL 传递过来的 id 编号
|
const queryId = query.id as unknown as string // 从 URL 传递过来的 id 编号
|
||||||
@@ -413,8 +432,10 @@ const getInfo = async () => {
|
|||||||
try {
|
try {
|
||||||
userReportGoNetById({ id: props.id }).then(r => {
|
userReportGoNetById({ id: props.id }).then(r => {
|
||||||
getUserReportById(r.data.userReportId).then(res => {
|
getUserReportById(r.data.userReportId).then(res => {
|
||||||
|
console.log("🚀 ~ getInfo ~ res:", res)
|
||||||
detailData.value = res.data
|
detailData.value = res.data
|
||||||
detailData.value.otherReport = r.data.otherReport
|
detailData.value.otherReport = r.data.otherReport
|
||||||
|
detailData.value.simulationReport = r.data.simulationReport
|
||||||
getProviteData()
|
getProviteData()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
<el-button style="margin-left: 50px" :icon="Back" @click="go(-1)">返回</el-button>
|
<el-button style="margin-left: 50px" :icon="Back" @click="go(-1)">返回</el-button>
|
||||||
</div>
|
</div>
|
||||||
<Table ref="tableRef"/>
|
<Table ref="tableRef" />
|
||||||
|
|
||||||
<addForm
|
<addForm
|
||||||
v-if="dialogVisible"
|
v-if="dialogVisible"
|
||||||
@@ -55,20 +55,20 @@ defineOptions({
|
|||||||
name: 'ProgramReview'
|
name: 'ProgramReview'
|
||||||
})
|
})
|
||||||
|
|
||||||
import {ref, onMounted, provide, nextTick, onUnmounted} from 'vue'
|
import { ref, onMounted, provide, nextTick, onUnmounted } from 'vue'
|
||||||
import TableStore from '@/utils/tableStore'
|
import TableStore from '@/utils/tableStore'
|
||||||
import Table from '@/components/table/index.vue'
|
import Table from '@/components/table/index.vue'
|
||||||
import {cancel, userReportGoNetById} from '@/api/supervision-boot/interfere/index'
|
import { cancel, userReportGoNetById } from '@/api/supervision-boot/interfere/index'
|
||||||
import {useDictData} from '@/stores/dictData'
|
import { useDictData } from '@/stores/dictData'
|
||||||
import addForm from './addForm.vue'
|
import addForm from './addForm.vue'
|
||||||
import {useRouter, useRoute} from 'vue-router'
|
import { useRouter, useRoute } from 'vue-router'
|
||||||
import {Back} from '@element-plus/icons-vue'
|
import { Back } from '@element-plus/icons-vue'
|
||||||
import {useAdminInfo} from '@/stores/adminInfo'
|
import { useAdminInfo } from '@/stores/adminInfo'
|
||||||
|
|
||||||
const {go, currentRoute, push} = useRouter()
|
const { go, currentRoute, push } = useRouter()
|
||||||
const {query} = useRoute() // 查询参数
|
const { query } = useRoute() // 查询参数
|
||||||
import {ElMessage} from 'element-plus'
|
import { ElMessage } from 'element-plus'
|
||||||
import {ElMessageBox} from 'element-plus/es'
|
import { ElMessageBox } from 'element-plus/es'
|
||||||
|
|
||||||
const needGovernance = query.needGovernance as unknown as string // 从 URL 传递过来的 是否需要治理
|
const needGovernance = query.needGovernance as unknown as string // 从 URL 传递过来的 是否需要治理
|
||||||
const dictData = useDictData()
|
const dictData = useDictData()
|
||||||
@@ -93,10 +93,14 @@ const tableStore = new TableStore({
|
|||||||
|
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
column: [
|
column: [
|
||||||
{title: '序号', width: 80,formatter: (row: any) => {
|
{
|
||||||
|
title: '序号',
|
||||||
|
width: 80,
|
||||||
|
formatter: (row: any) => {
|
||||||
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
|
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
|
||||||
}},
|
}
|
||||||
{field: 'projectName', title: '用户名称', minWidth: 170},
|
},
|
||||||
|
{ field: 'projectName', title: '用户名称', minWidth: 170 },
|
||||||
{
|
{
|
||||||
field: 'userType',
|
field: 'userType',
|
||||||
title: '用户性质',
|
title: '用户性质',
|
||||||
@@ -106,8 +110,8 @@ const tableStore = new TableStore({
|
|||||||
return getUserTypeName(userType)
|
return getUserTypeName(userType)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{field: 'city', title: '所在地市', minWidth: 80},
|
{ field: 'city', title: '所在地市', minWidth: 80 },
|
||||||
{field: 'responsibleDepartment', title: '归口管理部门', minWidth: 130},
|
{ field: 'responsibleDepartment', title: '归口管理部门', minWidth: 130 },
|
||||||
{
|
{
|
||||||
field: 'userStatus',
|
field: 'userStatus',
|
||||||
title: '用户状态',
|
title: '用户状态',
|
||||||
@@ -126,7 +130,7 @@ const tableStore = new TableStore({
|
|||||||
3: '退运'
|
3: '退运'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{field: 'substation', title: '厂站名称', minWidth: 100},
|
{ field: 'substation', title: '厂站名称', minWidth: 100 },
|
||||||
{
|
{
|
||||||
field: 'status',
|
field: 'status',
|
||||||
title: '流程状态',
|
title: '流程状态',
|
||||||
@@ -155,7 +159,7 @@ const tableStore = new TableStore({
|
|||||||
return dictData.state.userList.filter(item => item.id == row.cellValue)[0]?.name
|
return dictData.state.userList.filter(item => item.id == row.cellValue)[0]?.name
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{field: 'createTime', title: '创建时间', minWidth: 100},
|
{ field: 'createTime', title: '创建时间', minWidth: 100 },
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
minWidth: 180,
|
minWidth: 180,
|
||||||
@@ -172,7 +176,7 @@ const tableStore = new TableStore({
|
|||||||
return !row.processInstanceId
|
return !row.processInstanceId
|
||||||
},
|
},
|
||||||
click: row => {
|
click: row => {
|
||||||
handleAudit(row.processInstanceId)
|
handleAudit(row.processInstanceId, row.id)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -263,7 +267,7 @@ onMounted(async () => {
|
|||||||
document.addEventListener('visibilitychange', handleVisibilityChange)
|
document.addEventListener('visibilitychange', handleVisibilityChange)
|
||||||
if (query.fangAnId) {
|
if (query.fangAnId) {
|
||||||
//根据id查询待编辑的数据
|
//根据id查询待编辑的数据
|
||||||
await userReportGoNetById({id: query.fangAnId}).then(res => {
|
await userReportGoNetById({ id: query.fangAnId }).then(res => {
|
||||||
if (res && res.code == 'A0000') {
|
if (res && res.code == 'A0000') {
|
||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
titleButton1.value = '重新发起'
|
titleButton1.value = '重新发起'
|
||||||
@@ -273,9 +277,7 @@ onMounted(async () => {
|
|||||||
}, 0)
|
}, 0)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
document.removeEventListener('visibilitychange', handleVisibilityChange)
|
document.removeEventListener('visibilitychange', handleVisibilityChange)
|
||||||
@@ -283,7 +285,7 @@ onUnmounted(() => {
|
|||||||
/**取消流程操作*/
|
/**取消流程操作*/
|
||||||
const cancelLeave = async (row: any) => {
|
const cancelLeave = async (row: any) => {
|
||||||
// 二次确认
|
// 二次确认
|
||||||
const {value} = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
|
const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
inputType: 'textarea',
|
inputType: 'textarea',
|
||||||
@@ -302,11 +304,12 @@ const cancelLeave = async (row: any) => {
|
|||||||
tableStore.index()
|
tableStore.index()
|
||||||
}
|
}
|
||||||
/** 处理审批按钮 */
|
/** 处理审批按钮 */
|
||||||
const handleAudit = (instanceId: any) => {
|
const handleAudit = (instanceId: any, keyID: any) => {
|
||||||
push({
|
push({
|
||||||
name: 'BpmProcessInstanceDetail',
|
name: 'BpmProcessInstanceDetail',
|
||||||
query: {
|
query: {
|
||||||
id: instanceId
|
id: instanceId,
|
||||||
|
keyID: keyID
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,10 @@
|
|||||||
})?.name
|
})?.name
|
||||||
}}
|
}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="非线性终端类型" v-if="detailData.userType == 0 || detailData.userType == 1">
|
<el-descriptions-item
|
||||||
|
label="非线性终端类型"
|
||||||
|
v-if="detailData.userType == 0 || detailData.userType == 1"
|
||||||
|
>
|
||||||
{{ proviteData.nonlinearDeviceType ? proviteData.nonlinearDeviceType : '-' }}
|
{{ proviteData.nonlinearDeviceType ? proviteData.nonlinearDeviceType : '-' }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="预测评估单位">
|
<el-descriptions-item label="预测评估单位">
|
||||||
@@ -62,7 +65,9 @@
|
|||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item
|
<el-descriptions-item
|
||||||
:label="
|
:label="
|
||||||
detailData.userType == '4' || detailData.userType == '5' ? '非线性设备类型: ' : '非线性负荷类型:'
|
detailData.userType == '4' || detailData.userType == '5'
|
||||||
|
? '非线性设备类型: '
|
||||||
|
: '非线性负荷类型:'
|
||||||
"
|
"
|
||||||
v-if="
|
v-if="
|
||||||
detailData.userType == '2' ||
|
detailData.userType == '2' ||
|
||||||
@@ -185,7 +190,10 @@
|
|||||||
})?.name
|
})?.name
|
||||||
}}
|
}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="预测评估评审单位" v-if="detailData.userType != 0 && detailData.userType != 1">
|
<el-descriptions-item
|
||||||
|
label="预测评估评审单位"
|
||||||
|
v-if="detailData.userType != 0 && detailData.userType != 1"
|
||||||
|
>
|
||||||
{{ proviteData?.evaluationChekDept }}
|
{{ proviteData?.evaluationChekDept }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="行业" v-if="detailData.userType == 6">
|
<el-descriptions-item label="行业" v-if="detailData.userType == 6">
|
||||||
@@ -239,12 +247,12 @@
|
|||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="可研报告">
|
<el-descriptions-item label="可研报告">
|
||||||
<span v-if="detailData.userType == 0 || detailData.userType == 1">
|
<span v-if="detailData.userType == 0 || detailData.userType == 1">
|
||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name ">
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
||||||
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)" rel="nofollow">
|
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)" rel="nofollow">
|
||||||
{{ proviteData?.feasibilityReport?.name }}
|
{{ proviteData?.feasibilityReport?.name }}
|
||||||
</span >
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
v-if="
|
v-if="
|
||||||
@@ -254,30 +262,30 @@
|
|||||||
detailData.userType == 5
|
detailData.userType == 5
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name ">
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
||||||
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
||||||
{{ proviteData?.feasibilityReport?.name }}
|
{{ proviteData?.feasibilityReport?.name }}
|
||||||
</span >
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<span v-if="detailData.userType == 6">
|
<span v-if="detailData.userType == 6">
|
||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name ">
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
||||||
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
||||||
{{ proviteData?.feasibilityReport?.name }}
|
{{ proviteData?.feasibilityReport?.name }}
|
||||||
</span >
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="项目初步设计说明书">
|
<el-descriptions-item label="项目初步设计说明书">
|
||||||
<el-icon class="elView" v-if="proviteData?.preliminaryDesignDescription?.name ">
|
<el-icon class="elView" v-if="proviteData?.preliminaryDesignDescription?.name">
|
||||||
<View @click="openFile(proviteData?.preliminaryDesignDescription?.name)" />
|
<View @click="openFile(proviteData?.preliminaryDesignDescription?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
|
|
||||||
<span class="aLoad" @click="download(proviteData.preliminaryDesignDescription.keyName)">
|
<span class="aLoad" @click="download(proviteData.preliminaryDesignDescription.keyName)">
|
||||||
{{ proviteData?.preliminaryDesignDescription?.name }}
|
{{ proviteData?.preliminaryDesignDescription?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="预测评估报告">
|
<el-descriptions-item label="预测评估报告">
|
||||||
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReport?.name">
|
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReport?.name">
|
||||||
@@ -285,7 +293,7 @@
|
|||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.predictionEvaluationReport.keyName)">
|
<span class="aLoad" @click="download(proviteData.predictionEvaluationReport.keyName)">
|
||||||
{{ proviteData?.predictionEvaluationReport?.name }}
|
{{ proviteData?.predictionEvaluationReport?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="预测评估评审意见报告">
|
<el-descriptions-item label="预测评估评审意见报告">
|
||||||
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReviewOpinions?.name">
|
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReviewOpinions?.name">
|
||||||
@@ -293,163 +301,173 @@
|
|||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.predictionEvaluationReviewOpinions.keyName)">
|
<span class="aLoad" @click="download(proviteData.predictionEvaluationReviewOpinions.keyName)">
|
||||||
{{ proviteData?.predictionEvaluationReviewOpinions?.name }}
|
{{ proviteData?.predictionEvaluationReviewOpinions?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
|
||||||
|
|
||||||
<el-descriptions-item
|
<el-descriptions-item
|
||||||
label="用户接入变电站主接线示意图"
|
label="用户接入变电站主接线示意图"
|
||||||
v-if="detailData.userType != 0 && detailData.userType != 1"
|
v-if="detailData.userType != 0 && detailData.userType != 1"
|
||||||
>
|
>
|
||||||
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram?.name ">
|
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram?.name">
|
||||||
<View @click="openFile(proviteData?.substationMainWiringDiagram?.name)" />
|
<View @click="openFile(proviteData?.substationMainWiringDiagram?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.substationMainWiringDiagram.keyName)">
|
<span class="aLoad" @click="download(proviteData.substationMainWiringDiagram.keyName)">
|
||||||
{{ proviteData?.substationMainWiringDiagram?.name }}
|
{{ proviteData?.substationMainWiringDiagram?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="主要敏感终端清单" v-if="detailData.userType == 6 ">
|
<el-descriptions-item label="主要敏感终端清单" v-if="detailData.userType == 6">
|
||||||
<el-icon class="elView" v-if="proviteData?.sensitiveDevices?.name">
|
<el-icon class="elView" v-if="proviteData?.sensitiveDevices?.name">
|
||||||
<View @click="openFile(proviteData?.sensitiveDevices?.name)" />
|
<View @click="openFile(proviteData?.sensitiveDevices?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.sensitiveDevices.keyName)">
|
<span class="aLoad" @click="download(proviteData.sensitiveDevices.keyName)">
|
||||||
{{ proviteData?.sensitiveDevices?.name }}
|
{{ proviteData?.sensitiveDevices?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="抗扰度测试报告" v-if="detailData.userType == 6">
|
<el-descriptions-item label="抗扰度测试报告" v-if="detailData.userType == 6">
|
||||||
<el-icon class="elView" v-if="proviteData?.antiInterferenceReport?.name ">
|
<el-icon class="elView" v-if="proviteData?.antiInterferenceReport?.name">
|
||||||
<View @click="openFile(proviteData?.antiInterferenceReport?.name)" />
|
<View @click="openFile(proviteData?.antiInterferenceReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.antiInterferenceReport.keyName)">
|
<span class="aLoad" @click="download(proviteData.antiInterferenceReport.keyName)">
|
||||||
{{ proviteData?.antiInterferenceReport?.name }}
|
{{ proviteData?.antiInterferenceReport?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="背景电能质量测试报告" v-if="detailData.userType == 6">
|
<el-descriptions-item label="背景电能质量测试报告" v-if="detailData.userType == 6">
|
||||||
<el-icon class="elView" v-if="proviteData?.powerQualityReport?.name ">
|
<el-icon class="elView" v-if="proviteData?.powerQualityReport?.name">
|
||||||
<View @click="openFile(proviteData?.powerQualityReport?.name)" />
|
<View @click="openFile(proviteData?.powerQualityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.powerQualityReport.keyName)">
|
<span class="aLoad" @click="download(proviteData.powerQualityReport.keyName)">
|
||||||
{{ proviteData?.powerQualityReport?.name }}
|
{{ proviteData?.powerQualityReport?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item
|
<el-descriptions-item
|
||||||
label="其他附件"
|
label="其他附件"
|
||||||
v-if="proviteData?.additionalAttachments && proviteData?.additionalAttachments?.url"
|
v-if="proviteData?.additionalAttachments && proviteData?.additionalAttachments?.url"
|
||||||
>
|
>
|
||||||
<el-icon class="elView" v-if="proviteData?.additionalAttachments?.name ">
|
<el-icon class="elView" v-if="proviteData?.additionalAttachments?.name">
|
||||||
<View @click="openFile(proviteData?.additionalAttachments?.name)" />
|
<View @click="openFile(proviteData?.additionalAttachments?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.additionalAttachments.keyName)" >
|
<span class="aLoad" @click="download(proviteData.additionalAttachments.keyName)">
|
||||||
{{ proviteData?.additionalAttachments?.name }}
|
{{ proviteData?.additionalAttachments?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
|
||||||
<el-descriptions-item label="系统接入方案">
|
<el-descriptions-item label="系统接入方案">
|
||||||
<div v-for="item in netInReportList">
|
<div v-for="item in netInReportList">
|
||||||
<el-icon class="elView" v-if="item.name ">
|
<el-icon class="elView" v-if="item.name">
|
||||||
<View @click="openFile(item.name)" />
|
<View @click="openFile(item.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(item.keyName)">
|
<span class="aLoad" @click="download(item.keyName)">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</span >
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="治理验收报告">
|
<el-descriptions-item label="治理验收报告">
|
||||||
<div v-for="item in governReportList">
|
<div v-for="item in governReportList">
|
||||||
<el-icon class="elView" v-if="item.name ">
|
<el-icon class="elView" v-if="item.name">
|
||||||
<View @click="openFile(item.name)" />
|
|
||||||
</el-icon>
|
|
||||||
<span class="aLoad" @click="download(item.keyName)" >
|
|
||||||
{{ item.name }}
|
|
||||||
</span >
|
|
||||||
</div>
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="信息安全检测报告" v-if="props.openType == 'sourcesOfInterference'">
|
|
||||||
<el-icon class="elView" v-if="form.informationSecurityTestReport[0]?.name ">
|
|
||||||
<View @click="openFile(form.informationSecurityTestReport[0]?.name)" />
|
|
||||||
</el-icon>
|
|
||||||
<span class="aLoad" @click="download(proviteData.predictionEvaluationReviewOpinions.keyName)" >
|
|
||||||
{{ form.informationSecurityTestReport[0]?.name }}
|
|
||||||
</span >
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="入网设计方案审查报告" v-if="props.openType == 'sourcesOfInterference'">
|
|
||||||
<div v-for="item in form.NetReport">
|
|
||||||
<el-icon class="elView" v-if="item.name ">
|
|
||||||
<View @click="openFile(item.name)" />
|
|
||||||
</el-icon>
|
|
||||||
<span class="aLoad" @click="download(item.keyName)" >
|
|
||||||
{{ item.name }}
|
|
||||||
</span >
|
|
||||||
</div>
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="治理工程验收报告" v-if="props.openType == 'sourcesOfInterference'">
|
|
||||||
<div v-for="item in form.governReport">
|
|
||||||
<el-icon class="elView" v-if="item.name ">
|
|
||||||
<View @click="openFile(item.name)" />
|
<View @click="openFile(item.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(item.keyName)">
|
<span class="aLoad" @click="download(item.keyName)">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</span >
|
</span>
|
||||||
|
</div>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="治理方案仿真校验评估报告">
|
||||||
|
<div v-for="item in simulationReportList">
|
||||||
|
<el-icon class="elView" v-if="item.name">
|
||||||
|
<View @click="openFile(item.name)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(item.keyName)">
|
||||||
|
{{ item.name }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</el-descriptions-item>
|
||||||
|
|
||||||
|
<el-descriptions-item label="信息安全检测报告" v-if="props.openType == 'sourcesOfInterference'">
|
||||||
|
<el-icon class="elView" v-if="form.informationSecurityTestReport[0]?.name">
|
||||||
|
<View @click="openFile(form.informationSecurityTestReport[0]?.name)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(proviteData.predictionEvaluationReviewOpinions.keyName)">
|
||||||
|
{{ form.informationSecurityTestReport[0]?.name }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="入网设计方案审查报告" v-if="props.openType == 'sourcesOfInterference'">
|
||||||
|
<div v-for="item in form.NetReport">
|
||||||
|
<el-icon class="elView" v-if="item.name">
|
||||||
|
<View @click="openFile(item.name)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(item.keyName)">
|
||||||
|
{{ item.name }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="治理工程验收报告" v-if="props.openType == 'sourcesOfInterference'">
|
||||||
|
<div v-for="item in form.governReport">
|
||||||
|
<el-icon class="elView" v-if="item.name">
|
||||||
|
<View @click="openFile(item.name)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(item.keyName)">
|
||||||
|
{{ item.name }}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
|
||||||
<el-descriptions-item label="验收检验报告单" v-if="props.openType == 'sourcesOfInterference'">
|
<el-descriptions-item label="验收检验报告单" v-if="props.openType == 'sourcesOfInterference'">
|
||||||
<el-icon class="elView" v-if="form.acceptanceInspectionReportSingle[0]?.name ">
|
<el-icon class="elView" v-if="form.acceptanceInspectionReportSingle[0]?.name">
|
||||||
<View @click="openFile(form.acceptanceInspectionReportSingle[0]?.name)" />
|
<View @click="openFile(form.acceptanceInspectionReportSingle[0]?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(form.acceptanceInspectionReportSingle[0]?.keyName)">
|
<span class="aLoad" @click="download(form.acceptanceInspectionReportSingle[0]?.keyName)">
|
||||||
{{ form.acceptanceInspectionReportSingle[0]?.name }}
|
{{ form.acceptanceInspectionReportSingle[0]?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
|
||||||
<el-descriptions-item label="验收检验报告" v-if="props.openType == 'sourcesOfInterference'">
|
<el-descriptions-item label="验收检验报告" v-if="props.openType == 'sourcesOfInterference'">
|
||||||
<el-icon class="elView" v-if="form.acceptanceInspectionReport[0]?.name ">
|
<el-icon class="elView" v-if="form.acceptanceInspectionReport[0]?.name">
|
||||||
<View @click="openFile(form.acceptanceInspectionReport[0]?.name)" />
|
<View @click="openFile(form.acceptanceInspectionReport[0]?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(form.acceptanceInspectionReport[0]?.keyName )">
|
<span class="aLoad" @click="download(form.acceptanceInspectionReport[0]?.keyName)">
|
||||||
{{ form.acceptanceInspectionReport[0]?.name }}
|
{{ form.acceptanceInspectionReport[0]?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="型式实验报告" v-if="props.openType == 'sourcesOfInterference'">
|
<el-descriptions-item label="型式实验报告" v-if="props.openType == 'sourcesOfInterference'">
|
||||||
<el-icon class="elView" v-if="form.typeExperimentReport[0]?.name ">
|
<el-icon class="elView" v-if="form.typeExperimentReport[0]?.name">
|
||||||
<View @click="openFile(form.typeExperimentReport[0]?.name)" />
|
<View @click="openFile(form.typeExperimentReport[0]?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(form.typeExperimentReport[0]?.keyName)">
|
<span class="aLoad" @click="download(form.typeExperimentReport[0]?.keyName)">
|
||||||
{{ form.typeExperimentReport[0]?.name }}
|
{{ form.typeExperimentReport[0]?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
|
||||||
<el-descriptions-item label="出厂检验报告" v-if="props.openType == 'sourcesOfInterference'">
|
<el-descriptions-item label="出厂检验报告" v-if="props.openType == 'sourcesOfInterference'">
|
||||||
<el-icon class="elView" v-if="form.factoryInspectionReport[0]?.name ">
|
<el-icon class="elView" v-if="form.factoryInspectionReport[0]?.name">
|
||||||
<View @click="openFile(form.factoryInspectionReport[0]?.name)" />
|
<View @click="openFile(form.factoryInspectionReport[0]?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(form.factoryInspectionReport[0]?.keyName)">
|
<span class="aLoad" @click="download(form.factoryInspectionReport[0]?.keyName)">
|
||||||
{{ form.factoryInspectionReport[0]?.name }}
|
{{ form.factoryInspectionReport[0]?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="性能检测报告" v-if="props.openType == 'sourcesOfInterference'">
|
<el-descriptions-item label="性能检测报告" v-if="props.openType == 'sourcesOfInterference'">
|
||||||
<el-icon class="elView" v-if="form.performanceTestReport[0]?.name ">
|
<el-icon class="elView" v-if="form.performanceTestReport[0]?.name">
|
||||||
<View @click="openFile(form.performanceTestReport[0]?.name)" />
|
<View @click="openFile(form.performanceTestReport[0]?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(form.performanceTestReport[0]?.keyName)">
|
<span class="aLoad" @click="download(form.performanceTestReport[0]?.keyName)">
|
||||||
{{ form.performanceTestReport[0]?.name }}
|
{{ form.performanceTestReport[0]?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="主接线图" v-if="props.openType == 'sourcesOfInterference'">
|
<el-descriptions-item label="主接线图" v-if="props.openType == 'sourcesOfInterference'">
|
||||||
<el-icon class="elView" v-if="form.mainWiringDiagram[0]?.name ">
|
<el-icon class="elView" v-if="form.mainWiringDiagram[0]?.name">
|
||||||
<View @click="openFile(form.mainWiringDiagram[0]?.name)" />
|
<View @click="openFile(form.mainWiringDiagram[0]?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(form.mainWiringDiagram[0]?.keyName)">
|
<span class="aLoad" @click="download(form.mainWiringDiagram[0]?.keyName)">
|
||||||
{{ form.mainWiringDiagram[0]?.name }}
|
{{ form.mainWiringDiagram[0]?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="试运行报告" v-if="props.openType == 'sourcesOfInterference'">
|
<el-descriptions-item label="试运行报告" v-if="props.openType == 'sourcesOfInterference'">
|
||||||
<el-icon class="elView" v-if="form.runTheReport[0]?.name " >
|
<el-icon class="elView" v-if="form.runTheReport[0]?.name">
|
||||||
<View @click="openFile(form.runTheReport[0]?.name)" />
|
<View @click="openFile(form.runTheReport[0]?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(form.runTheReport[0]?.keyName)">
|
<span class="aLoad" @click="download(form.runTheReport[0]?.keyName)">
|
||||||
{{ form.runTheReport[0]?.name }}
|
{{ form.runTheReport[0]?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</div>
|
</div>
|
||||||
@@ -468,7 +486,7 @@ import { Link, View } from '@element-plus/icons-vue'
|
|||||||
import PreviewFile from '@/components/PreviewFile/index.vue'
|
import PreviewFile from '@/components/PreviewFile/index.vue'
|
||||||
import { getByDeptDevLine } from '@/api/supervision-boot/interfere/index'
|
import { getByDeptDevLine } from '@/api/supervision-boot/interfere/index'
|
||||||
import { addOrUpdateFile, getFileById } from '@/api/supervision-boot/interfere/index'
|
import { addOrUpdateFile, getFileById } from '@/api/supervision-boot/interfere/index'
|
||||||
import {download} from '@/utils/fileDownLoad'
|
import { download } from '@/utils/fileDownLoad'
|
||||||
defineOptions({ name: 'BpmUserReportDetail' })
|
defineOptions({ name: 'BpmUserReportDetail' })
|
||||||
|
|
||||||
const { query } = useRoute() // 查询参数
|
const { query } = useRoute() // 查询参数
|
||||||
@@ -489,11 +507,11 @@ const detailData = ref<any>({}) // 详情数据
|
|||||||
const devIdList = ref([])
|
const devIdList = ref([])
|
||||||
const queryId = query.id as unknown as string // 从 URL 传递过来的 id 编号
|
const queryId = query.id as unknown as string // 从 URL 传递过来的 id 编号
|
||||||
const openFile = (name: any) => {
|
const openFile = (name: any) => {
|
||||||
|
|
||||||
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
|
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
|
||||||
}
|
}
|
||||||
const netInReportList: any = ref([])
|
const netInReportList: any = ref([])
|
||||||
const governReportList: any = ref([])
|
const governReportList: any = ref([])
|
||||||
|
const simulationReportList: any = ref([])
|
||||||
//用户性质数组
|
//用户性质数组
|
||||||
const userTypeList = reactive([
|
const userTypeList = reactive([
|
||||||
{
|
{
|
||||||
@@ -590,7 +608,6 @@ const getInfo = async () => {
|
|||||||
detailLoading.value = false
|
detailLoading.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (props.openType == 'sourcesOfInterference') {
|
if (props.openType == 'sourcesOfInterference') {
|
||||||
queryFiles()
|
queryFiles()
|
||||||
}
|
}
|
||||||
@@ -665,7 +682,6 @@ const queryFiles = () => {
|
|||||||
}
|
}
|
||||||
//判断userType选择取用的对象
|
//判断userType选择取用的对象
|
||||||
const getProviteData = async () => {
|
const getProviteData = async () => {
|
||||||
|
|
||||||
if (detailData.value.userType == '0' || detailData.value.userType == '1') {
|
if (detailData.value.userType == '0' || detailData.value.userType == '1') {
|
||||||
proviteData.value = detailData.value.userReportProjectPO
|
proviteData.value = detailData.value.userReportProjectPO
|
||||||
//查询非线性终端类型
|
//查询非线性终端类型
|
||||||
@@ -724,8 +740,6 @@ const getProviteData = async () => {
|
|||||||
proviteData.value.predictionEvaluationReviewOpinions,
|
proviteData.value.predictionEvaluationReviewOpinions,
|
||||||
'predictionEvaluationReviewOpinions'
|
'predictionEvaluationReviewOpinions'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
//用户接入变电站主接线示意图
|
//用户接入变电站主接线示意图
|
||||||
if (
|
if (
|
||||||
@@ -768,6 +782,7 @@ const getProviteData = async () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 治理评估告"
|
// 治理评估告"
|
||||||
|
|
||||||
if (detailData.value.governReport.length > 0) {
|
if (detailData.value.governReport.length > 0) {
|
||||||
governReportList.value = []
|
governReportList.value = []
|
||||||
detailData.value.governReport.forEach((item: any) => {
|
detailData.value.governReport.forEach((item: any) => {
|
||||||
@@ -776,6 +791,14 @@ const getProviteData = async () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
if (detailData.value.simulationReport.length > 0) {
|
||||||
|
simulationReportList.value = []
|
||||||
|
detailData.value.simulationReport.forEach((item: any) => {
|
||||||
|
if (item != null) {
|
||||||
|
getFileNamePath(item, 'simulationReport')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 调用关联终端接口
|
// 调用关联终端接口
|
||||||
getByDeptDevLine({ id: detailData.value.orgId }).then(res => {
|
getByDeptDevLine({ id: detailData.value.orgId }).then(res => {
|
||||||
@@ -793,7 +816,6 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
keyName: res.data.name,
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
//项目初步设计说明书
|
//项目初步设计说明书
|
||||||
else if (pathName == 'preliminaryDesignDescription' && proviteData.value.preliminaryDesignDescription) {
|
else if (pathName == 'preliminaryDesignDescription' && proviteData.value.preliminaryDesignDescription) {
|
||||||
@@ -821,7 +843,6 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
keyName: val,
|
keyName: val,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
//用户接入变电站主接线示意图
|
//用户接入变电站主接线示意图
|
||||||
else if (pathName == 'substationMainWiringDiagram' && proviteData.value.substationMainWiringDiagram) {
|
else if (pathName == 'substationMainWiringDiagram' && proviteData.value.substationMainWiringDiagram) {
|
||||||
@@ -876,6 +897,12 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
keyName: res.data.name,
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
})
|
})
|
||||||
|
} else if (pathName == 'simulationReport') {
|
||||||
|
simulationReportList.value.push({
|
||||||
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
|
url: res.data.url
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -50,7 +50,10 @@
|
|||||||
})?.name
|
})?.name
|
||||||
}}
|
}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="非线性终端类型" v-if="detailData.userType == 0 || detailData.userType == 1">
|
<el-descriptions-item
|
||||||
|
label="非线性终端类型"
|
||||||
|
v-if="detailData.userType == 0 || detailData.userType == 1"
|
||||||
|
>
|
||||||
{{ proviteData.nonlinearDeviceType ? proviteData.nonlinearDeviceType : '-' }}
|
{{ proviteData.nonlinearDeviceType ? proviteData.nonlinearDeviceType : '-' }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="预测评估单位">
|
<el-descriptions-item label="预测评估单位">
|
||||||
@@ -61,7 +64,9 @@
|
|||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item
|
<el-descriptions-item
|
||||||
:label="
|
:label="
|
||||||
detailData.userType == '4' || detailData.userType == '5' ? '非线性设备类型: ' : '非线性负荷类型:'
|
detailData.userType == '4' || detailData.userType == '5'
|
||||||
|
? '非线性设备类型: '
|
||||||
|
: '非线性负荷类型:'
|
||||||
"
|
"
|
||||||
v-if="
|
v-if="
|
||||||
detailData.userType == '2' ||
|
detailData.userType == '2' ||
|
||||||
@@ -184,7 +189,10 @@
|
|||||||
})?.name
|
})?.name
|
||||||
}}
|
}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="预测评估评审单位" v-if="detailData.userType != 0 && detailData.userType != 1">
|
<el-descriptions-item
|
||||||
|
label="预测评估评审单位"
|
||||||
|
v-if="detailData.userType != 0 && detailData.userType != 1"
|
||||||
|
>
|
||||||
{{ proviteData?.evaluationChekDept }}
|
{{ proviteData?.evaluationChekDept }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="行业" v-if="detailData.userType == 6">
|
<el-descriptions-item label="行业" v-if="detailData.userType == 6">
|
||||||
@@ -226,12 +234,12 @@
|
|||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="可研报告">
|
<el-descriptions-item label="可研报告">
|
||||||
<span v-if="detailData.userType == 0 || detailData.userType == 1">
|
<span v-if="detailData.userType == 0 || detailData.userType == 1">
|
||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name ">
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
||||||
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download( proviteData.feasibilityReport?.keyName)" rel="nofollow">
|
<span class="aLoad" @click="download(proviteData.feasibilityReport?.keyName)" rel="nofollow">
|
||||||
{{ proviteData.feasibilityReport?.name }}
|
{{ proviteData.feasibilityReport?.name }}
|
||||||
</span >
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
v-if="
|
v-if="
|
||||||
@@ -241,200 +249,210 @@
|
|||||||
detailData.userType == 5
|
detailData.userType == 5
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name ">
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
||||||
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.feasibilityReport?.keyName)">
|
<span class="aLoad" @click="download(proviteData.feasibilityReport?.keyName)">
|
||||||
{{ proviteData.feasibilityReport?.name }}
|
{{ proviteData.feasibilityReport?.name }}
|
||||||
</span >
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<span v-if="detailData.userType == 6">
|
<span v-if="detailData.userType == 6">
|
||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name ">
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
||||||
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.feasibilityReport?.keyName)">
|
<span class="aLoad" @click="download(proviteData.feasibilityReport?.keyName)">
|
||||||
{{ proviteData.feasibilityReport?.name }}
|
{{ proviteData.feasibilityReport?.name }}
|
||||||
</span >
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="项目初步设计说明书">
|
<el-descriptions-item label="项目初步设计说明书">
|
||||||
<el-icon class="elView" v-if="proviteData?.preliminaryDesignDescription?.name ">
|
<el-icon class="elView" v-if="proviteData?.preliminaryDesignDescription?.name">
|
||||||
<View @click="openFile(proviteData?.preliminaryDesignDescription?.name)" />
|
<View @click="openFile(proviteData?.preliminaryDesignDescription?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
|
|
||||||
<span class="aLoad" @click="download(proviteData?.preliminaryDesignDescription?.keyName)">
|
<span class="aLoad" @click="download(proviteData?.preliminaryDesignDescription?.keyName)">
|
||||||
{{ proviteData?.preliminaryDesignDescription?.name }}
|
{{ proviteData?.preliminaryDesignDescription?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="预测评估报告">
|
<el-descriptions-item label="预测评估报告">
|
||||||
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReport?.name ">
|
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReport?.name">
|
||||||
<View @click="openFile(proviteData?.predictionEvaluationReport?.name)" />
|
<View @click="openFile(proviteData?.predictionEvaluationReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData?.predictionEvaluationReport?.keyName)">
|
<span class="aLoad" @click="download(proviteData?.predictionEvaluationReport?.keyName)">
|
||||||
{{ proviteData?.predictionEvaluationReport?.name }}
|
{{ proviteData?.predictionEvaluationReport?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="预测评估评审意见报告">
|
<el-descriptions-item label="预测评估评审意见报告">
|
||||||
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReviewOpinions?.name ">
|
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReviewOpinions?.name">
|
||||||
<View @click="openFile(proviteData?.predictionEvaluationReviewOpinions?.name)" />
|
<View @click="openFile(proviteData?.predictionEvaluationReviewOpinions?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData?.predictionEvaluationReviewOpinions?.keyName)">
|
<span class="aLoad" @click="download(proviteData?.predictionEvaluationReviewOpinions?.keyName)">
|
||||||
{{ proviteData?.predictionEvaluationReviewOpinions?.name }}
|
{{ proviteData?.predictionEvaluationReviewOpinions?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item
|
<el-descriptions-item
|
||||||
label="用户接入变电站主接线示意图"
|
label="用户接入变电站主接线示意图"
|
||||||
v-if="detailData.userType != 0 && detailData.userType != 1"
|
v-if="detailData.userType != 0 && detailData.userType != 1"
|
||||||
>
|
>
|
||||||
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram?.name ">
|
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram?.name">
|
||||||
<View @click="openFile(proviteData?.substationMainWiringDiagram?.name)" />
|
<View @click="openFile(proviteData?.substationMainWiringDiagram?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData?.substationMainWiringDiagram?.keyName)">
|
<span class="aLoad" @click="download(proviteData?.substationMainWiringDiagram?.keyName)">
|
||||||
{{ proviteData?.substationMainWiringDiagram?.name }}
|
{{ proviteData?.substationMainWiringDiagram?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="主要敏感终端清单" v-if="detailData.userType == 6">
|
<el-descriptions-item label="主要敏感终端清单" v-if="detailData.userType == 6">
|
||||||
<el-icon class="elView" v-if="proviteData?.sensitiveDevices?.name ">
|
<el-icon class="elView" v-if="proviteData?.sensitiveDevices?.name">
|
||||||
<View @click="openFile(proviteData?.sensitiveDevices?.name)" />
|
<View @click="openFile(proviteData?.sensitiveDevices?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData?.sensitiveDevices?.keyName)">
|
<span class="aLoad" @click="download(proviteData?.sensitiveDevices?.keyName)">
|
||||||
{{ proviteData?.sensitiveDevices?.name }}
|
{{ proviteData?.sensitiveDevices?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="抗扰度测试报告" v-if="detailData.userType == 6">
|
<el-descriptions-item label="抗扰度测试报告" v-if="detailData.userType == 6">
|
||||||
<el-icon class="elView" v-if="proviteData?.antiInterferenceReport?.name ">
|
<el-icon class="elView" v-if="proviteData?.antiInterferenceReport?.name">
|
||||||
<View @click="openFile(proviteData?.antiInterferenceReport?.name)" />
|
<View @click="openFile(proviteData?.antiInterferenceReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData?.antiInterferenceReport?.keyName)">
|
<span class="aLoad" @click="download(proviteData?.antiInterferenceReport?.keyName)">
|
||||||
{{ proviteData?.antiInterferenceReport?.name }}
|
{{ proviteData?.antiInterferenceReport?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="背景电能质量测试报告" v-if="detailData.userType == 6">
|
<el-descriptions-item label="背景电能质量测试报告" v-if="detailData.userType == 6">
|
||||||
<el-icon class="elView" v-if="proviteData?.powerQualityReport?.name ">
|
<el-icon class="elView" v-if="proviteData?.powerQualityReport?.name">
|
||||||
<View @click="openFile(proviteData?.powerQualityReport?.name)" />
|
<View @click="openFile(proviteData?.powerQualityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData?.powerQualityReport?.keyName)">
|
<span class="aLoad" @click="download(proviteData?.powerQualityReport?.keyName)">
|
||||||
{{ proviteData?.powerQualityReport?.name }}
|
{{ proviteData?.powerQualityReport?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item
|
<el-descriptions-item
|
||||||
label="其他附件"
|
label="其他附件"
|
||||||
v-if="proviteData?.additionalAttachments && proviteData?.additionalAttachments?.url"
|
v-if="proviteData?.additionalAttachments && proviteData?.additionalAttachments?.url"
|
||||||
>
|
>
|
||||||
<el-icon class="elView" v-if="proviteData?.additionalAttachments?.name ">
|
<el-icon class="elView" v-if="proviteData?.additionalAttachments?.name">
|
||||||
<View @click="openFile(proviteData?.additionalAttachments?.name)" />
|
<View @click="openFile(proviteData?.additionalAttachments?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData?.additionalAttachments?.keyName)">
|
<span class="aLoad" @click="download(proviteData?.additionalAttachments?.keyName)">
|
||||||
{{ proviteData?.additionalAttachments?.name }}
|
{{ proviteData?.additionalAttachments?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
|
||||||
<el-descriptions-item label="入网方案报告">
|
<el-descriptions-item label="入网方案报告">
|
||||||
<div v-for="item in netInReportList">
|
<div v-for="item in netInReportList">
|
||||||
<el-icon class="elView" v-if="item.name ">
|
<el-icon class="elView" v-if="item.name">
|
||||||
<View @click="openFile(item.name)" />
|
<View @click="openFile(item.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(item.keyName)">
|
<span class="aLoad" @click="download(item.keyName)">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</span >
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="治理验收报告">
|
<el-descriptions-item label="治理验收报告">
|
||||||
<div v-for="item in governReportList">
|
<div v-for="item in governReportList">
|
||||||
<el-icon class="elView" v-if="item.name ">
|
<el-icon class="elView" v-if="item.name">
|
||||||
<View @click="openFile(item.name)" />
|
<View @click="openFile(item.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(item.keyName)">
|
<span class="aLoad" @click="download(item.keyName)">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</span >
|
</span>
|
||||||
|
</div>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="治理方案仿真校验评估报告">
|
||||||
|
<div v-for="item in simulationReportList">
|
||||||
|
<el-icon class="elView" v-if="item.name">
|
||||||
|
<View @click="openFile(item.name)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(item.keyName)">
|
||||||
|
{{ item.name }}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="信息安全检测报告">
|
<el-descriptions-item label="信息安全检测报告">
|
||||||
<el-icon class="elView" v-if="form.informationSecurityTestReport[0]?.name ">
|
<el-icon class="elView" v-if="form.informationSecurityTestReport[0]?.name">
|
||||||
<View @click="openFile(form.informationSecurityTestReport[0]?.name)" />
|
<View @click="openFile(form.informationSecurityTestReport[0]?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(form.informationSecurityTestReport[0]?.keyName)">
|
<span class="aLoad" @click="download(form.informationSecurityTestReport[0]?.keyName)">
|
||||||
{{ form.informationSecurityTestReport[0]?.name }}
|
{{ form.informationSecurityTestReport[0]?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="入网设计方案审查报告">
|
<el-descriptions-item label="入网设计方案审查报告">
|
||||||
<div v-for="item in form.NetReport">
|
<div v-for="item in form.NetReport">
|
||||||
<el-icon class="elView" v-if="item.name ">
|
<el-icon class="elView" v-if="item.name">
|
||||||
<View @click="openFile(item.name)" />
|
<View @click="openFile(item.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(item.keyName)">
|
<span class="aLoad" @click="download(item.keyName)">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</span >
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="治理工程验收报告">
|
<el-descriptions-item label="治理工程验收报告">
|
||||||
<div v-for="item in form.governReport">
|
<div v-for="item in form.governReport">
|
||||||
<el-icon class="elView" v-if="item.name ">
|
<el-icon class="elView" v-if="item.name">
|
||||||
<View @click="openFile(item.name)" />
|
<View @click="openFile(item.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(item.keyName)">
|
<span class="aLoad" @click="download(item.keyName)">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</span >
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
|
||||||
<el-descriptions-item label="验收检验报告单">
|
<el-descriptions-item label="验收检验报告单">
|
||||||
<el-icon class="elView" v-if="form.acceptanceInspectionReportSingle[0]?.name ">
|
<el-icon class="elView" v-if="form.acceptanceInspectionReportSingle[0]?.name">
|
||||||
<View @click="openFile(form.acceptanceInspectionReportSingle[0]?.name)" />
|
<View @click="openFile(form.acceptanceInspectionReportSingle[0]?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(form.acceptanceInspectionReportSingle[0]?.keyName)">
|
<span class="aLoad" @click="download(form.acceptanceInspectionReportSingle[0]?.keyName)">
|
||||||
{{ form.acceptanceInspectionReportSingle[0]?.name }}
|
{{ form.acceptanceInspectionReportSingle[0]?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
|
||||||
<el-descriptions-item label="验收检验报告">
|
<el-descriptions-item label="验收检验报告">
|
||||||
<el-icon class="elView" v-if="form.acceptanceInspectionReport[0]?.name ">
|
<el-icon class="elView" v-if="form.acceptanceInspectionReport[0]?.name">
|
||||||
<View @click="openFile(form.acceptanceInspectionReport[0]?.name)" />
|
<View @click="openFile(form.acceptanceInspectionReport[0]?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(form.acceptanceInspectionReport[0]?.keyName)">
|
<span class="aLoad" @click="download(form.acceptanceInspectionReport[0]?.keyName)">
|
||||||
{{ form.acceptanceInspectionReport[0]?.name }}
|
{{ form.acceptanceInspectionReport[0]?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="型式实验报告">
|
<el-descriptions-item label="型式实验报告">
|
||||||
<el-icon class="elView" v-if="form.typeExperimentReport[0]?.name ">
|
<el-icon class="elView" v-if="form.typeExperimentReport[0]?.name">
|
||||||
<View @click="openFile(form.typeExperimentReport[0]?.name)" />
|
<View @click="openFile(form.typeExperimentReport[0]?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(form.typeExperimentReport[0]?.keyName)">
|
<span class="aLoad" @click="download(form.typeExperimentReport[0]?.keyName)">
|
||||||
{{ form.typeExperimentReport[0]?.name }}
|
{{ form.typeExperimentReport[0]?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
|
||||||
<el-descriptions-item label="出厂检验报告">
|
<el-descriptions-item label="出厂检验报告">
|
||||||
<el-icon class="elView" v-if="form.factoryInspectionReport[0]?.name ">
|
<el-icon class="elView" v-if="form.factoryInspectionReport[0]?.name">
|
||||||
<View @click="openFile(form.factoryInspectionReport[0]?.name)" />
|
<View @click="openFile(form.factoryInspectionReport[0]?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(form.factoryInspectionReport[0]?.keyName)">
|
<span class="aLoad" @click="download(form.factoryInspectionReport[0]?.keyName)">
|
||||||
{{ form.factoryInspectionReport[0]?.name }}
|
{{ form.factoryInspectionReport[0]?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="性能检测报告">
|
<el-descriptions-item label="性能检测报告">
|
||||||
<el-icon class="elView" v-if="form.performanceTestReport[0]?.name ">
|
<el-icon class="elView" v-if="form.performanceTestReport[0]?.name">
|
||||||
<View @click="openFile(form.performanceTestReport[0]?.name)" />
|
<View @click="openFile(form.performanceTestReport[0]?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(form.performanceTestReport[0]?.keyName)">
|
<span class="aLoad" @click="download(form.performanceTestReport[0]?.keyName)">
|
||||||
{{ form.performanceTestReport[0]?.name }}
|
{{ form.performanceTestReport[0]?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="主接线图">
|
<el-descriptions-item label="主接线图">
|
||||||
<el-icon class="elView" v-if="form.mainWiringDiagram[0]?.name ">
|
<el-icon class="elView" v-if="form.mainWiringDiagram[0]?.name">
|
||||||
<View @click="openFile(form.mainWiringDiagram[0]?.name)" />
|
<View @click="openFile(form.mainWiringDiagram[0]?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(form.mainWiringDiagram[0]?.keyName)">
|
<span class="aLoad" @click="download(form.mainWiringDiagram[0]?.keyName)">
|
||||||
{{ form.mainWiringDiagram[0]?.name }}
|
{{ form.mainWiringDiagram[0]?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="试运行报告">
|
<el-descriptions-item label="试运行报告">
|
||||||
<el-icon class="elView" v-if="form.runTheReport[0]?.name ">
|
<el-icon class="elView" v-if="form.runTheReport[0]?.name">
|
||||||
<View @click="openFile(form.runTheReport[0]?.name)" />
|
<View @click="openFile(form.runTheReport[0]?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(form.runTheReport[0]?.keyName)">
|
<span class="aLoad" @click="download(form.runTheReport[0]?.keyName)">
|
||||||
{{ form.runTheReport[0]?.name }}
|
{{ form.runTheReport[0]?.name }}
|
||||||
</span >
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</div>
|
</div>
|
||||||
@@ -453,7 +471,7 @@ import { Link, View } from '@element-plus/icons-vue'
|
|||||||
import PreviewFile from '@/components/PreviewFile/index.vue'
|
import PreviewFile from '@/components/PreviewFile/index.vue'
|
||||||
import { getByDeptDevLine } from '@/api/supervision-boot/interfere/index'
|
import { getByDeptDevLine } from '@/api/supervision-boot/interfere/index'
|
||||||
import { addOrUpdateFile, getFileById } from '@/api/supervision-boot/interfere/index'
|
import { addOrUpdateFile, getFileById } from '@/api/supervision-boot/interfere/index'
|
||||||
import {download}from '@/utils/fileDownload'
|
import { download } from '@/utils/fileDownload'
|
||||||
defineOptions({ name: 'BpmUserReportDetail' })
|
defineOptions({ name: 'BpmUserReportDetail' })
|
||||||
|
|
||||||
const { query } = useRoute() // 查询参数
|
const { query } = useRoute() // 查询参数
|
||||||
@@ -478,6 +496,7 @@ const openFile = (name: any) => {
|
|||||||
}
|
}
|
||||||
const netInReportList: any = ref([])
|
const netInReportList: any = ref([])
|
||||||
const governReportList: any = ref([])
|
const governReportList: any = ref([])
|
||||||
|
const simulationReportList: any = ref([])
|
||||||
//用户性质数组
|
//用户性质数组
|
||||||
const userTypeList = reactive([
|
const userTypeList = reactive([
|
||||||
{
|
{
|
||||||
@@ -730,7 +749,14 @@ const getProviteData = async () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
if (detailData.value.simulationReport.length > 0) {
|
||||||
|
simulationReportList.value = []
|
||||||
|
detailData.value.simulationReport.forEach((item: any) => {
|
||||||
|
if (item != null) {
|
||||||
|
getFileNamePath(item, 'simulationReport')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
// 调用关联终端接口
|
// 调用关联终端接口
|
||||||
getByDeptDevLine({ id: detailData.value.orgId }).then(res => {
|
getByDeptDevLine({ id: detailData.value.orgId }).then(res => {
|
||||||
devIdList.value = res.data.filter((item: any) => item.devId == detailData.value.devId)
|
devIdList.value = res.data.filter((item: any) => item.devId == detailData.value.devId)
|
||||||
@@ -828,6 +854,12 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
keyName: res.data.name,
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
})
|
})
|
||||||
|
} else if (pathName == 'simulationReport') {
|
||||||
|
simulationReportList.value.push({
|
||||||
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
|
url: res.data.url
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -15,11 +15,65 @@
|
|||||||
<el-form-item label="数据筛选">
|
<el-form-item label="数据筛选">
|
||||||
<el-input
|
<el-input
|
||||||
style="width: 240px"
|
style="width: 240px"
|
||||||
placeholder="电站名称,终端编号,监测点名称"
|
placeholder="电站名称,终端编号,监测点名称、电压等级、终端厂家、干扰源类型"
|
||||||
v-model="tableStore.table.params.searchValue"
|
v-model="tableStore.table.params.searchValue"
|
||||||
clearable
|
clearable
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="电压等级:">
|
||||||
|
<el-select
|
||||||
|
v-model="tableStore.table.params.scale"
|
||||||
|
filterable
|
||||||
|
multiple
|
||||||
|
collapse-tags
|
||||||
|
clearable
|
||||||
|
placeholder="请选择电压等级"
|
||||||
|
value-key="id"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in voltageleveloption"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="终端厂家:">
|
||||||
|
<el-select
|
||||||
|
v-model="tableStore.table.params.manufacturer"
|
||||||
|
filterable
|
||||||
|
multiple
|
||||||
|
collapse-tags
|
||||||
|
clearable
|
||||||
|
placeholder="请选择终端厂家"
|
||||||
|
value-key="id"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in terminaloption"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="干扰源类型:">
|
||||||
|
<el-select
|
||||||
|
v-model="tableStore.table.params.loadType"
|
||||||
|
filterable
|
||||||
|
multiple
|
||||||
|
collapse-tags
|
||||||
|
clearable
|
||||||
|
placeholder="请选择干扰源类型"
|
||||||
|
value-key="id"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in interfereoption"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #operation>
|
<template #operation>
|
||||||
@@ -44,7 +98,9 @@ const interferenceType = dictData.getBasicData('Interference_Source')
|
|||||||
const istatusList = dictData.getBasicData('On-network_Status')
|
const istatusList = dictData.getBasicData('On-network_Status')
|
||||||
const TableHeaderRef = ref()
|
const TableHeaderRef = ref()
|
||||||
const areaOptionList = dictData.getBasicData('jibei_area')
|
const areaOptionList = dictData.getBasicData('jibei_area')
|
||||||
|
const interfereoption = dictData.getBasicData('Interference_Source')
|
||||||
|
const terminaloption = dictData.getBasicData('Dev_Manufacturers')
|
||||||
|
const voltageleveloption = dictData.getBasicData('Dev_Voltage_Stand')
|
||||||
const tableStore = new TableStore({
|
const tableStore = new TableStore({
|
||||||
url: '/device-boot/runManage/getLineLedger',
|
url: '/device-boot/runManage/getLineLedger',
|
||||||
publicHeight: 65,
|
publicHeight: 65,
|
||||||
@@ -84,6 +140,14 @@ const tableStore = new TableStore({
|
|||||||
return row.cellValue ? row.cellValue : '/'
|
return row.cellValue ? row.cellValue : '/'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'manufacturer',
|
||||||
|
title: '终端厂家',
|
||||||
|
minWidth: 100,
|
||||||
|
formatter: (row: any) => {
|
||||||
|
return row.cellValue ? row.cellValue : '/'
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'shortCapacity',
|
field: 'shortCapacity',
|
||||||
title: '最小短路容量(MVA)',
|
title: '最小短路容量(MVA)',
|
||||||
@@ -165,7 +229,9 @@ const tableStore = new TableStore({
|
|||||||
tableStore.table.params.runF = 0
|
tableStore.table.params.runF = 0
|
||||||
tableStore.table.params.runFlag = []
|
tableStore.table.params.runFlag = []
|
||||||
tableStore.table.params.searchValue = ''
|
tableStore.table.params.searchValue = ''
|
||||||
|
tableStore.table.params.scale = []
|
||||||
|
tableStore.table.params.manufacturer = []
|
||||||
|
tableStore.table.params.loadType = []
|
||||||
const runFlagList = [
|
const runFlagList = [
|
||||||
{ id: 0, name: '投运' },
|
{ id: 0, name: '投运' },
|
||||||
{ id: 1, name: '检修' },
|
{ id: 1, name: '检修' },
|
||||||
@@ -182,8 +248,47 @@ const setSearchValue = (val: string) => {
|
|||||||
tableStore.table.params.searchValue = val
|
tableStore.table.params.searchValue = val
|
||||||
tableStore.index()
|
tableStore.index()
|
||||||
}
|
}
|
||||||
|
const setSearchType = async (val: string, key: string) => {
|
||||||
|
tableStore.table.params.searchValue = ''
|
||||||
|
tableStore.table.params.scale = []
|
||||||
|
tableStore.table.params.manufacturer = []
|
||||||
|
tableStore.table.params.loadType = []
|
||||||
|
if (key == 'Voltage_Level') {
|
||||||
|
// 电压等级
|
||||||
|
tableStore.table.params.scale = await getType(voltageleveloption, val)
|
||||||
|
} else if (key == 'Manufacturer') {
|
||||||
|
// 终端厂家
|
||||||
|
tableStore.table.params.manufacturer = await getType(terminaloption, val)
|
||||||
|
} else if (key == 'Load_Type') {
|
||||||
|
// 干扰源类型
|
||||||
|
tableStore.table.params.loadType = await getType(interfereoption, val)
|
||||||
|
}
|
||||||
|
|
||||||
|
await tableStore.index()
|
||||||
|
}
|
||||||
|
const getType = (list: any, str: string) => {
|
||||||
|
if (str == '其他') {
|
||||||
|
return list.filter(
|
||||||
|
(item: any) =>
|
||||||
|
item.name != '风电场' &&
|
||||||
|
item.name != '光伏电站' &&
|
||||||
|
item.name != '电气化铁路' &&
|
||||||
|
item.name != '一类变电站' &&
|
||||||
|
item.name != '安徽振兴' &&
|
||||||
|
item.name != '南京灿能' &&
|
||||||
|
item.name != '深圳中电' &&
|
||||||
|
item.name != '东方威思顿' &&
|
||||||
|
item.name != '220kV' &&
|
||||||
|
item.name != '110kV' &&
|
||||||
|
item.name != '35kV' &&
|
||||||
|
item.name != '500kV'
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
return list.filter((item: any) => item.name == str)
|
||||||
|
}
|
||||||
|
}
|
||||||
defineExpose({
|
defineExpose({
|
||||||
setSearchValue
|
setSearchValue,
|
||||||
|
setSearchType
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -67,6 +67,15 @@ watch(
|
|||||||
activeName.value = '5'
|
activeName.value = '5'
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
monitorLedgerRef.value.setSearchValue((route.query.name as string) || '')
|
monitorLedgerRef.value.setSearchValue((route.query.name as string) || '')
|
||||||
|
console.log('🚀 ~ route.query.:', route.query)
|
||||||
|
}, 500)
|
||||||
|
} else if (type == 'lodType') {
|
||||||
|
activeName.value = '5'
|
||||||
|
setTimeout(() => {
|
||||||
|
monitorLedgerRef.value.setSearchType(
|
||||||
|
(route.query.name as string) || '',
|
||||||
|
route.query.statisticalType
|
||||||
|
)
|
||||||
}, 500)
|
}, 500)
|
||||||
}
|
}
|
||||||
id.value = (route.query.name as string) || ''
|
id.value = (route.query.name as string) || ''
|
||||||
|
|||||||
Reference in New Issue
Block a user