Compare commits
27 Commits
dffc735edb
...
2025-12
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fd09e24cf0 | ||
|
|
2a11891988 | ||
|
|
e7d90c3a73 | ||
|
|
72b1f39814 | ||
|
|
38028b5cb0 | ||
|
|
409999b37b | ||
|
|
0fc7b528d4 | ||
|
|
06764c073a | ||
|
|
26ff8087c6 | ||
|
|
83e57c92b4 | ||
|
|
a9245abb5c | ||
|
|
7a7c584217 | ||
|
|
bf3d033f39 | ||
|
|
42ce7aec5a | ||
|
|
17589e30da | ||
|
|
eb38fdd601 | ||
|
|
454d612a32 | ||
|
|
4dde761784 | ||
| 5f4f75d9dd | |||
|
|
cf7e5fa991 | ||
|
|
4f0dc512e2 | ||
|
|
a77b153ac8 | ||
|
|
dbb6a9f72b | ||
| 9567fe1295 | |||
|
|
a52021572a | ||
| d69a6e1e5d | |||
| a67535abbf |
5
.env.hainan
Normal file
5
.env.hainan
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
NODE_ENV = hainan
|
||||||
|
VITE_NAME="hainan"
|
||||||
|
# 电网一张图 地图图层
|
||||||
|
VITE_NARIMAP=null
|
||||||
|
VITE_NRGISCOMMON=null
|
||||||
8813
package-lock.json
generated
Normal file
8813
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -6,9 +6,11 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite --mode dev",
|
"dev": "vite --mode dev",
|
||||||
"dev:jibei": "vite --mode jibei",
|
"dev:jibei": "vite --mode jibei",
|
||||||
|
"dev:hainan": "vite --mode hainan",
|
||||||
"dev:removeMode": "vite --mode removeMode",
|
"dev:removeMode": "vite --mode removeMode",
|
||||||
"build": "vite build --mode dev",
|
"build": "vite build --mode dev",
|
||||||
"build:jibei": "vite build --mode jibei",
|
"build:jibei": "vite build --mode jibei",
|
||||||
|
"build:hainan": "vite build --mode hainan",
|
||||||
"build:removeMode": "vite build --mode removeMode",
|
"build:removeMode": "vite build --mode removeMode",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
@@ -19,7 +21,7 @@
|
|||||||
"@form-create/element-ui": "^3.1.24",
|
"@form-create/element-ui": "^3.1.24",
|
||||||
"@fortawesome/fontawesome-free": "^6.5.1",
|
"@fortawesome/fontawesome-free": "^6.5.1",
|
||||||
"@kjgl77/datav-vue3": "^1.7.4",
|
"@kjgl77/datav-vue3": "^1.7.4",
|
||||||
"@vue-office/docx": "^1.6.2",
|
"@vue-office/docx": "^1.6.3",
|
||||||
"@vue-office/excel": "^1.7.8",
|
"@vue-office/excel": "^1.7.8",
|
||||||
"@vue-office/pdf": "^2.0.2",
|
"@vue-office/pdf": "^2.0.2",
|
||||||
"@vueuse/core": "^10.7.0",
|
"@vueuse/core": "^10.7.0",
|
||||||
|
|||||||
@@ -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,8 +7,20 @@ const SYSTEM_PREFIX = '/system-boot'
|
|||||||
* @param file
|
* @param file
|
||||||
*/
|
*/
|
||||||
export const uploadFile = (file: any, path: string) => {
|
export const uploadFile = (file: any, path: string) => {
|
||||||
|
const regex = /\[|\]/g
|
||||||
|
// 替换规则:[ 换成 (,] 换成 )
|
||||||
|
|
||||||
|
const newFile = new File(
|
||||||
|
[file], // 原文件的二进制内容
|
||||||
|
file.name.replace(regex, match => (match === '[' ? '(' : ')')), // 新的文件名
|
||||||
|
{
|
||||||
|
type: file.type, // 复用原文件的MIME类型
|
||||||
|
lastModified: file.lastModified // 复用最后修改时间
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
let form = new FormData()
|
let form = new FormData()
|
||||||
form.append('file', file)
|
form.append('file', newFile)
|
||||||
form.append('path', path)
|
form.append('path', path)
|
||||||
return createAxios({
|
return createAxios({
|
||||||
url: SYSTEM_PREFIX + '/file/upload',
|
url: SYSTEM_PREFIX + '/file/upload',
|
||||||
|
|||||||
@@ -1,11 +1,19 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="overflow: auto; height: 100vh">
|
<div style="overflow: auto; height: 100vh">
|
||||||
<vue-office-docx v-if="url.includes('.doc') || url.includes('.docx')" :src="url" />
|
<vue-office-docx v-if="urlKey.includes('.doc') || urlKey.includes('.docx')" :src="url" />
|
||||||
<vue-office-excel v-if="url.includes('.xls') || url.includes('.xlsx')" :src="url" :options="excelOptions" />
|
<vue-office-excel
|
||||||
|
v-if="urlKey.includes('.xls') || urlKey.includes('.xlsx')"
|
||||||
|
:src="url"
|
||||||
|
: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="url.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 v-if="url.includes('.png') || url.includes('.jpg') || url.includes('.gif') || url.includes('.bmp')"
|
<img
|
||||||
:src="url" />
|
v-if="
|
||||||
|
urlKey.includes('.png') || urlKey.includes('.jpg') || urlKey.includes('.gif') || urlKey.includes('.bmp')
|
||||||
|
"
|
||||||
|
:src="url"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
@@ -19,22 +27,34 @@ import VueOfficeExcel from '@vue-office/excel'
|
|||||||
//引入VueOfficePdf组件
|
//引入VueOfficePdf组件
|
||||||
import VueOfficePdf from '@vue-office/pdf'
|
import VueOfficePdf from '@vue-office/pdf'
|
||||||
import { downloadFile } from '@/api/system-boot/file'
|
import { downloadFile } from '@/api/system-boot/file'
|
||||||
|
import { previewFile } from '@/utils/fileDownLoad'
|
||||||
|
|
||||||
const { push, options, currentRoute } = useRouter()
|
const { push, options, currentRoute } = useRouter()
|
||||||
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
||||||
// const url = 'http://192.168.1.22:9009/excelreport' + currentRoute.value.href?.split('?')[1]
|
// const url = 'http://192.168.1.22:9009/excelreport' + currentRoute.value.href?.split('?')[1]
|
||||||
const url = ref('')
|
const url = ref('')
|
||||||
const excelOptions = ref({})
|
const excelOptions = ref({})
|
||||||
if(VITE_FLAG){
|
const urlKey = currentRoute.value?.href?.split('?')[1]
|
||||||
url.value = '/api-docx/excelreport' + currentRoute.value?.href?.split('?')[1]
|
|
||||||
excelOptions.value = ref({
|
if (VITE_FLAG) {
|
||||||
|
url.value = '/api-docx/excelreport' + currentRoute.value?.href?.split('?')[1]
|
||||||
|
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 {
|
||||||
//下载
|
setTimeout(async () => {
|
||||||
|
|
||||||
}
|
const previewUrl = await previewFile(currentRoute.value?.href?.split('?')[1])
|
||||||
|
url.value = previewUrl
|
||||||
|
excelOptions.value = ref({
|
||||||
|
xls: currentRoute.value.href?.split('?')[1].split('.')[1] == 'xls' ? true : false
|
||||||
|
})
|
||||||
|
}, 0)
|
||||||
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
// 从路由参数获取文件路径
|
||||||
|
|
||||||
console.log()
|
console.log()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -232,6 +232,16 @@ const onResetForm = () => {
|
|||||||
//时间重置成默认值
|
//时间重置成默认值
|
||||||
datePickerRef.value?.setTheDate(3)
|
datePickerRef.value?.setTheDate(3)
|
||||||
|
|
||||||
|
if(props.showTimeAll){
|
||||||
|
timeAll.value = false
|
||||||
|
delete tableStore.table.params.searchBeginTime
|
||||||
|
delete tableStore.table.params.searchEndTime
|
||||||
|
delete tableStore.table.params.startTime
|
||||||
|
delete tableStore.table.params.endTime
|
||||||
|
delete tableStore.table.params.timeFlag
|
||||||
|
delete tableStore.table.params.interval
|
||||||
|
}
|
||||||
|
|
||||||
if (props.datePicker && timeAll.value) {
|
if (props.datePicker && timeAll.value) {
|
||||||
tableStore.table.params.searchBeginTime = datePickerRef.value.timeValue[0]
|
tableStore.table.params.searchBeginTime = datePickerRef.value.timeValue[0]
|
||||||
tableStore.table.params.searchEndTime = datePickerRef.value.timeValue[1]
|
tableStore.table.params.searchEndTime = datePickerRef.value.timeValue[1]
|
||||||
@@ -248,7 +258,7 @@ const setTheDate = (val: any) => {
|
|||||||
}
|
}
|
||||||
// 导出
|
// 导出
|
||||||
const onExport = () => {
|
const onExport = () => {
|
||||||
|
console.log('222')
|
||||||
tableStore.onTableAction('export', { showAllFlag: true })
|
tableStore.onTableAction('export', { showAllFlag: true })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,88 +1,106 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="point-tree">
|
<div class="point-tree">
|
||||||
<div style="flex: 1; overflow: hidden">
|
<div style="flex: 1; overflow: hidden">
|
||||||
<Tree
|
<Tree
|
||||||
ref="treeRef"
|
ref="treeRef"
|
||||||
:data="tree"
|
:data="tree"
|
||||||
:canExpand="false"
|
:canExpand="false"
|
||||||
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>
|
</div>
|
||||||
</div>
|
</template>
|
||||||
</template>
|
|
||||||
|
<script lang="ts" setup>
|
||||||
<script lang="ts" setup>
|
import { nextTick, onMounted, ref, useAttrs } from 'vue'
|
||||||
import { nextTick, onMounted, ref, useAttrs } from 'vue'
|
import Tree from '../index.vue'
|
||||||
import Tree from '../index.vue'
|
import { useAdminInfo } from '@/stores/adminInfo'
|
||||||
import { useAdminInfo } from '@/stores/adminInfo'
|
import { useDictData } from '@/stores/dictData'
|
||||||
import { useDictData } from '@/stores/dictData'
|
import { getTerminalTreeForFive } from '@/api/device-boot/terminalTree'
|
||||||
import { getTerminalTreeForFive } from '@/api/device-boot/terminalTree'
|
import { useConfig } from '@/stores/config'
|
||||||
import { useConfig } from '@/stores/config'
|
import { queryAllAlgorithmLibrary } from '@/api/supervision-boot/database/index'
|
||||||
import { queryAllAlgorithmLibrary } from '@/api/supervision-boot/database/index'
|
defineOptions({
|
||||||
defineOptions({
|
name: 'pms/pointTree'
|
||||||
name: 'pms/pointTree'
|
})
|
||||||
})
|
const emit = defineEmits(['init', 'onAddTree'])
|
||||||
const emit = defineEmits(['init', 'onAddTree'])
|
const attrs = useAttrs()
|
||||||
const attrs = useAttrs()
|
const adminInfo = useAdminInfo()
|
||||||
const adminInfo = useAdminInfo()
|
const dictData = useDictData()
|
||||||
const dictData = useDictData()
|
const config = useConfig()
|
||||||
const config = useConfig()
|
const classificationData = dictData.getBasicData('Statistical_Type', ['Report_Type'])
|
||||||
const classificationData = dictData.getBasicData('Statistical_Type', ['Report_Type'])
|
const tree = ref()
|
||||||
const tree = ref()
|
const treeRef = ref()
|
||||||
const treeRef = ref()
|
|
||||||
|
const loadData = (id?: any) => {
|
||||||
const loadData = (id?: any) => {
|
console.log('🚀 ~ loadData ~ id:', id)
|
||||||
console.log('🚀 ~ loadData ~ id:', id)
|
let nodeKey = ''
|
||||||
let nodeKey = ''
|
queryAllAlgorithmLibrary().then(res => {
|
||||||
queryAllAlgorithmLibrary().then(res => {
|
res.data.forEach((item: any) => {
|
||||||
res.data.forEach((item: any) => {
|
item.icon = 'el-icon-FolderOpened'
|
||||||
item.icon = 'el-icon-FolderOpened'
|
item.color = config.getColorVal('elementUiPrimary')
|
||||||
item.color = config.getColorVal('elementUiPrimary')
|
item.children.forEach((item2: any) => {
|
||||||
item.children.forEach((item2: any) => {
|
item2.icon = 'el-icon-Document'
|
||||||
item2.icon = 'el-icon-Document'
|
item2.color = config.getColorVal('elementUiPrimary')
|
||||||
item2.color = config.getColorVal('elementUiPrimary')
|
item2.childrens = item2.children
|
||||||
item2.childrens = item2.children
|
item2.children = []
|
||||||
item2.children = []
|
if (item2.id == id) {
|
||||||
if (item2.id == id) {
|
emit('init', item2)
|
||||||
emit('init', item2)
|
}
|
||||||
}
|
})
|
||||||
})
|
})
|
||||||
})
|
|
||||||
|
nodeKey = res.data[0].children[0].id
|
||||||
nodeKey = res.data[0].children[0].id
|
|
||||||
|
tree.value = res.data
|
||||||
tree.value = res.data
|
if (id) {
|
||||||
if (id) {
|
setTimeout(() => {
|
||||||
setTimeout(() => {
|
treeRef.value.treeRef.setCurrentKey(id)
|
||||||
treeRef.value.treeRef.setCurrentKey(id)
|
}, 10)
|
||||||
}, 10)
|
} else {
|
||||||
} else {
|
setTimeout(() => {
|
||||||
setTimeout(() => {
|
treeRef.value.treeRef.setCurrentKey(nodeKey)
|
||||||
treeRef.value.treeRef.setCurrentKey(nodeKey)
|
emit('init', res.data[0].children[0])
|
||||||
emit('init', res.data[0].children[0])
|
}, 10)
|
||||||
}, 10)
|
}
|
||||||
}
|
})
|
||||||
})
|
}
|
||||||
}
|
|
||||||
|
const onAddTree = () => {
|
||||||
const onAddTree = () => {
|
emit('onAddTree')
|
||||||
emit('onAddTree')
|
}
|
||||||
}
|
const setKey = (id: string) => {
|
||||||
loadData()
|
treeRef.value.treeRef.setCurrentKey(id)
|
||||||
defineExpose({ loadData })
|
return findNodeById(tree.value, id)
|
||||||
</script>
|
}
|
||||||
<style lang="scss">
|
const findNodeById = (tree1: any, targetId: any) => {
|
||||||
.point-tree {
|
for (const node of tree1) {
|
||||||
height: 100%;
|
// 1. 当前节点匹配ID,直接返回该节点
|
||||||
width: 100%;
|
if (node.id === targetId) {
|
||||||
display: flex;
|
return node
|
||||||
flex-direction: column;
|
}
|
||||||
background: #fff;
|
// 2. 当前节点有子节点,递归查找子节点
|
||||||
border: 1px solid var(--el-border-color);
|
if (node.children && node.children.length > 0) {
|
||||||
}
|
const result: any = findNodeById(node.children, targetId)
|
||||||
</style>
|
// 子节点中找到结果,立即返回(终止递归)
|
||||||
|
if (result) return result
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 3. 遍历完未找到,返回null
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
loadData()
|
||||||
|
defineExpose({ loadData, setKey })
|
||||||
|
</script>
|
||||||
|
<style lang="scss">
|
||||||
|
.point-tree {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
background: #fff;
|
||||||
|
border: 1px solid var(--el-border-color);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="layout-logo">
|
<div class="layout-logo">
|
||||||
<img v-if="!config.layout.menuCollapse" class="logo-img" :src="getTheme.logoUrl" />
|
<img v-if="!config.layout.menuCollapse && getTheme && getTheme.logoUrl" class="logo-img" :src="getTheme.logoUrl" />
|
||||||
<!-- <div-->
|
<!-- <div-->
|
||||||
<!-- v-if="!config.layout.menuCollapse"-->
|
<!-- v-if="!config.layout.menuCollapse"-->
|
||||||
<!-- :style="{ color: config.getColorVal('menuActiveColor') }"-->
|
<!-- :style="{ color: config.getColorVal('menuActiveColor') }"-->
|
||||||
@@ -28,7 +28,9 @@ import { Session } from '@/utils/storage'
|
|||||||
import { setNavTabsWidth } from '@/utils/layout'
|
import { setNavTabsWidth } from '@/utils/layout'
|
||||||
|
|
||||||
const config = useConfig()
|
const config = useConfig()
|
||||||
const getTheme = JSON.parse(window.localStorage.getItem('getTheme') as string)
|
const getTheme = window.localStorage.getItem('getTheme')
|
||||||
|
? JSON.parse(window.localStorage.getItem('getTheme') as string)
|
||||||
|
: null
|
||||||
const onMenuCollapse = function () {
|
const onMenuCollapse = function () {
|
||||||
if (config.layout.shrink && !config.layout.menuCollapse) {
|
if (config.layout.shrink && !config.layout.menuCollapse) {
|
||||||
closeShade()
|
closeShade()
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<span class="nav-bar-title">
|
<span class="nav-bar-title">
|
||||||
{{ getTheme.name }}
|
{{ getTheme?.name || '' }}
|
||||||
<span style="font-size: 14px">({{ Version || 'v1.0.0' }})</span>
|
<span style="font-size: 14px">({{ Version || 'v1.0.0' }})</span>
|
||||||
<!-- <span style="font-size: 14px;" v-if="Version?.versionName">
|
<!-- <span style="font-size: 14px;" v-if="Version?.versionName">
|
||||||
({{ Version?.versionName }})
|
({{ Version?.versionName }})
|
||||||
@@ -28,8 +28,10 @@ import { getLastData } from '@/api/systerm'
|
|||||||
|
|
||||||
const Version: any = ref(null)
|
const Version: any = ref(null)
|
||||||
const config = useConfig()
|
const config = useConfig()
|
||||||
const getTheme = JSON.parse(window.localStorage.getItem('getTheme') as string)
|
const getTheme = window.localStorage.getItem('getTheme')
|
||||||
|
? JSON.parse(window.localStorage.getItem('getTheme') as string)
|
||||||
|
: { name: '' }
|
||||||
|
const VITE_FLAG = import.meta.env.VITE_NAME == 'hainan'
|
||||||
const onMenuCollapse = () => {
|
const onMenuCollapse = () => {
|
||||||
showShade('ba-aside-menu-shade', () => {
|
showShade('ba-aside-menu-shade', () => {
|
||||||
config.setLayout('menuCollapse', true)
|
config.setLayout('menuCollapse', true)
|
||||||
@@ -37,10 +39,13 @@ const onMenuCollapse = () => {
|
|||||||
config.setLayout('menuCollapse', false)
|
config.setLayout('menuCollapse', false)
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getLastData({ versionType: 'WEB' }).then(res => {
|
if(!VITE_FLAG){
|
||||||
Version.value = res.data.versionName
|
getLastData({ versionType: 'WEB' }).then(res => {
|
||||||
})
|
Version.value = res.data.versionName
|
||||||
document.title = getTheme.name
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
document.title = getTheme?.name || ''
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -1,37 +1,48 @@
|
|||||||
import { downloadFile } from '@/api/system-boot/file'
|
import { downloadFile } from '@/api/system-boot/file'
|
||||||
// 下载文件
|
// 下载文件
|
||||||
export const download = (urls: string) => {
|
export const download = (urls: string) => {
|
||||||
downloadFile({ filePath: urls }).then((res: any) => {
|
//console.log('下载', urls)
|
||||||
let blob = new Blob([res], {
|
|
||||||
type: urls.includes('.pdf')
|
downloadFile({ filePath: urls })
|
||||||
? 'application/pdf'
|
.then((res: any) => {
|
||||||
: urls.includes('.zip')
|
// 1. 确定文件MIME类型(优化:用更简洁的方式)
|
||||||
? 'application/zip'
|
const getFileType = (url: string) => {
|
||||||
: urls.includes('.doc')
|
const ext = url.split('.').pop()?.toLowerCase() || ''
|
||||||
? 'application/msword'
|
const mimeMap: Record<string, string> = {
|
||||||
: urls.includes('.docx')
|
pdf: 'application/pdf',
|
||||||
? 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
|
zip: 'application/zip',
|
||||||
: urls.includes('.xls')
|
doc: 'application/msword',
|
||||||
? 'application/vnd.ms-excel'
|
docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
||||||
: urls.includes('.xlsx')
|
xls: 'application/vnd.ms-excel',
|
||||||
? 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
||||||
: urls.includes('.png')
|
png: 'image/png',
|
||||||
? 'image/png'
|
jpeg: 'image/jpeg',
|
||||||
: urls.includes('.jpeg')
|
jpg: 'image/jpg'
|
||||||
? 'image/jpeg'
|
}
|
||||||
: urls.includes('.jpg')
|
return mimeMap[ext] || ''
|
||||||
? 'image/jpg'
|
}
|
||||||
: ''
|
|
||||||
|
const blob = new Blob([res], { type: getFileType(urls) })
|
||||||
|
|
||||||
|
// 2. 提取文件名并保留原生后缀(核心修复点)
|
||||||
|
const fileName = urls.split('/').at(-1) || '下载文件' // 先提取URL最后一段(文件名)
|
||||||
|
|
||||||
|
// 3. 创建下载链接
|
||||||
|
const url = window.URL.createObjectURL(blob)
|
||||||
|
const link = document.createElement('a')
|
||||||
|
link.href = url
|
||||||
|
link.download = fileName // 直接使用原文件名(保留后缀)
|
||||||
|
document.body.appendChild(link)
|
||||||
|
link.click()
|
||||||
|
|
||||||
|
// 4. 清理资源(优化)
|
||||||
|
link.remove()
|
||||||
|
window.URL.revokeObjectURL(url) // 释放blob URL
|
||||||
|
})
|
||||||
|
.catch(err => {
|
||||||
|
console.error('下载失败:', err)
|
||||||
|
// 可添加错误提示(如Toast)
|
||||||
})
|
})
|
||||||
const url = window.URL.createObjectURL(blob)
|
|
||||||
const link = document.createElement('a')
|
|
||||||
let name = removeLastDotSuffix(urls.split('/')[2])
|
|
||||||
link.href = url
|
|
||||||
link.download = name
|
|
||||||
document.body.appendChild(link)
|
|
||||||
link.click()
|
|
||||||
link.remove()
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
function removeLastDotSuffix(str: string) {
|
function removeLastDotSuffix(str: string) {
|
||||||
// 找到最后一个 . 的位置
|
// 找到最后一个 . 的位置
|
||||||
@@ -39,3 +50,42 @@ function removeLastDotSuffix(str: string) {
|
|||||||
// 如果存在 .,截取到 . 之前的部分;否则返回原字符串
|
// 如果存在 .,截取到 . 之前的部分;否则返回原字符串
|
||||||
return lastDotIndex !== -1 ? str.slice(0, lastDotIndex) : str
|
return lastDotIndex !== -1 ? str.slice(0, lastDotIndex) : str
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 预览文件
|
||||||
|
export const previewFile = async (urls: any) => {
|
||||||
|
//console.log('预览', urls)
|
||||||
|
let url = ''
|
||||||
|
//console.log('urls', decodeURI(urls))
|
||||||
|
await downloadFile({ filePath: decodeURI(urls) })
|
||||||
|
.then((res: any) => {
|
||||||
|
|
||||||
|
// 1. 确定文件MIME类型(优化:用更简洁的方式)
|
||||||
|
const getFileType = (url: string) => {
|
||||||
|
const ext = url.split('.').pop()?.toLowerCase() || ''
|
||||||
|
const mimeMap: Record<string, string> = {
|
||||||
|
pdf: 'application/pdf',
|
||||||
|
zip: 'application/zip',
|
||||||
|
doc: 'application/msword',
|
||||||
|
docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
||||||
|
xls: 'application/vnd.ms-excel',
|
||||||
|
xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
||||||
|
png: 'image/png',
|
||||||
|
jpeg: 'image/jpeg',
|
||||||
|
jpg: 'image/jpg'
|
||||||
|
}
|
||||||
|
return mimeMap[ext] || ''
|
||||||
|
}
|
||||||
|
|
||||||
|
const blob = new Blob([res], { type: getFileType(decodeURI(urls)) })
|
||||||
|
|
||||||
|
|
||||||
|
// 3. 创建下载链接
|
||||||
|
url = window.URL.createObjectURL(blob)
|
||||||
|
})
|
||||||
|
.catch(err => {
|
||||||
|
console.error('下载失败:', err)
|
||||||
|
// 可添加错误提示(如Toast)
|
||||||
|
})
|
||||||
|
//console.log('url', url)
|
||||||
|
return url
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,326 +1,327 @@
|
|||||||
import type { AxiosRequestConfig, Method } from 'axios'
|
import type { AxiosRequestConfig, Method } from 'axios'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import { ElLoading, ElNotification, type LoadingOptions } from 'element-plus'
|
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()
|
||||||
const loadingInstance: LoadingInstance = {
|
const loadingInstance: LoadingInstance = {
|
||||||
target: null,
|
target: null,
|
||||||
count: 0
|
count: 0
|
||||||
}
|
}
|
||||||
const VITE_FLAG = import.meta.env.VITE_NAME == 'removeMode'
|
const VITE_FLAG = import.meta.env.VITE_NAME == 'removeMode'
|
||||||
// console.log('🚀 ~ import.meta.env.VITE_NAME:', import.meta.env.VITE_NAME)
|
// console.log('🚀 ~ import.meta.env.VITE_NAME:', import.meta.env.VITE_NAME)
|
||||||
/**
|
/**
|
||||||
* 根据运行环境获取基础请求URL
|
* 根据运行环境获取基础请求URL
|
||||||
*/
|
*/
|
||||||
export const getUrl = (): string => {
|
export const getUrl = (): string => {
|
||||||
return '/api'
|
return '/api'
|
||||||
}
|
}
|
||||||
function removeBeforeSecondSlash(str: string) {
|
function removeBeforeSecondSlash(str: string) {
|
||||||
// 找到第一个斜杠的位置
|
// 找到第一个斜杠的位置
|
||||||
const firstSlashIndex = str.indexOf('/')
|
const firstSlashIndex = str.indexOf('/')
|
||||||
if (firstSlashIndex === -1) {
|
if (firstSlashIndex === -1) {
|
||||||
// 如果没有斜杠,返回原字符串
|
// 如果没有斜杠,返回原字符串
|
||||||
return str
|
return str
|
||||||
}
|
}
|
||||||
// 从第一个斜杠之后开始找第二个斜杠
|
// 从第一个斜杠之后开始找第二个斜杠
|
||||||
const secondSlashIndex = str.indexOf('/', firstSlashIndex + 1)
|
const secondSlashIndex = str.indexOf('/', firstSlashIndex + 1)
|
||||||
if (secondSlashIndex === -1) {
|
if (secondSlashIndex === -1) {
|
||||||
// 如果只有一个斜杠,返回原字符串
|
// 如果只有一个斜杠,返回原字符串
|
||||||
return str
|
return str
|
||||||
}
|
}
|
||||||
// 返回第二个斜杠及之后的内容
|
// 返回第二个斜杠及之后的内容
|
||||||
return str.substring(secondSlashIndex)
|
return str.substring(secondSlashIndex)
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 创建`Axios`
|
* 创建`Axios`
|
||||||
* 默认开启`reductDataFormat(简洁响应)`,返回类型为`ApiPromise`
|
* 默认开启`reductDataFormat(简洁响应)`,返回类型为`ApiPromise`
|
||||||
* 关闭`reductDataFormat`,返回类型则为`AxiosPromise`
|
* 关闭`reductDataFormat`,返回类型则为`AxiosPromise`
|
||||||
*/
|
*/
|
||||||
function createAxios<Data = any, T = ApiPromise<Data>>(
|
function createAxios<Data = any, T = ApiPromise<Data>>(
|
||||||
axiosConfig: AxiosRequestConfig,
|
axiosConfig: AxiosRequestConfig,
|
||||||
options: Options = {},
|
options: Options = {},
|
||||||
loading: LoadingOptions = {}
|
loading: LoadingOptions = {}
|
||||||
): T {
|
): T {
|
||||||
const adminInfo = useAdminInfo()
|
const adminInfo = useAdminInfo()
|
||||||
|
|
||||||
const Axios = axios.create({
|
const Axios = axios.create({
|
||||||
baseURL: getUrl(),
|
baseURL: getUrl(),
|
||||||
timeout: 1000 * 60 * 5,
|
timeout: 1000 * 60 * 5,
|
||||||
headers: {},
|
headers: {},
|
||||||
responseType: 'json'
|
responseType: 'json'
|
||||||
})
|
})
|
||||||
|
|
||||||
options = Object.assign(
|
options = Object.assign(
|
||||||
{
|
{
|
||||||
CancelDuplicateRequest: true, // 是否开启取消重复请求, 默认为 true
|
CancelDuplicateRequest: true, // 是否开启取消重复请求, 默认为 true
|
||||||
loading: false, // 是否开启loading层效果, 默认为false
|
loading: false, // 是否开启loading层效果, 默认为false
|
||||||
reductDataFormat: true, // 是否开启简洁的数据结构响应, 默认为true
|
reductDataFormat: true, // 是否开启简洁的数据结构响应, 默认为true
|
||||||
showErrorMessage: true, // 是否开启接口错误信息展示,默认为true
|
showErrorMessage: true, // 是否开启接口错误信息展示,默认为true
|
||||||
showCodeMessage: true, // 是否开启code不为1时的信息提示, 默认为true
|
showCodeMessage: true, // 是否开启code不为1时的信息提示, 默认为true
|
||||||
showSuccessMessage: false, // 是否开启code为1时的信息提示, 默认为false
|
showSuccessMessage: false, // 是否开启code为1时的信息提示, 默认为false
|
||||||
anotherToken: '' // 当前请求使用另外的用户token
|
anotherToken: '' // 当前请求使用另外的用户token
|
||||||
},
|
},
|
||||||
options
|
options
|
||||||
)
|
)
|
||||||
|
|
||||||
// 请求拦截
|
// 请求拦截
|
||||||
Axios.interceptors.request.use(
|
Axios.interceptors.request.use(
|
||||||
async (config: any) => {
|
async (config: any) => {
|
||||||
//嵌入去除所有请求头
|
//嵌入去除所有请求头
|
||||||
if (VITE_FLAG) {
|
if (VITE_FLAG) {
|
||||||
config.url = await removeBeforeSecondSlash(config.url)
|
config.url = await removeBeforeSecondSlash(config.url)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 取消重复请求
|
// 取消重复请求
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!(
|
!(
|
||||||
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)
|
||||||
options.CancelDuplicateRequest && addPending(config)
|
|
||||||
// 创建loading实例
|
options.CancelDuplicateRequest && addPending(config)
|
||||||
if (options.loading) {
|
// 创建loading实例
|
||||||
loadingInstance.count++
|
if (options.loading) {
|
||||||
if (loadingInstance.count === 1) {
|
loadingInstance.count++
|
||||||
loadingInstance.target = ElLoading.service(loading)
|
if (loadingInstance.count === 1) {
|
||||||
}
|
loadingInstance.target = ElLoading.service(loading)
|
||||||
}
|
}
|
||||||
// 自动携带token
|
}
|
||||||
if (config.headers) {
|
// 自动携带token
|
||||||
const token = adminInfo.getToken()
|
if (config.headers) {
|
||||||
if (token) {
|
const token = adminInfo.getToken()
|
||||||
;(config.headers as anyObj).Authorization = token
|
if (token) {
|
||||||
} else {
|
;(config.headers as anyObj).Authorization = token
|
||||||
config.headers.Authorization = 'Basic bmpjbnRlc3Q6bmpjbnBxcw=='
|
} else {
|
||||||
}
|
config.headers.Authorization = 'Basic bmpjbnRlc3Q6bmpjbnBxcw=='
|
||||||
}
|
}
|
||||||
if (config.url == '/user-boot/user/generateSm2Key' || config.url == '/pqs-auth/oauth/token') {
|
}
|
||||||
config.headers.Authorization = 'Basic bmpjbnRlc3Q6bmpjbnBxcw=='
|
if (config.url == '/user-boot/user/generateSm2Key' || config.url == '/pqs-auth/oauth/token') {
|
||||||
}
|
config.headers.Authorization = 'Basic bmpjbnRlc3Q6bmpjbnBxcw=='
|
||||||
|
}
|
||||||
return config
|
|
||||||
},
|
return config
|
||||||
error => {
|
},
|
||||||
return Promise.reject(error)
|
error => {
|
||||||
}
|
return Promise.reject(error)
|
||||||
)
|
}
|
||||||
|
)
|
||||||
// 响应拦截
|
|
||||||
Axios.interceptors.response.use(
|
// 响应拦截
|
||||||
response => {
|
Axios.interceptors.response.use(
|
||||||
removePending(response.config)
|
response => {
|
||||||
options.loading && closeLoading(options) // 关闭loading
|
removePending(response.config)
|
||||||
|
options.loading && closeLoading(options) // 关闭loading
|
||||||
if (
|
|
||||||
response.data.code === 'A0000' ||
|
if (
|
||||||
response.data.type === 'application/json' ||
|
response.data.code === 'A0000' ||
|
||||||
Array.isArray(response.data) ||
|
response.data.type === 'application/json' ||
|
||||||
response.data.size ||
|
Array.isArray(response.data) ||
|
||||||
response.config.url == '/harmonic-boot/exportmodel/exportModelJB' ||
|
response.data.size ||
|
||||||
response.config.url == '/system-boot/file/download' ||
|
response.config.url == '/harmonic-boot/exportmodel/exportModelJB' ||
|
||||||
response.config.url == '/harmonic-boot/powerStatistics/exportExcelListTemplate' ||
|
response.config.url == '/system-boot/file/download' ||
|
||||||
response.config.url == '/harmonic-boot/powerStatistics/exportExcelRangTemplate'
|
response.config.url == '/harmonic-boot/powerStatistics/exportExcelListTemplate' ||
|
||||||
// ||
|
response.config.url == '/harmonic-boot/powerStatistics/exportExcelRangTemplate'
|
||||||
// response.data.type === 'application/octet-stream' ||
|
// ||
|
||||||
// response.data.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
// response.data.type === 'application/octet-stream' ||
|
||||||
) {
|
// response.data.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
||||||
return options.reductDataFormat ? response.data : response
|
) {
|
||||||
} else if (response.data.code == 'A0202') {
|
return options.reductDataFormat ? response.data : response
|
||||||
if (!window.tokenRefreshing) {
|
} else if (response.data.code == 'A0202') {
|
||||||
window.tokenRefreshing = true
|
if (!window.tokenRefreshing) {
|
||||||
|
window.tokenRefreshing = true
|
||||||
return refreshToken()
|
|
||||||
.then(res => {
|
return refreshToken()
|
||||||
adminInfo.setToken(res.data.access_token, 'auth')
|
.then(res => {
|
||||||
window.requests.forEach(cb => cb(res.data.access_token))
|
adminInfo.setToken(res.data.access_token, 'auth')
|
||||||
window.requests = []
|
window.requests.forEach(cb => cb(res.data.access_token))
|
||||||
|
window.requests = []
|
||||||
return Axios(response.config)
|
|
||||||
})
|
return Axios(response.config)
|
||||||
.catch(err => {
|
})
|
||||||
adminInfo.removeToken()
|
.catch(err => {
|
||||||
router.push({ name: 'login' })
|
adminInfo.removeToken()
|
||||||
return Promise.reject(err)
|
router.push({ name: 'login' })
|
||||||
})
|
return Promise.reject(err)
|
||||||
.finally(() => {
|
})
|
||||||
window.tokenRefreshing = false
|
.finally(() => {
|
||||||
})
|
window.tokenRefreshing = false
|
||||||
} else {
|
})
|
||||||
return new Promise(resolve => {
|
} else {
|
||||||
// 用函数形式将 resolve 存入,等待刷新后再执行
|
return new Promise(resolve => {
|
||||||
window.requests.push((token: string) => {
|
// 用函数形式将 resolve 存入,等待刷新后再执行
|
||||||
response.headers.Authorization = `${token}`
|
window.requests.push((token: string) => {
|
||||||
resolve(Axios(response.config))
|
response.headers.Authorization = `${token}`
|
||||||
})
|
resolve(Axios(response.config))
|
||||||
})
|
})
|
||||||
}
|
})
|
||||||
} else if (response.data.code == 'A0024' || response.data.code == 'null') {
|
}
|
||||||
// // 登录失效
|
} else if (response.data.code == 'A0024' || response.data.code == 'null') {
|
||||||
// 清除上一次的定时器
|
// // 登录失效
|
||||||
if (loginExpireTimer) {
|
// 清除上一次的定时器
|
||||||
clearTimeout(loginExpireTimer)
|
if (loginExpireTimer) {
|
||||||
}
|
clearTimeout(loginExpireTimer)
|
||||||
loginExpireTimer = setTimeout(() => {
|
}
|
||||||
ElNotification({
|
loginExpireTimer = setTimeout(() => {
|
||||||
type: 'error',
|
ElNotification({
|
||||||
message: response.data.message
|
type: 'error',
|
||||||
})
|
message: response.data.message
|
||||||
adminInfo.removeToken()
|
})
|
||||||
router.push({ name: 'login' })
|
adminInfo.removeToken()
|
||||||
loginExpireTimer = null // 执行后清空定时器
|
router.push({ name: 'login' })
|
||||||
}, 100) // 可根据实际情况调整延迟时间
|
loginExpireTimer = null // 执行后清空定时器
|
||||||
return Promise.reject(response.data)
|
}, 100) // 可根据实际情况调整延迟时间
|
||||||
} else {
|
return Promise.reject(response.data)
|
||||||
if (options.showCodeMessage) {
|
} else {
|
||||||
ElNotification({
|
if (options.showCodeMessage) {
|
||||||
type: 'error',
|
ElNotification({
|
||||||
message: response.data.message || '未知错误'
|
type: 'error',
|
||||||
})
|
message: response.data.message || '未知错误'
|
||||||
}
|
})
|
||||||
return Promise.reject(response.data)
|
}
|
||||||
}
|
return Promise.reject(response.data)
|
||||||
},
|
}
|
||||||
error => {
|
},
|
||||||
error.config && removePending(error.config)
|
error => {
|
||||||
options.loading && closeLoading(options) // 关闭loading
|
error.config && removePending(error.config)
|
||||||
return Promise.reject(error) // 错误继续返回给到具体页面
|
options.loading && closeLoading(options) // 关闭loading
|
||||||
}
|
return Promise.reject(error) // 错误继续返回给到具体页面
|
||||||
)
|
}
|
||||||
return Axios(axiosConfig) as T
|
)
|
||||||
}
|
return Axios(axiosConfig) as T
|
||||||
|
}
|
||||||
export default createAxios
|
|
||||||
|
export default createAxios
|
||||||
/**
|
|
||||||
* 关闭Loading层实例
|
/**
|
||||||
*/
|
* 关闭Loading层实例
|
||||||
function closeLoading(options: Options) {
|
*/
|
||||||
if (options.loading && loadingInstance.count > 0) loadingInstance.count--
|
function closeLoading(options: Options) {
|
||||||
if (loadingInstance.count === 0) {
|
if (options.loading && loadingInstance.count > 0) loadingInstance.count--
|
||||||
loadingInstance.target.close()
|
if (loadingInstance.count === 0) {
|
||||||
loadingInstance.target = null
|
loadingInstance.target.close()
|
||||||
}
|
loadingInstance.target = null
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/**
|
|
||||||
* 储存每个请求的唯一cancel回调, 以此为标识
|
/**
|
||||||
*/
|
* 储存每个请求的唯一cancel回调, 以此为标识
|
||||||
function addPending(config: AxiosRequestConfig) {
|
*/
|
||||||
const pendingKey = getPendingKey(config)
|
function addPending(config: AxiosRequestConfig) {
|
||||||
config.cancelToken =
|
const pendingKey = getPendingKey(config)
|
||||||
config.cancelToken ||
|
config.cancelToken =
|
||||||
new axios.CancelToken(cancel => {
|
config.cancelToken ||
|
||||||
if (!pendingMap.has(pendingKey)) {
|
new axios.CancelToken(cancel => {
|
||||||
pendingMap.set(pendingKey, cancel)
|
if (!pendingMap.has(pendingKey)) {
|
||||||
}
|
pendingMap.set(pendingKey, cancel)
|
||||||
})
|
}
|
||||||
}
|
})
|
||||||
|
}
|
||||||
/**
|
|
||||||
* 删除重复的请求
|
/**
|
||||||
*/
|
* 删除重复的请求
|
||||||
function removePending(config: AxiosRequestConfig) {
|
*/
|
||||||
const pendingKey = getPendingKey(config)
|
function removePending(config: AxiosRequestConfig) {
|
||||||
if (pendingMap.has(pendingKey)) {
|
const pendingKey = getPendingKey(config)
|
||||||
const cancelToken = pendingMap.get(pendingKey)
|
if (pendingMap.has(pendingKey)) {
|
||||||
cancelToken(pendingKey)
|
const cancelToken = pendingMap.get(pendingKey)
|
||||||
pendingMap.delete(pendingKey)
|
cancelToken(pendingKey)
|
||||||
}
|
pendingMap.delete(pendingKey)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/**
|
|
||||||
* 生成每个请求的唯一key
|
/**
|
||||||
*/
|
* 生成每个请求的唯一key
|
||||||
function getPendingKey(config: AxiosRequestConfig) {
|
*/
|
||||||
let { data } = config
|
function getPendingKey(config: AxiosRequestConfig) {
|
||||||
const { url, method, params, headers } = config
|
let { data } = config
|
||||||
if (typeof data === 'string') data = JSON.parse(data) // response里面返回的config.data是个字符串对象
|
const { url, method, params, headers } = config
|
||||||
return [
|
if (typeof data === 'string') data = JSON.parse(data) // response里面返回的config.data是个字符串对象
|
||||||
url,
|
return [
|
||||||
method,
|
url,
|
||||||
headers && (headers as anyObj).Authorization ? (headers as anyObj).Authorization : '',
|
method,
|
||||||
headers && (headers as anyObj)['ba-user-token'] ? (headers as anyObj)['ba-user-token'] : '',
|
headers && (headers as anyObj).Authorization ? (headers as anyObj).Authorization : '',
|
||||||
JSON.stringify(params),
|
headers && (headers as anyObj)['ba-user-token'] ? (headers as anyObj)['ba-user-token'] : '',
|
||||||
JSON.stringify(data)
|
JSON.stringify(params),
|
||||||
].join('&')
|
JSON.stringify(data)
|
||||||
}
|
].join('&')
|
||||||
|
}
|
||||||
/**
|
|
||||||
* 根据请求方法组装请求数据/参数
|
/**
|
||||||
*/
|
* 根据请求方法组装请求数据/参数
|
||||||
export function requestPayload(method: Method, data: anyObj, paramsPOST: boolean) {
|
*/
|
||||||
if (method == 'GET') {
|
export function requestPayload(method: Method, data: anyObj, paramsPOST: boolean) {
|
||||||
return {
|
if (method == 'GET') {
|
||||||
params: data
|
return {
|
||||||
}
|
params: data
|
||||||
} else if (method == 'POST') {
|
}
|
||||||
if (paramsPOST) {
|
} else if (method == 'POST') {
|
||||||
return { params: data }
|
if (paramsPOST) {
|
||||||
} else {
|
return { params: data }
|
||||||
return { data: data }
|
} else {
|
||||||
}
|
return { data: data }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 适配器, 用于适配不同的请求方式
|
}
|
||||||
export function baseRequest(url, value = {}, method = 'post', options = {}) {
|
// 适配器, 用于适配不同的请求方式
|
||||||
url = sysConfig.API_URL + url
|
export function baseRequest(url, value = {}, method = 'post', options = {}) {
|
||||||
if (method === 'post') {
|
url = sysConfig.API_URL + url
|
||||||
return service.post(url, value, options)
|
if (method === 'post') {
|
||||||
} else if (method === 'get') {
|
return service.post(url, value, options)
|
||||||
return service.get(url, { params: value, ...options })
|
} else if (method === 'get') {
|
||||||
} else if (method === 'formdata') {
|
return service.get(url, { params: value, ...options })
|
||||||
// form-data表单提交的方式
|
} else if (method === 'formdata') {
|
||||||
return service.post(url, qs.stringify(value), {
|
// form-data表单提交的方式
|
||||||
headers: {
|
return service.post(url, qs.stringify(value), {
|
||||||
'Content-Type': 'multipart/form-data'
|
headers: {
|
||||||
},
|
'Content-Type': 'multipart/form-data'
|
||||||
...options
|
},
|
||||||
})
|
...options
|
||||||
} else {
|
})
|
||||||
// 其他请求方式,例如:put、delete
|
} else {
|
||||||
return service({
|
// 其他请求方式,例如:put、delete
|
||||||
method: method,
|
return service({
|
||||||
url: url,
|
method: method,
|
||||||
data: value,
|
url: url,
|
||||||
...options
|
data: value,
|
||||||
})
|
...options
|
||||||
}
|
})
|
||||||
}
|
}
|
||||||
// 模块内的请求, 会自动加上模块的前缀
|
}
|
||||||
export const moduleRequest =
|
// 模块内的请求, 会自动加上模块的前缀
|
||||||
moduleUrl =>
|
export const moduleRequest =
|
||||||
(url, ...arg) => {
|
moduleUrl =>
|
||||||
return baseRequest(moduleUrl + url, ...arg)
|
(url, ...arg) => {
|
||||||
}
|
return baseRequest(moduleUrl + url, ...arg)
|
||||||
|
}
|
||||||
interface LoadingInstance {
|
|
||||||
target: any
|
interface LoadingInstance {
|
||||||
count: number
|
target: any
|
||||||
}
|
count: number
|
||||||
|
}
|
||||||
interface Options {
|
|
||||||
// 是否开启取消重复请求, 默认为 true
|
interface Options {
|
||||||
CancelDuplicateRequest?: boolean
|
// 是否开启取消重复请求, 默认为 true
|
||||||
// 是否开启loading层效果, 默认为false
|
CancelDuplicateRequest?: boolean
|
||||||
loading?: boolean
|
// 是否开启loading层效果, 默认为false
|
||||||
// 是否开启简洁的数据结构响应, 默认为true
|
loading?: boolean
|
||||||
reductDataFormat?: boolean
|
// 是否开启简洁的数据结构响应, 默认为true
|
||||||
// 是否开启code不为A0000时的信息提示, 默认为true
|
reductDataFormat?: boolean
|
||||||
showCodeMessage?: boolean
|
// 是否开启code不为A0000时的信息提示, 默认为true
|
||||||
// 是否开启code为0时的信息提示, 默认为false
|
showCodeMessage?: boolean
|
||||||
showSuccessMessage?: boolean
|
// 是否开启code为0时的信息提示, 默认为false
|
||||||
// 当前请求使用另外的用户token
|
showSuccessMessage?: boolean
|
||||||
anotherToken?: string
|
// 当前请求使用另外的用户token
|
||||||
}
|
anotherToken?: string
|
||||||
|
}
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ export default class TableStore {
|
|||||||
)
|
)
|
||||||
).then(res => {
|
).then(res => {
|
||||||
this.table.allData = filtration(res.data.records || res.data)
|
this.table.allData = filtration(res.data.records || res.data)
|
||||||
console.log('11111',this.table.allData)
|
console.log('11111',this.table)
|
||||||
this.table.exportProcessingData && this.table.exportProcessingData()
|
this.table.exportProcessingData && this.table.exportProcessingData()
|
||||||
this.table.allFlag = data.showAllFlag || true
|
this.table.allFlag = data.showAllFlag || true
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -56,8 +56,10 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="区域" prop="regionList">
|
<el-form-item label="区域" prop="regionList">
|
||||||
<el-cascader v-model="form.regionList" style="width: 100%" :props="props" :options="areaList" />
|
<!-- <el-cascader v-model="form.regionList" style="width: 100%" :props="props" :options="areaList" /> -->
|
||||||
|
<el-cascader v-model="form.regionList" :props="props" :options="areaList" style="width: 100%" placeholder="请选择区域" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="详细地址:" prop="area">
|
<el-form-item label="详细地址:" prop="area">
|
||||||
<el-input
|
<el-input
|
||||||
clearable
|
clearable
|
||||||
@@ -93,6 +95,8 @@ import { mainHeight } from '@/utils/layout'
|
|||||||
import { useDictData } from '@/stores/dictData'
|
import { useDictData } from '@/stores/dictData'
|
||||||
import equipment from './equipment.vue'
|
import equipment from './equipment.vue'
|
||||||
import { addUse, updateUse, removeUse } from '@/api/advance-boot/bearingCapacity'
|
import { addUse, updateUse, removeUse } from '@/api/advance-boot/bearingCapacity'
|
||||||
|
import { getAreaDept } from '@/api/harmonic-boot/area'
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'estimate/photovoltaic'
|
name: 'estimate/photovoltaic'
|
||||||
})
|
})
|
||||||
@@ -104,7 +108,8 @@ const disabled = ref(false)
|
|||||||
const TableHeaderRef = ref()
|
const TableHeaderRef = ref()
|
||||||
const equipmentRef = ref()
|
const equipmentRef = ref()
|
||||||
const title = ref('')
|
const title = ref('')
|
||||||
const areaList: any = dictData.areaSelect()
|
//const areaList: any = dictData.areaSelect()
|
||||||
|
const areaList = ref([])
|
||||||
const userShow: any = ref('Power_Station_Users')
|
const userShow: any = ref('Power_Station_Users')
|
||||||
|
|
||||||
const form = ref({
|
const form = ref({
|
||||||
@@ -263,14 +268,20 @@ tableStore.table.params.userType = ''
|
|||||||
provide('tableStore', tableStore)
|
provide('tableStore', tableStore)
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
tableStore.index()
|
tableStore.index()
|
||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
const useChange = (e: string) => {
|
const useChange = (e: string) => {
|
||||||
userShow.value = uesrList.filter(item => item.id == e)[0].code
|
userShow.value = uesrList.filter(item => item.id == e)[0].code
|
||||||
}
|
}
|
||||||
// 新增
|
// 新增
|
||||||
const add = () => {
|
const add = async () => {
|
||||||
disabled.value = false
|
disabled.value = false
|
||||||
title.value = '新增承载能力待评估用户'
|
title.value = '新增承载能力待评估用户'
|
||||||
|
|
||||||
|
await getAreaDept().then(res => {
|
||||||
|
areaList.value = JSON.parse(JSON.stringify(res.data))
|
||||||
|
})
|
||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
}
|
}
|
||||||
// 保存
|
// 保存
|
||||||
|
|||||||
@@ -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,5 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main">
|
<div class="default-main">
|
||||||
|
<div v-if="detailLoading" class="loading">
|
||||||
|
<el-spin description="加载中..." />
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
<el-descriptions :column="2" border>
|
<el-descriptions :column="2" border>
|
||||||
<el-descriptions-item label="所在地市">
|
<el-descriptions-item label="所在地市">
|
||||||
{{ detailData.city }}
|
{{ detailData.city }}
|
||||||
@@ -208,6 +212,7 @@
|
|||||||
}}
|
}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
|||||||
@@ -1,96 +1,96 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog draggable class="cn-operate-dialog" v-model="dialogVisible" :title="title" width="700px">
|
<el-dialog draggable class="cn-operate-dialog" v-model="dialogVisible" :title="title" width="700px">
|
||||||
<el-scrollbar>
|
<el-scrollbar>
|
||||||
<el-form :inline="false" :model="form" label-width="auto" :rules="rules" ref="formRef">
|
<el-form :inline="false" :model="form" label-width="auto" :rules="rules" ref="formRef">
|
||||||
<el-form-item label="上级名称">
|
<el-form-item label="上级名称">
|
||||||
<!-- <el-input v-model="form.pid" placeholder="上级名称" /> -->
|
<!-- <el-input v-model="form.pid" placeholder="上级名称" /> -->
|
||||||
<el-tree-select
|
<el-tree-select
|
||||||
v-model="form.pid"
|
v-model="form.pid"
|
||||||
:data="dataTree"
|
:data="dataTree"
|
||||||
check-strictly
|
check-strictly
|
||||||
clearable
|
clearable
|
||||||
default-expand-all
|
default-expand-all
|
||||||
:render-after-expand="false"
|
:render-after-expand="false"
|
||||||
:props="defaultProps"
|
:props="defaultProps"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="名称" prop="name">
|
<el-form-item label="名称" prop="name">
|
||||||
<el-input v-model="form.name" placeholder="名称" />
|
<el-input v-model="form.name" placeholder="名称" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span class="dialog-footer">
|
<span class="dialog-footer">
|
||||||
<el-button @click="dialogVisible = false">取消</el-button>
|
<el-button @click="dialogVisible = false">取消</el-button>
|
||||||
<el-button type="primary" @click="submit">确认</el-button>
|
<el-button type="primary" @click="submit">确认</el-button>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref, inject } from 'vue'
|
import { ref, inject } from 'vue'
|
||||||
import { reactive } from 'vue'
|
import { reactive } from 'vue'
|
||||||
import { ElMessage } from 'element-plus'
|
import { ElMessage } from 'element-plus'
|
||||||
import { queryAllAlgorithmLibrary, addAlgorithm } from '@/api/supervision-boot/database/index'
|
import { queryAllAlgorithmLibrary, addAlgorithm } from '@/api/supervision-boot/database/index'
|
||||||
const dialogVisible = ref(false)
|
const dialogVisible = ref(false)
|
||||||
const title = ref('')
|
const title = ref('')
|
||||||
const emit = defineEmits(['getTree'])
|
const emit = defineEmits(['getTree'])
|
||||||
const formRef = ref()
|
const formRef = ref()
|
||||||
// 注意不要和表单ref的命名冲突
|
// 注意不要和表单ref的命名冲突
|
||||||
const form = reactive<anyObj>({
|
const form = reactive<anyObj>({
|
||||||
name: '',
|
name: '',
|
||||||
pid: ''
|
pid: ''
|
||||||
})
|
})
|
||||||
const defaultProps = {
|
const defaultProps = {
|
||||||
children: 'children',
|
children: 'children',
|
||||||
label: 'name',
|
label: 'name',
|
||||||
value: 'id'
|
value: 'id'
|
||||||
}
|
}
|
||||||
const rules = {
|
const rules = {
|
||||||
name: [{ required: true, message: '请输入名称', trigger: 'blur' }]
|
name: [{ required: true, message: '请输入名称', trigger: 'blur' }]
|
||||||
}
|
}
|
||||||
const dataTree = ref([])
|
const dataTree = ref([])
|
||||||
const open = (text: string, data?: anyObj) => {
|
const open = (text: string, data?: anyObj) => {
|
||||||
getTheTree()
|
getTheTree()
|
||||||
title.value = text
|
title.value = text
|
||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
if (data) {
|
if (data) {
|
||||||
// 表单赋值
|
// 表单赋值
|
||||||
for (let key in form) {
|
for (let key in form) {
|
||||||
form[key] = data[key]
|
form[key] = data[key]
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// 在此处恢复默认表单
|
// 在此处恢复默认表单
|
||||||
for (let key in form) {
|
for (let key in form) {
|
||||||
form[key] = ''
|
form[key] = ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const getTheTree = () => {
|
const getTheTree = () => {
|
||||||
queryAllAlgorithmLibrary().then(res => {
|
queryAllAlgorithmLibrary().then(res => {
|
||||||
res.data.forEach((item: any) => {
|
res.data.forEach((item: any) => {
|
||||||
item.children.forEach((item2: any) => {
|
item.children.forEach((item2: any) => {
|
||||||
item2.childrens = item2.children
|
item2.childrens = item2.children
|
||||||
item2.children = []
|
item2.children = []
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
dataTree.value = res.data
|
dataTree.value = res.data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const submit = () => {
|
const submit = () => {
|
||||||
formRef.value.validate(async (valid: boolean) => {
|
formRef.value.validate(async (valid: boolean) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
addAlgorithm({
|
addAlgorithm({
|
||||||
pid: form.pid.length == 0 ? '' : form.pid,
|
pid: form.pid.length == 0 ? '' : form.pid,
|
||||||
name: form.name
|
name: form.name
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
ElMessage.success('新增成功')
|
ElMessage.success('新增成功')
|
||||||
emit('getTree')
|
emit('getTree')
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
defineExpose({ open })
|
defineExpose({ open })
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,190 +1,190 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog draggable class="cn-operate-dialog" v-model="dialogVisible" :title="title" width="1200px">
|
<el-dialog draggable class="cn-operate-dialog" v-model="dialogVisible" :title="title" width="1200px">
|
||||||
|
|
||||||
<el-form :model="form" label-width="120px" class="form-two" :rules="rules" ref="formRef">
|
<el-form :model="form" label-width="120px" class="form-two" :rules="rules" ref="formRef">
|
||||||
<el-form-item :label="title == '修改算法' ? '选择修改的数据' : '选择父级'" :prop="title == '修改算法' ? 'pid' : ''">
|
<el-form-item :label="title == '修改算法' ? '选择修改的数据' : '选择父级'" :prop="title == '修改算法' ? 'pid' : ''">
|
||||||
<el-tree-select v-model="form.pid" :data="dataTree" check-strictly clearable filterable
|
<el-tree-select v-model="form.pid" :data="dataTree" check-strictly clearable filterable
|
||||||
@node-click="changeTree" default-expand-all :render-after-expand="false" :props="defaultProps"
|
@node-click="changeTree" default-expand-all :render-after-expand="false" :props="defaultProps"
|
||||||
@clear="TreeList = {}" />
|
@clear="TreeList = {}" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="名称" prop="name" v-if="title == '修改算法' ? TreeList.level != 4 : TreeList.level != 3">
|
<el-form-item label="名称" prop="name" v-if="title == '修改算法' ? TreeList.level != 4 : TreeList.level != 3">
|
||||||
<el-input v-model="form.name" placeholder="名称" clearable maxlength="32" show-word-limit @input="handleInput('name', $event)"/>
|
<el-input v-model="form.name" placeholder="名称" clearable maxlength="32" show-word-limit @input="handleInput('name', $event)"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <div v-if="title == '修改算法' ? TreeList.level == 4 : TreeList.level == 3"> -->
|
<!-- <div v-if="title == '修改算法' ? TreeList.level == 4 : TreeList.level == 3"> -->
|
||||||
<el-form-item label="算法名称" prop="name" v-if="title == '修改算法' ? TreeList.level == 4 : TreeList.level == 3">
|
<el-form-item label="算法名称" prop="name" v-if="title == '修改算法' ? TreeList.level == 4 : TreeList.level == 3">
|
||||||
<el-input v-model="form.name" placeholder="请输入算法名称" clearable maxlength="32" show-word-limit @input="handleInput('name', $event)"/>
|
<el-input v-model="form.name" placeholder="请输入算法名称" clearable maxlength="32" show-word-limit @input="handleInput('name', $event)"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="计算周期" prop="period" v-if="title == '修改算法' ? TreeList.level == 4 : TreeList.level == 3">
|
<el-form-item label="计算周期" prop="period" v-if="title == '修改算法' ? TreeList.level == 4 : TreeList.level == 3">
|
||||||
<el-select v-model="form.period" placeholder="请选择计算周期" clearable>
|
<el-select v-model="form.period" placeholder="请选择计算周期" clearable>
|
||||||
<el-option v-for="item in cycle" :key="item.value" :label="item.label" :value="item.value" />
|
<el-option v-for="item in cycle" :key="item.value" :label="item.label" :value="item.value" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="数据来源" prop="source" v-if="title == '修改算法' ? TreeList.level == 4 : TreeList.level == 3">
|
<el-form-item label="数据来源" prop="source" v-if="title == '修改算法' ? TreeList.level == 4 : TreeList.level == 3">
|
||||||
<el-input v-model="form.source" placeholder="请输入数据来源" clearable maxlength="32" show-word-limit @input="handleInput('source', $event)"/>
|
<el-input v-model="form.source" placeholder="请输入数据来源" clearable maxlength="32" show-word-limit @input="handleInput('source', $event)"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item label="定义" prop="definition" style="width: 100%;" v-if="title == '修改算法' ? TreeList.level == 4 : TreeList.level == 3">
|
<!-- <el-form-item label="定义" prop="definition" style="width: 100%;" v-if="title == '修改算法' ? TreeList.level == 4 : TreeList.level == 3">
|
||||||
|
|
||||||
<editor v-model="form.definition" />
|
<editor v-model="form.definition" />
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
</el-form>
|
</el-form>
|
||||||
<div style="display: flex" v-if="title == '修改算法' ? TreeList.level == 4 : TreeList.level == 3">
|
<div style="display: flex" v-if="title == '修改算法' ? TreeList.level == 4 : TreeList.level == 3">
|
||||||
<div style="width: 140px;margin-right: -20px;text-align: center;flex-shrink: 0;">定义</div>
|
<div style="width: 140px;margin-right: -20px;text-align: center;flex-shrink: 0;">定义</div>
|
||||||
<editor v-model="form.definition" />
|
<editor v-model="form.definition" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span class="dialog-footer">
|
<span class="dialog-footer">
|
||||||
<el-button @click="dialogVisible = false">取消</el-button>
|
<el-button @click="dialogVisible = false">取消</el-button>
|
||||||
<el-button type="primary" @click="submit" v-loading="loading">确认</el-button>
|
<el-button type="primary" @click="submit" v-loading="loading">确认</el-button>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref, nextTick } from 'vue'
|
import { ref, nextTick } from 'vue'
|
||||||
import { reactive } from 'vue'
|
import { reactive } from 'vue'
|
||||||
import { ElMessage } from 'element-plus'
|
import { ElMessage } from 'element-plus'
|
||||||
import { queryAllAlgorithmLibrary, addAlgorithm, updateAlgorithmLibrary } from '@/api/supervision-boot/database/index'
|
import { queryAllAlgorithmLibrary, addAlgorithm, updateAlgorithmLibrary } from '@/api/supervision-boot/database/index'
|
||||||
import editor from '@/components/wangEditor/index.vue'
|
import editor from '@/components/wangEditor/index.vue'
|
||||||
const emit = defineEmits(['getTree'])
|
const emit = defineEmits(['getTree'])
|
||||||
const dialogVisible = ref(false)
|
const dialogVisible = ref(false)
|
||||||
const title = ref('')
|
const title = ref('')
|
||||||
const formRef = ref()
|
const formRef = ref()
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const dataTree = ref([])
|
const dataTree = ref([])
|
||||||
const key = ref(0)
|
const key = ref(0)
|
||||||
const TreeList: any = ref({})
|
const TreeList: any = ref({})
|
||||||
const List = ref({})
|
const List = ref({})
|
||||||
const defaultProps = {
|
const defaultProps = {
|
||||||
children: 'children',
|
children: 'children',
|
||||||
label: 'name',
|
label: 'name',
|
||||||
value: 'id'
|
value: 'id'
|
||||||
}
|
}
|
||||||
// 注意不要和表单ref的命名冲突
|
// 注意不要和表单ref的命名冲突
|
||||||
const form = reactive<anyObj>({
|
const form = reactive<anyObj>({
|
||||||
name: '',
|
name: '',
|
||||||
period: '',
|
period: '',
|
||||||
definition: '',
|
definition: '',
|
||||||
source: '',
|
source: '',
|
||||||
pid: ''
|
pid: ''
|
||||||
})
|
})
|
||||||
const rules = {
|
const rules = {
|
||||||
name: [{ required: true, message: '请输入算法名称', trigger: 'blur' }],
|
name: [{ required: true, message: '请输入算法名称', trigger: 'blur' }],
|
||||||
period: [{ required: true, message: '请选择计算周期', trigger: 'change' }],
|
period: [{ required: true, message: '请选择计算周期', trigger: 'change' }],
|
||||||
pid: [{ required: true, message: '请选择数据', trigger: 'change' }],
|
pid: [{ required: true, message: '请选择数据', trigger: 'change' }],
|
||||||
definition: [{ required: true, message: '请输入定义', trigger: 'blur' }],
|
definition: [{ required: true, message: '请输入定义', trigger: 'blur' }],
|
||||||
source: [{ required: true, message: '请输入数据来源', trigger: 'blur' }]
|
source: [{ required: true, message: '请输入数据来源', trigger: 'blur' }]
|
||||||
}
|
}
|
||||||
const cycle = [
|
const cycle = [
|
||||||
{ value: '0', label: '日' },
|
{ value: '0', label: '日' },
|
||||||
{ value: '1', label: '月' },
|
{ value: '1', label: '月' },
|
||||||
{ value: '2', label: '季' },
|
{ value: '2', label: '季' },
|
||||||
{ value: '3', label: '年' }
|
{ value: '3', label: '年' }
|
||||||
]
|
]
|
||||||
const changeTree = (row: any) => {
|
const changeTree = (row: any) => {
|
||||||
console.log("🚀 ~ changeTree ~ row:", row)
|
console.log("🚀 ~ changeTree ~ row:", row)
|
||||||
TreeList.value = row
|
TreeList.value = row
|
||||||
if (title.value == '修改算法') {
|
if (title.value == '修改算法') {
|
||||||
if (row.level != 4) {
|
if (row.level != 4) {
|
||||||
form.name = row.name
|
form.name = row.name
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
for (let key in form) {
|
for (let key in form) {
|
||||||
form[key] = row[key]
|
form[key] = row[key]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
form.id = row.id
|
form.id = row.id
|
||||||
key.value += 1
|
key.value += 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const open = (row: any) => {
|
const open = (row: any) => {
|
||||||
title.value = row.title
|
title.value = row.title
|
||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
List.value = row.row
|
List.value = row.row
|
||||||
getTheTree()
|
getTheTree()
|
||||||
// 在此处恢复默认表单
|
// 在此处恢复默认表单
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
for (let key in form) {
|
for (let key in form) {
|
||||||
form[key] = ''
|
form[key] = ''
|
||||||
}
|
}
|
||||||
if (row.title == '修改算法') {
|
if (row.title == '修改算法') {
|
||||||
|
|
||||||
form.pid = row.row.id
|
form.pid = row.row.id
|
||||||
TreeList.value = row.row
|
TreeList.value = row.row
|
||||||
changeTree(row.row)
|
changeTree(row.row)
|
||||||
|
|
||||||
// row.row
|
// row.row
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
formRef.value?.resetFields()
|
formRef.value?.resetFields()
|
||||||
}
|
}
|
||||||
const submit = async () => {
|
const submit = async () => {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
formRef.value.validate(async (valid: boolean) => {
|
formRef.value.validate(async (valid: boolean) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (title.value == '新增算法') {
|
if (title.value == '新增算法') {
|
||||||
let forms: any = {}
|
let forms: any = {}
|
||||||
if (TreeList.value.level == 3) {
|
if (TreeList.value.level == 3) {
|
||||||
forms = form
|
forms = form
|
||||||
} else {
|
} else {
|
||||||
forms.name = form.name
|
forms.name = form.name
|
||||||
forms.pid = form.pid
|
forms.pid = form.pid
|
||||||
}
|
}
|
||||||
await addAlgorithm(forms).then(res => {
|
await addAlgorithm(forms).then(res => {
|
||||||
ElMessage.success('新增成功')
|
ElMessage.success('新增成功')
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
emit('getTree')
|
emit('getTree')
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
let forms: any = {}
|
let forms: any = {}
|
||||||
if (TreeList.value.level == 4) {
|
if (TreeList.value.level == 4) {
|
||||||
forms = JSON.parse(JSON.stringify(form))
|
forms = JSON.parse(JSON.stringify(form))
|
||||||
} else {
|
} else {
|
||||||
forms.name = form.name
|
forms.name = form.name
|
||||||
forms.id = form.id
|
forms.id = form.id
|
||||||
}
|
}
|
||||||
forms.pid = null
|
forms.pid = null
|
||||||
await updateAlgorithmLibrary(forms).then(res => {
|
await updateAlgorithmLibrary(forms).then(res => {
|
||||||
ElMessage.success('修改成功')
|
ElMessage.success('修改成功')
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
emit('getTree')
|
emit('getTree')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
await setTimeout(() => {
|
await setTimeout(() => {
|
||||||
|
|
||||||
loading.value = false
|
loading.value = false
|
||||||
}, 0)
|
}, 0)
|
||||||
}
|
}
|
||||||
const getTheTree = () => {
|
const getTheTree = () => {
|
||||||
queryAllAlgorithmLibrary().then(res => {
|
queryAllAlgorithmLibrary().then(res => {
|
||||||
res.data.forEach((item: any) => {
|
res.data.forEach((item: any) => {
|
||||||
item.children.forEach((item2: any) => {
|
item.children.forEach((item2: any) => {
|
||||||
item2.children.forEach((item3: any) => {
|
item2.children.forEach((item3: any) => {
|
||||||
if (title.value != '修改算法') {
|
if (title.value != '修改算法') {
|
||||||
item3.childrens = item3.children
|
item3.childrens = item3.children
|
||||||
item3.children = []
|
item3.children = []
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
dataTree.value = res.data
|
dataTree.value = res.data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const handleInput = (field: string, value: string) => {
|
const handleInput = (field: string, value: string) => {
|
||||||
// 过滤空格
|
// 过滤空格
|
||||||
const filteredValue = value.replace(/\s/g, '')
|
const filteredValue = value.replace(/\s/g, '')
|
||||||
if (filteredValue !== value) {
|
if (filteredValue !== value) {
|
||||||
form[field] = filteredValue
|
form[field] = filteredValue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
defineExpose({ open })
|
defineExpose({ open })
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -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 {
|
<style lang="scss" scoped>
|
||||||
background: #eaeef1;
|
.bars_w {
|
||||||
|
width: 100%;
|
||||||
|
height: 500px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid-content {
|
:deep(.el-tabs__content) {
|
||||||
text-align: center;
|
height: v-bind('layout.height');
|
||||||
}
|
overflow-y: auto;
|
||||||
|
|
||||||
.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>
|
</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>
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
<div style="display: flex;align-items: center;">
|
<div style="display: flex;align-items: center;">
|
||||||
<div>{{ item.name }}</div>
|
<div>{{ item.name }}</div>
|
||||||
|
|
||||||
<el-icon class="elView" v-if="item.name && VITE_FLAG" @click="view(item)">
|
<el-icon class="elView" v-if="item.name" @click="view(item)">
|
||||||
<View />
|
<View />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<el-icon class="elView" v-if="item.name" @click="download(item)">
|
<el-icon class="elView" v-if="item.name" @click="download(item)">
|
||||||
@@ -50,7 +50,7 @@ import { ref, reactive } from 'vue'
|
|||||||
import { defaultAttribute } from '@/components/table/defaultAttribute'
|
import { defaultAttribute } from '@/components/table/defaultAttribute'
|
||||||
import { getFileNameAndFilePath, downloadFile } from '@/api/system-boot/file'
|
import { getFileNameAndFilePath, downloadFile } from '@/api/system-boot/file'
|
||||||
import { Download, View } from '@element-plus/icons-vue'
|
import { Download, View } from '@element-plus/icons-vue'
|
||||||
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
|
||||||
const dialogVisible = ref(false)
|
const dialogVisible = ref(false)
|
||||||
const tableData: any = ref({
|
const tableData: any = ref({
|
||||||
|
|
||||||
|
|||||||
@@ -20,13 +20,13 @@
|
|||||||
<el-empty v-if="url.length == 0" description="暂无数据" class="custom-empty"
|
<el-empty v-if="url.length == 0" description="暂无数据" class="custom-empty"
|
||||||
:style="`height: calc(${height.height} - 60px);`" />
|
:style="`height: calc(${height.height} - 60px);`" />
|
||||||
<div :style="`height: calc(${height.height} - 60px);overflow: auto;`" v-else>
|
<div :style="`height: calc(${height.height} - 60px);overflow: auto;`" v-else>
|
||||||
<vue-office-docx v-if="url.includes('.doc') || url.includes('.docx')" :src="url" />
|
<vue-office-docx v-if="urlKey.includes('.doc') || urlKey.includes('.docx')" :src="url" />
|
||||||
<vue-office-excel v-if="url.includes('.xls') || url.includes('.xlsx')" :src="url"
|
<vue-office-excel v-if="urlKey.includes('.xls') || urlKey.includes('.xlsx')" :src="url"
|
||||||
: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="url.includes('.pdf')" :src="url" style="width: 100%; height: 99%"></iframe>
|
<iframe v-if="urlKey.includes('.pdf')" :src="url" style="width: 100%; height: 99%"></iframe>
|
||||||
<img v-if="
|
<img v-if="
|
||||||
url.includes('.png') || url.includes('.jpg') || url.includes('.gif') || url.includes('.bmp')
|
urlKey.includes('.png') || urlKey.includes('.jpg') || urlKey.includes('.gif') || urlKey.includes('.bmp')
|
||||||
" :src="url" />
|
" :src="url" />
|
||||||
</div>
|
</div>
|
||||||
</pane>
|
</pane>
|
||||||
@@ -56,6 +56,7 @@ import VueOfficeExcel from '@vue-office/excel'
|
|||||||
import VueOfficePdf from '@vue-office/pdf'
|
import VueOfficePdf from '@vue-office/pdf'
|
||||||
import { deleteyLibstandard } from '@/api/supervision-boot/database/index'
|
import { deleteyLibstandard } from '@/api/supervision-boot/database/index'
|
||||||
import { useAdminInfo } from '@/stores/adminInfo'
|
import { useAdminInfo } from '@/stores/adminInfo'
|
||||||
|
import {previewFile } from '@/utils/fileDownLoad'
|
||||||
const adminInfo = useAdminInfo()
|
const adminInfo = useAdminInfo()
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'database/standard'
|
name: 'database/standard'
|
||||||
@@ -77,7 +78,7 @@ onMounted(() => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const urlKey=ref('')
|
||||||
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
||||||
const handleNodeClick = (data: any, node: any) => {
|
const handleNodeClick = (data: any, node: any) => {
|
||||||
console.log("🚀 ~ handleNodeClick ~ data:", data)
|
console.log("🚀 ~ handleNodeClick ~ data:", data)
|
||||||
@@ -86,13 +87,14 @@ const handleNodeClick = (data: any, node: any) => {
|
|||||||
flag.value = false
|
flag.value = false
|
||||||
if (data?.url != null && data?.url != '') {
|
if (data?.url != null && data?.url != '') {
|
||||||
flag.value = true
|
flag.value = true
|
||||||
|
urlKey.value = data.url
|
||||||
setTimeout(() => {
|
setTimeout(async () => {
|
||||||
if(VITE_FLAG){
|
if(VITE_FLAG){
|
||||||
url.value = `/api-docx/excelreport` + data.url
|
url.value = `/api-docx/excelreport` + data.url
|
||||||
excelOptions.value = { xls: data.url.split('.')[1] == 'xls' ? true : false }
|
excelOptions.value = { xls: data.url.split('.')[1] == 'xls' ? true : false }
|
||||||
}else{
|
}else{
|
||||||
|
const previewUrl = await previewFile(data.url);
|
||||||
|
url.value = previewUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
// getFileNameAndFilePath({ filePath: data.url }).then(res => {
|
// getFileNameAndFilePath({ filePath: data.url }).then(res => {
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ defineOptions({
|
|||||||
})
|
})
|
||||||
const information = adminInfo.roleCode.includes('information_info')
|
const information = adminInfo.roleCode.includes('information_info')
|
||||||
const popupEditRef = ref()
|
const popupEditRef = ref()
|
||||||
|
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
||||||
const TableHeaderRef = ref()
|
const TableHeaderRef = ref()
|
||||||
|
|
||||||
const tableStore = new TableStore({
|
const tableStore = new TableStore({
|
||||||
@@ -59,6 +59,9 @@ const tableStore = new TableStore({
|
|||||||
type: 'primary',
|
type: 'primary',
|
||||||
icon: 'el-icon-Plus',
|
icon: 'el-icon-Plus',
|
||||||
render: 'basicButton',
|
render: 'basicButton',
|
||||||
|
// disabled: row => {
|
||||||
|
// return !VITE_FLAG
|
||||||
|
// },
|
||||||
click: row => {
|
click: row => {
|
||||||
window.open(window.location.origin + '/#/previewFile?' + row.url)
|
window.open(window.location.origin + '/#/previewFile?' + row.url)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,11 +75,11 @@ const tableStore = new TableStore({
|
|||||||
yData = []
|
yData = []
|
||||||
chartsData.value.map((item: any) => {
|
chartsData.value.map((item: any) => {
|
||||||
xData.push(item.type)
|
xData.push(item.type)
|
||||||
if (item.single == 0 || item.single == 3.14159) {
|
// if (item.single == 0 || item.single == 3.14159) {
|
||||||
yData.push(1)
|
// yData.push(0)
|
||||||
} else {
|
// } else {
|
||||||
yData.push(item.single)
|
yData.push(item.single)
|
||||||
}
|
//}
|
||||||
})
|
})
|
||||||
// tableStore.table.data.type
|
// tableStore.table.data.type
|
||||||
const legendColorList = ['#0099CC', '#9A6601', '#CCCCCC', '#FFFFFF']
|
const legendColorList = ['#0099CC', '#9A6601', '#CCCCCC', '#FFFFFF']
|
||||||
@@ -111,7 +111,19 @@ const tableStore = new TableStore({
|
|||||||
},
|
},
|
||||||
|
|
||||||
tooltip: {
|
tooltip: {
|
||||||
|
formatter: function (params: any) {
|
||||||
|
var tips = ''
|
||||||
|
for (var i = 0; i < params.length; i++) {
|
||||||
|
if (params[i].value == 3.14159) {
|
||||||
|
tips += params[i].name + '</br>'
|
||||||
|
tips += params[i].marker + '完整性:暂无数据'
|
||||||
|
} else {
|
||||||
|
tips += params[i].name + '</br>'
|
||||||
|
tips += params[i].marker + '完整性:' + params[i].value.toFixed(2)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return tips
|
||||||
|
}
|
||||||
// formatter: function (params: any) {
|
// formatter: function (params: any) {
|
||||||
// var tips = `<div style="min-width:80px;display:flex;justify-content:space-between;align-items:center">
|
// var tips = `<div style="min-width:80px;display:flex;justify-content:space-between;align-items:center">
|
||||||
// <span style="margin-left:5px;dislpay:block;min-width:80px;color:#000">${params[0].name}</span></div>`
|
// <span style="margin-left:5px;dislpay:block;min-width:80px;color:#000">${params[0].name}</span></div>`
|
||||||
@@ -181,7 +193,21 @@ const tableStore = new TableStore({
|
|||||||
|
|
||||||
// 定制显示(按顺序)
|
// 定制显示(按顺序)
|
||||||
color: function (params) {
|
color: function (params) {
|
||||||
if (params.value >= 90) {
|
if (params.value == 3.14159) {
|
||||||
|
return new echarts.graphic.LinearGradient(
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
[
|
||||||
|
{
|
||||||
|
offset: 1,
|
||||||
|
color: '#ccc'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
false
|
||||||
|
)
|
||||||
|
} else if (params.value >= 90) {
|
||||||
return new echarts.graphic.LinearGradient(
|
return new echarts.graphic.LinearGradient(
|
||||||
0,
|
0,
|
||||||
1,
|
1,
|
||||||
@@ -209,7 +235,7 @@ const tableStore = new TableStore({
|
|||||||
],
|
],
|
||||||
false
|
false
|
||||||
)
|
)
|
||||||
} else if (params.value > 0.5 && params.value <= 60) {
|
} else if (params.value > 0 && params.value <= 60) {
|
||||||
return new echarts.graphic.LinearGradient(
|
return new echarts.graphic.LinearGradient(
|
||||||
0,
|
0,
|
||||||
1,
|
1,
|
||||||
@@ -223,7 +249,7 @@ const tableStore = new TableStore({
|
|||||||
],
|
],
|
||||||
false
|
false
|
||||||
)
|
)
|
||||||
} else if (params.value > 0 && params.value <= 0.5) {
|
} else if (params.value == 0) {
|
||||||
return new echarts.graphic.LinearGradient(
|
return new echarts.graphic.LinearGradient(
|
||||||
0,
|
0,
|
||||||
1,
|
1,
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
<template #operation>
|
<template #operation>
|
||||||
<el-button type="primary" icon="el-icon-Tickets" @click="makeUp">补招</el-button>
|
<el-button type="primary" icon="el-icon-Tickets" @click="makeUp" v-if="!VITE_FLAG">补招</el-button>
|
||||||
</template>
|
</template>
|
||||||
</TableHeader>
|
</TableHeader>
|
||||||
</div>
|
</div>
|
||||||
@@ -113,6 +113,7 @@ const adminInfo = useAdminInfo()
|
|||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'harmonic-boot/harmonic/getIntegrityData'
|
name: 'harmonic-boot/harmonic/getIntegrityData'
|
||||||
})
|
})
|
||||||
|
const VITE_FLAG = import.meta.env.VITE_NAME == 'hainan'
|
||||||
const logRef = ref()
|
const logRef = ref()
|
||||||
const tableRef = ref()
|
const tableRef = ref()
|
||||||
const chartsRef = ref()
|
const chartsRef = ref()
|
||||||
|
|||||||
@@ -109,10 +109,10 @@ const tableStore = new TableStore({
|
|||||||
for (var i = 0; i < params.length; i++) {
|
for (var i = 0; i < params.length; i++) {
|
||||||
if (params[i].value == 1) {
|
if (params[i].value == 1) {
|
||||||
tips += params[i].name + '</br>'
|
tips += params[i].name + '</br>'
|
||||||
tips += '在线率:暂无数据'
|
tips += params[i].marker + '在线率:暂无数据'
|
||||||
} else {
|
} else {
|
||||||
tips += params[i].name + '</br>'
|
tips += params[i].name + '</br>'
|
||||||
tips += '在线率:' + params[i].value.toFixed(2)
|
tips += params[i].marker + '在线率:' + params[i].value.toFixed(2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return tips
|
return tips
|
||||||
|
|||||||
@@ -131,6 +131,12 @@ import TableHeader from '@/components/table/header/index.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 charts from './components/charts.vue'
|
import charts from './components/charts.vue'
|
||||||
|
|
||||||
|
|
||||||
|
defineOptions({
|
||||||
|
name: 'device-boot/getOnlineRateData'
|
||||||
|
})
|
||||||
|
|
||||||
const tableRef = ref()
|
const tableRef = ref()
|
||||||
const chartsRef = ref()
|
const chartsRef = ref()
|
||||||
const dictData = useDictData()
|
const dictData = useDictData()
|
||||||
|
|||||||
@@ -164,6 +164,7 @@ provide('tableStore', tableStore)
|
|||||||
tableStore.table.params.deptIndex = dictData.state.area[0].id
|
tableStore.table.params.deptIndex = dictData.state.area[0].id
|
||||||
tableStore.table.params.monitorFlag = 2
|
tableStore.table.params.monitorFlag = 2
|
||||||
tableStore.table.params.powerFlag = sign[0]?.algoDescribe || 0
|
tableStore.table.params.powerFlag = sign[0]?.algoDescribe || 0
|
||||||
|
|
||||||
tableStore.table.params.statisticalType = {}
|
tableStore.table.params.statisticalType = {}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -291,7 +291,7 @@ tableStore.table.params.isUpToGrid = 0
|
|||||||
tableStore.table.params.type = 1
|
tableStore.table.params.type = 1
|
||||||
|
|
||||||
const handleStatisticalTypeChange = (newVal: { id: any }) => {
|
const handleStatisticalTypeChange = (newVal: { id: any }) => {
|
||||||
console.log('🚀 ~ handleStatisticalTypeChange ~ newVal:', newVal)
|
|
||||||
if (newVal) {
|
if (newVal) {
|
||||||
tableStore.table.params.statisticalType = newVal
|
tableStore.table.params.statisticalType = newVal
|
||||||
tableStore.table.params.ids = [newVal.id]
|
tableStore.table.params.ids = [newVal.id]
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -1448,7 +1448,7 @@ const rendering = () => {
|
|||||||
}
|
}
|
||||||
const getEcharts = () => {
|
const getEcharts = () => {
|
||||||
list.value.forEach((item: any, i: number) => {
|
list.value.forEach((item: any, i: number) => {
|
||||||
console.log('🚀 ~ getEcharts ~ item:', item)
|
|
||||||
|
|
||||||
const values = item.value && item.value.length > 0 ? item.value.map(k => k[1]) : [0]
|
const values = item.value && item.value.length > 0 ? item.value.map(k => k[1]) : [0]
|
||||||
let [min, max] = yMethod([item.maxValue, item.minValue, ...values])
|
let [min, max] = yMethod([item.maxValue, item.minValue, ...values])
|
||||||
@@ -1485,13 +1485,17 @@ const getEcharts = () => {
|
|||||||
fontSize: 14
|
fontSize: 14
|
||||||
},
|
},
|
||||||
backgroundColor: 'rgba(0,0,0,0.55)',
|
backgroundColor: 'rgba(0,0,0,0.55)',
|
||||||
|
|
||||||
formatter: function (params: any) {
|
formatter: function (params: any) {
|
||||||
let tips = ''
|
let tips = ''
|
||||||
tips += '时刻:' + params[0].data[0] + '</br/>'
|
tips += '时刻:' + params[0].data[0] + '</br/>'
|
||||||
for (let i = 0; i < params.length; i++) {
|
for (let i = 0; i < params.length; i++) {
|
||||||
|
|
||||||
|
|
||||||
if (params[i].seriesName == '暂态触发点') {
|
if (params[i].seriesName == '暂态触发点') {
|
||||||
|
|
||||||
tips += ''
|
tips += ''
|
||||||
|
|
||||||
return tips
|
return tips
|
||||||
}
|
}
|
||||||
if (params[i].seriesName == 'A相谐波电流方向') {
|
if (params[i].seriesName == 'A相谐波电流方向') {
|
||||||
@@ -1526,41 +1530,50 @@ const getEcharts = () => {
|
|||||||
let str = (params[i].value[1] * 1).toString()
|
let str = (params[i].value[1] * 1).toString()
|
||||||
let reg = str.indexOf('.') > -1 ? /(\d)(?=(\d{3})+\.)/g : /(\d)(?=(?:\d{3})+$)/g
|
let reg = str.indexOf('.') > -1 ? /(\d)(?=(\d{3})+\.)/g : /(\d)(?=(?:\d{3})+$)/g
|
||||||
let str1 = str.replace(reg, '$1,')
|
let str1 = str.replace(reg, '$1,')
|
||||||
|
let cleanStr = str1.replace(/,/g, '')
|
||||||
|
let num = Number(cleanStr)
|
||||||
tips +=
|
tips +=
|
||||||
params[i].marker +
|
params[i].marker +
|
||||||
params[i].seriesName.replace('(kV)', '') +
|
params[i].seriesName.replace('(kV)', '') +
|
||||||
':' +
|
':' +
|
||||||
(Number.isNaN(Number(str1)) ? '/' : str1) +
|
(Number.isNaN(Number(num)) ? '/' : num) +
|
||||||
'kV<br/>'
|
'kV<br/>'
|
||||||
} else if (params[i].seriesName == '零序电压(V)' || params[i].seriesName == '负序电压(V)') {
|
} else if (params[i].seriesName == '零序电压(V)' || params[i].seriesName == '负序电压(V)') {
|
||||||
let str = (params[i].value[1] * 1).toString()
|
let str = (params[i].value[1] * 1).toString()
|
||||||
let reg = str.indexOf('.') > -1 ? /(\d)(?=(\d{3})+\.)/g : /(\d)(?=(?:\d{3})+$)/g
|
let reg = str.indexOf('.') > -1 ? /(\d)(?=(\d{3})+\.)/g : /(\d)(?=(?:\d{3})+$)/g
|
||||||
let str1 = str.replace(reg, '$1,')
|
let str1 = str.replace(reg, '$1,')
|
||||||
|
let cleanStr = str1.replace(/,/g, '')
|
||||||
|
let num = Number(cleanStr)
|
||||||
tips +=
|
tips +=
|
||||||
params[i].marker +
|
params[i].marker +
|
||||||
params[i].seriesName.replace('(V)', '') +
|
params[i].seriesName.replace('(V)', '') +
|
||||||
':' +
|
':' +
|
||||||
(Number.isNaN(Number(str1)) ? '/' : str1) +
|
(Number.isNaN(Number(num)) ? '/' : num) +
|
||||||
'V<br/>'
|
'V<br/>'
|
||||||
} else if (params[i].seriesName !== '正序电压(kV)') {
|
} else if (params[i].seriesName !== '正序电压(kV)') {
|
||||||
let str = (params[i].value[1] * 1).toString()
|
let str = (params[i].value[1] * 1).toString()
|
||||||
let reg = str.indexOf('.') > -1 ? /(\d)(?=(\d{3})+\.)/g : /(\d)(?=(?:\d{3})+$)/g
|
let reg = str.indexOf('.') > -1 ? /(\d)(?=(\d{3})+\.)/g : /(\d)(?=(?:\d{3})+$)/g
|
||||||
let str1 = str.replace(reg, '$1,')
|
let str1 = str.replace(reg, '$1,')
|
||||||
|
let cleanStr = str1.replace(/,/g, '')
|
||||||
|
let num = Number(cleanStr)
|
||||||
tips +=
|
tips +=
|
||||||
params[i].marker +
|
params[i].marker +
|
||||||
params[i].seriesName +
|
params[i].seriesName +
|
||||||
':' +
|
':' +
|
||||||
(Number.isNaN(Number(str1)) ? '/' : str1) +
|
(Number.isNaN(Number(num)) ? '/' : num) +
|
||||||
'<br/>'
|
'<br/>'
|
||||||
} else {
|
} else {
|
||||||
let str = (params[i].value[2] * 1).toString()
|
let str = (params[i].value[2] * 1).toString()
|
||||||
|
|
||||||
let reg = str.indexOf('.') > -1 ? /(\d)(?=(\d{3})+\.)/g : /(\d)(?=(?:\d{3})+$)/g
|
let reg = str.indexOf('.') > -1 ? /(\d)(?=(\d{3})+\.)/g : /(\d)(?=(?:\d{3})+$)/g
|
||||||
let str1 = str.replace(reg, '$1,')
|
let str1 = str.replace(reg, '$1,')
|
||||||
|
let cleanStr = str1.replace(/,/g, '')
|
||||||
|
let num = Number(cleanStr)
|
||||||
tips +=
|
tips +=
|
||||||
params[i].marker +
|
params[i].marker +
|
||||||
params[i].seriesName +
|
params[i].seriesName +
|
||||||
':' +
|
':' +
|
||||||
(Number.isNaN(Number(str1)) ? '/' : str1) +
|
(Number.isNaN(Number(num)) ? '/' : num) +
|
||||||
'<br/>'
|
'<br/>'
|
||||||
|
|
||||||
let str2 = (params[i].value[3] * 1).toString()
|
let str2 = (params[i].value[3] * 1).toString()
|
||||||
@@ -1575,6 +1588,8 @@ const getEcharts = () => {
|
|||||||
':' +
|
':' +
|
||||||
(Number.isNaN(Number(str2)) ? '/' : str2) +
|
(Number.isNaN(Number(str2)) ? '/' : str2) +
|
||||||
'<br/>'
|
'<br/>'
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1796,8 +1811,7 @@ const getEcharts = () => {
|
|||||||
echarts.connect('group')
|
echarts.connect('group')
|
||||||
}
|
}
|
||||||
const conditionChange = () => {
|
const conditionChange = () => {
|
||||||
console.log(123)
|
|
||||||
|
|
||||||
//判断一个指标时
|
//判断一个指标时
|
||||||
if (formData.condition.length == 1) {
|
if (formData.condition.length == 1) {
|
||||||
if (
|
if (
|
||||||
@@ -1933,9 +1947,9 @@ const conditionChange = () => {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
// console.log('🚀 ~ setTimeout ~ tableHeaderRef.value:', tableHeaderRef.value)
|
//console.log('🚀 ~ setTimeout ~ tableHeaderRef.value:', tableHeaderRef.value)
|
||||||
|
|
||||||
tableHeaderRef.value && tableHeaderRef.value?.computedSearchRow()
|
//tableHeaderRef.value && tableHeaderRef.value?.computedSearchRow()
|
||||||
}, 100)
|
}, 100)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -231,14 +231,14 @@ const init = () => {
|
|||||||
},
|
},
|
||||||
backgroundColor: 'rgba(0,0,0,0.55)',
|
backgroundColor: 'rgba(0,0,0,0.55)',
|
||||||
formatter: function (params: any) {
|
formatter: function (params: any) {
|
||||||
//console.log(params)
|
console.log(params)
|
||||||
let msg = ''
|
let msg = ''
|
||||||
msg += params[0].name + '<br/>'
|
msg += params[0].name
|
||||||
for (let i in params) {
|
for (let i in params) {
|
||||||
if (params[i].data == 3.14159) {
|
if (params[i].data == 3.14159) {
|
||||||
msg +=params[i].marker+ params[i].seriesName + ': 暂无数据<br/>'
|
msg += '(' + params[i].seriesName + ')' + '<br/>' + params[i].marker + ': 暂无数据<br/>'
|
||||||
} else {
|
} else {
|
||||||
msg += params[i].marker+ params[i].seriesName + ': ' + params[i].data + '<br/>'
|
msg += '(' + params[i].seriesName + ')' + '<br/>' + params[i].marker + ': ' + params[i].data + '<br/>'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return msg
|
return msg
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<template #operation>
|
<template #operation>
|
||||||
<el-button icon="el-icon-Download" type="primary" @click="exportEvent">导出excel</el-button>
|
<el-button icon="el-icon-Download" type="primary" @click="exportEvent">导出excel</el-button>
|
||||||
<el-button icon="el-icon-Download" :loading="loading" @click="exportReport" type="primary">
|
<el-button icon="el-icon-Download" :loading="loading" @click="exportReport" type="primary" v-if="VITE_FLAG">
|
||||||
下载报告
|
下载报告
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
@@ -69,6 +69,7 @@ import { ElMessage } from 'element-plus'
|
|||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'harmonic-boot/xieboReport'
|
name: 'harmonic-boot/xieboReport'
|
||||||
})
|
})
|
||||||
|
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
||||||
const showTree = ref(false)
|
const showTree = ref(false)
|
||||||
const height = mainHeight(20)
|
const height = mainHeight(20)
|
||||||
const size = ref(23)
|
const size = ref(23)
|
||||||
@@ -77,7 +78,7 @@ const TableHeaderRef = ref()
|
|||||||
const dotList: any = ref({})
|
const dotList: any = ref({})
|
||||||
const Template: any = ref({})
|
const Template: any = ref({})
|
||||||
const reportForm: any = ref('')
|
const reportForm: any = ref('')
|
||||||
|
const name = ref('')
|
||||||
const templatePolicy: any = ref([])
|
const templatePolicy: any = ref([])
|
||||||
const reportFormList: any = ref([
|
const reportFormList: any = ref([
|
||||||
{
|
{
|
||||||
@@ -100,6 +101,7 @@ const tableStore = new TableStore({
|
|||||||
beforeSearchFun: () => {
|
beforeSearchFun: () => {
|
||||||
tableStore.table.params.tempId = Template.value.id
|
tableStore.table.params.tempId = Template.value.id
|
||||||
tableStore.table.params.lineId = dotList.value.id
|
tableStore.table.params.lineId = dotList.value.id
|
||||||
|
name.value = dotList.value.name
|
||||||
},
|
},
|
||||||
loadCallback: () => {
|
loadCallback: () => {
|
||||||
tableStore.table.data.forEach((item: any) => {
|
tableStore.table.data.forEach((item: any) => {
|
||||||
@@ -162,7 +164,15 @@ const handleNodeClick = (data: any, node: any) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const exportEvent = () => {
|
const exportEvent = () => {
|
||||||
exportExcel(luckysheet.getAllSheets(), '统计报表下载')
|
// 基础获取
|
||||||
|
const now = new Date()
|
||||||
|
const year = now.getFullYear() // 4位年份
|
||||||
|
const month = now.getMonth() + 1 // 月份0-11,需+1
|
||||||
|
const day = now.getDate() // 日期1-31
|
||||||
|
|
||||||
|
// 格式化YYYY - MM - DD(补零)
|
||||||
|
const formattedDate = `${year}${String(month).padStart(2, '0')}${String(day).padStart(2, '0')}`
|
||||||
|
exportExcel(luckysheet.getAllSheets(), name.value + formattedDate)
|
||||||
}
|
}
|
||||||
const exportReport = () => {
|
const exportReport = () => {
|
||||||
loading.value = true
|
loading.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;
|
||||||
|
}
|
||||||
|
|||||||
@@ -28,12 +28,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="终端厂家:">
|
<el-form-item label="终端厂家:">
|
||||||
<el-select
|
<el-select v-model="tableStore.table.params.manufacturer" clearable placeholder="请选择终端厂家">
|
||||||
v-model="tableStore.table.params.manufacturer"
|
|
||||||
clearable
|
|
||||||
|
|
||||||
placeholder="请选择终端厂家"
|
|
||||||
>
|
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in terminaloption"
|
v-for="item in terminaloption"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
@@ -76,7 +71,7 @@
|
|||||||
isNaN((monitoringPoints.abnormalNum / monitoringPoints.runNum) * 100)
|
isNaN((monitoringPoints.abnormalNum / monitoringPoints.runNum) * 100)
|
||||||
? 0
|
? 0
|
||||||
: Math.floor((monitoringPoints.abnormalNum / monitoringPoints.runNum) * 10000) /
|
: Math.floor((monitoringPoints.abnormalNum / monitoringPoints.runNum) * 10000) /
|
||||||
100
|
100
|
||||||
}}%
|
}}%
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -128,7 +123,7 @@
|
|||||||
<MyEchart :options="options"></MyEchart>
|
<MyEchart :options="options"></MyEchart>
|
||||||
</div>
|
</div>
|
||||||
<el-form :inline="true" class="form">
|
<el-form :inline="true" class="form">
|
||||||
<el-form-item label="告警持续天数"></el-form-item>
|
<!-- <el-form-item label="告警持续天数"></el-form-item>
|
||||||
<el-form-item label="告警阀值(天)">
|
<el-form-item label="告警阀值(天)">
|
||||||
<el-input-number
|
<el-input-number
|
||||||
v-model="tableStore.table.params.alarmDayLimit"
|
v-model="tableStore.table.params.alarmDayLimit"
|
||||||
@@ -144,6 +139,13 @@
|
|||||||
:step="1"
|
:step="1"
|
||||||
step-strictly
|
step-strictly
|
||||||
/>
|
/>
|
||||||
|
</el-form-item> -->
|
||||||
|
<el-form-item label="数据筛选">
|
||||||
|
<el-input
|
||||||
|
placeholder="请输入监测点名称/终端名称"
|
||||||
|
v-model="tableStore.table.params.searchValue"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item class="form_but">
|
<el-form-item class="form_but">
|
||||||
<el-button type="primary" @click="MonitorVerify" icon="el-icon-Search">查询</el-button>
|
<el-button type="primary" @click="MonitorVerify" icon="el-icon-Search">查询</el-button>
|
||||||
@@ -493,7 +495,7 @@ tableStore.table.params.name = ''
|
|||||||
provide('tableStore', tableStore)
|
provide('tableStore', tableStore)
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import '@/assets/font/iconfont.css';
|
@import '@/assets/font/iconfont.css';
|
||||||
.card-list {
|
.card-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
.monitoringPoints {
|
.monitoringPoints {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog draggable width="1350px" class="cn-operate-dialog" v-model="dialogVisible" :title="title">
|
<el-dialog draggable width="1400px" class="cn-operate-dialog" v-model="dialogVisible" :title="title">
|
||||||
<div style="display: flex" v-loading="loading">
|
<div style="display: flex" v-loading="loading">
|
||||||
<div :style="height1" class="mr10 box" style="width: 500px">
|
<div :style="height1" class="mr10 box" style="width: 550px">
|
||||||
<vxe-table
|
<vxe-table
|
||||||
height="auto"
|
height="auto"
|
||||||
:data="TableData"
|
:data="TableData"
|
||||||
@@ -11,45 +11,100 @@
|
|||||||
@current-change="currentChangeEvent"
|
@current-change="currentChangeEvent"
|
||||||
>
|
>
|
||||||
<vxe-column type="seq" title="序号" width="60px"></vxe-column>
|
<vxe-column type="seq" title="序号" width="60px"></vxe-column>
|
||||||
<vxe-column field="date" title="日期"></vxe-column>
|
<!-- <vxe-column field="date" title="日期"></vxe-column> -->
|
||||||
<vxe-column field="bdName" title="所属电站(场站)" width="120px"></vxe-column>
|
<vxe-column field="bdName" title="所属电站(场站)"></vxe-column>
|
||||||
<vxe-column field="monitorName" title="监测点名称" width="120px"></vxe-column>
|
<vxe-column field="monitorName" title="监测点名称"></vxe-column>
|
||||||
<vxe-column field="timeSum" title="告警时间(分钟)" width="80px"></vxe-column>
|
<vxe-column field="timeSum" title="告警天数" width="80px">
|
||||||
|
<template v-slot="{ row }">
|
||||||
|
{{ row.dateTargetList?.length }}
|
||||||
|
</template>
|
||||||
|
</vxe-column>
|
||||||
</vxe-table>
|
</vxe-table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div :style="height" style="width: 820px" v-loading="loading1">
|
<div style="width: 820px" v-loading="loading1">
|
||||||
<vxe-table
|
<el-form :inline="true" class="form">
|
||||||
height="auto"
|
<el-form-item label="统计日期">
|
||||||
:data="TableData1.slice((pageNum - 1) * pageSize, pageNum * pageSize)"
|
<el-select
|
||||||
v-bind="defaultAttribute"
|
v-model="timeList"
|
||||||
>
|
clearable
|
||||||
<vxe-column type="seq" title="序号" width="80px">
|
placeholder="请选择告警天数"
|
||||||
<template #default="{ rowIndex }">
|
style="width: 180px"
|
||||||
<span>{{ (pageNum - 1) * pageSize + rowIndex + 1 }}</span>
|
@change="change"
|
||||||
</template>
|
>
|
||||||
</vxe-column>
|
<el-option
|
||||||
<vxe-column field="time" title="时间" :formatter="formatter"></vxe-column>
|
v-for="item in dateList"
|
||||||
<vxe-column field="targetName" title="指标类型" min-width="100px"></vxe-column>
|
:key="item.date"
|
||||||
<vxe-column field="phaseType" title="相别" width="80px">
|
:label="item.date"
|
||||||
<template v-slot="{ row }">
|
:value="item.date"
|
||||||
{{ row.phaseType == 'T' ? '/' : row.phaseType }}
|
/>
|
||||||
</template>
|
</el-select>
|
||||||
</vxe-column>
|
</el-form-item>
|
||||||
|
<el-form-item label="统计指标" v-if="numKey != 0">
|
||||||
|
<el-select
|
||||||
|
v-model="targetKey"
|
||||||
|
filterable
|
||||||
|
clearable
|
||||||
|
placeholder="请选择指标"
|
||||||
|
style="width: 150px"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in targetList"
|
||||||
|
:key="item.key"
|
||||||
|
:label="item.targetName"
|
||||||
|
:value="item.key"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
<vxe-column field="type" title="数据类型" width="105px" :formatter="formatter"></vxe-column>
|
<el-form-item class="form_but">
|
||||||
<vxe-column field="val" title="值" width="85px" :formatter="formatter"></vxe-column>
|
<span class="mr20">
|
||||||
<vxe-column field="overLimitValue" title="限值" width="85px" :formatter="formatter"></vxe-column>
|
告警时间:
|
||||||
</vxe-table>
|
<span class="title">{{ timeSum }}</span>
|
||||||
<div class="table-pagination">
|
分钟
|
||||||
<el-pagination
|
</span>
|
||||||
v-model:currentPage="pageNum"
|
|
||||||
v-model:page-size="pageSize"
|
<el-button type="primary" @click="init" icon="el-icon-Search">查询</el-button>
|
||||||
:page-sizes="[10, 20, 50, 100, 200]"
|
</el-form-item>
|
||||||
background
|
</el-form>
|
||||||
layout="sizes,total, ->, prev, pager, next, jumper"
|
<div :style="height">
|
||||||
:total="TableData1.length"
|
<vxe-table
|
||||||
></el-pagination>
|
height="auto"
|
||||||
|
:data="TableData1?.slice((pageNum - 1) * pageSize, pageNum * pageSize)"
|
||||||
|
v-bind="defaultAttribute"
|
||||||
|
>
|
||||||
|
<vxe-column type="seq" title="序号" width="80px">
|
||||||
|
<template #default="{ rowIndex }">
|
||||||
|
<span>{{ (pageNum - 1) * pageSize + rowIndex + 1 }}</span>
|
||||||
|
</template>
|
||||||
|
</vxe-column>
|
||||||
|
<vxe-column field="time" width="150px" title="时间" :formatter="formatter"></vxe-column>
|
||||||
|
<vxe-column field="targetName" title="指标类型" min-width="100px"></vxe-column>
|
||||||
|
<vxe-column field="phaseType" title="相别" width="80px">
|
||||||
|
<template v-slot="{ row }">
|
||||||
|
{{ row.phaseType == 'T' ? '/' : row.phaseType }}
|
||||||
|
</template>
|
||||||
|
</vxe-column>
|
||||||
|
|
||||||
|
<vxe-column field="type" title="数据类型" width="105px" :formatter="formatter"></vxe-column>
|
||||||
|
<vxe-column field="val" title="值" width="85px" :formatter="formatter"></vxe-column>
|
||||||
|
<vxe-column
|
||||||
|
field="overLimitValue"
|
||||||
|
title="限值"
|
||||||
|
width="85px"
|
||||||
|
:formatter="formatter"
|
||||||
|
></vxe-column>
|
||||||
|
</vxe-table>
|
||||||
|
<div class="table-pagination">
|
||||||
|
<el-pagination
|
||||||
|
v-model:currentPage="pageNum"
|
||||||
|
v-model:page-size="pageSize"
|
||||||
|
:page-sizes="[10, 20, 50, 100, 200]"
|
||||||
|
background
|
||||||
|
layout="sizes,total, ->, prev, pager, next, jumper"
|
||||||
|
:total="TableData1?.length || 0"
|
||||||
|
></el-pagination>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -57,44 +112,47 @@
|
|||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref, inject } from 'vue'
|
import { ref, inject } from 'vue'
|
||||||
import { useDictData } from '@/stores/dictData'
|
import { reactive } from 'vue'
|
||||||
import { defaultAttribute } from '@/components/table/defaultAttribute'
|
import { defaultAttribute } from '@/components/table/defaultAttribute'
|
||||||
import { ElMessage } from 'element-plus'
|
import { ElMessage } from 'element-plus'
|
||||||
import { monitorLimitTable, monitorLimitTableDetail } from '@/api/device-boot/dataVerify'
|
import { monitorLimitTable, monitorLimitTableDetail } from '@/api/device-boot/dataVerify'
|
||||||
import { mainHeight } from '@/utils/layout'
|
import { mainHeight } from '@/utils/layout'
|
||||||
const dictData = useDictData()
|
|
||||||
const StatisList = dictData.getBasicData('Steady_Statis')
|
|
||||||
const dialogVisible = ref(false)
|
const dialogVisible = ref(false)
|
||||||
const height1 = mainHeight(-110, 2)
|
const height1 = mainHeight(-110, 2)
|
||||||
const height = mainHeight(10, 2)
|
const height = mainHeight(90, 2)
|
||||||
const tableRef = ref()
|
const tableRef = ref()
|
||||||
const title = ref('')
|
const title = ref('')
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const loading1 = ref(false)
|
const loading1 = ref(false)
|
||||||
const TableData = ref([])
|
const TableData = ref([])
|
||||||
const TableData1 = ref([])
|
const TableData1 = ref([])
|
||||||
|
const dateList: any = ref([])
|
||||||
const pageNum = ref(1)
|
const pageNum = ref(1)
|
||||||
const pageSize = ref(20)
|
const pageSize = ref(20)
|
||||||
const numKey = ref(0)
|
const numKey = ref(0)
|
||||||
const targetKey = ref('')
|
const targetKey = ref('')
|
||||||
const clickRow = ref({})
|
const targetList: any = ref([])
|
||||||
|
const timeSum = ref('')
|
||||||
|
const timeList = ref('')
|
||||||
|
const showColumn = ref(true)
|
||||||
|
|
||||||
const open = (data: anyObj, time: string[], num: number) => {
|
const open = (data: anyObj, time: string[], num: number) => {
|
||||||
// title.value = (num == 0 ? data.targetName : data.monitorName) + '_告警详情展示'
|
// title.value = (num == 0 ? data.targetName : data.monitorName) + '_告警监测点详情'
|
||||||
loading.value = true
|
loading.value = true
|
||||||
title.value = '告警监测点详情'
|
title.value = '告警监测点详情'
|
||||||
numKey.value = num
|
|
||||||
targetKey.value = data.key
|
|
||||||
TableData.value = []
|
TableData.value = []
|
||||||
|
numKey.value = num
|
||||||
|
targetKey.value = data.key || ''
|
||||||
monitorLimitTable({
|
monitorLimitTable({
|
||||||
monitorIds: num == 0 ? data.ids : [data.monitorId],
|
monitorIds: num == 0 ? data.ids : [data.monitorId],
|
||||||
targetKey: num == 0 ? data.key : '',
|
targetKey: num == 0 ? data.key : '',
|
||||||
searchBeginTime: time[0],
|
searchBeginTime: time[0],
|
||||||
searchEndTime: time[1]
|
searchEndTime: time[1]
|
||||||
})
|
})
|
||||||
.then(async(res) => {
|
.then(async res => {
|
||||||
TableData.value = res.data
|
TableData.value = res.data
|
||||||
await tableRef.value.setCurrentRow(TableData.value[0])
|
await tableRef.value.setCurrentRow(TableData.value[0])
|
||||||
await currentChangeEvent()
|
await currentChangeEvent()
|
||||||
loading.value = false
|
loading.value = false
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
@@ -103,16 +161,28 @@ const open = (data: anyObj, time: string[], num: number) => {
|
|||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
}
|
}
|
||||||
const currentChangeEvent = () => {
|
const currentChangeEvent = () => {
|
||||||
|
let data = tableRef.value.getCurrentRecord()
|
||||||
|
|
||||||
|
dateList.value = data.dateTargetList
|
||||||
|
targetList.value = dateList.value[0].targetKeys
|
||||||
|
timeList.value = data.dateTargetList[0].date
|
||||||
|
|
||||||
|
init()
|
||||||
|
}
|
||||||
|
const init = () => {
|
||||||
|
if (timeList.value == '') return ElMessage.warning('请选择告警天数!')
|
||||||
loading1.value = true
|
loading1.value = true
|
||||||
clickRow.value = tableRef.value.getCurrentRecord()
|
|
||||||
TableData1.value = []
|
TableData1.value = []
|
||||||
|
let data = tableRef.value.getCurrentRecord()
|
||||||
monitorLimitTableDetail({
|
monitorLimitTableDetail({
|
||||||
monitorIds: [clickRow.value.monitorId],
|
monitorIds: [data.monitorId],
|
||||||
searchBeginTime: clickRow.value.date,
|
searchBeginTime: timeList.value,
|
||||||
targetKey: numKey.value == 0 ? targetKey.value : ''
|
targetKey: targetKey.value || '' //numKey.value == 0 ? targetKey.value : ''
|
||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
TableData1.value = res.data
|
timeSum.value = res.data.timeSum
|
||||||
|
TableData1.value = res.data.time
|
||||||
|
showColumn.value = res.data[0]?.featureAmplitude == null ? true : false
|
||||||
loading1.value = false
|
loading1.value = false
|
||||||
pageNum.value = 1
|
pageNum.value = 1
|
||||||
})
|
})
|
||||||
@@ -120,9 +190,37 @@ const currentChangeEvent = () => {
|
|||||||
loading1.value = false
|
loading1.value = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
const change = () => {
|
||||||
|
if (timeList.value == '') targetKey.value = ''
|
||||||
|
let list = dateList.value
|
||||||
|
.filter(item => timeList.value == item.date)
|
||||||
|
?.map(item => {
|
||||||
|
return item.targetKeys
|
||||||
|
})
|
||||||
|
.flat()
|
||||||
|
targetList.value = deduplicateByKey(list)
|
||||||
|
if (!targetList.value.some(item => item.key == targetKey.value) ) {
|
||||||
|
targetKey.value = ''
|
||||||
|
}
|
||||||
|
console.log('🚀 ~ change ~ targetList.value:', targetList.value)
|
||||||
|
}
|
||||||
|
// 核心去重逻辑
|
||||||
|
function deduplicateByKey(data) {
|
||||||
|
// 使用Map存储唯一key,保证顺序且去重
|
||||||
|
const uniqueMap = new Map()
|
||||||
|
data.forEach(item => {
|
||||||
|
if (!uniqueMap.has(item.key)) {
|
||||||
|
uniqueMap.set(item.key, item)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
// 转换为数组并按sort排序
|
||||||
|
const deduplicatedData = Array.from(uniqueMap.values())
|
||||||
|
return deduplicatedData
|
||||||
|
}
|
||||||
const formatter = (row: any) => {
|
const formatter = (row: any) => {
|
||||||
if (row.column.field == 'time') {
|
if (row.column.field == 'time') {
|
||||||
return clickRow.value.date + ' ' + row.cellValue
|
return timeList.value + ' ' + row.cellValue
|
||||||
} else if (row.column.field == 'type') {
|
} else if (row.column.field == 'type') {
|
||||||
return row.cellValue === 'null' ? '/' : row.cellValue
|
return row.cellValue === 'null' ? '/' : row.cellValue
|
||||||
} else {
|
} else {
|
||||||
@@ -145,7 +243,21 @@ defineExpose({ open })
|
|||||||
}
|
}
|
||||||
:deep(.box) {
|
:deep(.box) {
|
||||||
.row--current {
|
.row--current {
|
||||||
//background-color: var(--el-color-primary-light-8) !important;
|
// background-color: var(--el-color-primary-light-8) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.form {
|
||||||
|
position: relative;
|
||||||
|
.form_but {
|
||||||
|
position: absolute;
|
||||||
|
right: -22px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.title {
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
:deep(.el-select) {
|
||||||
|
min-width: 100px !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -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,
|
||||||
@@ -313,11 +337,11 @@ const rules = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const windfarmCapacityLabel = computed(() => {
|
const windfarmCapacityLabel = computed(() => {
|
||||||
if (form.value.isWindfarm === '01') {
|
if (form.value.isWindfarm === '01') {
|
||||||
return '风电场装机容量(MW)'
|
return '风电场装机容量(MW)'
|
||||||
} else {
|
} else {
|
||||||
return '用户有功容量(MW)'
|
return '用户有功容量(MW)'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const form1 = ref()
|
const form1 = ref()
|
||||||
@@ -327,27 +351,31 @@ 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({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
message: '新增成功!'
|
message: '新增成功!'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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'
|
||||||
})
|
})
|
||||||
@@ -223,11 +224,10 @@ 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>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog draggable width="1550px" class="cn-operate-dialog" v-model="dialogVisible" :title="title">
|
<el-dialog draggable width="1550px" class="cn-operate-dialog" v-model="dialogVisible" :title="title">
|
||||||
<div style="display: flex" v-loading="loading">
|
<div style="display: flex" v-loading="loading">
|
||||||
<div :style="height1" class="mr10 box" style="width: 600px">
|
<div :style="height1" class="mr10 box" style="width: 550px">
|
||||||
<vxe-table
|
<vxe-table
|
||||||
height="auto"
|
height="auto"
|
||||||
:data="TableData"
|
:data="TableData"
|
||||||
@@ -16,14 +16,14 @@
|
|||||||
<vxe-column field="monitorName" title="监测点名称"></vxe-column>
|
<vxe-column field="monitorName" title="监测点名称"></vxe-column>
|
||||||
<vxe-column field="timeSum" title="异常天数" width="80px">
|
<vxe-column field="timeSum" title="异常天数" width="80px">
|
||||||
<template v-slot="{ row }">
|
<template v-slot="{ row }">
|
||||||
{{ row.dateList?.length }}
|
{{ row.dateTargetList?.length }}
|
||||||
</template>
|
</template>
|
||||||
</vxe-column>
|
</vxe-column>
|
||||||
<!-- <vxe-column field="errCount" title="异常次数" width="80px"></vxe-column> -->
|
<!-- <vxe-column field="errCount" title="异常次数" width="80px"></vxe-column> -->
|
||||||
</vxe-table>
|
</vxe-table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="width: 920px" v-loading="loading1">
|
<div style="width: 970px" v-loading="loading1">
|
||||||
<el-form :inline="true" class="form">
|
<el-form :inline="true" class="form">
|
||||||
<el-form-item label="统计日期">
|
<el-form-item label="统计日期">
|
||||||
<el-select
|
<el-select
|
||||||
@@ -32,15 +32,45 @@
|
|||||||
collapse-tags
|
collapse-tags
|
||||||
clearable
|
clearable
|
||||||
placeholder="请选择异常天数"
|
placeholder="请选择异常天数"
|
||||||
style="width: 200px"
|
style="width: 180px"
|
||||||
|
@change="change"
|
||||||
>
|
>
|
||||||
<el-option v-for="item in dateList" :key="item" :label="item" :value="item" />
|
<el-option
|
||||||
|
v-for="item in dateList"
|
||||||
|
:key="item.date"
|
||||||
|
:label="item.date"
|
||||||
|
:value="item.date"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="统计指标" v-if="numKey != 0">
|
||||||
|
<el-select
|
||||||
|
v-model="targetKey"
|
||||||
|
filterable
|
||||||
|
clearable
|
||||||
|
placeholder="请选择指标"
|
||||||
|
style="width: 150px"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in targetList"
|
||||||
|
:key="item.key"
|
||||||
|
:label="item.targetName"
|
||||||
|
:value="item.key"
|
||||||
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item class="form_but">
|
<el-form-item class="form_but">
|
||||||
<span class="mr20">异常时间:<span class="title">{{ timeSum }}</span>分钟</span>
|
<span class="mr20">
|
||||||
<span class="mr10">异常次数:<span class="title">{{ errCount }}</span>次</span>
|
异常时间:
|
||||||
|
<span class="title">{{ timeSum }}</span>
|
||||||
|
分钟
|
||||||
|
</span>
|
||||||
|
<span class="mr10">
|
||||||
|
异常次数:
|
||||||
|
<span class="title">{{ errCount }}</span>
|
||||||
|
次
|
||||||
|
</span>
|
||||||
|
|
||||||
<el-button type="primary" @click="init" icon="el-icon-Search">查询</el-button>
|
<el-button type="primary" @click="init" icon="el-icon-Search">查询</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -136,17 +166,19 @@ const pageNum = ref(1)
|
|||||||
const pageSize = ref(20)
|
const pageSize = ref(20)
|
||||||
const numKey = ref(0)
|
const numKey = ref(0)
|
||||||
const targetKey = ref('')
|
const targetKey = ref('')
|
||||||
|
const targetList: any = ref([])
|
||||||
const errCount = ref('')
|
const errCount = ref('')
|
||||||
const timeSum = ref('')
|
const timeSum = ref('')
|
||||||
const timeList = ref([])
|
const timeList = ref([])
|
||||||
const showColumn = ref(true)
|
const showColumn = ref(true)
|
||||||
|
|
||||||
const open = (data: anyObj, time: string[], num: number) => {
|
const open = (data: anyObj, time: string[], num: number) => {
|
||||||
// title.value = (num == 0 ? data.targetName : data.monitorName) + '_异常监测点详情'
|
// title.value = (num == 0 ? data.targetName : data.monitorName) + '_异常监测点详情'
|
||||||
loading.value = true
|
loading.value = true
|
||||||
title.value = '异常监测点详情'
|
title.value = '异常监测点详情'
|
||||||
TableData.value = []
|
TableData.value = []
|
||||||
numKey.value = num
|
numKey.value = num
|
||||||
targetKey.value = data.key
|
targetKey.value = data.key || ''
|
||||||
monitorAbnormalTable({
|
monitorAbnormalTable({
|
||||||
monitorIds: num == 0 ? data.ids : [data.monitorId],
|
monitorIds: num == 0 ? data.ids : [data.monitorId],
|
||||||
targetKey: num == 0 ? data.key : '',
|
targetKey: num == 0 ? data.key : '',
|
||||||
@@ -167,13 +199,14 @@ const open = (data: anyObj, time: string[], num: number) => {
|
|||||||
const currentChangeEvent = () => {
|
const currentChangeEvent = () => {
|
||||||
let data = tableRef.value.getCurrentRecord()
|
let data = tableRef.value.getCurrentRecord()
|
||||||
|
|
||||||
dateList.value = data.dateList
|
dateList.value = data.dateTargetList
|
||||||
console.log('🚀 ~ currentChangeEvent ~ dateList.value:', dateList.value)
|
targetList.value = dateList.value[0].targetKeys
|
||||||
timeList.value = [data.dateList[0]]
|
timeList.value = [data.dateTargetList[0].date]
|
||||||
|
|
||||||
init()
|
init()
|
||||||
}
|
}
|
||||||
const init = () => {
|
const init = () => {
|
||||||
if(timeList.value.length == 0) return ElMessage.warning('请选择异常天数!')
|
if (timeList.value.length == 0) return ElMessage.warning('请选择异常天数!')
|
||||||
loading1.value = true
|
loading1.value = true
|
||||||
TableData1.value = []
|
TableData1.value = []
|
||||||
let data = tableRef.value.getCurrentRecord()
|
let data = tableRef.value.getCurrentRecord()
|
||||||
@@ -181,7 +214,7 @@ const init = () => {
|
|||||||
monitorIds: [data.monitorId],
|
monitorIds: [data.monitorId],
|
||||||
time: timeList.value,
|
time: timeList.value,
|
||||||
searchBeginTime: data.date,
|
searchBeginTime: data.date,
|
||||||
targetKey: numKey.value == 0 ? targetKey.value : ''
|
targetKey: targetKey.value || '' //numKey.value == 0 ? targetKey.value : ''
|
||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
errCount.value = res.data.errCount
|
errCount.value = res.data.errCount
|
||||||
@@ -195,6 +228,33 @@ const init = () => {
|
|||||||
loading1.value = false
|
loading1.value = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
const change = () => {
|
||||||
|
if (timeList.value.length == 0) targetKey.value = ''
|
||||||
|
let list = dateList.value
|
||||||
|
.filter(item => timeList.value.includes(item.date))
|
||||||
|
?.map(item => {
|
||||||
|
return item.targetKeys
|
||||||
|
})
|
||||||
|
.flat()
|
||||||
|
targetList.value = deduplicateByKey(list)
|
||||||
|
if (!targetList.value.some(item => item.key == targetKey.value)) {
|
||||||
|
targetKey.value = ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 核心去重逻辑
|
||||||
|
function deduplicateByKey(data) {
|
||||||
|
// 使用Map存储唯一key,保证顺序且去重
|
||||||
|
const uniqueMap = new Map()
|
||||||
|
data.forEach(item => {
|
||||||
|
if (!uniqueMap.has(item.key)) {
|
||||||
|
uniqueMap.set(item.key, item)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
// 转换为数组并按sort排序
|
||||||
|
const deduplicatedData = Array.from(uniqueMap.values())
|
||||||
|
return deduplicatedData
|
||||||
|
}
|
||||||
const formatter = (row: any) => {
|
const formatter = (row: any) => {
|
||||||
return row.cellValue == null ? '/' : (row.cellValue - 0).toFixed(2)
|
return row.cellValue == null ? '/' : (row.cellValue - 0).toFixed(2)
|
||||||
}
|
}
|
||||||
@@ -224,8 +284,11 @@ defineExpose({ open })
|
|||||||
right: -22px;
|
right: -22px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.title{
|
.title {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
:deep(.el-select) {
|
||||||
|
min-width: 100px !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
{{ list.takeStep }}
|
{{ list.takeStep }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item :span="1" label="处理成效报告">
|
<el-descriptions-item :span="1" label="处理成效报告">
|
||||||
<el-icon class="elView " v-if="list?.reportName && VITE_FLAG" >
|
<el-icon class="elView " v-if="list?.reportName " >
|
||||||
<View @click="openFile(list?.reportPath)" />
|
<View @click="openFile(list?.reportPath)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a class="aLoad" @click="download(list.keyName)" target="_blank">{{ list.reportName }}</a>
|
<a class="aLoad" @click="download(list.keyName)" target="_blank">{{ list.reportName }}</a>
|
||||||
@@ -63,7 +63,7 @@ const dialogVisible = ref(false)
|
|||||||
const title = ref('')
|
const title = ref('')
|
||||||
const dictData = useDictData()
|
const dictData = useDictData()
|
||||||
const list: any = ref({})
|
const list: any = ref({})
|
||||||
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
|
||||||
const open = (row: any) => {
|
const open = (row: any) => {
|
||||||
list.value={}
|
list.value={}
|
||||||
title.value = row.title
|
title.value = row.title
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
>
|
>
|
||||||
<vxe-column type="seq" title="序号" width="60px"></vxe-column>
|
<vxe-column type="seq" title="序号" width="60px"></vxe-column>
|
||||||
<!-- <vxe-column field="date" title="日期"></vxe-column> -->
|
<!-- <vxe-column field="date" title="日期"></vxe-column> -->
|
||||||
<vxe-column field="name" title="统计日期"></vxe-column>
|
<vxe-column field="date" title="统计日期"></vxe-column>
|
||||||
<!-- <vxe-column field="monitorName" title="监测点名称"></vxe-column>
|
<!-- <vxe-column field="monitorName" title="监测点名称"></vxe-column>
|
||||||
<vxe-column field="timeSum" title="异常天数" width="80px">
|
<vxe-column field="timeSum" title="异常天数" width="80px">
|
||||||
<template v-slot="{ row }">
|
<template v-slot="{ row }">
|
||||||
@@ -25,19 +25,23 @@
|
|||||||
|
|
||||||
<div style="width: 920px" v-loading="loading1">
|
<div style="width: 920px" v-loading="loading1">
|
||||||
<el-form :inline="true" class="form">
|
<el-form :inline="true" class="form">
|
||||||
<!-- <el-form-item label="统计日期">
|
<el-form-item label="统计指标">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="timeList"
|
v-model="targetKey"
|
||||||
multiple
|
filterable
|
||||||
collapse-tags
|
|
||||||
clearable
|
clearable
|
||||||
placeholder="请选择异常天数"
|
placeholder="请选择指标"
|
||||||
style="width: 200px"
|
style="width: 150px"
|
||||||
|
@change="init"
|
||||||
>
|
>
|
||||||
<el-option v-for="item in dateList" :key="item" :label="item" :value="item" />
|
<el-option
|
||||||
|
v-for="item in targetList"
|
||||||
|
:key="item.key"
|
||||||
|
:label="item.targetName"
|
||||||
|
:value="item.key"
|
||||||
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item> -->
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item class="form_but">
|
<el-form-item class="form_but">
|
||||||
<span class="mr20">
|
<span class="mr20">
|
||||||
异常时间:
|
异常时间:
|
||||||
@@ -58,7 +62,6 @@
|
|||||||
height="auto"
|
height="auto"
|
||||||
:data="TableData1.slice((pageNum - 1) * pageSize, pageNum * pageSize)"
|
:data="TableData1.slice((pageNum - 1) * pageSize, pageNum * pageSize)"
|
||||||
v-bind="defaultAttribute"
|
v-bind="defaultAttribute"
|
||||||
|
|
||||||
>
|
>
|
||||||
<vxe-column type="seq" title="序号" width="80px">
|
<vxe-column type="seq" title="序号" width="80px">
|
||||||
<template #default="{ rowIndex }">
|
<template #default="{ rowIndex }">
|
||||||
@@ -147,6 +150,7 @@ const targetKey = ref('')
|
|||||||
const errCount = ref('')
|
const errCount = ref('')
|
||||||
const timeSum = ref('')
|
const timeSum = ref('')
|
||||||
const timeList = ref([])
|
const timeList = ref([])
|
||||||
|
const targetList = ref([])
|
||||||
const showColumn = ref(true)
|
const showColumn = ref(true)
|
||||||
const open = (data: anyObj, time: string[]) => {
|
const open = (data: anyObj, time: string[]) => {
|
||||||
// title.value = (num == 0 ? data.targetName : data.monitorName) + '_异常监测点详情'
|
// title.value = (num == 0 ? data.targetName : data.monitorName) + '_异常监测点详情'
|
||||||
@@ -157,18 +161,15 @@ const open = (data: anyObj, time: string[]) => {
|
|||||||
timeList.value = []
|
timeList.value = []
|
||||||
targetKey.value = data.key
|
targetKey.value = data.key
|
||||||
monitorAbnormalTable({
|
monitorAbnormalTable({
|
||||||
monitorIds:[data.lineId],
|
monitorIds: [data.lineId],
|
||||||
targetKey: '',
|
targetKey: '',
|
||||||
searchBeginTime: time[0],
|
searchBeginTime: time[0],
|
||||||
searchEndTime: time[1]
|
searchEndTime: time[1]
|
||||||
})
|
})
|
||||||
.then(async res => {
|
.then(async res => {
|
||||||
TableData.value = res.data
|
TableData.value = res.data
|
||||||
timeList.value = TableData.value[0]?.dateList.map((item: any) => {
|
timeList.value = TableData.value[0]?.dateTargetList
|
||||||
return {
|
targetList.value = timeList.value[0].targetKeys
|
||||||
name: item
|
|
||||||
}
|
|
||||||
})
|
|
||||||
await tableRef.value.setCurrentRow(timeList.value[0])
|
await tableRef.value.setCurrentRow(timeList.value[0])
|
||||||
await currentChangeEvent()
|
await currentChangeEvent()
|
||||||
loading.value = false
|
loading.value = false
|
||||||
@@ -180,7 +181,10 @@ const open = (data: anyObj, time: string[]) => {
|
|||||||
}
|
}
|
||||||
const currentChangeEvent = () => {
|
const currentChangeEvent = () => {
|
||||||
let data = tableRef.value.getCurrentRecord()
|
let data = tableRef.value.getCurrentRecord()
|
||||||
|
targetList.value = data.targetKeys
|
||||||
|
if (!targetList.value.some(item => item.key == targetKey.value)) {
|
||||||
|
targetKey.value = ''
|
||||||
|
}
|
||||||
// dateList.value = data.dateList
|
// dateList.value = data.dateList
|
||||||
//[data.dateList[0]]
|
//[data.dateList[0]]
|
||||||
init()
|
init()
|
||||||
@@ -191,9 +195,9 @@ const init = () => {
|
|||||||
let data = tableRef.value.getCurrentRecord()
|
let data = tableRef.value.getCurrentRecord()
|
||||||
monitorAbnormalTableDetail({
|
monitorAbnormalTableDetail({
|
||||||
monitorIds: [TableData.value[0]?.monitorId],
|
monitorIds: [TableData.value[0]?.monitorId],
|
||||||
time: [data.name],
|
time: [data.date],
|
||||||
searchBeginTime: TableData.value[0].date,
|
searchBeginTime: TableData.value[0].date,
|
||||||
targetKey: ''
|
targetKey: targetKey.value
|
||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
errCount.value = res.data.errCount
|
errCount.value = res.data.errCount
|
||||||
@@ -234,7 +238,7 @@ defineExpose({ open })
|
|||||||
// justify-content: end;
|
// justify-content: end;
|
||||||
// position: relative;
|
// position: relative;
|
||||||
// .form_but {
|
// .form_but {
|
||||||
|
|
||||||
// right: -22px;
|
// right: -22px;
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -133,6 +133,7 @@ const list: any = ref({
|
|||||||
alarmThreshold: ''
|
alarmThreshold: ''
|
||||||
})
|
})
|
||||||
const level: any = ref(dictData.state.area[0]?.level)
|
const level: any = ref(dictData.state.area[0]?.level)
|
||||||
|
console.log('level', level)
|
||||||
const flag: any = ref('')
|
const flag: any = ref('')
|
||||||
const tableStore = new TableStore({
|
const tableStore = new TableStore({
|
||||||
url: '/supervision-boot/onlineMonitor/list',
|
url: '/supervision-boot/onlineMonitor/list',
|
||||||
@@ -364,7 +365,7 @@ tableStore.table.params.dataType = '1'
|
|||||||
tableStore.table.params.deptId = dictData.state.area[0].id
|
tableStore.table.params.deptId = dictData.state.area[0].id
|
||||||
provide('tableStore', tableStore)
|
provide('tableStore', tableStore)
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
TableHeaderRef.value.setDatePicker([{ label: '月', value: 3 }])
|
TableHeaderRef.value.setDatePicker([{ label: '月份', value: 3 }])
|
||||||
|
|
||||||
tableStore.index()
|
tableStore.index()
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
{{ list.takeStep }}
|
{{ list.takeStep }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item :span="2" label="处理成效报告">
|
<el-descriptions-item :span="2" label="处理成效报告">
|
||||||
<el-icon class="elView " v-if="list?.reportName && VITE_FLAG">
|
<el-icon class="elView " v-if="list?.reportName ">
|
||||||
<View @click="openFile(list?.reportPath)" />
|
<View @click="openFile(list?.reportPath)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a class="aLoad" @click="download(list.keyName)" target="_blank">{{ list.reportName }}</a>
|
<a class="aLoad" @click="download(list.keyName)" target="_blank">{{ list.reportName }}</a>
|
||||||
@@ -66,7 +66,7 @@ const dialogVisible = ref(false)
|
|||||||
const title = ref('')
|
const title = ref('')
|
||||||
const list: any = ref({})
|
const list: any = ref({})
|
||||||
const dictData = useDictData()
|
const dictData = useDictData()
|
||||||
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
|
||||||
const open = (row: any) => {
|
const open = (row: any) => {
|
||||||
list.value = {}
|
list.value = {}
|
||||||
title.value = row.title
|
title.value = row.title
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<el-tab-pane :label="VITE_FLAG ? '现场测试' : '计划实施问题'" name="3" v-if="tabList.includes('3')">
|
<el-tab-pane :label="VITE_FLAG ? '现场测试' : '计划实施问题'" name="3" v-if="tabList.includes('3')">
|
||||||
<testQuestions v-if="activeName == '3'" />
|
<testQuestions v-if="activeName == '3'" />
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="试运行评估" name="4" v-if="tabList.includes('4')">
|
<el-tab-pane label="试运行评估问题" name="4" v-if="tabList.includes('4')">
|
||||||
<testRun v-if="activeName == '4'" />
|
<testRun v-if="activeName == '4'" />
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<!-- <el-tabs v-model="activeName" type="border-card">
|
<!-- <el-tabs v-model="activeName" type="border-card">
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main">
|
<div class="default-main">
|
||||||
|
<div v-if="detailLoading" class="loading">
|
||||||
|
<el-spin description="加载中..." />
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
<!-- <h1>详细信息回显</h1>-->
|
<!-- <h1>详细信息回显</h1>-->
|
||||||
<el-descriptions :column="2" border>
|
<el-descriptions :column="2" border>
|
||||||
<el-descriptions-item label="普测计划名称">
|
<el-descriptions-item label="普测计划名称">
|
||||||
@@ -49,6 +53,7 @@
|
|||||||
</vxe-column>
|
</vxe-column>
|
||||||
</vxe-table>
|
</vxe-table>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class='default-main'>
|
<div class='default-main'>
|
||||||
|
<div v-if="detailLoading" class="loading">
|
||||||
|
<el-spin description="加载中..." />
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
<el-descriptions :column='2' label-width="140px" border>
|
<el-descriptions :column='2' label-width="140px" border>
|
||||||
<el-descriptions-item label='技术监督计划名称'>
|
<el-descriptions-item label='技术监督计划名称'>
|
||||||
{{ detailData?.planName }}
|
{{ detailData?.planName }}
|
||||||
@@ -43,6 +47,7 @@
|
|||||||
<vxe-column field='dataSource' title='变电站来源' :formatter='formatterSource'></vxe-column>
|
<vxe-column field='dataSource' title='变电站来源' :formatter='formatterSource'></vxe-column>
|
||||||
</vxe-table>
|
</vxe-table>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang='ts'>
|
<script setup lang='ts'>
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main">
|
<div class="default-main">
|
||||||
|
<div v-if="detailLoading" class="loading">
|
||||||
|
<el-spin description="加载中..." />
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
<el-descriptions :column="2" border>
|
<el-descriptions :column="2" border>
|
||||||
<el-descriptions-item label="技术监督计划名称">
|
<el-descriptions-item label="技术监督计划名称">
|
||||||
{{ detailData?.planName }}
|
{{ detailData?.planName }}
|
||||||
@@ -56,27 +60,27 @@
|
|||||||
|
|
||||||
|
|
||||||
<el-descriptions-item :span="2" label="技术监督报告">
|
<el-descriptions-item :span="2" label="技术监督报告">
|
||||||
<el-icon class="elView" v-if="detailData?.supervisionReportName && VITE_FLAG">
|
<el-icon class="elView" v-if="detailData?.supervisionReportName ">
|
||||||
<View @click="openFile(detailData?.supervisionReportName)" />
|
<View @click="openFile(detailData?.supervisionReportName)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.supervisionReportName }}</span >
|
<span class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.supervisionReportName }}</span >
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item :span="2" label="测试报告">
|
<el-descriptions-item :span="2" label="测试报告">
|
||||||
<el-icon class="elView" v-if="detailData?.testReportName && VITE_FLAG">
|
<el-icon class="elView" v-if="detailData?.testReportName ">
|
||||||
<View @click="openFile(detailData?.testReportName)" />
|
<View @click="openFile(detailData?.testReportName)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.testReportName }}</span >
|
<span class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.testReportName }}</span >
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item :span="2" label="其他报告">
|
<el-descriptions-item :span="2" label="其他报告">
|
||||||
<div v-for="item in detailData.otherReports">
|
<div v-for="item in detailData.otherReports">
|
||||||
<el-icon class="elView" v-if="item.fileName && VITE_FLAG">
|
<el-icon class="elView" v-if="item.fileName ">
|
||||||
<View @click="openFile(item.fileName)" />
|
<View @click="openFile(item.fileName)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(item.keyName)" target="_blank">{{ item.fileName }}</span >
|
<span class="aLoad" @click="download(item.keyName)" target="_blank">{{ item.fileName }}</span >
|
||||||
</div>
|
</div>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item :span="2" label="处理成效报告" v-if="props.flag">
|
<el-descriptions-item :span="2" label="处理成效报告" v-if="props.flag">
|
||||||
<el-icon class="elView " v-if="detailData?.reportName && VITE_FLAG">
|
<el-icon class="elView " v-if="detailData?.reportName ">
|
||||||
<View @click="openFile(detailData?.reportName)" />
|
<View @click="openFile(detailData?.reportName)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.reportName }}</span >
|
<span class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.reportName }}</span >
|
||||||
@@ -87,6 +91,8 @@
|
|||||||
</el-tag>
|
</el-tag>
|
||||||
</el-descriptions-item> -->
|
</el-descriptions-item> -->
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
@@ -105,7 +111,7 @@ const openFile = (name: any) => {
|
|||||||
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
|
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
|
||||||
}
|
}
|
||||||
|
|
||||||
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
|
||||||
const { query } = useRoute() // 查询参数
|
const { query } = useRoute() // 查询参数
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
id: propTypes.string.def(undefined),
|
id: propTypes.string.def(undefined),
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -1,317 +1,340 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="details">
|
<div class="details">
|
||||||
<el-divider content-position="left">干扰源用户信息</el-divider>
|
<div v-if="detailLoading" class="loading">
|
||||||
<el-descriptions :column="2" border>
|
<el-spin description="加载中..." />
|
||||||
<el-descriptions-item label="工程预期投产日期">
|
</div>
|
||||||
{{ formatDate(detailData.expectedProductionDate, 'YYYY-MM-DD') }}
|
<div v-else>
|
||||||
</el-descriptions-item>
|
<el-divider content-position="left">干扰源用户信息</el-divider>
|
||||||
<el-descriptions-item label="用户性质">
|
<el-descriptions :column="2" border>
|
||||||
{{
|
<el-descriptions-item label="工程预期投产日期">
|
||||||
userTypeList.find(item => {
|
{{ formatDate(detailData.expectedProductionDate, 'YYYY-MM-DD') }}
|
||||||
return item.value == detailData.userType
|
</el-descriptions-item>
|
||||||
})?.label
|
<el-descriptions-item label="用户性质">
|
||||||
}}
|
{{
|
||||||
</el-descriptions-item>
|
userTypeList.find(item => {
|
||||||
<el-descriptions-item label="所在地市">
|
return item.value == detailData.userType
|
||||||
{{ detailData.city }}
|
})?.label
|
||||||
</el-descriptions-item>
|
}}
|
||||||
<el-descriptions-item label="归口管理部门">
|
</el-descriptions-item>
|
||||||
{{ detailData.responsibleDepartment }}
|
<el-descriptions-item label="所在地市">
|
||||||
</el-descriptions-item>
|
{{ detailData.city }}
|
||||||
<el-descriptions-item label="用户状态">
|
</el-descriptions-item>
|
||||||
{{
|
<el-descriptions-item label="归口管理部门">
|
||||||
userStateList.find(item => {
|
{{ detailData.responsibleDepartment }}
|
||||||
return item.value == detailData.userStatus
|
</el-descriptions-item>
|
||||||
})?.label
|
<el-descriptions-item label="用户状态">
|
||||||
}}
|
{{
|
||||||
</el-descriptions-item>
|
userStateList.find(item => {
|
||||||
<el-descriptions-item label="变电站">
|
return item.value == detailData.userStatus
|
||||||
{{ detailData.substation }}
|
})?.label
|
||||||
</el-descriptions-item>
|
}}
|
||||||
<el-descriptions-item label="项目名称">
|
</el-descriptions-item>
|
||||||
{{ detailData.projectName }}
|
<el-descriptions-item label="变电站">
|
||||||
</el-descriptions-item>
|
{{ detailData.substation }}
|
||||||
<el-descriptions-item label="用户协议容量" v-if="detailData.userType == 0 || detailData.userType == 1">
|
</el-descriptions-item>
|
||||||
{{ proviteData.agreementCapacity }}
|
<el-descriptions-item label="项目名称">
|
||||||
</el-descriptions-item>
|
{{ detailData.projectName }}
|
||||||
<el-descriptions-item label="电压等级">
|
</el-descriptions-item>
|
||||||
{{
|
<el-descriptions-item label="用户协议容量" v-if="detailData.userType == 0 || detailData.userType == 1">
|
||||||
voltageLevelList.find(item => {
|
{{ proviteData.agreementCapacity }}
|
||||||
return item.id == detailData.voltageLevel
|
</el-descriptions-item>
|
||||||
})?.name
|
<el-descriptions-item label="电压等级">
|
||||||
}}
|
{{
|
||||||
</el-descriptions-item>
|
voltageLevelList.find(item => {
|
||||||
<el-descriptions-item label="非线性终端类型" v-if="detailData.userType == 0 || detailData.userType == 1">
|
return item.id == detailData.voltageLevel
|
||||||
{{ proviteData.nonlinearDeviceType ? proviteData.nonlinearDeviceType : '-' }}
|
})?.name
|
||||||
</el-descriptions-item>
|
}}
|
||||||
<el-descriptions-item label="预测评估单位">
|
</el-descriptions-item>
|
||||||
{{ detailData.evaluationDept }}
|
<el-descriptions-item
|
||||||
</el-descriptions-item>
|
label="非线性终端类型"
|
||||||
<el-descriptions-item label="预测评估结论">
|
v-if="detailData.userType == 0 || detailData.userType == 1"
|
||||||
{{ detailData.evaluationConclusion }}
|
>
|
||||||
</el-descriptions-item>
|
{{ proviteData.nonlinearDeviceType ? proviteData.nonlinearDeviceType : '-' }}
|
||||||
<el-descriptions-item
|
</el-descriptions-item>
|
||||||
:label="
|
<el-descriptions-item label="预测评估单位">
|
||||||
detailData.userType == '4' || detailData.userType == '5' ? '非线性设备类型: ' : '非线性负荷类型:'
|
{{ detailData.evaluationDept }}
|
||||||
"
|
</el-descriptions-item>
|
||||||
v-if="
|
<el-descriptions-item label="预测评估结论">
|
||||||
detailData.userType == '2' ||
|
{{ detailData.evaluationConclusion }}
|
||||||
detailData.userType == '3' ||
|
</el-descriptions-item>
|
||||||
detailData.userType == '4' ||
|
<el-descriptions-item
|
||||||
detailData.userType == '5'
|
:label="
|
||||||
"
|
detailData.userType == '4' || detailData.userType == '5'
|
||||||
>
|
? '非线性设备类型: '
|
||||||
{{ proviteData.nonlinearLoadType }}
|
: '非线性负荷类型:'
|
||||||
</el-descriptions-item>
|
"
|
||||||
<el-descriptions-item label="是否需要治理">
|
|
||||||
<span v-if="detailData.userType == 0 || detailData.userType == 1">
|
|
||||||
{{ proviteData.needGovernance == 0 ? '否' : '是' }}
|
|
||||||
</span>
|
|
||||||
<span
|
|
||||||
v-if="
|
v-if="
|
||||||
detailData.userType == 2 ||
|
detailData.userType == '2' ||
|
||||||
detailData.userType == 3 ||
|
detailData.userType == '3' ||
|
||||||
detailData.userType == 4 ||
|
detailData.userType == '4' ||
|
||||||
detailData.userType == 5
|
detailData.userType == '5'
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
{{ proviteData.needGovernance == 0 ? '否' : '是' }}
|
{{ proviteData.nonlinearLoadType }}
|
||||||
</span>
|
</el-descriptions-item>
|
||||||
<span v-if="detailData.userType == 6">{{ proviteData.needGovernance == 0 ? '否' : '是' }}</span>
|
<el-descriptions-item label="是否需要治理">
|
||||||
</el-descriptions-item>
|
<span v-if="detailData.userType == 0 || detailData.userType == 1">
|
||||||
<el-descriptions-item label="是否开展背景测试">
|
{{ proviteData.needGovernance == 0 ? '否' : '是' }}
|
||||||
<span v-if="detailData.userType == 0 || detailData.userType == 1">
|
</span>
|
||||||
{{ proviteData.backgroundTestPerformed == 0 ? '否' : '是' }}
|
<span
|
||||||
</span>
|
v-if="
|
||||||
<span
|
detailData.userType == 2 ||
|
||||||
|
detailData.userType == 3 ||
|
||||||
|
detailData.userType == 4 ||
|
||||||
|
detailData.userType == 5
|
||||||
|
"
|
||||||
|
>
|
||||||
|
{{ proviteData.needGovernance == 0 ? '否' : '是' }}
|
||||||
|
</span>
|
||||||
|
<span v-if="detailData.userType == 6">{{ proviteData.needGovernance == 0 ? '否' : '是' }}</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="是否开展背景测试">
|
||||||
|
<span v-if="detailData.userType == 0 || detailData.userType == 1">
|
||||||
|
{{ proviteData.backgroundTestPerformed == 0 ? '否' : '是' }}
|
||||||
|
</span>
|
||||||
|
<span
|
||||||
|
v-if="
|
||||||
|
detailData.userType == 2 ||
|
||||||
|
detailData.userType == 3 ||
|
||||||
|
detailData.userType == 4 ||
|
||||||
|
detailData.userType == 5
|
||||||
|
"
|
||||||
|
>
|
||||||
|
{{ proviteData.backgroundTestPerformed == 0 ? '否' : '是' }}
|
||||||
|
</span>
|
||||||
|
<span v-if="detailData.userType == 6">
|
||||||
|
{{ proviteData.backgroundTestPerformed == 0 ? '否' : '是' }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="是否开展抗扰度测试" v-if="detailData.userType == 6">
|
||||||
|
{{ proviteData.antiInterferenceTest == 0 ? '否' : '是' }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="PCC点" v-if="detailData.userType != 0 && detailData.userType != 1">
|
||||||
|
{{ proviteData?.pccPoint }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item
|
||||||
|
label="PCC供电设备容量"
|
||||||
v-if="
|
v-if="
|
||||||
detailData.userType == 2 ||
|
detailData.userType == '2' ||
|
||||||
detailData.userType == 3 ||
|
detailData.userType == '3' ||
|
||||||
detailData.userType == 4 ||
|
detailData.userType == '4' ||
|
||||||
detailData.userType == 5
|
detailData.userType == '5'
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
{{ proviteData.backgroundTestPerformed == 0 ? '否' : '是' }}
|
{{ proviteData.pccEquipmentCapacity }}
|
||||||
</span>
|
</el-descriptions-item>
|
||||||
<span v-if="detailData.userType == 6">
|
<el-descriptions-item
|
||||||
{{ proviteData.backgroundTestPerformed == 0 ? '否' : '是' }}
|
label="基准短路容量"
|
||||||
</span>
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="是否开展抗扰度测试" v-if="detailData.userType == 6">
|
|
||||||
{{ proviteData.antiInterferenceTest == 0 ? '否' : '是' }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="PCC点" v-if="detailData.userType != 0 && detailData.userType != 1">
|
|
||||||
{{ proviteData?.pccPoint }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item
|
|
||||||
label="PCC供电设备容量"
|
|
||||||
v-if="
|
|
||||||
detailData.userType == '2' ||
|
|
||||||
detailData.userType == '3' ||
|
|
||||||
detailData.userType == '4' ||
|
|
||||||
detailData.userType == '5'
|
|
||||||
"
|
|
||||||
>
|
|
||||||
{{ proviteData.pccEquipmentCapacity }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item
|
|
||||||
label="基准短路容量"
|
|
||||||
v-if="
|
|
||||||
detailData.userType == '2' ||
|
|
||||||
detailData.userType == '3' ||
|
|
||||||
detailData.userType == '4' ||
|
|
||||||
detailData.userType == '5'
|
|
||||||
"
|
|
||||||
>
|
|
||||||
{{ proviteData.baseShortCircuitCapacity }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="评估类型" v-if="detailData.userType != 0 && detailData.userType != 1">
|
|
||||||
{{
|
|
||||||
evaluationTypeList.find(item => {
|
|
||||||
return item.id == proviteData?.evaluationType
|
|
||||||
})?.name
|
|
||||||
}}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="预测评估评审单位" v-if="detailData.userType != 0 && detailData.userType != 1">
|
|
||||||
{{ proviteData?.evaluationChekDept }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item
|
|
||||||
label="系统最小短路容量"
|
|
||||||
v-if="
|
|
||||||
detailData.userType == '2' ||
|
|
||||||
detailData.userType == '3' ||
|
|
||||||
detailData.userType == '4' ||
|
|
||||||
detailData.userType == '5'
|
|
||||||
"
|
|
||||||
>
|
|
||||||
{{ proviteData?.minShortCircuitCapacity }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item
|
|
||||||
label="用户用电协议容量"
|
|
||||||
v-if="
|
|
||||||
detailData.userType == '2' ||
|
|
||||||
detailData.userType == '3' ||
|
|
||||||
detailData.userType == '4' ||
|
|
||||||
detailData.userType == '5'
|
|
||||||
"
|
|
||||||
>
|
|
||||||
{{ proviteData?.userAgreementCapacity }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="行业" v-if="detailData.userType == 6">
|
|
||||||
{{
|
|
||||||
industryList.find(item => {
|
|
||||||
return item.id == proviteData.industry
|
|
||||||
})?.name
|
|
||||||
}}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="敏感终端名称" v-if="detailData.userType == 6">
|
|
||||||
{{ proviteData.deviceName }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="供电电源数量" v-if="detailData.userType == 6">
|
|
||||||
{{ proviteData.powerSupplyCount }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="敏感电能质量指标" v-if="detailData.userType == 6">
|
|
||||||
{{
|
|
||||||
energyQualityIndexList.find(item => {
|
|
||||||
return item.id == proviteData.energyQualityIndex
|
|
||||||
})?.name
|
|
||||||
}}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="可研报告11">
|
|
||||||
<span v-if="detailData.userType == 0 || detailData.userType == 1">
|
|
||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport.name && VITE_FLAG">
|
|
||||||
<View @click="openFile(proviteData.feasibilityReport.key)" />
|
|
||||||
</el-icon>
|
|
||||||
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
|
||||||
{{ proviteData.feasibilityReport.name }}
|
|
||||||
</span>
|
|
||||||
</span>
|
|
||||||
<span
|
|
||||||
v-if="
|
v-if="
|
||||||
detailData.userType == 2 ||
|
detailData.userType == '2' ||
|
||||||
detailData.userType == 3 ||
|
detailData.userType == '3' ||
|
||||||
detailData.userType == 4 ||
|
detailData.userType == '4' ||
|
||||||
detailData.userType == 5
|
detailData.userType == '5'
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport.name && VITE_FLAG">
|
{{ proviteData.baseShortCircuitCapacity }}
|
||||||
<View @click="openFile(proviteData.feasibilityReport.key)" />
|
</el-descriptions-item>
|
||||||
</el-icon>
|
<el-descriptions-item label="评估类型" v-if="detailData.userType != 0 && detailData.userType != 1">
|
||||||
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
{{
|
||||||
{{ proviteData.feasibilityReport.name }}
|
evaluationTypeList.find(item => {
|
||||||
|
return item.id == proviteData?.evaluationType
|
||||||
|
})?.name
|
||||||
|
}}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item
|
||||||
|
label="预测评估评审单位"
|
||||||
|
v-if="detailData.userType != 0 && detailData.userType != 1"
|
||||||
|
>
|
||||||
|
{{ proviteData?.evaluationChekDept }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item
|
||||||
|
label="系统最小短路容量"
|
||||||
|
v-if="
|
||||||
|
detailData.userType == '2' ||
|
||||||
|
detailData.userType == '3' ||
|
||||||
|
detailData.userType == '4' ||
|
||||||
|
detailData.userType == '5'
|
||||||
|
"
|
||||||
|
>
|
||||||
|
{{ proviteData?.minShortCircuitCapacity }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item
|
||||||
|
label="用户用电协议容量"
|
||||||
|
v-if="
|
||||||
|
detailData.userType == '2' ||
|
||||||
|
detailData.userType == '3' ||
|
||||||
|
detailData.userType == '4' ||
|
||||||
|
detailData.userType == '5'
|
||||||
|
"
|
||||||
|
>
|
||||||
|
{{ proviteData?.userAgreementCapacity }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="行业" v-if="detailData.userType == 6">
|
||||||
|
{{
|
||||||
|
industryList.find(item => {
|
||||||
|
return item.id == proviteData.industry
|
||||||
|
})?.name
|
||||||
|
}}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="敏感终端名称" v-if="detailData.userType == 6">
|
||||||
|
{{ proviteData.deviceName }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="供电电源数量" v-if="detailData.userType == 6">
|
||||||
|
{{ proviteData.powerSupplyCount }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="敏感电能质量指标" v-if="detailData.userType == 6">
|
||||||
|
{{
|
||||||
|
energyQualityIndexList.find(item => {
|
||||||
|
return item.id == proviteData.energyQualityIndex
|
||||||
|
})?.name
|
||||||
|
}}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="可研报告11">
|
||||||
|
<span v-if="detailData.userType == 0 || detailData.userType == 1">
|
||||||
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport.name">
|
||||||
|
<View @click="openFile(proviteData.feasibilityReport.key)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
||||||
|
{{ proviteData.feasibilityReport.name }}
|
||||||
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
<span
|
||||||
<span v-if="detailData.userType == 6">
|
v-if="
|
||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport.name && VITE_FLAG">
|
detailData.userType == 2 ||
|
||||||
<View @click="openFile(proviteData.feasibilityReport.key)" />
|
detailData.userType == 3 ||
|
||||||
</el-icon>
|
detailData.userType == 4 ||
|
||||||
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
detailData.userType == 5
|
||||||
{{ proviteData.feasibilityReport.name }}
|
"
|
||||||
|
>
|
||||||
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport.name">
|
||||||
|
<View @click="openFile(proviteData.feasibilityReport.key)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
||||||
|
{{ proviteData.feasibilityReport.name }}
|
||||||
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
<span v-if="detailData.userType == 6">
|
||||||
</el-descriptions-item>
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport.name">
|
||||||
<el-descriptions-item label="项目初步设计说明书">
|
<View @click="openFile(proviteData.feasibilityReport.key)" />
|
||||||
<el-icon class="elView" v-if="proviteData?.preliminaryDesignDescription.name && VITE_FLAG">
|
</el-icon>
|
||||||
<View @click="openFile(proviteData?.preliminaryDesignDescription.key)" />
|
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
||||||
</el-icon>
|
{{ proviteData.feasibilityReport.name }}
|
||||||
<span class="aLoad" @click="download(proviteData.preliminaryDesignDescription.keyName)">
|
</span>
|
||||||
{{ proviteData?.preliminaryDesignDescription.name }}
|
|
||||||
</span>
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="预测评估报告">
|
|
||||||
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReport.name && VITE_FLAG">
|
|
||||||
<View @click="openFile(proviteData?.predictionEvaluationReport.key)" />
|
|
||||||
</el-icon>
|
|
||||||
<span class="aLoad" @click="download(proviteData.predictionEvaluationReport.keyName)">
|
|
||||||
{{ proviteData?.predictionEvaluationReport.name }}
|
|
||||||
</span>
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="预测评估评审意见报告">
|
|
||||||
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReviewOpinions.name && VITE_FLAG">
|
|
||||||
<View @click="openFile(proviteData?.predictionEvaluationReviewOpinions.key)" />
|
|
||||||
</el-icon>
|
|
||||||
<span class="aLoad" @click="download(proviteData.predictionEvaluationReviewOpinions.keyName)">
|
|
||||||
{{ proviteData?.predictionEvaluationReviewOpinions.name }}
|
|
||||||
</span>
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item
|
|
||||||
label="用户接入变电站主接线示意图"
|
|
||||||
v-if="detailData.userType != 0 && detailData.userType != 1"
|
|
||||||
>
|
|
||||||
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram.name && VITE_FLAG">
|
|
||||||
<View @click="openFile(proviteData?.substationMainWiringDiagram.key)" />
|
|
||||||
</el-icon>
|
|
||||||
<span class="aLoad" @click="download(proviteData.substationMainWiringDiagram.keyName)">
|
|
||||||
{{ proviteData?.substationMainWiringDiagram.name }}
|
|
||||||
</span>
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="主要敏感终端清单" v-if="detailData.userType == 6">
|
|
||||||
<el-icon class="elView" v-if="proviteData?.sensitiveDevices.name && VITE_FLAG">
|
|
||||||
<View @click="openFile(proviteData?.sensitiveDevices.key)" />
|
|
||||||
</el-icon>
|
|
||||||
<span class="aLoad" @click="download(proviteData.sensitiveDevices.keyName)">
|
|
||||||
{{ proviteData?.sensitiveDevices.name }}
|
|
||||||
</span>
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="抗扰度测试报告" v-if="detailData.userType == 6">
|
|
||||||
<el-icon class="elView" v-if="proviteData?.antiInterferenceReport.name && VITE_FLAG">
|
|
||||||
<View @click="openFile(proviteData?.antiInterferenceReport.key)" />
|
|
||||||
</el-icon>
|
|
||||||
<span class="aLoad" @click="download(proviteData.antiInterferenceReport.keyName)">
|
|
||||||
{{ proviteData?.antiInterferenceReport.name }}
|
|
||||||
</span>
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="背景电能质量测试报告" v-if="detailData.userType == 6">
|
|
||||||
<el-icon class="elView" v-if="proviteData?.powerQualityReport.name && VITE_FLAG">
|
|
||||||
<View @click="openFile(proviteData?.powerQualityReport.key)" />
|
|
||||||
</el-icon>
|
|
||||||
<span class="aLoad" @click="download(proviteData.powerQualityReport.keyName)">
|
|
||||||
{{ proviteData?.powerQualityReport.name }}
|
|
||||||
</span>
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="系统接入方案" v-if="applyTitle == '干扰源用户治理工程验收'">
|
|
||||||
<div v-for="item in netInReportList">
|
|
||||||
<el-icon class="elView" v-if="item.name && VITE_FLAG">
|
|
||||||
<View @click="openFile(item.key)" />
|
|
||||||
</el-icon>
|
|
||||||
<span class="aLoad" @click="download(item.keyName)">
|
|
||||||
{{ item.name }}
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</el-descriptions-item>
|
||||||
</el-descriptions-item>
|
<el-descriptions-item label="项目初步设计说明书">
|
||||||
|
<el-icon class="elView" v-if="proviteData?.preliminaryDesignDescription.name">
|
||||||
|
<View @click="openFile(proviteData?.preliminaryDesignDescription.key)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(proviteData.preliminaryDesignDescription.keyName)">
|
||||||
|
{{ proviteData?.preliminaryDesignDescription.name }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="预测评估报告">
|
||||||
|
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReport.name">
|
||||||
|
<View @click="openFile(proviteData?.predictionEvaluationReport.key)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(proviteData.predictionEvaluationReport.keyName)">
|
||||||
|
{{ proviteData?.predictionEvaluationReport.name }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="预测评估评审意见报告">
|
||||||
|
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReviewOpinions.name">
|
||||||
|
<View @click="openFile(proviteData?.predictionEvaluationReviewOpinions.key)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(proviteData.predictionEvaluationReviewOpinions.keyName)">
|
||||||
|
{{ proviteData?.predictionEvaluationReviewOpinions.name }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item
|
||||||
|
label="用户接入变电站主接线示意图"
|
||||||
|
v-if="detailData.userType != 0 && detailData.userType != 1"
|
||||||
|
>
|
||||||
|
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram.name">
|
||||||
|
<View @click="openFile(proviteData?.substationMainWiringDiagram.key)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(proviteData.substationMainWiringDiagram.keyName)">
|
||||||
|
{{ proviteData?.substationMainWiringDiagram.name }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="主要敏感终端清单" v-if="detailData.userType == 6">
|
||||||
|
<el-icon class="elView" v-if="proviteData?.sensitiveDevices.name">
|
||||||
|
<View @click="openFile(proviteData?.sensitiveDevices.key)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(proviteData.sensitiveDevices.keyName)">
|
||||||
|
{{ proviteData?.sensitiveDevices.name }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="抗扰度测试报告" v-if="detailData.userType == 6">
|
||||||
|
<el-icon class="elView" v-if="proviteData?.antiInterferenceReport.name">
|
||||||
|
<View @click="openFile(proviteData?.antiInterferenceReport.key)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(proviteData.antiInterferenceReport.keyName)">
|
||||||
|
{{ proviteData?.antiInterferenceReport.name }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="背景电能质量测试报告" v-if="detailData.userType == 6">
|
||||||
|
<el-icon class="elView" v-if="proviteData?.powerQualityReport.name">
|
||||||
|
<View @click="openFile(proviteData?.powerQualityReport.key)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(proviteData.powerQualityReport.keyName)">
|
||||||
|
{{ proviteData?.powerQualityReport.name }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="系统接入方案" v-if="applyTitle == '干扰源用户治理工程验收'">
|
||||||
|
<div v-for="item in netInReportList">
|
||||||
|
<el-icon class="elView" v-if="item.name">
|
||||||
|
<View @click="openFile(item.key)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(item.keyName)">
|
||||||
|
{{ item.name }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</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 && VITE_FLAG">
|
<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)">
|
||||||
{{ proviteData?.additionalAttachments.name }}
|
{{ proviteData?.additionalAttachments.name }}
|
||||||
</span>
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
<el-divider content-position="left">{{ applyTitle + '填报信息' }}</el-divider>
|
<el-divider content-position="left">{{ applyTitle + '填报信息' }}</el-divider>
|
||||||
<el-descriptions :column="2" border>
|
<el-descriptions :column="2" border>
|
||||||
<el-descriptions-item label="填报人">
|
<el-descriptions-item label="填报人">
|
||||||
{{ detailData.reporter }}
|
{{ detailData.reporter }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="填报日期">
|
<el-descriptions-item label="填报日期">
|
||||||
{{ formatDate(detailData.reportDate, 'YYYY-MM-DD') }}
|
{{ formatDate(detailData.reportDate, 'YYYY-MM-DD') }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="填报部门">
|
<el-descriptions-item label="填报部门">
|
||||||
{{ detailData.orgName }}
|
{{ detailData.orgName }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item
|
<el-descriptions-item
|
||||||
:label="applyTitle + '报告'"
|
:label="applyTitle + '报告'"
|
||||||
v-if="proviteData?.otherReport && proviteData?.otherReport.url"
|
v-if="proviteData?.otherReport && proviteData?.otherReport.url"
|
||||||
>
|
>
|
||||||
<el-icon class="elView" v-if="proviteData?.otherReport.name && VITE_FLAG">
|
<el-icon class="elView" v-if="proviteData?.otherReport.name">
|
||||||
<View @click="openFile(proviteData?.otherReport.key)" />
|
<View @click="openFile(proviteData?.otherReport.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.otherReport.keyName)">
|
<span class="aLoad" @click="download(proviteData.otherReport.keyName)">
|
||||||
{{ proviteData?.otherReport.name }}
|
{{ proviteData?.otherReport.name }}
|
||||||
</span>
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
<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>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
@@ -324,11 +347,11 @@ 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' })
|
||||||
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
|
||||||
const openFile = (name: any) => {
|
const openFile = (name: any) => {
|
||||||
window.open(window.location.origin + '/#/previewFile?' + name)
|
window.open(window.location.origin + '/#/previewFile?' + name)
|
||||||
}
|
}
|
||||||
@@ -339,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 编号
|
||||||
@@ -408,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()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main">
|
<div class="default-main">
|
||||||
|
<div v-if="detailLoading" class="loading">
|
||||||
|
<el-spin description="加载中..." />
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
<div style="display: flex; justify-content: space-between">
|
<div style="display: flex; justify-content: space-between">
|
||||||
<el-descriptions :column="1" border style="flex: 1" class="mr20" title="变更前">
|
<el-descriptions :column="1" border style="flex: 1" class="mr20" title="变更前">
|
||||||
<el-descriptions-item label="填报人">
|
<el-descriptions-item label="填报人">
|
||||||
@@ -189,7 +193,7 @@
|
|||||||
</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 && VITE_FLAG">
|
<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">
|
||||||
@@ -202,7 +206,7 @@
|
|||||||
detailData.userType == 4 ||
|
detailData.userType == 4 ||
|
||||||
detailData.userType == 5
|
detailData.userType == 5
|
||||||
">
|
">
|
||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name && VITE_FLAG">
|
<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)">
|
||||||
@@ -210,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 && VITE_FLAG">
|
<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)">
|
||||||
@@ -219,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 && VITE_FLAG">
|
<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>
|
||||||
|
|
||||||
@@ -228,7 +232,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 && VITE_FLAG">
|
<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)">
|
||||||
@@ -236,7 +240,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 && VITE_FLAG">
|
<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)">
|
||||||
@@ -244,7 +248,7 @@
|
|||||||
</span >
|
</span >
|
||||||
</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">
|
||||||
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram?.name && VITE_FLAG">
|
<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)">
|
||||||
@@ -252,7 +256,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 && VITE_FLAG">
|
<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)">
|
||||||
@@ -260,7 +264,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 && VITE_FLAG">
|
<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)">
|
||||||
@@ -268,7 +272,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 && VITE_FLAG">
|
<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)">
|
||||||
@@ -277,7 +281,7 @@
|
|||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="其他附件"
|
<el-descriptions-item label="其他附件"
|
||||||
v-if="proviteData?.additionalAttachments && proviteData?.additionalAttachments?.url">
|
v-if="proviteData?.additionalAttachments && proviteData?.additionalAttachments?.url">
|
||||||
<el-icon class="elView" v-if="proviteData?.additionalAttachments?.name && VITE_FLAG">
|
<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)">
|
||||||
@@ -527,7 +531,7 @@
|
|||||||
<span v-if="detailData1.userType == 0 || detailData1.userType == 1"
|
<span v-if="detailData1.userType == 0 || detailData1.userType == 1"
|
||||||
:label-class-name="changeTheField?.feasibilityReport ? 'my-content' : ''"
|
:label-class-name="changeTheField?.feasibilityReport ? 'my-content' : ''"
|
||||||
:class-name="changeTheField?.feasibilityReport ? 'my-content' : ''">
|
:class-name="changeTheField?.feasibilityReport ? 'my-content' : ''">
|
||||||
<el-icon class="elView" v-if="proviteData1?.feasibilityReport?.name && VITE_FLAG">
|
<el-icon class="elView" v-if="proviteData1?.feasibilityReport?.name ">
|
||||||
<View @click="openFile(proviteData1?.feasibilityReport?.name)" />
|
<View @click="openFile(proviteData1?.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">
|
||||||
@@ -540,7 +544,7 @@
|
|||||||
detailData1.userType == 4 ||
|
detailData1.userType == 4 ||
|
||||||
detailData1.userType == 5
|
detailData1.userType == 5
|
||||||
">
|
">
|
||||||
<el-icon class="elView" v-if="proviteData1?.feasibilityReport?.name && VITE_FLAG">
|
<el-icon class="elView" v-if="proviteData1?.feasibilityReport?.name ">
|
||||||
<View @click="openFile(proviteData1?.feasibilityReport?.name)" />
|
<View @click="openFile(proviteData1?.feasibilityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
||||||
@@ -550,7 +554,7 @@
|
|||||||
<span v-if="detailData1.userType == 6"
|
<span v-if="detailData1.userType == 6"
|
||||||
:label-class-name="changeTheField?.feasibilityReport ? 'my-content' : ''"
|
:label-class-name="changeTheField?.feasibilityReport ? 'my-content' : ''"
|
||||||
:class-name="changeTheField?.feasibilityReport ? 'my-content' : ''">
|
:class-name="changeTheField?.feasibilityReport ? 'my-content' : ''">
|
||||||
<el-icon class="elView" v-if="proviteData1?.feasibilityReport?.name && VITE_FLAG">
|
<el-icon class="elView" v-if="proviteData1?.feasibilityReport?.name ">
|
||||||
<View @click="openFile(proviteData1?.feasibilityReport?.name)" />
|
<View @click="openFile(proviteData1?.feasibilityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
||||||
@@ -561,7 +565,7 @@
|
|||||||
<el-descriptions-item label="项目初步设计说明书"
|
<el-descriptions-item label="项目初步设计说明书"
|
||||||
:label-class-name="changeTheField?.preliminaryDesignDescription ? 'my-content' : ''"
|
:label-class-name="changeTheField?.preliminaryDesignDescription ? 'my-content' : ''"
|
||||||
:class-name="changeTheField?.preliminaryDesignDescription ? 'my-content' : ''">
|
:class-name="changeTheField?.preliminaryDesignDescription ? 'my-content' : ''">
|
||||||
<el-icon class="elView" v-if="proviteData1?.preliminaryDesignDescription?.name && VITE_FLAG">
|
<el-icon class="elView" v-if="proviteData1?.preliminaryDesignDescription?.name ">
|
||||||
<View @click="openFile(proviteData1?.preliminaryDesignDescription?.name)" />
|
<View @click="openFile(proviteData1?.preliminaryDesignDescription?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
|
|
||||||
@@ -572,7 +576,7 @@
|
|||||||
<el-descriptions-item label="预测评估报告"
|
<el-descriptions-item label="预测评估报告"
|
||||||
:label-class-name="changeTheField?.predictionEvaluationReport ? 'my-content' : ''"
|
:label-class-name="changeTheField?.predictionEvaluationReport ? 'my-content' : ''"
|
||||||
:class-name="changeTheField?.predictionEvaluationReport ? 'my-content' : ''">
|
:class-name="changeTheField?.predictionEvaluationReport ? 'my-content' : ''">
|
||||||
<el-icon class="elView" v-if="proviteData1?.predictionEvaluationReport?.name && VITE_FLAG">
|
<el-icon class="elView" v-if="proviteData1?.predictionEvaluationReport?.name ">
|
||||||
<View @click="openFile(proviteData1?.predictionEvaluationReport?.name)" />
|
<View @click="openFile(proviteData1?.predictionEvaluationReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.predictionEvaluationReport.keyName)">
|
<span class="aLoad" @click="download(proviteData.predictionEvaluationReport.keyName)">
|
||||||
@@ -582,7 +586,7 @@
|
|||||||
<el-descriptions-item label="预测评估评审意见报告"
|
<el-descriptions-item label="预测评估评审意见报告"
|
||||||
:label-class-name="changeTheField?.predictionEvaluationReviewOpinions ? 'my-content' : ''"
|
:label-class-name="changeTheField?.predictionEvaluationReviewOpinions ? 'my-content' : ''"
|
||||||
:class-name="changeTheField?.predictionEvaluationReviewOpinions ? 'my-content' : ''">
|
:class-name="changeTheField?.predictionEvaluationReviewOpinions ? 'my-content' : ''">
|
||||||
<el-icon class="elView" v-if="proviteData1?.predictionEvaluationReviewOpinions?.name && VITE_FLAG">
|
<el-icon class="elView" v-if="proviteData1?.predictionEvaluationReviewOpinions?.name ">
|
||||||
<View @click="openFile(proviteData1?.predictionEvaluationReviewOpinions?.name)" />
|
<View @click="openFile(proviteData1?.predictionEvaluationReviewOpinions?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.predictionEvaluationReviewOpinions.keyName)">
|
<span class="aLoad" @click="download(proviteData.predictionEvaluationReviewOpinions.keyName)">
|
||||||
@@ -592,7 +596,7 @@
|
|||||||
<el-descriptions-item label="用户接入变电站主接线示意图" v-if="detailData.userType != 0 && detailData.userType != 1"
|
<el-descriptions-item label="用户接入变电站主接线示意图" v-if="detailData.userType != 0 && detailData.userType != 1"
|
||||||
:label-class-name="changeTheField?.substationMainWiringDiagram ? 'my-content' : ''"
|
:label-class-name="changeTheField?.substationMainWiringDiagram ? 'my-content' : ''"
|
||||||
:class-name="changeTheField?.substationMainWiringDiagram ? 'my-content' : ''">
|
:class-name="changeTheField?.substationMainWiringDiagram ? 'my-content' : ''">
|
||||||
<el-icon class="elView" v-if="proviteData1?.substationMainWiringDiagram?.name && VITE_FLAG">
|
<el-icon class="elView" v-if="proviteData1?.substationMainWiringDiagram?.name ">
|
||||||
<View @click="openFile(proviteData1?.substationMainWiringDiagram?.name)" />
|
<View @click="openFile(proviteData1?.substationMainWiringDiagram?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.substationMainWiringDiagram.keyName)">
|
<span class="aLoad" @click="download(proviteData.substationMainWiringDiagram.keyName)">
|
||||||
@@ -602,7 +606,7 @@
|
|||||||
<el-descriptions-item label="主要敏感终端清单" v-if="detailData.userType == 6"
|
<el-descriptions-item label="主要敏感终端清单" v-if="detailData.userType == 6"
|
||||||
:label-class-name="changeTheField?.sensitiveDevices ? 'my-content' : ''"
|
:label-class-name="changeTheField?.sensitiveDevices ? 'my-content' : ''"
|
||||||
:class-name="changeTheField?.sensitiveDevices ? 'my-content' : ''">
|
:class-name="changeTheField?.sensitiveDevices ? 'my-content' : ''">
|
||||||
<el-icon class="elView" v-if="proviteData1?.sensitiveDevices?.name && VITE_FLAG">
|
<el-icon class="elView" v-if="proviteData1?.sensitiveDevices?.name ">
|
||||||
<View @click="openFile(proviteData1?.sensitiveDevices?.name)" />
|
<View @click="openFile(proviteData1?.sensitiveDevices?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.sensitiveDevices.keyName)">
|
<span class="aLoad" @click="download(proviteData.sensitiveDevices.keyName)">
|
||||||
@@ -612,7 +616,7 @@
|
|||||||
<el-descriptions-item label="抗扰度测试报告" v-if="detailData.userType == 6"
|
<el-descriptions-item label="抗扰度测试报告" v-if="detailData.userType == 6"
|
||||||
:label-class-name="changeTheField?.antiInterferenceReport ? 'my-content' : ''"
|
:label-class-name="changeTheField?.antiInterferenceReport ? 'my-content' : ''"
|
||||||
:class-name="changeTheField?.antiInterferenceReport ? 'my-content' : ''">
|
:class-name="changeTheField?.antiInterferenceReport ? 'my-content' : ''">
|
||||||
<el-icon class="elView" v-if="proviteData1?.antiInterferenceReport?.name && VITE_FLAG">
|
<el-icon class="elView" v-if="proviteData1?.antiInterferenceReport?.name ">
|
||||||
<View @click="openFile(proviteData1?.antiInterferenceReport?.name)" />
|
<View @click="openFile(proviteData1?.antiInterferenceReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.antiInterferenceReport.keyName)">
|
<span class="aLoad" @click="download(proviteData.antiInterferenceReport.keyName)">
|
||||||
@@ -622,7 +626,7 @@
|
|||||||
<el-descriptions-item label="背景电能质量测试报告" v-if="detailData.userType == 6"
|
<el-descriptions-item label="背景电能质量测试报告" v-if="detailData.userType == 6"
|
||||||
:label-class-name="changeTheField?.powerQualityReport ? 'my-content' : ''"
|
:label-class-name="changeTheField?.powerQualityReport ? 'my-content' : ''"
|
||||||
:class-name="changeTheField?.powerQualityReport ? 'my-content' : ''">
|
:class-name="changeTheField?.powerQualityReport ? 'my-content' : ''">
|
||||||
<el-icon class="elView" v-if="proviteData1?.powerQualityReport?.name && VITE_FLAG">
|
<el-icon class="elView" v-if="proviteData1?.powerQualityReport?.name ">
|
||||||
<View @click="openFile(proviteData1?.powerQualityReport?.name)" />
|
<View @click="openFile(proviteData1?.powerQualityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.powerQualityReport.keyName)">
|
<span class="aLoad" @click="download(proviteData.powerQualityReport.keyName)">
|
||||||
@@ -633,7 +637,7 @@
|
|||||||
v-if="proviteData1?.additionalAttachments && proviteData1?.additionalAttachments?.url"
|
v-if="proviteData1?.additionalAttachments && proviteData1?.additionalAttachments?.url"
|
||||||
:label-class-name="changeTheField?.additionalAttachments ? 'my-content' : ''"
|
:label-class-name="changeTheField?.additionalAttachments ? 'my-content' : ''"
|
||||||
:class-name="changeTheField?.additionalAttachments ? 'my-content' : ''">
|
:class-name="changeTheField?.additionalAttachments ? 'my-content' : ''">
|
||||||
<el-icon class="elView" v-if="proviteData1?.additionalAttachments?.name && VITE_FLAG">
|
<el-icon class="elView" v-if="proviteData1?.additionalAttachments?.name ">
|
||||||
<View @click="openFile(proviteData1?.additionalAttachments?.name)" />
|
<View @click="openFile(proviteData1?.additionalAttachments?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(proviteData.additionalAttachments.keyName)">
|
<span class="aLoad" @click="download(proviteData.additionalAttachments.keyName)">
|
||||||
@@ -642,6 +646,7 @@
|
|||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
@@ -657,7 +662,7 @@ import { Link, View } from '@element-plus/icons-vue'
|
|||||||
import PreviewFile from '@/components/PreviewFile/index.vue'
|
import PreviewFile from '@/components/PreviewFile/index.vue'
|
||||||
import { download} from '@/utils/fileDownLoad'
|
import { download} from '@/utils/fileDownLoad'
|
||||||
defineOptions({ name: 'BpmUserReportDetail' })
|
defineOptions({ name: 'BpmUserReportDetail' })
|
||||||
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
|
||||||
const { query } = useRoute() // 查询参数
|
const { query } = useRoute() // 查询参数
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|||||||
@@ -1,367 +1,370 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main">
|
<div class="default-main">
|
||||||
<!-- <TableHeader ref='TableHeaderRef'>
|
<!-- <TableHeader ref='TableHeaderRef'>
|
||||||
<template #select>
|
<template #select>
|
||||||
<el-form-item label='用户名称'>
|
<el-form-item label='用户名称'>
|
||||||
<el-input v-model='tableStore.table.params.projectName' clearable></el-input>
|
<el-input v-model='tableStore.table.params.projectName' clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label='所在地市'>
|
<el-form-item label='所在地市'>
|
||||||
<el-select v-model='tableStore.table.params.city' clearable placeholder='请选择所在地市'>
|
<el-select v-model='tableStore.table.params.city' clearable placeholder='请选择所在地市'>
|
||||||
<el-option
|
<el-option
|
||||||
v-for='item in areaOptionList'
|
v-for='item in areaOptionList'
|
||||||
:key='item.id'
|
:key='item.id'
|
||||||
:label='item.name'
|
:label='item.name'
|
||||||
:value='item.name'
|
:value='item.name'
|
||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
<template #operation>
|
<template #operation>
|
||||||
<el-button icon='' type='primary' @click='toGoNet()'>{{ titleButton }}</el-button>
|
<el-button icon='' type='primary' @click='toGoNet()'>{{ titleButton }}</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>
|
||||||
</template>
|
</template>
|
||||||
</TableHeader> -->
|
</TableHeader> -->
|
||||||
<div class="header_btn">
|
<div class="header_btn">
|
||||||
<el-button v-if="bussType == 0 && !(jb_pl || jb_dky)" icon="" type="primary" @click="toGoNet()">
|
<el-button v-if="bussType == 0 && !(jb_pl || jb_dky)" icon="" type="primary" @click="toGoNet()">
|
||||||
{{ titleButton }}
|
{{ titleButton }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
v-if="bussType == 1 && needGovernance != '0' && !(jb_pl || jb_dky)"
|
v-if="bussType == 1 && needGovernance != '0' && !(jb_pl || jb_dky)"
|
||||||
icon=""
|
icon=""
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="toGoNet()"
|
@click="toGoNet()"
|
||||||
>
|
>
|
||||||
{{ titleButton }}
|
{{ titleButton }}
|
||||||
</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"
|
||||||
ref="addForms"
|
ref="addForms"
|
||||||
:id="bussId"
|
:id="bussId"
|
||||||
:bussType="bussType"
|
:bussType="bussType"
|
||||||
:title="titleButton1"
|
:title="titleButton1"
|
||||||
openType="detail"
|
openType="detail"
|
||||||
@onSubmit="tableStore.index()"
|
@onSubmit="tableStore.index()"
|
||||||
></addForm>
|
></addForm>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
defineOptions({
|
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()
|
||||||
const areaOptionList = dictData.getBasicData('jibei_area')
|
const areaOptionList = dictData.getBasicData('jibei_area')
|
||||||
const adminInfo = useAdminInfo()
|
const adminInfo = useAdminInfo()
|
||||||
const jb_pl = ref(false)
|
const jb_pl = ref(false)
|
||||||
const jb_dky = ref(false)
|
const jb_dky = ref(false)
|
||||||
jb_pl.value =
|
jb_pl.value =
|
||||||
adminInfo.$state.roleCode.filter(item => {
|
adminInfo.$state.roleCode.filter(item => {
|
||||||
return item == 'jb_pl'
|
return item == 'jb_pl'
|
||||||
}).length != 0
|
}).length != 0
|
||||||
? true
|
? true
|
||||||
: false
|
: false
|
||||||
jb_dky.value =
|
jb_dky.value =
|
||||||
adminInfo.$state.roleCode.filter(item => {
|
adminInfo.$state.roleCode.filter(item => {
|
||||||
return item == 'jb_dky'
|
return item == 'jb_dky'
|
||||||
}).length != 0
|
}).length != 0
|
||||||
? true
|
? true
|
||||||
: false
|
: false
|
||||||
const tableStore = new TableStore({
|
const tableStore = new TableStore({
|
||||||
url: '/supervision-boot/userReportNormal/userReportGoNetPage',
|
url: '/supervision-boot/userReportNormal/userReportGoNetPage',
|
||||||
|
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
column: [
|
column: [
|
||||||
{title: '序号', width: 80,formatter: (row: any) => {
|
{
|
||||||
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
|
title: '序号',
|
||||||
}},
|
width: 80,
|
||||||
{field: 'projectName', title: '用户名称', minWidth: 170},
|
formatter: (row: any) => {
|
||||||
{
|
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
|
||||||
field: 'userType',
|
}
|
||||||
title: '用户性质',
|
},
|
||||||
minWidth: 150,
|
{ field: 'projectName', title: '用户名称', minWidth: 170 },
|
||||||
formatter: (obj: any) => {
|
{
|
||||||
const userType = obj.row.userType
|
field: 'userType',
|
||||||
return getUserTypeName(userType)
|
title: '用户性质',
|
||||||
}
|
minWidth: 150,
|
||||||
},
|
formatter: (obj: any) => {
|
||||||
{field: 'city', title: '所在地市', minWidth: 80},
|
const userType = obj.row.userType
|
||||||
{field: 'responsibleDepartment', title: '归口管理部门', minWidth: 130},
|
return getUserTypeName(userType)
|
||||||
{
|
}
|
||||||
field: 'userStatus',
|
},
|
||||||
title: '用户状态',
|
{ field: 'city', title: '所在地市', minWidth: 80 },
|
||||||
minWidth: 100,
|
{ field: 'responsibleDepartment', title: '归口管理部门', minWidth: 130 },
|
||||||
render: 'tag',
|
{
|
||||||
custom: {
|
field: 'userStatus',
|
||||||
0: 'primary',
|
title: '用户状态',
|
||||||
1: 'primary',
|
minWidth: 100,
|
||||||
2: 'success',
|
render: 'tag',
|
||||||
3: 'warning'
|
custom: {
|
||||||
},
|
0: 'primary',
|
||||||
replaceValue: {
|
1: 'primary',
|
||||||
0: '可研',
|
2: 'success',
|
||||||
1: '建设',
|
3: 'warning'
|
||||||
2: '运行',
|
},
|
||||||
3: '退运'
|
replaceValue: {
|
||||||
}
|
0: '可研',
|
||||||
},
|
1: '建设',
|
||||||
{field: 'substation', title: '厂站名称', minWidth: 100},
|
2: '运行',
|
||||||
{
|
3: '退运'
|
||||||
field: 'status',
|
}
|
||||||
title: '流程状态',
|
},
|
||||||
minWidth: 100,
|
{ field: 'substation', title: '厂站名称', minWidth: 100 },
|
||||||
render: 'tag',
|
{
|
||||||
custom: {
|
field: 'status',
|
||||||
0: 'warning',
|
title: '流程状态',
|
||||||
1: 'primary',
|
minWidth: 100,
|
||||||
2: 'success',
|
render: 'tag',
|
||||||
3: 'danger',
|
custom: {
|
||||||
4: 'warning'
|
0: 'warning',
|
||||||
},
|
1: 'primary',
|
||||||
replaceValue: {
|
2: 'success',
|
||||||
0: '待提交审批',
|
3: 'danger',
|
||||||
1: '审批中',
|
4: 'warning'
|
||||||
2: '审批通过',
|
},
|
||||||
3: '审批不通过',
|
replaceValue: {
|
||||||
4: '已取消'
|
0: '待提交审批',
|
||||||
}
|
1: '审批中',
|
||||||
},
|
2: '审批通过',
|
||||||
{
|
3: '审批不通过',
|
||||||
field: 'createBy',
|
4: '已取消'
|
||||||
title: '填报人',
|
}
|
||||||
minWidth: 80,
|
},
|
||||||
formatter: (row: any) => {
|
{
|
||||||
return dictData.state.userList.filter(item => item.id == row.cellValue)[0]?.name
|
field: 'createBy',
|
||||||
}
|
title: '填报人',
|
||||||
},
|
minWidth: 80,
|
||||||
{field: 'createTime', title: '创建时间', minWidth: 100},
|
formatter: (row: any) => {
|
||||||
{
|
return dictData.state.userList.filter(item => item.id == row.cellValue)[0]?.name
|
||||||
title: '操作',
|
}
|
||||||
minWidth: 180,
|
},
|
||||||
fixed: 'right',
|
{ field: 'createTime', title: '创建时间', minWidth: 100 },
|
||||||
render: 'buttons',
|
{
|
||||||
buttons: [
|
title: '操作',
|
||||||
{
|
minWidth: 180,
|
||||||
name: 'productSetting',
|
fixed: 'right',
|
||||||
title: '流程详情',
|
render: 'buttons',
|
||||||
type: 'primary',
|
buttons: [
|
||||||
icon: 'el-icon-EditPen',
|
{
|
||||||
render: 'basicButton',
|
name: 'productSetting',
|
||||||
disabled: row => {
|
title: '流程详情',
|
||||||
return !row.processInstanceId
|
type: 'primary',
|
||||||
},
|
icon: 'el-icon-EditPen',
|
||||||
click: row => {
|
render: 'basicButton',
|
||||||
handleAudit(row.processInstanceId)
|
disabled: row => {
|
||||||
}
|
return !row.processInstanceId
|
||||||
},
|
},
|
||||||
{
|
click: row => {
|
||||||
name: 'edit',
|
handleAudit(row.processInstanceId, row.id)
|
||||||
title: '编辑',
|
}
|
||||||
type: 'primary',
|
},
|
||||||
icon: 'el-icon-Open',
|
{
|
||||||
render: 'basicButton',
|
name: 'edit',
|
||||||
showDisabled: row => {
|
title: '编辑',
|
||||||
return !(row.status == 0 || row.status == 3)
|
type: 'primary',
|
||||||
},
|
icon: 'el-icon-Open',
|
||||||
disabled: row => {
|
render: 'basicButton',
|
||||||
return !(row.status == 0 || row.status == 3)
|
showDisabled: row => {
|
||||||
},
|
return !(row.status == 0 || row.status == 3)
|
||||||
click: row => {
|
},
|
||||||
dialogVisible.value = true
|
disabled: row => {
|
||||||
titleButton1.value = '编辑'
|
return !(row.status == 0 || row.status == 3)
|
||||||
setTimeout(() => {
|
},
|
||||||
addForms.value.open(row)
|
click: row => {
|
||||||
}, 0)
|
dialogVisible.value = true
|
||||||
}
|
titleButton1.value = '编辑'
|
||||||
},
|
setTimeout(() => {
|
||||||
{
|
addForms.value.open(row)
|
||||||
name: 'edit',
|
}, 0)
|
||||||
title: '重新发起',
|
}
|
||||||
type: 'warning',
|
},
|
||||||
icon: 'el-icon-Open',
|
{
|
||||||
render: 'basicButton',
|
name: 'edit',
|
||||||
disabled: row => {
|
title: '重新发起',
|
||||||
return row.createBy != adminInfo.$state.id || !(row.status == 4)
|
type: 'warning',
|
||||||
},
|
icon: 'el-icon-Open',
|
||||||
click: row => {
|
render: 'basicButton',
|
||||||
dialogVisible.value = true
|
disabled: row => {
|
||||||
titleButton1.value = '重新发起'
|
return row.createBy != adminInfo.$state.id || !(row.status == 4)
|
||||||
setTimeout(() => {
|
},
|
||||||
addForms.value.open(row)
|
click: row => {
|
||||||
}, 0)
|
dialogVisible.value = true
|
||||||
}
|
titleButton1.value = '重新发起'
|
||||||
},
|
setTimeout(() => {
|
||||||
{
|
addForms.value.open(row)
|
||||||
name: 'cancel',
|
}, 0)
|
||||||
title: '取消',
|
}
|
||||||
type: 'danger',
|
},
|
||||||
icon: 'el-icon-Open',
|
{
|
||||||
render: 'basicButton',
|
name: 'cancel',
|
||||||
disabled: row => {
|
title: '取消',
|
||||||
return row.createBy != adminInfo.$state.id || row.status !== 1
|
type: 'danger',
|
||||||
},
|
icon: 'el-icon-Open',
|
||||||
click: row => {
|
render: 'basicButton',
|
||||||
cancelLeave(row)
|
disabled: row => {
|
||||||
}
|
return row.createBy != adminInfo.$state.id || row.status !== 1
|
||||||
}
|
},
|
||||||
]
|
click: row => {
|
||||||
}
|
cancelLeave(row)
|
||||||
],
|
}
|
||||||
|
}
|
||||||
beforeSearchFun: () => {
|
]
|
||||||
tableStore.table.params.userReportId = bussId.value
|
}
|
||||||
tableStore.table.params.type = bussType.value
|
],
|
||||||
tableStore.table.params.orgNo = tableStore.table.params.deptIndex
|
|
||||||
tableStore.table.params.relationUserName = tableStore.table.params.userName
|
beforeSearchFun: () => {
|
||||||
}
|
tableStore.table.params.userReportId = bussId.value
|
||||||
})
|
tableStore.table.params.type = bussType.value
|
||||||
tableStore.table.params.city = ''
|
tableStore.table.params.orgNo = tableStore.table.params.deptIndex
|
||||||
tableStore.table.params.projectName = ''
|
tableStore.table.params.relationUserName = tableStore.table.params.userName
|
||||||
|
}
|
||||||
const dialogVisible = ref(false)
|
})
|
||||||
const bussId = ref()
|
tableStore.table.params.city = ''
|
||||||
bussId.value = currentRoute.value.query.id
|
tableStore.table.params.projectName = ''
|
||||||
|
|
||||||
const bussType = ref()
|
const dialogVisible = ref(false)
|
||||||
bussType.value = Number(currentRoute.value.query.type)
|
const bussId = ref()
|
||||||
|
bussId.value = currentRoute.value.query.id
|
||||||
const titleButton = ref()
|
|
||||||
const titleButton1 = ref()
|
const bussType = ref()
|
||||||
|
bussType.value = Number(currentRoute.value.query.type)
|
||||||
provide('tableStore', tableStore)
|
|
||||||
const handleVisibilityChange = async () => {
|
const titleButton = ref()
|
||||||
if (document.visibilityState === 'visible') {
|
const titleButton1 = ref()
|
||||||
// 在这里执行页面回到回到当前页签需要做的事情
|
|
||||||
await tableStore.index()
|
provide('tableStore', tableStore)
|
||||||
} else if (document.visibilityState === 'hidden') {
|
const handleVisibilityChange = async () => {
|
||||||
// 在这里执行页面离开时需要做的事情
|
if (document.visibilityState === 'visible') {
|
||||||
}
|
// 在这里执行页面回到回到当前页签需要做的事情
|
||||||
}
|
await tableStore.index()
|
||||||
onMounted(async () => {
|
} else if (document.visibilityState === 'hidden') {
|
||||||
tableStore.index()
|
// 在这里执行页面离开时需要做的事情
|
||||||
document.addEventListener('visibilitychange', handleVisibilityChange)
|
}
|
||||||
if (query.fangAnId) {
|
}
|
||||||
//根据id查询待编辑的数据
|
onMounted(async () => {
|
||||||
await userReportGoNetById({id: query.fangAnId}).then(res => {
|
tableStore.index()
|
||||||
if (res && res.code == 'A0000') {
|
document.addEventListener('visibilitychange', handleVisibilityChange)
|
||||||
dialogVisible.value = true
|
if (query.fangAnId) {
|
||||||
titleButton1.value = '重新发起'
|
//根据id查询待编辑的数据
|
||||||
setTimeout(() => {
|
await userReportGoNetById({ id: query.fangAnId }).then(res => {
|
||||||
res.data.id = query.fangAnId
|
if (res && res.code == 'A0000') {
|
||||||
addForms.value.open(res.data)
|
dialogVisible.value = true
|
||||||
}, 0)
|
titleButton1.value = '重新发起'
|
||||||
}
|
setTimeout(() => {
|
||||||
})
|
res.data.id = query.fangAnId
|
||||||
|
addForms.value.open(res.data)
|
||||||
}
|
}, 0)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
onUnmounted(() => {
|
}
|
||||||
document.removeEventListener('visibilitychange', handleVisibilityChange)
|
})
|
||||||
})
|
onUnmounted(() => {
|
||||||
/**取消流程操作*/
|
document.removeEventListener('visibilitychange', handleVisibilityChange)
|
||||||
const cancelLeave = async (row: any) => {
|
})
|
||||||
// 二次确认
|
/**取消流程操作*/
|
||||||
const {value} = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
|
const cancelLeave = async (row: any) => {
|
||||||
confirmButtonText: '确定',
|
// 二次确认
|
||||||
cancelButtonText: '取消',
|
const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
|
||||||
inputType: 'textarea',
|
confirmButtonText: '确定',
|
||||||
inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
|
cancelButtonText: '取消',
|
||||||
inputErrorMessage: '取消原因不能为空'
|
inputType: 'textarea',
|
||||||
})
|
inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
|
||||||
// 发起取消
|
inputErrorMessage: '取消原因不能为空'
|
||||||
let data = {
|
})
|
||||||
id: row.id,
|
// 发起取消
|
||||||
processInstanceId: row.processInstanceId,
|
let data = {
|
||||||
reason: value
|
id: row.id,
|
||||||
}
|
processInstanceId: row.processInstanceId,
|
||||||
await cancel(data)
|
reason: value
|
||||||
ElMessage.success('取消成功')
|
}
|
||||||
// 加载数据
|
await cancel(data)
|
||||||
tableStore.index()
|
ElMessage.success('取消成功')
|
||||||
}
|
// 加载数据
|
||||||
/** 处理审批按钮 */
|
tableStore.index()
|
||||||
const handleAudit = (instanceId: any) => {
|
}
|
||||||
push({
|
/** 处理审批按钮 */
|
||||||
name: 'BpmProcessInstanceDetail',
|
const handleAudit = (instanceId: any, keyID: any) => {
|
||||||
query: {
|
push({
|
||||||
id: instanceId
|
name: 'BpmProcessInstanceDetail',
|
||||||
}
|
query: {
|
||||||
})
|
id: instanceId,
|
||||||
}
|
keyID: keyID
|
||||||
if (bussType.value === 0) {
|
}
|
||||||
titleButton.value = '入网设计方案申请'
|
})
|
||||||
} else {
|
}
|
||||||
titleButton.value = '治理工程申请'
|
if (bussType.value === 0) {
|
||||||
}
|
titleButton.value = '入网设计方案申请'
|
||||||
const addForms = ref()
|
} else {
|
||||||
const toGoNet = () => {
|
titleButton.value = '治理工程申请'
|
||||||
dialogVisible.value = true
|
}
|
||||||
if (bussType.value === 0) {
|
const addForms = ref()
|
||||||
titleButton1.value = '入网设计方案申请'
|
const toGoNet = () => {
|
||||||
} else {
|
dialogVisible.value = true
|
||||||
titleButton1.value = '治理工程申请'
|
if (bussType.value === 0) {
|
||||||
}
|
titleButton1.value = '入网设计方案申请'
|
||||||
setTimeout(() => {
|
} else {
|
||||||
addForms.value.open()
|
titleButton1.value = '治理工程申请'
|
||||||
}, 0)
|
}
|
||||||
}
|
setTimeout(() => {
|
||||||
|
addForms.value.open()
|
||||||
/**获取用户性质*/
|
}, 0)
|
||||||
const getUserTypeName = (userType: any) => {
|
}
|
||||||
if (userType === 0) {
|
|
||||||
return '新建电网工程'
|
/**获取用户性质*/
|
||||||
}
|
const getUserTypeName = (userType: any) => {
|
||||||
if (userType === 1) {
|
if (userType === 0) {
|
||||||
return '扩建电网工程'
|
return '新建电网工程'
|
||||||
}
|
}
|
||||||
if (userType === 2) {
|
if (userType === 1) {
|
||||||
return '新建非线性负荷用户'
|
return '扩建电网工程'
|
||||||
}
|
}
|
||||||
if (userType === 3) {
|
if (userType === 2) {
|
||||||
return '扩建非线性负荷用户'
|
return '新建非线性负荷用户'
|
||||||
}
|
}
|
||||||
if (userType === 4) {
|
if (userType === 3) {
|
||||||
return '新建新能源发电站'
|
return '扩建非线性负荷用户'
|
||||||
}
|
}
|
||||||
if (userType === 5) {
|
if (userType === 4) {
|
||||||
return '扩建新能源发电站'
|
return '新建新能源发电站'
|
||||||
}
|
}
|
||||||
if (userType === 6) {
|
if (userType === 5) {
|
||||||
return '敏感及重要用户'
|
return '扩建新能源发电站'
|
||||||
}
|
}
|
||||||
return '新建电网工程'
|
if (userType === 6) {
|
||||||
}
|
return '敏感及重要用户'
|
||||||
</script>
|
}
|
||||||
<style scoped lang="scss">
|
return '新建电网工程'
|
||||||
.header_btn {
|
}
|
||||||
width: 100%;
|
</script>
|
||||||
height: 60px;
|
<style scoped lang="scss">
|
||||||
display: flex;
|
.header_btn {
|
||||||
padding: 13px 15px;
|
width: 100%;
|
||||||
justify-content: flex-end;
|
height: 60px;
|
||||||
align-items: center;
|
display: flex;
|
||||||
border: 1px solid #dddfe6;
|
padding: 13px 15px;
|
||||||
}
|
justify-content: flex-end;
|
||||||
</style>
|
align-items: center;
|
||||||
|
border: 1px solid #dddfe6;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -1,450 +1,476 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main">
|
<div class="default-main">
|
||||||
<el-descriptions :column="2" border>
|
<!-- 加载状态显示 -->
|
||||||
<el-descriptions-item label="填报人">
|
<div v-if="detailLoading" class="loading">
|
||||||
{{ detailData.reporter }}
|
<el-spin description="加载中..." />
|
||||||
</el-descriptions-item>
|
</div>
|
||||||
<el-descriptions-item label="填报日期">
|
<div v-else>
|
||||||
{{ formatDate(detailData.reportDate, 'YYYY-MM-DD') }}
|
<el-descriptions :column="2" border>
|
||||||
</el-descriptions-item>
|
<el-descriptions-item label="填报人">
|
||||||
<el-descriptions-item label="填报部门">
|
{{ detailData.reporter }}
|
||||||
{{ detailData.orgName }}
|
</el-descriptions-item>
|
||||||
</el-descriptions-item>
|
<el-descriptions-item label="填报日期">
|
||||||
<el-descriptions-item label="工程预期投产日期">
|
{{ formatDate(detailData.reportDate, 'YYYY-MM-DD') }}
|
||||||
{{ formatDate(detailData.expectedProductionDate, 'YYYY-MM-DD') }}
|
</el-descriptions-item>
|
||||||
</el-descriptions-item>
|
<el-descriptions-item label="填报部门">
|
||||||
<el-descriptions-item label="用户性质">
|
{{ detailData.orgName }}
|
||||||
{{
|
</el-descriptions-item>
|
||||||
userTypeList.find(item => {
|
<el-descriptions-item label="工程预期投产日期">
|
||||||
return item.value == detailData.userType
|
{{ formatDate(detailData.expectedProductionDate, 'YYYY-MM-DD') }}
|
||||||
})?.label
|
</el-descriptions-item>
|
||||||
}}
|
<el-descriptions-item label="用户性质">
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="所在地市">
|
|
||||||
{{ detailData.city }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="归口管理部门">
|
|
||||||
{{ detailData.responsibleDepartment }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="用户状态">
|
|
||||||
{{
|
|
||||||
userStateList.find(item => {
|
|
||||||
return item.value == detailData.userStatus
|
|
||||||
})?.label
|
|
||||||
}}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="厂站名称">
|
|
||||||
{{ detailData.substation }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="项目名称">
|
|
||||||
{{ detailData.projectName }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="电压等级">
|
|
||||||
{{
|
|
||||||
voltageLevelList.find(item => {
|
|
||||||
return item.id == detailData.voltageLevel
|
|
||||||
})?.name
|
|
||||||
}}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="非线性终端类型" v-if="detailData.userType == 0 || detailData.userType == 1">
|
|
||||||
{{ proviteData.nonlinearDeviceType ? proviteData.nonlinearDeviceType : '-' }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="预测评估单位">
|
|
||||||
{{ detailData.evaluationDept }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="预测评估结论" :span="2">
|
|
||||||
{{ detailData.evaluationConclusion }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item
|
|
||||||
:label="
|
|
||||||
detailData.userType == '4' || detailData.userType == '5' ? '非线性设备类型: ' : '非线性负荷类型:'
|
|
||||||
"
|
|
||||||
v-if="
|
|
||||||
detailData.userType == '2' ||
|
|
||||||
detailData.userType == '3' ||
|
|
||||||
detailData.userType == '4' ||
|
|
||||||
detailData.userType == '5'
|
|
||||||
"
|
|
||||||
>
|
|
||||||
{{ proviteData?.nonlinearLoadType || '' }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="是否需要治理">
|
|
||||||
<span v-if="detailData.userType == 0 || detailData.userType == 1">
|
|
||||||
{{ proviteData?.needGovernance == 1 ? '是' : '否' }}
|
|
||||||
</span>
|
|
||||||
<span
|
|
||||||
v-if="
|
|
||||||
detailData.userType == 2 ||
|
|
||||||
detailData.userType == 3 ||
|
|
||||||
detailData.userType == 4 ||
|
|
||||||
detailData.userType == 5
|
|
||||||
"
|
|
||||||
>
|
|
||||||
{{ proviteData?.needGovernance == 1 ? '是' : '否' }}
|
|
||||||
</span>
|
|
||||||
<span v-if="detailData.userType == 6">{{ proviteData?.needGovernance == 1 ? '是' : '否' }}</span>
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="是否开展背景测试">
|
|
||||||
<span v-if="detailData.userType == 0 || detailData.userType == 1">
|
|
||||||
{{ proviteData?.backgroundTestPerformed == 1 ? '是' : '否' }}
|
|
||||||
</span>
|
|
||||||
<span
|
|
||||||
v-if="
|
|
||||||
detailData.userType == 2 ||
|
|
||||||
detailData.userType == 3 ||
|
|
||||||
detailData.userType == 4 ||
|
|
||||||
detailData.userType == 5
|
|
||||||
"
|
|
||||||
>
|
|
||||||
{{ proviteData?.backgroundTestPerformed == 1 ? '是' : '否' }}
|
|
||||||
</span>
|
|
||||||
<span v-if="detailData.userType == 6">
|
|
||||||
{{ proviteData?.backgroundTestPerformed == 1 ? '是' : '否' }}
|
|
||||||
</span>
|
|
||||||
</el-descriptions-item>
|
|
||||||
|
|
||||||
<el-descriptions-item label="关联终端" v-if="props.openType != 'create'">
|
|
||||||
<span>
|
|
||||||
{{ devIdList[0]?.devName }}
|
|
||||||
</span>
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="关联监测点" v-if="props.openType != 'create'">
|
|
||||||
<span>
|
|
||||||
<!-- {{ detailData?.lineId }} -->
|
|
||||||
{{ devIdList[0]?.lineList.filter(item => item.lineId == detailData?.lineId)[0].lineName }}
|
|
||||||
</span>
|
|
||||||
</el-descriptions-item>
|
|
||||||
|
|
||||||
<el-descriptions-item label="是否开展抗扰度测试" v-if="detailData.userType == 6">
|
|
||||||
<span>
|
|
||||||
{{ proviteData.antiInterferenceTest == 1 ? '是' : '否' }}
|
|
||||||
</span>
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item
|
|
||||||
label="用户协议容量(MVA)"
|
|
||||||
v-if="detailData.userType == 0 || detailData.userType == 1"
|
|
||||||
>
|
|
||||||
{{ proviteData?.agreementCapacity }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item
|
|
||||||
label="PCC供电设备容量(MVA)"
|
|
||||||
v-if="
|
|
||||||
detailData.userType == '2' ||
|
|
||||||
detailData.userType == '3' ||
|
|
||||||
detailData.userType == '4' ||
|
|
||||||
detailData.userType == '5'
|
|
||||||
"
|
|
||||||
>
|
|
||||||
{{ proviteData?.pccEquipmentCapacity }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item
|
|
||||||
label="基准短路容量(MVA)"
|
|
||||||
v-if="
|
|
||||||
detailData.userType == '2' ||
|
|
||||||
detailData.userType == '3' ||
|
|
||||||
detailData.userType == '4' ||
|
|
||||||
detailData.userType == '5'
|
|
||||||
"
|
|
||||||
>
|
|
||||||
{{ proviteData?.baseShortCircuitCapacity }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item
|
|
||||||
label="系统最小短路容量(MVA)"
|
|
||||||
v-if="
|
|
||||||
detailData.userType == '2' ||
|
|
||||||
detailData.userType == '3' ||
|
|
||||||
detailData.userType == '4' ||
|
|
||||||
detailData.userType == '5'
|
|
||||||
"
|
|
||||||
>
|
|
||||||
{{ proviteData?.minShortCircuitCapacity }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item
|
|
||||||
label="用户用电协议容量(MVA)"
|
|
||||||
v-if="
|
|
||||||
detailData.userType == '2' ||
|
|
||||||
detailData.userType == '3' ||
|
|
||||||
detailData.userType == '4' ||
|
|
||||||
detailData.userType == '5'
|
|
||||||
"
|
|
||||||
>
|
|
||||||
{{ proviteData?.userAgreementCapacity }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="PCC点" v-if="detailData.userType != 0 && detailData.userType != 1">
|
|
||||||
{{ proviteData?.pccPoint }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="评估类型" v-if="detailData.userType != 0 && detailData.userType != 1">
|
|
||||||
{{
|
|
||||||
evaluationTypeList.find(item => {
|
|
||||||
return item.id == proviteData?.evaluationType
|
|
||||||
})?.name
|
|
||||||
}}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="预测评估评审单位" v-if="detailData.userType != 0 && detailData.userType != 1">
|
|
||||||
{{ proviteData?.evaluationChekDept }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="行业" v-if="detailData.userType == 6">
|
|
||||||
{{
|
|
||||||
industryList.find(item => {
|
|
||||||
return item.id == proviteData.industry
|
|
||||||
})?.name
|
|
||||||
}}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="敏感终端名称" v-if="detailData.userType == 6">
|
|
||||||
{{ proviteData.deviceName }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<!-- <el-descriptions-item label="供电电源数量" v-if="detailData.userType == 6">-->
|
|
||||||
<!-- {{ proviteData.powerSupplyCount }}-->
|
|
||||||
<!-- </el-descriptions-item>-->
|
|
||||||
<el-descriptions-item label="供电电源情况" v-if="detailData.userType == 6">
|
|
||||||
{{
|
|
||||||
powerSupplyInfoOptionList.find(item => {
|
|
||||||
return item.id == proviteData.powerSupplyInfo
|
|
||||||
})?.name
|
|
||||||
}}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="供电电源" :span="2" v-if="detailData.userType == 6">
|
|
||||||
{{ proviteData.powerSupply }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="负荷级别" v-if="detailData.userType == 6">
|
|
||||||
{{
|
|
||||||
loadLevelOptionList.find(item => {
|
|
||||||
return item.id == proviteData.loadLevel
|
|
||||||
})?.name
|
|
||||||
}}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="敏感电能质量指标" v-if="detailData.userType == 6">
|
|
||||||
<span v-if="proviteData.energyQualityIndex">
|
|
||||||
{{
|
{{
|
||||||
Array.isArray(proviteData.energyQualityIndex)
|
userTypeList.find(item => {
|
||||||
? proviteData.energyQualityIndex
|
return item.value == detailData.userType
|
||||||
.map(id => energyQualityIndexList.find(item => item.id == id)?.name)
|
})?.label
|
||||||
.filter(name => name)
|
|
||||||
.join(', ')
|
|
||||||
: typeof proviteData.energyQualityIndex === 'string'
|
|
||||||
? proviteData.energyQualityIndex
|
|
||||||
.split(', ')
|
|
||||||
.map(id => energyQualityIndexList.find(item => item.id == id)?.name)
|
|
||||||
.filter(name => name)
|
|
||||||
.join(', ')
|
|
||||||
: energyQualityIndexList.find(item => item.id == proviteData.energyQualityIndex)?.name
|
|
||||||
}}
|
}}
|
||||||
</span>
|
</el-descriptions-item>
|
||||||
<span v-else>-</span>
|
<el-descriptions-item label="所在地市">
|
||||||
</el-descriptions-item>
|
{{ detailData.city }}
|
||||||
<el-descriptions-item label="可研报告">
|
</el-descriptions-item>
|
||||||
<span v-if="detailData.userType == 0 || detailData.userType == 1">
|
<el-descriptions-item label="归口管理部门">
|
||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name && VITE_FLAG">
|
{{ detailData.responsibleDepartment }}
|
||||||
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
</el-descriptions-item>
|
||||||
</el-icon>
|
<el-descriptions-item label="用户状态">
|
||||||
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)" rel="nofollow">
|
{{
|
||||||
{{ proviteData?.feasibilityReport?.name }}
|
userStateList.find(item => {
|
||||||
</span >
|
return item.value == detailData.userStatus
|
||||||
</span>
|
})?.label
|
||||||
<span
|
}}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="厂站名称">
|
||||||
|
{{ detailData.substation }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="项目名称">
|
||||||
|
{{ detailData.projectName }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="电压等级">
|
||||||
|
{{
|
||||||
|
voltageLevelList.find(item => {
|
||||||
|
return item.id == detailData.voltageLevel
|
||||||
|
})?.name
|
||||||
|
}}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item
|
||||||
|
label="非线性终端类型"
|
||||||
|
v-if="detailData.userType == 0 || detailData.userType == 1"
|
||||||
|
>
|
||||||
|
{{ proviteData.nonlinearDeviceType ? proviteData.nonlinearDeviceType : '-' }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="预测评估单位">
|
||||||
|
{{ detailData.evaluationDept }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="预测评估结论" :span="2">
|
||||||
|
{{ detailData.evaluationConclusion }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item
|
||||||
|
:label="
|
||||||
|
detailData.userType == '4' || detailData.userType == '5'
|
||||||
|
? '非线性设备类型: '
|
||||||
|
: '非线性负荷类型:'
|
||||||
|
"
|
||||||
v-if="
|
v-if="
|
||||||
detailData.userType == 2 ||
|
detailData.userType == '2' ||
|
||||||
detailData.userType == 3 ||
|
detailData.userType == '3' ||
|
||||||
detailData.userType == 4 ||
|
detailData.userType == '4' ||
|
||||||
detailData.userType == 5
|
detailData.userType == '5'
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name && VITE_FLAG">
|
{{ proviteData?.nonlinearLoadType || '' }}
|
||||||
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
</el-descriptions-item>
|
||||||
</el-icon>
|
<el-descriptions-item label="是否需要治理">
|
||||||
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
<span v-if="detailData.userType == 0 || detailData.userType == 1">
|
||||||
{{ proviteData?.feasibilityReport?.name }}
|
{{ proviteData?.needGovernance == 1 ? '是' : '否' }}
|
||||||
</span >
|
</span>
|
||||||
</span>
|
<span
|
||||||
<span v-if="detailData.userType == 6">
|
v-if="
|
||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name && VITE_FLAG">
|
detailData.userType == 2 ||
|
||||||
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
detailData.userType == 3 ||
|
||||||
</el-icon>
|
detailData.userType == 4 ||
|
||||||
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
detailData.userType == 5
|
||||||
{{ proviteData?.feasibilityReport?.name }}
|
"
|
||||||
</span >
|
>
|
||||||
</span>
|
{{ proviteData?.needGovernance == 1 ? '是' : '否' }}
|
||||||
</el-descriptions-item>
|
</span>
|
||||||
<el-descriptions-item label="项目初步设计说明书">
|
<span v-if="detailData.userType == 6">{{ proviteData?.needGovernance == 1 ? '是' : '否' }}</span>
|
||||||
<el-icon class="elView" v-if="proviteData?.preliminaryDesignDescription?.name && VITE_FLAG">
|
</el-descriptions-item>
|
||||||
<View @click="openFile(proviteData?.preliminaryDesignDescription?.name)" />
|
<el-descriptions-item label="是否开展背景测试">
|
||||||
</el-icon>
|
<span v-if="detailData.userType == 0 || detailData.userType == 1">
|
||||||
|
{{ proviteData?.backgroundTestPerformed == 1 ? '是' : '否' }}
|
||||||
|
</span>
|
||||||
|
<span
|
||||||
|
v-if="
|
||||||
|
detailData.userType == 2 ||
|
||||||
|
detailData.userType == 3 ||
|
||||||
|
detailData.userType == 4 ||
|
||||||
|
detailData.userType == 5
|
||||||
|
"
|
||||||
|
>
|
||||||
|
{{ proviteData?.backgroundTestPerformed == 1 ? '是' : '否' }}
|
||||||
|
</span>
|
||||||
|
<span v-if="detailData.userType == 6">
|
||||||
|
{{ proviteData?.backgroundTestPerformed == 1 ? '是' : '否' }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
|
||||||
<span class="aLoad" @click="download(proviteData.preliminaryDesignDescription.keyName)">
|
<el-descriptions-item label="关联终端" v-if="props.openType != 'create'">
|
||||||
{{ proviteData?.preliminaryDesignDescription?.name }}
|
<span>
|
||||||
</span >
|
{{ devIdList[0]?.devName }}
|
||||||
</el-descriptions-item>
|
</span>
|
||||||
<el-descriptions-item label="预测评估报告">
|
</el-descriptions-item>
|
||||||
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReport?.name && VITE_FLAG">
|
<el-descriptions-item label="关联监测点" v-if="props.openType != 'create'">
|
||||||
<View @click="openFile(proviteData?.predictionEvaluationReport?.name)" />
|
<span>
|
||||||
</el-icon>
|
<!-- {{ detailData?.lineId }} -->
|
||||||
<span class="aLoad" @click="download(proviteData.predictionEvaluationReport.keyName)">
|
{{ devIdList[0]?.lineList.filter(item => item.lineId == detailData?.lineId)[0].lineName }}
|
||||||
{{ proviteData?.predictionEvaluationReport?.name }}
|
</span>
|
||||||
</span >
|
</el-descriptions-item>
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="预测评估评审意见报告">
|
|
||||||
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReviewOpinions?.name && VITE_FLAG">
|
|
||||||
<View @click="openFile(proviteData?.predictionEvaluationReviewOpinions?.name)" />
|
|
||||||
</el-icon>
|
|
||||||
<span class="aLoad" @click="download(proviteData.predictionEvaluationReviewOpinions.keyName)">
|
|
||||||
{{ proviteData?.predictionEvaluationReviewOpinions?.name }}
|
|
||||||
</span >
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item
|
|
||||||
label="用户接入变电站主接线示意图"
|
|
||||||
v-if="detailData.userType != 0 && detailData.userType != 1"
|
|
||||||
>
|
|
||||||
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram?.name && VITE_FLAG">
|
|
||||||
<View @click="openFile(proviteData?.substationMainWiringDiagram?.name)" />
|
|
||||||
</el-icon>
|
|
||||||
<span class="aLoad" @click="download(proviteData.substationMainWiringDiagram.keyName)">
|
|
||||||
{{ proviteData?.substationMainWiringDiagram?.name }}
|
|
||||||
</span >
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="主要敏感终端清单" v-if="detailData.userType == 6 && VITE_FLAG">
|
|
||||||
<el-icon class="elView" v-if="proviteData?.sensitiveDevices?.name">
|
|
||||||
<View @click="openFile(proviteData?.sensitiveDevices?.name)" />
|
|
||||||
</el-icon>
|
|
||||||
<span class="aLoad" @click="download(proviteData.sensitiveDevices.keyName)">
|
|
||||||
{{ proviteData?.sensitiveDevices?.name }}
|
|
||||||
</span >
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="抗扰度测试报告" v-if="detailData.userType == 6">
|
|
||||||
<el-icon class="elView" v-if="proviteData?.antiInterferenceReport?.name && VITE_FLAG">
|
|
||||||
<View @click="openFile(proviteData?.antiInterferenceReport?.name)" />
|
|
||||||
</el-icon>
|
|
||||||
<span class="aLoad" @click="download(proviteData.antiInterferenceReport.keyName)">
|
|
||||||
{{ proviteData?.antiInterferenceReport?.name }}
|
|
||||||
</span >
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="背景电能质量测试报告" v-if="detailData.userType == 6">
|
|
||||||
<el-icon class="elView" v-if="proviteData?.powerQualityReport?.name && VITE_FLAG">
|
|
||||||
<View @click="openFile(proviteData?.powerQualityReport?.name)" />
|
|
||||||
</el-icon>
|
|
||||||
<span class="aLoad" @click="download(proviteData.powerQualityReport.keyName)">
|
|
||||||
{{ proviteData?.powerQualityReport?.name }}
|
|
||||||
</span >
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item
|
|
||||||
label="其他附件"
|
|
||||||
v-if="proviteData?.additionalAttachments && proviteData?.additionalAttachments?.url"
|
|
||||||
>
|
|
||||||
<el-icon class="elView" v-if="proviteData?.additionalAttachments?.name && VITE_FLAG">
|
|
||||||
<View @click="openFile(proviteData?.additionalAttachments?.name)" />
|
|
||||||
</el-icon>
|
|
||||||
<span class="aLoad" @click="download(proviteData.additionalAttachments.keyName)" >
|
|
||||||
{{ proviteData?.additionalAttachments?.name }}
|
|
||||||
</span >
|
|
||||||
</el-descriptions-item>
|
|
||||||
|
|
||||||
<el-descriptions-item label="系统接入方案">
|
<el-descriptions-item label="是否开展抗扰度测试" v-if="detailData.userType == 6">
|
||||||
<div v-for="item in netInReportList">
|
<span>
|
||||||
<el-icon class="elView" v-if="item.name && VITE_FLAG">
|
{{ proviteData.antiInterferenceTest == 1 ? '是' : '否' }}
|
||||||
<View @click="openFile(item.name)" />
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item
|
||||||
|
label="用户协议容量(MVA)"
|
||||||
|
v-if="detailData.userType == 0 || detailData.userType == 1"
|
||||||
|
>
|
||||||
|
{{ proviteData?.agreementCapacity }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item
|
||||||
|
label="PCC供电设备容量(MVA)"
|
||||||
|
v-if="
|
||||||
|
detailData.userType == '2' ||
|
||||||
|
detailData.userType == '3' ||
|
||||||
|
detailData.userType == '4' ||
|
||||||
|
detailData.userType == '5'
|
||||||
|
"
|
||||||
|
>
|
||||||
|
{{ proviteData?.pccEquipmentCapacity }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item
|
||||||
|
label="基准短路容量(MVA)"
|
||||||
|
v-if="
|
||||||
|
detailData.userType == '2' ||
|
||||||
|
detailData.userType == '3' ||
|
||||||
|
detailData.userType == '4' ||
|
||||||
|
detailData.userType == '5'
|
||||||
|
"
|
||||||
|
>
|
||||||
|
{{ proviteData?.baseShortCircuitCapacity }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item
|
||||||
|
label="系统最小短路容量(MVA)"
|
||||||
|
v-if="
|
||||||
|
detailData.userType == '2' ||
|
||||||
|
detailData.userType == '3' ||
|
||||||
|
detailData.userType == '4' ||
|
||||||
|
detailData.userType == '5'
|
||||||
|
"
|
||||||
|
>
|
||||||
|
{{ proviteData?.minShortCircuitCapacity }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item
|
||||||
|
label="用户用电协议容量(MVA)"
|
||||||
|
v-if="
|
||||||
|
detailData.userType == '2' ||
|
||||||
|
detailData.userType == '3' ||
|
||||||
|
detailData.userType == '4' ||
|
||||||
|
detailData.userType == '5'
|
||||||
|
"
|
||||||
|
>
|
||||||
|
{{ proviteData?.userAgreementCapacity }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="PCC点" v-if="detailData.userType != 0 && detailData.userType != 1">
|
||||||
|
{{ proviteData?.pccPoint }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="评估类型" v-if="detailData.userType != 0 && detailData.userType != 1">
|
||||||
|
{{
|
||||||
|
evaluationTypeList.find(item => {
|
||||||
|
return item.id == proviteData?.evaluationType
|
||||||
|
})?.name
|
||||||
|
}}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item
|
||||||
|
label="预测评估评审单位"
|
||||||
|
v-if="detailData.userType != 0 && detailData.userType != 1"
|
||||||
|
>
|
||||||
|
{{ proviteData?.evaluationChekDept }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="行业" v-if="detailData.userType == 6">
|
||||||
|
{{
|
||||||
|
industryList.find(item => {
|
||||||
|
return item.id == proviteData.industry
|
||||||
|
})?.name
|
||||||
|
}}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="敏感终端名称" v-if="detailData.userType == 6">
|
||||||
|
{{ proviteData.deviceName }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<!-- <el-descriptions-item label="供电电源数量" v-if="detailData.userType == 6">-->
|
||||||
|
<!-- {{ proviteData.powerSupplyCount }}-->
|
||||||
|
<!-- </el-descriptions-item>-->
|
||||||
|
<el-descriptions-item label="供电电源情况" v-if="detailData.userType == 6">
|
||||||
|
{{
|
||||||
|
powerSupplyInfoOptionList.find(item => {
|
||||||
|
return item.id == proviteData.powerSupplyInfo
|
||||||
|
})?.name
|
||||||
|
}}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="供电电源" :span="2" v-if="detailData.userType == 6">
|
||||||
|
{{ proviteData.powerSupply }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="负荷级别" v-if="detailData.userType == 6">
|
||||||
|
{{
|
||||||
|
loadLevelOptionList.find(item => {
|
||||||
|
return item.id == proviteData.loadLevel
|
||||||
|
})?.name
|
||||||
|
}}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="敏感电能质量指标" v-if="detailData.userType == 6">
|
||||||
|
<span v-if="proviteData.energyQualityIndex">
|
||||||
|
{{
|
||||||
|
Array.isArray(proviteData.energyQualityIndex)
|
||||||
|
? proviteData.energyQualityIndex
|
||||||
|
.map(id => energyQualityIndexList.find(item => item.id == id)?.name)
|
||||||
|
.filter(name => name)
|
||||||
|
.join(', ')
|
||||||
|
: typeof proviteData.energyQualityIndex === 'string'
|
||||||
|
? proviteData.energyQualityIndex
|
||||||
|
.split(', ')
|
||||||
|
.map(id => energyQualityIndexList.find(item => item.id == id)?.name)
|
||||||
|
.filter(name => name)
|
||||||
|
.join(', ')
|
||||||
|
: energyQualityIndexList.find(item => item.id == proviteData.energyQualityIndex)?.name
|
||||||
|
}}
|
||||||
|
</span>
|
||||||
|
<span v-else>-</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="可研报告">
|
||||||
|
<span v-if="detailData.userType == 0 || detailData.userType == 1">
|
||||||
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
||||||
|
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)" rel="nofollow">
|
||||||
|
{{ proviteData?.feasibilityReport?.name }}
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
<span
|
||||||
|
v-if="
|
||||||
|
detailData.userType == 2 ||
|
||||||
|
detailData.userType == 3 ||
|
||||||
|
detailData.userType == 4 ||
|
||||||
|
detailData.userType == 5
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
||||||
|
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
||||||
|
{{ proviteData?.feasibilityReport?.name }}
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
<span v-if="detailData.userType == 6">
|
||||||
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
||||||
|
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
||||||
|
{{ proviteData?.feasibilityReport?.name }}
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="项目初步设计说明书">
|
||||||
|
<el-icon class="elView" v-if="proviteData?.preliminaryDesignDescription?.name">
|
||||||
|
<View @click="openFile(proviteData?.preliminaryDesignDescription?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(item.keyName)">
|
|
||||||
{{ item.name }}
|
|
||||||
</span >
|
|
||||||
</div>
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="治理验收报告">
|
|
||||||
<div v-for="item in governReportList">
|
|
||||||
<el-icon class="elView" v-if="item.name && VITE_FLAG">
|
|
||||||
<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 && VITE_FLAG">
|
|
||||||
<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 && VITE_FLAG">
|
|
||||||
<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 && VITE_FLAG">
|
|
||||||
<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'">
|
<span class="aLoad" @click="download(proviteData.preliminaryDesignDescription.keyName)">
|
||||||
<el-icon class="elView" v-if="form.acceptanceInspectionReportSingle[0]?.name && VITE_FLAG">
|
{{ proviteData?.preliminaryDesignDescription?.name }}
|
||||||
<View @click="openFile(form.acceptanceInspectionReportSingle[0]?.name)" />
|
</span>
|
||||||
</el-icon>
|
</el-descriptions-item>
|
||||||
<span class="aLoad" @click="download(form.acceptanceInspectionReportSingle[0]?.keyName)">
|
<el-descriptions-item label="预测评估报告">
|
||||||
{{ form.acceptanceInspectionReportSingle[0]?.name }}
|
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReport?.name">
|
||||||
</span >
|
<View @click="openFile(proviteData?.predictionEvaluationReport?.name)" />
|
||||||
</el-descriptions-item>
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(proviteData.predictionEvaluationReport.keyName)">
|
||||||
|
{{ proviteData?.predictionEvaluationReport?.name }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="预测评估评审意见报告">
|
||||||
|
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReviewOpinions?.name">
|
||||||
|
<View @click="openFile(proviteData?.predictionEvaluationReviewOpinions?.name)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(proviteData.predictionEvaluationReviewOpinions.keyName)">
|
||||||
|
{{ proviteData?.predictionEvaluationReviewOpinions?.name }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
|
||||||
<el-descriptions-item label="验收检验报告" v-if="props.openType == 'sourcesOfInterference'">
|
<el-descriptions-item
|
||||||
<el-icon class="elView" v-if="form.acceptanceInspectionReport[0]?.name && VITE_FLAG">
|
label="用户接入变电站主接线示意图"
|
||||||
<View @click="openFile(form.acceptanceInspectionReport[0]?.name)" />
|
v-if="detailData.userType != 0 && detailData.userType != 1"
|
||||||
</el-icon>
|
>
|
||||||
<span class="aLoad" @click="download(form.acceptanceInspectionReport[0]?.keyName )">
|
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram?.name">
|
||||||
{{ form.acceptanceInspectionReport[0]?.name }}
|
<View @click="openFile(proviteData?.substationMainWiringDiagram?.name)" />
|
||||||
</span >
|
</el-icon>
|
||||||
</el-descriptions-item>
|
<span class="aLoad" @click="download(proviteData.substationMainWiringDiagram.keyName)">
|
||||||
<el-descriptions-item label="型式实验报告" v-if="props.openType == 'sourcesOfInterference'">
|
{{ proviteData?.substationMainWiringDiagram?.name }}
|
||||||
<el-icon class="elView" v-if="form.typeExperimentReport[0]?.name && VITE_FLAG">
|
</span>
|
||||||
<View @click="openFile(form.typeExperimentReport[0]?.name)" />
|
</el-descriptions-item>
|
||||||
</el-icon>
|
<el-descriptions-item label="主要敏感终端清单" v-if="detailData.userType == 6">
|
||||||
<span class="aLoad" @click="download(form.typeExperimentReport[0]?.keyName)">
|
<el-icon class="elView" v-if="proviteData?.sensitiveDevices?.name">
|
||||||
{{ form.typeExperimentReport[0]?.name }}
|
<View @click="openFile(proviteData?.sensitiveDevices?.name)" />
|
||||||
</span >
|
</el-icon>
|
||||||
</el-descriptions-item>
|
<span class="aLoad" @click="download(proviteData.sensitiveDevices.keyName)">
|
||||||
|
{{ proviteData?.sensitiveDevices?.name }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="抗扰度测试报告" v-if="detailData.userType == 6">
|
||||||
|
<el-icon class="elView" v-if="proviteData?.antiInterferenceReport?.name">
|
||||||
|
<View @click="openFile(proviteData?.antiInterferenceReport?.name)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(proviteData.antiInterferenceReport.keyName)">
|
||||||
|
{{ proviteData?.antiInterferenceReport?.name }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="背景电能质量测试报告" v-if="detailData.userType == 6">
|
||||||
|
<el-icon class="elView" v-if="proviteData?.powerQualityReport?.name">
|
||||||
|
<View @click="openFile(proviteData?.powerQualityReport?.name)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(proviteData.powerQualityReport.keyName)">
|
||||||
|
{{ proviteData?.powerQualityReport?.name }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item
|
||||||
|
label="其他附件"
|
||||||
|
v-if="proviteData?.additionalAttachments && proviteData?.additionalAttachments?.url"
|
||||||
|
>
|
||||||
|
<el-icon class="elView" v-if="proviteData?.additionalAttachments?.name">
|
||||||
|
<View @click="openFile(proviteData?.additionalAttachments?.name)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(proviteData.additionalAttachments.keyName)">
|
||||||
|
{{ proviteData?.additionalAttachments?.name }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
|
||||||
<el-descriptions-item label="出厂检验报告" v-if="props.openType == 'sourcesOfInterference'">
|
<el-descriptions-item label="系统接入方案">
|
||||||
<el-icon class="elView" v-if="form.factoryInspectionReport[0]?.name && VITE_FLAG">
|
<div v-for="item in netInReportList">
|
||||||
<View @click="openFile(form.factoryInspectionReport[0]?.name)" />
|
<el-icon class="elView" v-if="item.name">
|
||||||
</el-icon>
|
<View @click="openFile(item.name)" />
|
||||||
<span class="aLoad" @click="download(form.factoryInspectionReport[0]?.keyName)">
|
</el-icon>
|
||||||
{{ form.factoryInspectionReport[0]?.name }}
|
<span class="aLoad" @click="download(item.keyName)">
|
||||||
</span >
|
{{ item.name }}
|
||||||
</el-descriptions-item>
|
</span>
|
||||||
<el-descriptions-item label="性能检测报告" v-if="props.openType == 'sourcesOfInterference'">
|
</div>
|
||||||
<el-icon class="elView" v-if="form.performanceTestReport[0]?.name && VITE_FLAG">
|
</el-descriptions-item>
|
||||||
<View @click="openFile(form.performanceTestReport[0]?.name)" />
|
<el-descriptions-item label="治理验收报告">
|
||||||
</el-icon>
|
<div v-for="item in governReportList">
|
||||||
<span class="aLoad" @click="download(form.performanceTestReport[0]?.keyName)">
|
<el-icon class="elView" v-if="item.name">
|
||||||
{{ form.performanceTestReport[0]?.name }}
|
<View @click="openFile(item.name)" />
|
||||||
</span >
|
</el-icon>
|
||||||
</el-descriptions-item>
|
<span class="aLoad" @click="download(item.keyName)">
|
||||||
<el-descriptions-item label="主接线图" v-if="props.openType == 'sourcesOfInterference'">
|
{{ item.name }}
|
||||||
<el-icon class="elView" v-if="form.mainWiringDiagram[0]?.name && VITE_FLAG">
|
</span>
|
||||||
<View @click="openFile(form.mainWiringDiagram[0]?.name)" />
|
</div>
|
||||||
</el-icon>
|
</el-descriptions-item>
|
||||||
<span class="aLoad" @click="download(form.mainWiringDiagram[0]?.keyName)">
|
<el-descriptions-item label="治理方案仿真校验评估报告">
|
||||||
{{ form.mainWiringDiagram[0]?.name }}
|
<div v-for="item in simulationReportList">
|
||||||
</span >
|
<el-icon class="elView" v-if="item.name">
|
||||||
</el-descriptions-item>
|
<View @click="openFile(item.name)" />
|
||||||
<el-descriptions-item label="试运行报告" v-if="props.openType == 'sourcesOfInterference'">
|
</el-icon>
|
||||||
<el-icon class="elView" v-if="form.runTheReport[0]?.name && VITE_FLAG" >
|
<span class="aLoad" @click="download(item.keyName)">
|
||||||
<View @click="openFile(form.runTheReport[0]?.name)" />
|
{{ item.name }}
|
||||||
</el-icon>
|
</span>
|
||||||
<span class="aLoad" @click="download(form.runTheReport[0]?.keyName)">
|
</div>
|
||||||
{{ form.runTheReport[0]?.name }}
|
</el-descriptions-item>
|
||||||
</span >
|
|
||||||
</el-descriptions-item>
|
<el-descriptions-item label="信息安全检测报告" v-if="props.openType == 'sourcesOfInterference'">
|
||||||
</el-descriptions>
|
<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>
|
||||||
|
</el-descriptions-item>
|
||||||
|
|
||||||
|
<el-descriptions-item label="验收检验报告单" v-if="props.openType == 'sourcesOfInterference'">
|
||||||
|
<el-icon class="elView" v-if="form.acceptanceInspectionReportSingle[0]?.name">
|
||||||
|
<View @click="openFile(form.acceptanceInspectionReportSingle[0]?.name)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(form.acceptanceInspectionReportSingle[0]?.keyName)">
|
||||||
|
{{ form.acceptanceInspectionReportSingle[0]?.name }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
|
||||||
|
<el-descriptions-item label="验收检验报告" v-if="props.openType == 'sourcesOfInterference'">
|
||||||
|
<el-icon class="elView" v-if="form.acceptanceInspectionReport[0]?.name">
|
||||||
|
<View @click="openFile(form.acceptanceInspectionReport[0]?.name)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(form.acceptanceInspectionReport[0]?.keyName)">
|
||||||
|
{{ form.acceptanceInspectionReport[0]?.name }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="型式实验报告" v-if="props.openType == 'sourcesOfInterference'">
|
||||||
|
<el-icon class="elView" v-if="form.typeExperimentReport[0]?.name">
|
||||||
|
<View @click="openFile(form.typeExperimentReport[0]?.name)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(form.typeExperimentReport[0]?.keyName)">
|
||||||
|
{{ form.typeExperimentReport[0]?.name }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
|
||||||
|
<el-descriptions-item label="出厂检验报告" v-if="props.openType == 'sourcesOfInterference'">
|
||||||
|
<el-icon class="elView" v-if="form.factoryInspectionReport[0]?.name">
|
||||||
|
<View @click="openFile(form.factoryInspectionReport[0]?.name)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(form.factoryInspectionReport[0]?.keyName)">
|
||||||
|
{{ form.factoryInspectionReport[0]?.name }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="性能检测报告" v-if="props.openType == 'sourcesOfInterference'">
|
||||||
|
<el-icon class="elView" v-if="form.performanceTestReport[0]?.name">
|
||||||
|
<View @click="openFile(form.performanceTestReport[0]?.name)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(form.performanceTestReport[0]?.keyName)">
|
||||||
|
{{ form.performanceTestReport[0]?.name }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="主接线图" v-if="props.openType == 'sourcesOfInterference'">
|
||||||
|
<el-icon class="elView" v-if="form.mainWiringDiagram[0]?.name">
|
||||||
|
<View @click="openFile(form.mainWiringDiagram[0]?.name)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(form.mainWiringDiagram[0]?.keyName)">
|
||||||
|
{{ form.mainWiringDiagram[0]?.name }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="试运行报告" v-if="props.openType == 'sourcesOfInterference'">
|
||||||
|
<el-icon class="elView" v-if="form.runTheReport[0]?.name">
|
||||||
|
<View @click="openFile(form.runTheReport[0]?.name)" />
|
||||||
|
</el-icon>
|
||||||
|
<span class="aLoad" @click="download(form.runTheReport[0]?.keyName)">
|
||||||
|
{{ form.runTheReport[0]?.name }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
</el-descriptions>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
@@ -460,9 +486,9 @@ 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 VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
|
||||||
const { query } = useRoute() // 查询参数
|
const { query } = useRoute() // 查询参数
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@@ -485,6 +511,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([
|
||||||
{
|
{
|
||||||
@@ -581,7 +608,6 @@ const getInfo = async () => {
|
|||||||
detailLoading.value = false
|
detailLoading.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(form.value)
|
|
||||||
if (props.openType == 'sourcesOfInterference') {
|
if (props.openType == 'sourcesOfInterference') {
|
||||||
queryFiles()
|
queryFiles()
|
||||||
}
|
}
|
||||||
@@ -656,7 +682,6 @@ const queryFiles = () => {
|
|||||||
}
|
}
|
||||||
//判断userType选择取用的对象
|
//判断userType选择取用的对象
|
||||||
const getProviteData = async () => {
|
const getProviteData = async () => {
|
||||||
console.log('energyQualityIndexList', energyQualityIndexList)
|
|
||||||
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
|
||||||
//查询非线性终端类型
|
//查询非线性终端类型
|
||||||
@@ -679,7 +704,7 @@ const getProviteData = async () => {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
proviteData.value = detailData.value.userReportSensitivePO
|
proviteData.value = detailData.value.userReportSensitivePO
|
||||||
console.log(proviteData.value.energyQualityIndex)
|
|
||||||
console.log(
|
console.log(
|
||||||
'proviteData.value.nonlinearLoadType',
|
'proviteData.value.nonlinearLoadType',
|
||||||
energyQualityIndexList.find(item => {
|
energyQualityIndexList.find(item => {
|
||||||
@@ -757,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) => {
|
||||||
@@ -765,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 => {
|
||||||
@@ -782,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) {
|
||||||
@@ -807,7 +840,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
) {
|
) {
|
||||||
proviteData.value.predictionEvaluationReviewOpinions = {
|
proviteData.value.predictionEvaluationReviewOpinions = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
keyName: res.data.name,
|
keyName: val,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -864,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
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<div v-if="detailLoading" class="loading">
|
||||||
|
<el-spin description="加载中..." />
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
<el-descriptions :column="2" border>
|
<el-descriptions :column="2" border>
|
||||||
<el-descriptions-item label="计划名称">
|
<el-descriptions-item label="计划名称">
|
||||||
{{ detailData.workPlanName }}
|
{{ detailData.workPlanName }}
|
||||||
@@ -104,7 +108,7 @@
|
|||||||
{{ detailData.otherRemark }}
|
{{ detailData.otherRemark }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="盖章报告" v-if="detailData.factoryInspectionReport">
|
<el-descriptions-item label="盖章报告" v-if="detailData.factoryInspectionReport">
|
||||||
<el-icon class="elView" v-if="detailData?.factoryInspectionReport.name && VITE_FLAG">
|
<el-icon class="elView" v-if="detailData?.factoryInspectionReport.name ">
|
||||||
<View @click="openFile(detailData?.factoryInspectionReport.name)" />
|
<View @click="openFile(detailData?.factoryInspectionReport.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(detailData?.factoryInspectionReport.keyName)">
|
<span class="aLoad" @click="download(detailData?.factoryInspectionReport.keyName)">
|
||||||
@@ -112,7 +116,7 @@
|
|||||||
</span >
|
</span >
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="佐证材料" v-if="detailData?.informationSecurityTestReport">
|
<el-descriptions-item label="佐证材料" v-if="detailData?.informationSecurityTestReport">
|
||||||
<el-icon class="elView" v-if="detailData?.informationSecurityTestReport.name && VITE_FLAG">
|
<el-icon class="elView" v-if="detailData?.informationSecurityTestReport.name ">
|
||||||
<View @click="openFile(detailData?.informationSecurityTestReport.name)" />
|
<View @click="openFile(detailData?.informationSecurityTestReport.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(detailData?.informationSecurityTestReport.keyName)">
|
<span class="aLoad" @click="download(detailData?.informationSecurityTestReport.keyName)">
|
||||||
@@ -120,30 +124,31 @@
|
|||||||
</span >
|
</span >
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="计划变更材料" v-if="detailData?.otherAttachments">
|
<el-descriptions-item label="计划变更材料" v-if="detailData?.otherAttachments">
|
||||||
<el-icon class="elView" v-if="detailData?.otherAttachments.name && VITE_FLAG">
|
<el-icon class="elView" v-if="detailData?.otherAttachments.name ">
|
||||||
<View @click="openFile(detailData?.otherAttachments.name)" />
|
<View @click="openFile(detailData?.otherAttachments.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(detailData?.otherAttachments.keyName)">{{ detailData?.otherAttachments.name }}</span >
|
<span class="aLoad" @click="download(detailData?.otherAttachments.keyName)">{{ detailData?.otherAttachments.name }}</span >
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="告预警单材料" v-if="detailData?.performanceTestReport">
|
<el-descriptions-item label="告预警单材料" v-if="detailData?.performanceTestReport">
|
||||||
<el-icon class="elView" v-if="detailData?.performanceTestReport.name && VITE_FLAG">
|
<el-icon class="elView" v-if="detailData?.performanceTestReport.name ">
|
||||||
<View @click="openFile(detailData?.performanceTestReport.name)" />
|
<View @click="openFile(detailData?.performanceTestReport.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(detailData?.performanceTestReport.keyName)">{{ detailData?.performanceTestReport.name }}</span >
|
<span class="aLoad" @click="download(detailData?.performanceTestReport.keyName)">{{ detailData?.performanceTestReport.name }}</span >
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="告预警单反馈材料" v-if="detailData?.typeExperimentReport">
|
<el-descriptions-item label="告预警单反馈材料" v-if="detailData?.typeExperimentReport">
|
||||||
<el-icon class="elView" v-if="detailData?.typeExperimentReport.name && VITE_FLAG">
|
<el-icon class="elView" v-if="detailData?.typeExperimentReport.name ">
|
||||||
<View @click="openFile(detailData?.typeExperimentReport.name)" />
|
<View @click="openFile(detailData?.typeExperimentReport.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(detailData?.typeExperimentReport.keyName)">{{ detailData?.typeExperimentReport.name }}</span >
|
<span class="aLoad" @click="download(detailData?.typeExperimentReport.keyName)">{{ detailData?.typeExperimentReport.name }}</span >
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="评估报告" v-if="detailData?.performanceTestReport">
|
<el-descriptions-item label="评估报告" v-if="detailData?.performanceTestReport">
|
||||||
<el-icon class="elView" v-if="detailData?.performanceTestReport.name && VITE_FLAG">
|
<el-icon class="elView" v-if="detailData?.performanceTestReport.name ">
|
||||||
<View @click="openFile(detailData?.performanceTestReport.name)" />
|
<View @click="openFile(detailData?.performanceTestReport.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(detailData?.performanceTestReport.keyName)">{{ detailData?.performanceTestReport.name }}</span >
|
<span class="aLoad" @click="download(detailData?.performanceTestReport.keyName)">{{ detailData?.performanceTestReport.name }}</span >
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { onMounted, ref, reactive } from 'vue'
|
import { onMounted, ref, reactive } from 'vue'
|
||||||
@@ -161,8 +166,7 @@ const { query } = useRoute() // 查询参数
|
|||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
id: propTypes.string.def(undefined)
|
id: propTypes.string.def(undefined)
|
||||||
})
|
})
|
||||||
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
|
||||||
console.log(propTypes.string.def(undefined), '999999999999传参')
|
|
||||||
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 编号
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<!--工作流view的路径:/pqs/supervise/retire/detail-->
|
<!--工作流view的路径:/pqs/supervise/retire/detail-->
|
||||||
<div class='default-main'>
|
<div class='default-main'>
|
||||||
|
<div v-if="detailLoading" class="loading">
|
||||||
|
<el-spin description="加载中..." />
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
<!-- <h1>详细信息回显</h1>-->
|
<!-- <h1>详细信息回显</h1>-->
|
||||||
<el-descriptions :column='2' border>
|
<el-descriptions :column='2' border>
|
||||||
<el-descriptions-item label='供电公司'>
|
<el-descriptions-item label='供电公司'>
|
||||||
@@ -41,6 +45,7 @@
|
|||||||
{{ detailData.propertyNo }}
|
{{ detailData.propertyNo }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang='ts'>
|
<script setup lang='ts'>
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ import { useDictData } from '@/stores/dictData'
|
|||||||
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
||||||
import { deleteWarningLeaflet } from '@/api/supervision-boot/delete/index'
|
import { deleteWarningLeaflet } from '@/api/supervision-boot/delete/index'
|
||||||
import detail from '@/views/pqs/supervise/harmonicSurvey/test/detail.vue'
|
import detail from '@/views/pqs/supervise/harmonicSurvey/test/detail.vue'
|
||||||
|
import {download} from '@/utils/fileDownLoad'
|
||||||
const dictData = useDictData()
|
const dictData = useDictData()
|
||||||
|
|
||||||
const statusSelect = [
|
const statusSelect = [
|
||||||
@@ -233,18 +234,18 @@ const tableStore = new TableStore({
|
|||||||
icon: 'el-icon-EditPen',
|
icon: 'el-icon-EditPen',
|
||||||
render: 'basicButton',
|
render: 'basicButton',
|
||||||
disabled: row => {
|
disabled: row => {
|
||||||
if (VITE_FLAG) {
|
// if (VITE_FLAG) {
|
||||||
return !(row.problemType == 2 || row.problemType == 4)
|
return !(row.problemType == 2 || row.problemType == 4)
|
||||||
}
|
// }
|
||||||
return true;
|
// return true;
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
click: row => {
|
click: row => {
|
||||||
|
|
||||||
if (row.problemType == 2) {
|
if (row.problemType == 2) {
|
||||||
const match = row.filePath.match(/excelreport(\/[^?#]*)/)
|
// const match = row.filePath.match(/excelreport(\/[^?#]*)/)
|
||||||
|
|
||||||
window.open(window.location.origin + '/#/previewFile?' + match[1])
|
// window.open(window.location.origin + '/#/previewFile?' + match[1])
|
||||||
|
window.open(window.location.origin + '/#/previewFile?/' + row.absFilePath)
|
||||||
} else {
|
} else {
|
||||||
if (row.problemPath == null) {
|
if (row.problemPath == null) {
|
||||||
ElMessage({
|
ElMessage({
|
||||||
@@ -252,7 +253,8 @@ const tableStore = new TableStore({
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
window.open(window.location.origin + '/#/previewFile?/' + row.problemPath)
|
//window.open(window.location.origin + '/#/previewFile?/' + row.problemPath)
|
||||||
|
window.open(window.location.origin + '/#/previewFile?/' + row.absFilePath)
|
||||||
// getFileNameAndFilePath({ filePath: '/' + row.problemPath }).then(res => {
|
// getFileNameAndFilePath({ filePath: '/' + row.problemPath }).then(res => {
|
||||||
// // window.open(res.data.url)
|
// // window.open(res.data.url)
|
||||||
// })
|
// })
|
||||||
@@ -271,7 +273,9 @@ const tableStore = new TableStore({
|
|||||||
},
|
},
|
||||||
click: row => {
|
click: row => {
|
||||||
if (row.problemType == 2) {
|
if (row.problemType == 2) {
|
||||||
window.open(row.filePath)
|
|
||||||
|
//window.open(row.filePath)
|
||||||
|
download('/' + row.absFilePath)
|
||||||
} else {
|
} else {
|
||||||
if (row.problemPath == null) {
|
if (row.problemPath == null) {
|
||||||
ElMessage({
|
ElMessage({
|
||||||
@@ -279,9 +283,11 @@ const tableStore = new TableStore({
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
getFileNameAndFilePath({ filePath: '/' + row.problemPath }).then(res => {
|
// getFileNameAndFilePath({ filePath: '/' + row.problemPath }).then(res => {
|
||||||
window.open(res.data.url)
|
|
||||||
})
|
// window.open(res.data.url)
|
||||||
|
// })
|
||||||
|
download('/' + row.absFilePath)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,6 +32,10 @@ import { cancelFeedback, getById } from '@/api/supervision-boot/leaflet'
|
|||||||
import { useAdminInfo } from '@/stores/adminInfo'
|
import { useAdminInfo } from '@/stores/adminInfo'
|
||||||
import { useDictData } from '@/stores/dictData'
|
import { useDictData } from '@/stores/dictData'
|
||||||
import { deleteWarningLeaflet } from '@/api/supervision-boot/delete/index'
|
import { deleteWarningLeaflet } from '@/api/supervision-boot/delete/index'
|
||||||
|
import {download} from '@/utils/fileDownLoad'
|
||||||
|
|
||||||
|
import { getFileNameAndFilePath, downloadFile } from '@/api/system-boot/file'
|
||||||
|
|
||||||
const dictData = useDictData()
|
const dictData = useDictData()
|
||||||
//获取登陆用户姓名和部门
|
//获取登陆用户姓名和部门
|
||||||
const adminInfo = useAdminInfo()
|
const adminInfo = useAdminInfo()
|
||||||
@@ -147,16 +151,17 @@ const tableStore = new TableStore({
|
|||||||
icon: 'el-icon-EditPen',
|
icon: 'el-icon-EditPen',
|
||||||
render: 'basicButton',
|
render: 'basicButton',
|
||||||
disabled: row => {
|
disabled: row => {
|
||||||
if (VITE_FLAG) {
|
// if (VITE_FLAG) {
|
||||||
return row.problemType != 2;
|
return row.problemType != 2;
|
||||||
}
|
// }
|
||||||
return true;
|
// return true;
|
||||||
},
|
},
|
||||||
|
|
||||||
click: row => {
|
click: row => {
|
||||||
const match = row.filePath.match(/excelreport(\/[^?#]*)/)
|
// const match = row.filePath.match(/excelreport(\/[^?#]*)/)
|
||||||
|
|
||||||
window.open(window.location.origin + '/#/previewFile?' + match[1])
|
// window.open(window.location.origin + '/#/previewFile?' + match[1])
|
||||||
|
window.open(window.location.origin + '/#/previewFile?/' + row.absFilePath)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -169,7 +174,16 @@ const tableStore = new TableStore({
|
|||||||
return row.problemType != 2
|
return row.problemType != 2
|
||||||
},
|
},
|
||||||
click: row => {
|
click: row => {
|
||||||
window.open(row.filePath)
|
|
||||||
|
//window.open(row.filePath)
|
||||||
|
// const match = row.filePath.match(/excelreport(\/[^?#]*)/)
|
||||||
|
// const decodedPath = decodeURI(match[1]) // 解码URL中的中文字符
|
||||||
|
download('/' + row.absFilePath)
|
||||||
|
|
||||||
|
//download('/supervision/微服务系统测试页面功能-20251224合并版本.docx')
|
||||||
|
|
||||||
|
//download('/onlineReport/电能[预]2025年18号-张家口地市 电能质量技术监督预警单.docx')
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
@@ -315,6 +329,11 @@ const tableStore = new TableStore({
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
tableStore.table.params.status = ''
|
tableStore.table.params.status = ''
|
||||||
provide('tableStore', tableStore)
|
provide('tableStore', tableStore)
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<!--工作流view的路径:/pqs/supervise/technology/detail-->
|
<!--工作流view的路径:/pqs/supervise/technology/detail-->
|
||||||
<div class="default-main">
|
<div class="default-main">
|
||||||
|
<div v-if="detailLoading" class="loading">
|
||||||
|
<el-spin description="加载中..." />
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
<!-- <h1>详细信息回显</h1>-->
|
<!-- <h1>详细信息回显</h1>-->
|
||||||
<el-descriptions :column="2" border>
|
<el-descriptions :column="2" border>
|
||||||
<el-descriptions-item :label="detailData.leafletType == 1 ? '预警单名称' : '告警单名称'">
|
<el-descriptions-item :label="detailData.leafletType == 1 ? '预警单名称' : '告警单名称'">
|
||||||
@@ -14,7 +18,7 @@
|
|||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<template v-if="detailData.problemType == 4">
|
<template v-if="detailData.problemType == 4">
|
||||||
<el-descriptions-item :span="2" label="附件">
|
<el-descriptions-item :span="2" label="附件">
|
||||||
<el-icon class="elView" v-if="detailData?.problemName && VITE_FLAG">
|
<el-icon class="elView" v-if="detailData?.problemName ">
|
||||||
<View @click="openFile(detailData?.problemName)" />
|
<View @click="openFile(detailData?.problemName)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.problemName }}</span >
|
<span class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.problemName }}</span >
|
||||||
@@ -26,13 +30,14 @@
|
|||||||
<el-descriptions-item :span="2" label="采取措施">
|
<el-descriptions-item :span="2" label="采取措施">
|
||||||
{{ detailData.takeStep }}
|
{{ detailData.takeStep }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item :span="2" label="处理成效报告">
|
<el-descriptions-item :span="2" label="反馈报告">
|
||||||
<el-icon class="elView" v-if="detailData?.reportName && VITE_FLAG">
|
<el-icon class="elView" v-if="detailData?.reportName ">
|
||||||
<View @click="openFile(detailData?.reportName)" />
|
<View @click="openFile(detailData?.reportName)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.reportName }}</span >
|
<span class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.reportName }}</span >
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
@@ -43,9 +48,10 @@ import { getById } from '@/api/supervision-boot/leaflet'
|
|||||||
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
||||||
import {download} from '@/utils/fileDownLoad'
|
import {download} from '@/utils/fileDownLoad'
|
||||||
import { Link, View } from '@element-plus/icons-vue'
|
import { Link, View } from '@element-plus/icons-vue'
|
||||||
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
|
||||||
defineOptions({ name: 'technology/detail' })
|
defineOptions({ name: 'technology/detail' })
|
||||||
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 { query } = useRoute() // 查询参数
|
const { query } = useRoute() // 查询参数
|
||||||
@@ -87,8 +93,10 @@ const getInfo = async () => {
|
|||||||
|
|
||||||
const getFileData = async () => {
|
const getFileData = async () => {
|
||||||
//如果有问题附件
|
//如果有问题附件
|
||||||
|
//console.log('000',detailData.value)
|
||||||
if (detailData.value.problemPath) {
|
if (detailData.value.problemPath) {
|
||||||
await getFileNameAndFilePath({ filePath: detailData.value.problemPath }).then(res => {
|
await getFileNameAndFilePath({ filePath: detailData.value.problemPath }).then(res => {
|
||||||
|
console.log(res.data)
|
||||||
detailData.value.keyName = res.data.name
|
detailData.value.keyName = res.data.name
|
||||||
detailData.value.problemPath = res.data.url
|
detailData.value.problemPath = res.data.url
|
||||||
detailData.value.problemName = res.data.fileName
|
detailData.value.problemName = res.data.fileName
|
||||||
|
|||||||
@@ -11,8 +11,9 @@
|
|||||||
:autosize="{ minRows: 2, maxRows: 6 }" readonly />
|
:autosize="{ minRows: 2, maxRows: 6 }" readonly />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="技术监督报告:" v-if="showFile1">
|
<!-- <el-form-item label="技术监督报告:" v-if="showFile1"> -->
|
||||||
<el-icon class="elView" v-if="supervisionReportDetail?.supervisionReportName && VITE_FLAG">
|
<el-form-item label="技术监督报告:" v-if="false">
|
||||||
|
<el-icon class="elView" v-if="supervisionReportDetail?.supervisionReportName ">
|
||||||
<View @click="openFile(supervisionReportDetail?.supervisionReportName)" />
|
<View @click="openFile(supervisionReportDetail?.supervisionReportName)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(supervisionReportDetail.keyName)" target="_blank">
|
<span class="aLoad" @click="download(supervisionReportDetail.keyName)" target="_blank">
|
||||||
@@ -21,10 +22,10 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="问题附件:" v-if="showFile">
|
<el-form-item label="问题附件:" v-if="showFile">
|
||||||
<el-icon class="elView" v-if="problemDetail?.problemName && VITE_FLAG">
|
<el-icon class="elView" v-if="problemDetail?.problemName ">
|
||||||
<View @click="openFile(problemDetail?.problemName)" />
|
<View @click="openFile(problemDetail?.problemName)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(supervisionReportDetail.keyName)" target="_blank">{{ problemDetail.problemName }}</span>
|
<span class="aLoad" @click="download(supervisionReportDetail.keyName)" target="_blank">{{ problemDetail.problemName }}</span >
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="采取的措施:" prop="takeStep">
|
<el-form-item label="采取的措施:" prop="takeStep">
|
||||||
@@ -63,7 +64,7 @@ import { Link, View } from '@element-plus/icons-vue'
|
|||||||
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 VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
|
||||||
//.doc,.docx,.xlsx,.xls,.pdf
|
//.doc,.docx,.xlsx,.xls,.pdf
|
||||||
const acceptType = ref('')
|
const acceptType = ref('')
|
||||||
//下拉数据源
|
//下拉数据源
|
||||||
@@ -104,7 +105,7 @@ const reportFilePath: any = ref('')
|
|||||||
//form表单校验规则
|
//form表单校验规则
|
||||||
const rules = {
|
const rules = {
|
||||||
takeStep: [{ required: true, message: '请输入采取的措施', trigger: 'blur' }],
|
takeStep: [{ required: true, message: '请输入采取的措施', trigger: 'blur' }],
|
||||||
reportPath: [{ required: true, message: '请上传处理成效报告', trigger: 'blur' }]
|
reportPath: [{ required: true, message: '请上传反馈报告', trigger: 'blur' }]
|
||||||
}
|
}
|
||||||
const resetForm = () => {
|
const resetForm = () => {
|
||||||
if (formRef.value) {
|
if (formRef.value) {
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -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)',
|
||||||
@@ -91,7 +155,7 @@ const tableStore = new TableStore({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'devCapacity',
|
field: 'devCapacity',
|
||||||
title: '供电终端容量(MVA )',
|
title: '供电设备容量(MVA )',
|
||||||
minWidth: 160
|
minWidth: 160
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -165,9 +229,11 @@ 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: '检修' },
|
||||||
{ id: 2, name: '停运' },
|
{ id: 2, name: '停运' },
|
||||||
{ id: 3, name: '调试' },
|
{ id: 3, 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>
|
||||||
|
|||||||
@@ -89,105 +89,140 @@ const handleExceed: UploadProps['onExceed'] = files => {
|
|||||||
/**
|
/**
|
||||||
* 提交用户表单数据
|
* 提交用户表单数据
|
||||||
*/
|
*/
|
||||||
|
// const submit = async () => {
|
||||||
|
// if (form.file) {
|
||||||
|
// formRef.value.validate(async (valid: any) => {
|
||||||
|
// if (valid) {
|
||||||
|
// let data = new FormData()
|
||||||
|
// data.append('file', form.file)
|
||||||
|
// console.log(title.value)
|
||||||
|
// if (title.value === '导入干扰源用户') {
|
||||||
|
// await importSensitiveReportData(data)
|
||||||
|
// .then(res => handleImportResponse(title.value, res))
|
||||||
|
// .finally(() => {
|
||||||
|
// tableStore.index()
|
||||||
|
// eventDataUploadVisible.value = false
|
||||||
|
// })
|
||||||
|
// } else {
|
||||||
|
// await importSensitiveUserData(data)
|
||||||
|
// .then(res => handleImportResponse(title.value, res))
|
||||||
|
// .finally(() => {
|
||||||
|
// tableStore.index()
|
||||||
|
// eventDataUploadVisible.value = false
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
// // if (title.value == '导入干扰源用户') {
|
||||||
|
// // await importSensitiveReportData(data)
|
||||||
|
// // .then((res: any) => {
|
||||||
|
// // if (res.type === 'application/json') {
|
||||||
|
// // // 说明是普通对象数据,读取信息
|
||||||
|
// // const fileReader = new FileReader()
|
||||||
|
// // fileReader.onloadend = () => {
|
||||||
|
// // try {
|
||||||
|
// // const jsonData = JSON.parse(fileReader.result)
|
||||||
|
// // // 后台信息
|
||||||
|
// // if (jsonData.code === 'A0000') {
|
||||||
|
// // ElMessage.success('导入成功')
|
||||||
|
// // } else {
|
||||||
|
// // ElMessage.error('导入失败,请查看下载附件!')
|
||||||
|
// // }
|
||||||
|
// // } catch (err) {
|
||||||
|
// // console.log(err)
|
||||||
|
// // }
|
||||||
|
// // }
|
||||||
|
// // fileReader.readAsText(res)
|
||||||
|
// // } else {
|
||||||
|
// // ElMessage.error('导入失败,请查看下载附件!')
|
||||||
|
// // let blob = new Blob([res], {
|
||||||
|
// // type: 'application/vnd.ms-excel'
|
||||||
|
// // })
|
||||||
|
// // const url = window.URL.createObjectURL(blob)
|
||||||
|
// // const link = document.createElement('a')
|
||||||
|
// // link.href = url
|
||||||
|
// // link.download = '干扰源用户失败列表'
|
||||||
|
// // document.body.appendChild(link)
|
||||||
|
// // link.click()
|
||||||
|
// // link.remove()
|
||||||
|
// // }
|
||||||
|
// // })
|
||||||
|
// // .finally(() => {
|
||||||
|
// // tableStore.index()
|
||||||
|
// // eventDataUploadVisible.value = false
|
||||||
|
// // })
|
||||||
|
// // } else {
|
||||||
|
// // await importSensitiveUserData(data)
|
||||||
|
// // .then((res: any) => {
|
||||||
|
// // if (res.type === 'application/json') {
|
||||||
|
// // // 说明是普通对象数据,读取信息
|
||||||
|
// // const fileReader = new FileReader()
|
||||||
|
// // fileReader.onloadend = () => {
|
||||||
|
// // try {
|
||||||
|
// // const jsonData = JSON.parse(fileReader.result)
|
||||||
|
// // // 后台信息
|
||||||
|
// // if (jsonData.code === 'A0000') {
|
||||||
|
// // ElMessage.success('导入成功')
|
||||||
|
// // } else {
|
||||||
|
// // ElMessage.error('导入失败,请查看下载附件!')
|
||||||
|
// // }
|
||||||
|
// // } catch (err) {
|
||||||
|
// // console.log(err)
|
||||||
|
// // }
|
||||||
|
// // }
|
||||||
|
// // fileReader.readAsText(res)
|
||||||
|
// // } else {
|
||||||
|
// // ElMessage.error('导入失败,请查看下载附件!')
|
||||||
|
// // let blob = new Blob([res], {
|
||||||
|
// // type: 'application/vnd.ms-excel'
|
||||||
|
// // })
|
||||||
|
// // const url = window.URL.createObjectURL(blob)
|
||||||
|
// // const link = document.createElement('a')
|
||||||
|
// // link.href = url
|
||||||
|
// // link.download = '敏感及重要用户失败列表'
|
||||||
|
// // document.body.appendChild(link)
|
||||||
|
// // link.click()
|
||||||
|
// // link.remove()
|
||||||
|
// // }
|
||||||
|
// // })
|
||||||
|
// // .finally(() => {
|
||||||
|
// // tableStore.index()
|
||||||
|
// // eventDataUploadVisible.value = false
|
||||||
|
// // })
|
||||||
|
// // }
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// } else {
|
||||||
|
// ElMessage.error('请选择数据文件')
|
||||||
|
// }
|
||||||
|
// }
|
||||||
const submit = async () => {
|
const submit = async () => {
|
||||||
if (form.file) {
|
if (form.file) {
|
||||||
formRef.value.validate(async (valid: any) => {
|
formRef.value.validate(async (valid: any) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
let data = new FormData()
|
let data = new FormData()
|
||||||
data.append('file', form.file)
|
data.append('file', form.file)
|
||||||
if (title.value === '导入干扰源用户') {
|
|
||||||
await importSensitiveReportData(data)
|
try {
|
||||||
.then(res => handleImportResponse(title.value, res))
|
if (title.value === '导入干扰源用户') {
|
||||||
.finally(() => {
|
await importSensitiveReportData(data)
|
||||||
tableStore.index()
|
.then(res => handleImportResponse(title.value, res))
|
||||||
eventDataUploadVisible.value = false
|
.catch(() => {
|
||||||
})
|
// 处理请求失败的情况
|
||||||
} else {
|
ElMessage.error('导入失败,请查看下载附件!')
|
||||||
await importSensitiveUserData(data)
|
})
|
||||||
.then(res => handleImportResponse(title.value, res))
|
} else {
|
||||||
.finally(() => {
|
await importSensitiveUserData(data)
|
||||||
tableStore.index()
|
.then(res => handleImportResponse(title.value, res))
|
||||||
eventDataUploadVisible.value = false
|
.catch(() => {
|
||||||
})
|
// 处理请求失败的情况
|
||||||
|
ElMessage.error('导入失败,请查看下载附件!')
|
||||||
|
})
|
||||||
|
}
|
||||||
|
} finally {
|
||||||
|
// 无论成功失败都重新启用按钮并关闭窗口
|
||||||
|
tableStore.index()
|
||||||
|
eventDataUploadVisible.value = false
|
||||||
}
|
}
|
||||||
// if (title.value == '导入干扰源用户') {
|
}
|
||||||
// await importSensitiveReportData(data)
|
|
||||||
// .then((res: any) => {
|
|
||||||
// if (res.type === 'application/json') {
|
|
||||||
// // 说明是普通对象数据,读取信息
|
|
||||||
// const fileReader = new FileReader()
|
|
||||||
// fileReader.onloadend = () => {
|
|
||||||
// try {
|
|
||||||
// const jsonData = JSON.parse(fileReader.result)
|
|
||||||
// // 后台信息
|
|
||||||
// if (jsonData.code === 'A0000') {
|
|
||||||
// ElMessage.success('导入成功')
|
|
||||||
// } else {
|
|
||||||
// ElMessage.error('导入失败,请查看下载附件!')
|
|
||||||
// }
|
|
||||||
// } catch (err) {
|
|
||||||
// console.log(err)
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// fileReader.readAsText(res)
|
|
||||||
// } else {
|
|
||||||
// ElMessage.error('导入失败,请查看下载附件!')
|
|
||||||
// let blob = new Blob([res], {
|
|
||||||
// type: 'application/vnd.ms-excel'
|
|
||||||
// })
|
|
||||||
// const url = window.URL.createObjectURL(blob)
|
|
||||||
// const link = document.createElement('a')
|
|
||||||
// link.href = url
|
|
||||||
// link.download = '干扰源用户失败列表'
|
|
||||||
// document.body.appendChild(link)
|
|
||||||
// link.click()
|
|
||||||
// link.remove()
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// .finally(() => {
|
|
||||||
// tableStore.index()
|
|
||||||
// eventDataUploadVisible.value = false
|
|
||||||
// })
|
|
||||||
// } else {
|
|
||||||
// await importSensitiveUserData(data)
|
|
||||||
// .then((res: any) => {
|
|
||||||
// if (res.type === 'application/json') {
|
|
||||||
// // 说明是普通对象数据,读取信息
|
|
||||||
// const fileReader = new FileReader()
|
|
||||||
// fileReader.onloadend = () => {
|
|
||||||
// try {
|
|
||||||
// const jsonData = JSON.parse(fileReader.result)
|
|
||||||
// // 后台信息
|
|
||||||
// if (jsonData.code === 'A0000') {
|
|
||||||
// ElMessage.success('导入成功')
|
|
||||||
// } else {
|
|
||||||
// ElMessage.error('导入失败,请查看下载附件!')
|
|
||||||
// }
|
|
||||||
// } catch (err) {
|
|
||||||
// console.log(err)
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// fileReader.readAsText(res)
|
|
||||||
// } else {
|
|
||||||
// ElMessage.error('导入失败,请查看下载附件!')
|
|
||||||
// let blob = new Blob([res], {
|
|
||||||
// type: 'application/vnd.ms-excel'
|
|
||||||
// })
|
|
||||||
// const url = window.URL.createObjectURL(blob)
|
|
||||||
// const link = document.createElement('a')
|
|
||||||
// link.href = url
|
|
||||||
// link.download = '敏感及重要用户失败列表'
|
|
||||||
// document.body.appendChild(link)
|
|
||||||
// link.click()
|
|
||||||
// link.remove()
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// .finally(() => {
|
|
||||||
// tableStore.index()
|
|
||||||
// eventDataUploadVisible.value = false
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
ElMessage.error('请选择数据文件')
|
ElMessage.error('请选择数据文件')
|
||||||
|
|||||||
@@ -62,7 +62,13 @@ const tableStore = new TableStore({
|
|||||||
tableStore.table.params.searchValue = ''
|
tableStore.table.params.searchValue = ''
|
||||||
|
|
||||||
provide('tableStore', tableStore)
|
provide('tableStore', tableStore)
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
TableHeaderRef.value.setDatePicker([
|
||||||
|
{ label: '月份', value: 3 },
|
||||||
|
{ label: '周', value: 4 },
|
||||||
|
{ label: '自定义', value: 5 }
|
||||||
|
])
|
||||||
tableStore.index()
|
tableStore.index()
|
||||||
|
|
||||||
})
|
})
|
||||||
</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) || ''
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main">
|
<div class="default-main">
|
||||||
|
<div v-if="detailLoading" class="loading">
|
||||||
|
<el-spin description="加载中..." />
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
<!-- <h1>详细信息回显</h1>-->
|
<!-- <h1>详细信息回显</h1>-->
|
||||||
<el-descriptions :column="2" border>
|
<el-descriptions :column="2" border>
|
||||||
<el-descriptions-item label="变电站">
|
<el-descriptions-item label="变电站">
|
||||||
@@ -35,6 +39,7 @@
|
|||||||
{{ detailData?.description }}
|
{{ detailData?.description }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<div v-if="detailLoading" class="loading">
|
||||||
|
<el-spin description="加载中..." />
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
<el-descriptions :column="2" border>
|
<el-descriptions :column="2" border>
|
||||||
<el-descriptions-item label="监测点名称">
|
<el-descriptions-item label="监测点名称">
|
||||||
{{ detailData.lineName }}
|
{{ detailData.lineName }}
|
||||||
@@ -19,6 +23,7 @@
|
|||||||
{{ detailData.powerSubstationName }}
|
{{ detailData.powerSubstationName }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { onMounted, ref, reactive } from 'vue'
|
import { onMounted, ref, reactive } from 'vue'
|
||||||
|
|||||||
@@ -1,10 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<div v-if="detailLoading" class="loading">
|
||||||
|
<el-spin description="加载中..." />
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
<el-descriptions :column="2" border>
|
<el-descriptions :column="2" border>
|
||||||
<el-descriptions-item label="监测点台账信息" v-if="detailData.lineFilePath">
|
<el-descriptions-item label="监测点台账信息" v-if="detailData.lineFilePath">
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<Link />
|
<Link />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a :href="detailData?.lineFilePath.url">
|
<span :href="detailData?.lineFilePath.url">
|
||||||
{{ detailData?.lineFilePath.name }}
|
{{ detailData?.lineFilePath.name }}
|
||||||
</span >
|
</span >
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -113,7 +117,7 @@
|
|||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<!--文件地址-->
|
<!--文件地址-->
|
||||||
<el-descriptions-item label="主接线图" v-if="detailData?.mainWiringDiagram">
|
<el-descriptions-item label="主接线图" v-if="detailData?.mainWiringDiagram">
|
||||||
<el-icon class="elView" v-if="detailData?.mainWiringDiagram.name && VITE_FLAG">
|
<el-icon class="elView" v-if="detailData?.mainWiringDiagram.name ">
|
||||||
<View @click="openFile(detailData?.mainWiringDiagram.name)" />
|
<View @click="openFile(detailData?.mainWiringDiagram.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(detailData?.mainWiringDiagram.keyName)">
|
<span class="aLoad" @click="download(detailData?.mainWiringDiagram.keyName)">
|
||||||
@@ -121,6 +125,7 @@
|
|||||||
</span >
|
</span >
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { onMounted, ref, reactive } from 'vue'
|
import { onMounted, ref, reactive } from 'vue'
|
||||||
@@ -136,7 +141,7 @@ const openFile = (name: any) => {
|
|||||||
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
|
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
|
||||||
}
|
}
|
||||||
defineOptions({ name: 'BpmUserReportDetail' })
|
defineOptions({ name: 'BpmUserReportDetail' })
|
||||||
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
|
||||||
const { query } = useRoute() // 查询参数
|
const { query } = useRoute() // 查询参数
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<div v-if="detailLoading" class="loading">
|
||||||
|
<el-spin description="加载中..." />
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
<el-descriptions :column="2" border>
|
<el-descriptions :column="2" border>
|
||||||
<el-descriptions-item label="填报人">
|
<el-descriptions-item label="填报人">
|
||||||
{{ detailData.reporter }}
|
{{ detailData.reporter }}
|
||||||
@@ -198,7 +202,7 @@
|
|||||||
{{ detailData.supervisionTempDeviceReport?.contractNumber }}
|
{{ detailData.supervisionTempDeviceReport?.contractNumber }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="信息安全检测报告">
|
<el-descriptions-item label="信息安全检测报告">
|
||||||
<el-icon class="elView" v-if="detailData?.informationSecurityTestReport?.name && VITE_FLAG">
|
<el-icon class="elView" v-if="detailData?.informationSecurityTestReport?.name ">
|
||||||
<View @click="openFile(detailData?.informationSecurityTestReport?.name)" />
|
<View @click="openFile(detailData?.informationSecurityTestReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span
|
<span
|
||||||
@@ -210,7 +214,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="验收检验报告单">
|
<el-descriptions-item label="验收检验报告单">
|
||||||
<el-icon class="elView" v-if="detailData?.acceptanceInspectionReportSingle?.name && VITE_FLAG">
|
<el-icon class="elView" v-if="detailData?.acceptanceInspectionReportSingle?.name ">
|
||||||
<View @click="openFile(detailData?.acceptanceInspectionReportSingle?.name)" />
|
<View @click="openFile(detailData?.acceptanceInspectionReportSingle?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span
|
<span
|
||||||
@@ -222,7 +226,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="验收检验报告">
|
<el-descriptions-item label="验收检验报告">
|
||||||
<el-icon class="elView" v-if="detailData?.acceptanceInspectionReport?.name && VITE_FLAG">
|
<el-icon class="elView" v-if="detailData?.acceptanceInspectionReport?.name ">
|
||||||
<View @click="openFile(detailData?.acceptanceInspectionReport?.name)" />
|
<View @click="openFile(detailData?.acceptanceInspectionReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span
|
<span
|
||||||
@@ -234,7 +238,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="型式实验报告">
|
<el-descriptions-item label="型式实验报告">
|
||||||
<el-icon class="elView" v-if="detailData?.typeExperimentReport?.name && VITE_FLAG">
|
<el-icon class="elView" v-if="detailData?.typeExperimentReport?.name ">
|
||||||
<View @click="openFile(detailData?.typeExperimentReport?.name)" />
|
<View @click="openFile(detailData?.typeExperimentReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span
|
<span
|
||||||
@@ -246,7 +250,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="出厂检验报告">
|
<el-descriptions-item label="出厂检验报告">
|
||||||
<el-icon class="elView" v-if="detailData?.factoryInspectionReport?.name && VITE_FLAG">
|
<el-icon class="elView" v-if="detailData?.factoryInspectionReport?.name ">
|
||||||
<View @click="openFile(detailData?.factoryInspectionReport?.name)" />
|
<View @click="openFile(detailData?.factoryInspectionReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span
|
<span
|
||||||
@@ -258,7 +262,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="性能检测报告">
|
<el-descriptions-item label="性能检测报告">
|
||||||
<el-icon class="elView" v-if="detailData?.performanceTestReport?.name && VITE_FLAG">
|
<el-icon class="elView" v-if="detailData?.performanceTestReport?.name ">
|
||||||
<View @click="openFile(detailData?.performanceTestReport?.name)" />
|
<View @click="openFile(detailData?.performanceTestReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span
|
<span
|
||||||
@@ -270,7 +274,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="其他附件">
|
<el-descriptions-item label="其他附件">
|
||||||
<el-icon class="elView" v-if="detailData?.otherAttachments?.name && VITE_FLAG">
|
<el-icon class="elView" v-if="detailData?.otherAttachments?.name ">
|
||||||
<View @click="openFile(detailData?.otherAttachments?.name)" />
|
<View @click="openFile(detailData?.otherAttachments?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span
|
<span
|
||||||
@@ -282,6 +286,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { onMounted, ref, reactive } from 'vue'
|
import { onMounted, ref, reactive } from 'vue'
|
||||||
@@ -304,7 +309,7 @@ const { query } = useRoute() // 查询参数
|
|||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
id: propTypes.string.def(undefined)
|
id: propTypes.string.def(undefined)
|
||||||
})
|
})
|
||||||
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
|
||||||
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 编号
|
||||||
@@ -362,11 +367,11 @@ const terminalModelList = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '1',
|
id: '1',
|
||||||
name: '虚拟终端'
|
name: '实际终端'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '2',
|
id: '2',
|
||||||
name: '虚拟终端'
|
name: '离线'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
//定义通讯状态下拉框数据
|
//定义通讯状态下拉框数据
|
||||||
@@ -510,6 +515,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'performanceTestReport' && detailData.value.performanceTestReport) {
|
else if (pathName == 'performanceTestReport' && detailData.value.performanceTestReport) {
|
||||||
detailData.value.performanceTestReport = {
|
detailData.value.performanceTestReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main">
|
<div class="default-main">
|
||||||
|
<div v-if="detailLoading" class="loading">
|
||||||
|
<el-spin description="加载中..." />
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
<el-descriptions :column="2" border>
|
<el-descriptions :column="2" border>
|
||||||
<el-descriptions-item label="监测点名称">
|
<el-descriptions-item label="监测点名称">
|
||||||
{{ detailData.lineName }}
|
{{ detailData.lineName }}
|
||||||
@@ -26,7 +30,7 @@
|
|||||||
{{ detailData.integrityRate ? detailData.integrityRate * 100 + '%' : '/' }}
|
{{ detailData.integrityRate ? detailData.integrityRate * 100 + '%' : '/' }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="试运行报告">
|
<el-descriptions-item label="试运行报告">
|
||||||
<el-icon class="elView" v-if="detailData?.reportName && VITE_FLAG">
|
<el-icon class="elView" v-if="detailData?.reportName ">
|
||||||
<View @click="openFile(detailData?.testRunReport)" />
|
<View @click="openFile(detailData?.testRunReport)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span class="aLoad" @click="download(detailData?.keyName)">
|
<span class="aLoad" @click="download(detailData?.keyName)">
|
||||||
@@ -34,6 +38,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
@@ -53,7 +58,7 @@ const props = defineProps({
|
|||||||
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 编号
|
||||||
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'/** 获得数据 */
|
|
||||||
const getInfo = async () => {
|
const getInfo = async () => {
|
||||||
detailLoading.value = true
|
detailLoading.value = true
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -351,17 +351,17 @@ const summonFlagList = [
|
|||||||
]
|
]
|
||||||
//定义终端模型下拉框数据
|
//定义终端模型下拉框数据
|
||||||
const terminalModelList = [
|
const terminalModelList = [
|
||||||
{
|
{
|
||||||
id: '0',
|
id: '0',
|
||||||
name: '虚拟终端'
|
name: '虚拟终端'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '1',
|
id: '1',
|
||||||
name: '虚拟终端'
|
name: '实际终端'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '2',
|
id: '2',
|
||||||
name: '虚拟终端'
|
name: '离线'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
//定义通讯状态下拉框数据
|
//定义通讯状态下拉框数据
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ import TableStore from '@/utils/tableStore'
|
|||||||
import { ref, onMounted, provide } from 'vue'
|
import { ref, onMounted, provide } from 'vue'
|
||||||
import { mainHeight } from '@/utils/layout'
|
import { mainHeight } from '@/utils/layout'
|
||||||
import { defaultAttribute } from '@/components/table/defaultAttribute'
|
import { defaultAttribute } from '@/components/table/defaultAttribute'
|
||||||
|
import { color } from 'echarts'
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'Region/thermodynamicDiagram'
|
name: 'Region/thermodynamicDiagram'
|
||||||
})
|
})
|
||||||
@@ -157,6 +158,7 @@ const map = (res: any) => {
|
|||||||
// 柱状图数据处理
|
// 柱状图数据处理
|
||||||
const histogram = (res: any) => {
|
const histogram = (res: any) => {
|
||||||
echartMapList.value.visualMap.max = Math.max(...res.map((item: any) => item.count)) || 1
|
echartMapList.value.visualMap.max = Math.max(...res.map((item: any) => item.count)) || 1
|
||||||
|
|
||||||
echartList.value = {
|
echartList.value = {
|
||||||
title: {
|
title: {
|
||||||
text: '区域暂降次数'
|
text: '区域暂降次数'
|
||||||
@@ -168,6 +170,7 @@ const histogram = (res: any) => {
|
|||||||
yAxis: {
|
yAxis: {
|
||||||
name: '暂降次数'
|
name: '暂降次数'
|
||||||
},
|
},
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -51,15 +51,15 @@
|
|||||||
:value="item.id"></el-option>
|
:value="item.id"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
<el-form-item label="暂降原因:">
|
<el-form-item label="暂态原因:">
|
||||||
<el-select v-model="tableStore.table.params.eventReason" placeholder="请选择暂降原因" clearable
|
<el-select v-model="tableStore.table.params.eventReason" placeholder="请选择暂态原因" clearable
|
||||||
multiple collapse-tags style="width: 100%">
|
multiple collapse-tags style="width: 100%">
|
||||||
<el-option v-for="item in reasonoptions" :key="item.id" :label="item.name"
|
<el-option v-for="item in reasonoptions" :key="item.id" :label="item.name"
|
||||||
:value="item.id"></el-option>
|
:value="item.id"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="暂降核实原因:">
|
<el-form-item label="暂态核实原因:">
|
||||||
<el-select v-model="tableStore.table.params.verifyReason" placeholder="请选择暂降核实原因" clearable
|
<el-select v-model="tableStore.table.params.verifyReason" placeholder="请选择暂态核实原因" clearable
|
||||||
multiple collapse-tags collapse-tags-tooltip>
|
multiple collapse-tags collapse-tags-tooltip>
|
||||||
<el-option v-for="item in verifyReasonList" :key="item.id" :label="item.name"
|
<el-option v-for="item in verifyReasonList" :key="item.id" :label="item.name"
|
||||||
:value="item.id"></el-option>
|
:value="item.id"></el-option>
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
<el-form-item label="变电站(监测点):">
|
<el-form-item label="变电站(监测点):">
|
||||||
<el-cascader v-model="tableStore.table.params.lineIds" :options="options" :props="defaultProps"
|
<el-cascader v-model="tableStore.table.params.lineIds" :options="options" :props="defaultProps"
|
||||||
collapse-tags-tooltip style="width: 257px;" filterable clearable collapse-tags
|
collapse-tags-tooltip style="width: 257px;" filterable clearable collapse-tags
|
||||||
placeholder="请选择变电站(监测点)" :show-all-levels="false" />
|
placeholder="请选择变电站(监测点)" :show-all-levels="true" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
<template #operation>
|
<template #operation>
|
||||||
@@ -151,11 +151,11 @@ const tableStore = new TableStore({
|
|||||||
{ field: 'ip', title: '网络参数' ,width:'120px' },
|
{ field: 'ip', title: '网络参数' ,width:'120px' },
|
||||||
{ field: 'lineName', title: '监测点', minWidth: '100' },
|
{ field: 'lineName', title: '监测点', minWidth: '100' },
|
||||||
{ field: 'scale', title: '电压等级(kV)', minWidth: '120', },
|
{ field: 'scale', title: '电压等级(kV)', minWidth: '120', },
|
||||||
// {
|
{
|
||||||
// field: 'verifyReason', title: '暂降核实原因', minWidth: '120', formatter: function (row) {
|
field: 'verifyReason', title: '暂态核实原因', minWidth: '120', formatter: function (row) {
|
||||||
// return verifyReasonList.filter(item => item.id == row.cellValue)[0]?.name || '/' //row.cellValue ? row.cellValue : '/'
|
return verifyReasonList.filter(item => item.id == row.cellValue)[0]?.name || '/' //row.cellValue ? row.cellValue : '/'
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
// {
|
// {
|
||||||
// field: 'verifyReasonDetail', title: '暂降核实原因详情', minWidth: '200', formatter: function (row) {
|
// field: 'verifyReasonDetail', title: '暂降核实原因详情', minWidth: '200', formatter: function (row) {
|
||||||
// return row.cellValue ? row.cellValue : '/'
|
// return row.cellValue ? row.cellValue : '/'
|
||||||
@@ -177,7 +177,7 @@ const tableStore = new TableStore({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
// { field: 'advanceType', title: '暂降类型', minWidth: '100', },
|
// { field: 'advanceType', title: '暂降类型', minWidth: '100', },
|
||||||
{ field: 'advanceReason', title: '暂降原因', minWidth: '100' },
|
{ field: 'advanceReason', title: '暂态原因', minWidth: '100' },
|
||||||
{
|
{
|
||||||
field: 'depth',
|
field: 'depth',
|
||||||
title: '暂降深度(%)',
|
title: '暂降深度(%)',
|
||||||
@@ -187,7 +187,7 @@ const tableStore = new TableStore({
|
|||||||
},
|
},
|
||||||
|
|
||||||
{ field: 'duration', title: '持续时间(s)', minWidth: '100' },
|
{ field: 'duration', title: '持续时间(s)', minWidth: '100' },
|
||||||
// { field: 'severity', title: '严重度', minWidth: '100', formatter: ({ row }: any) => (row.severity < 0 ? '/' : row.severity) },
|
{ field: 'severity', title: '严重度', minWidth: '100', formatter: ({ row }: any) => (row.severity < 0 ? '/' : row.severity) },
|
||||||
|
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
@@ -301,7 +301,7 @@ onMounted(() => {
|
|||||||
list.forEach((item: any) => {
|
list.forEach((item: any) => {
|
||||||
options.value.push(...item)
|
options.value.push(...item)
|
||||||
})
|
})
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
const backbxlb = () => {
|
const backbxlb = () => {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
</TableHeader>
|
</TableHeader>
|
||||||
<Table ref="tableRef" />
|
<Table ref="tableRef" />
|
||||||
<!-- 波形分析 -->
|
<!-- 波形分析 -->
|
||||||
<el-dialog draggable v-model="dialogAnalysis" title="波形分析" width="70%">
|
<el-dialog draggable v-model="dialogAnalysis" title="事件查看" width="70%">
|
||||||
<div class="mb10" style="display: flex; justify-content: space-between">
|
<div class="mb10" style="display: flex; justify-content: space-between">
|
||||||
<span>事件关联编号为:{{ AssociationNumber }}</span>
|
<span>事件关联编号为:{{ AssociationNumber }}</span>
|
||||||
<div>
|
<div>
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
></vxe-table-column>
|
></vxe-table-column>
|
||||||
<vxe-table-column field="lineName" title="监测点" align="center"></vxe-table-column>
|
<vxe-table-column field="lineName" title="监测点" align="center"></vxe-table-column>
|
||||||
<vxe-table-column field="voltageId" title="电压等级(kV)" align="center"></vxe-table-column>
|
<vxe-table-column field="voltageId" title="电压等级(kV)" align="center"></vxe-table-column>
|
||||||
<vxe-table-column field="featureAmplitude" title="暂降幅值(%)" align="center" width="140">
|
<vxe-table-column field="featureAmplitude" title="暂降(骤升)幅值(%)" align="center" width="140">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<span>{{ (row.featureAmplitude * 100).toFixed(2) }}</span>
|
<span>{{ (row.featureAmplitude * 100).toFixed(2) }}</span>
|
||||||
</template>
|
</template>
|
||||||
@@ -175,6 +175,8 @@ const bxcontrast = () => {
|
|||||||
} else {
|
} else {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 波形分析
|
// 波形分析
|
||||||
const source = () => {
|
const source = () => {
|
||||||
queryEventDetailByAssId(form.value).then(res => {
|
queryEventDetailByAssId(form.value).then(res => {
|
||||||
@@ -230,25 +232,35 @@ const exportEvent = () => {
|
|||||||
pageSize: tableStore.table.total
|
pageSize: tableStore.table.total
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
tableRef.value.getRef().exportData({
|
tableRef.value.getRef().exportData({
|
||||||
filename: '影响范围分析', // 文件名字
|
filename: '事件波形分析', // 文件名字
|
||||||
sheetName: 'Sheet1',
|
sheetName: 'Sheet1',
|
||||||
type: 'xlsx', //导出文件类型 xlsx 和 csv
|
type: 'xlsx', //导出文件类型 xlsx 和 csv
|
||||||
useStyle: true,
|
useStyle: true,
|
||||||
data: res.data.records, // 数据源 // 过滤那个字段导出
|
data: res.data.records, // 数据源 // 过滤那个字段导出
|
||||||
columnFilterMethod: function (column, $columnIndex) {
|
columnFilterMethod: function (column, $columnIndex) {
|
||||||
return !(column.$columnIndex === 0)
|
return !(column.$columnIndex === 0 || column.$columnIndex === 4)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 导出波形分析
|
// 导出波形分析
|
||||||
const positioningexport = () => {
|
const positioningexport = () => {
|
||||||
|
const selectedRecords = positioningtableRef.value.getCheckboxRecords();
|
||||||
|
|
||||||
|
if (selectedRecords.length === 0) {
|
||||||
|
ElMessage({
|
||||||
|
message: '请先选择要导出的数据!',
|
||||||
|
type: 'warning'
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
positioningtableRef.value.exportData({
|
positioningtableRef.value.exportData({
|
||||||
filename: '事件波形分析', // 文件名字
|
filename: '事件查看', // 文件名字
|
||||||
sheetName: 'Sheet1',
|
sheetName: 'Sheet1',
|
||||||
type: 'xlsx', //导出文件类型 xlsx 和 csv
|
type: 'xlsx', //导出文件类型 xlsx 和 csv
|
||||||
useStyle: true,
|
useStyle: true,
|
||||||
data: dialogAnalysis.value, // 数据源 // 过滤那个字段导出
|
data: selectedRecords, // 数据源 // 过滤那个字段导出
|
||||||
columnFilterMethod: function (column, $columnIndex) {
|
columnFilterMethod: function (column, $columnIndex) {
|
||||||
return !(column.$columnIndex === 0)
|
return !(column.$columnIndex === 0)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main">
|
<div class="default-main">
|
||||||
<div v-show="view">
|
<div v-show="view">
|
||||||
<TableHeader datePicker ref="TableHeaderRef" showExport>
|
<TableHeader datePicker ref="TableHeaderRef" >
|
||||||
<template #select>
|
<template #select>
|
||||||
<el-form-item label="关键字">
|
<el-form-item label="关键字">
|
||||||
<el-input v-model="tableStore.table.params.searchValue" clearable placeholder="输入事件关联分析描述"
|
<el-input v-model="tableStore.table.params.searchValue" clearable placeholder="输入事件关联分析描述"
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
<vxe-table-column field="subName" :show-overflow="true" title="变电站" align="center"></vxe-table-column>
|
<vxe-table-column field="subName" :show-overflow="true" title="变电站" align="center"></vxe-table-column>
|
||||||
<vxe-table-column field="lineName" title="监测点" align="center"></vxe-table-column>
|
<vxe-table-column field="lineName" title="监测点" align="center"></vxe-table-column>
|
||||||
<vxe-table-column field="voltageId" title="电压等级(kV)" align="center"></vxe-table-column>
|
<vxe-table-column field="voltageId" title="电压等级(kV)" align="center"></vxe-table-column>
|
||||||
<vxe-table-column field="featureAmplitude" title="暂降幅值(%)" align="center" width="140">
|
<vxe-table-column field="featureAmplitude" title="暂降(骤升)幅值(%)" align="center" width="140">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<span>{{ (row.featureAmplitude * 100).toFixed(2) }}</span>
|
<span>{{ (row.featureAmplitude * 100).toFixed(2) }}</span>
|
||||||
</template>
|
</template>
|
||||||
@@ -236,7 +236,7 @@ const exportEvent = () => {
|
|||||||
pageSize: tableStore.table.total
|
pageSize: tableStore.table.total
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
tableRef.value.getRef().exportData({
|
tableRef.value.getRef().exportData({
|
||||||
filename: '暂降聚合展示', // 文件名字
|
filename: '暂态聚合展示', // 文件名字
|
||||||
sheetName: 'Sheet1',
|
sheetName: 'Sheet1',
|
||||||
type: 'xlsx', //导出文件类型 xlsx 和 csv
|
type: 'xlsx', //导出文件类型 xlsx 和 csv
|
||||||
useStyle: true,
|
useStyle: true,
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ const tableStore = new TableStore({
|
|||||||
publicHeight: 60 + props.externalHeight,
|
publicHeight: 60 + props.externalHeight,
|
||||||
url: '/event-boot/monitor/getMonitorEventAnalyseQuery',
|
url: '/event-boot/monitor/getMonitorEventAnalyseQuery',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
filename: '暂态事件列表',
|
||||||
column: [
|
column: [
|
||||||
{ width: '60', type: 'checkbox' },
|
{ width: '60', type: 'checkbox' },
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -166,6 +166,7 @@ const handler = async ({ BMap, map }: any) => {
|
|||||||
let data = props.mapList
|
let data = props.mapList
|
||||||
let r = 0.0035
|
let r = 0.0035
|
||||||
let list = data.filter((item: any) => item.lng != 0)
|
let list = data.filter((item: any) => item.lng != 0)
|
||||||
|
|
||||||
list.forEach((item: any) => {
|
list.forEach((item: any) => {
|
||||||
// 变电站图标
|
// 变电站图标
|
||||||
item.icon = {
|
item.icon = {
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
<el-form-item label="筛选数据">
|
<el-form-item label="筛选数据">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="tableStore.table.params.searchValue"
|
v-model="tableStore.table.params.searchValue"
|
||||||
placeholder="根据变电站,终端编号,型号或网络参数查询"
|
placeholder="根据供电公司,变电站或监测点查询"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -44,9 +44,9 @@ import EventUploadPopup from '@/views/pqs/voltageSags/sagGovern/businessUser/eve
|
|||||||
|
|
||||||
import UserPopup from './userPopup.vue'
|
import UserPopup from './userPopup.vue'
|
||||||
|
|
||||||
defineOptions({
|
// defineOptions({
|
||||||
name: 'businessUser'
|
// name: 'businessUser'
|
||||||
})
|
// })
|
||||||
|
|
||||||
const { push } = useRouter()
|
const { push } = useRouter()
|
||||||
//区域联级选择
|
//区域联级选择
|
||||||
|
|||||||
@@ -97,7 +97,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<!-- 情况二:业务表单 -->
|
<!-- 情况二:业务表单 -->
|
||||||
<div v-if="processInstance?.processDefinition?.formType === 20">
|
<div v-if="processInstance?.processDefinition?.formType === 20">
|
||||||
<BusinessFormComponent :id="processInstance.businessKey" :applyTitle="processInstance.name" />
|
<BusinessFormComponent :id="processInstance.businessKey" :applyTitle="processInstance.name" />
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<el-upload
|
<el-upload
|
||||||
ref="upload"
|
ref="upload"
|
||||||
action=""
|
action=""
|
||||||
:auto-upload="false"
|
:auto-upload="false"
|
||||||
:show-file-list="false"
|
:show-file-list="false"
|
||||||
:limit="1"
|
:limit="1"
|
||||||
:on-change="beforeUpload"
|
:on-change="beforeUpload"
|
||||||
|
|||||||
@@ -21,11 +21,12 @@ export default defineConfig({
|
|||||||
server: {
|
server: {
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
open: true,
|
open: true,
|
||||||
|
port:5174,
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
// target: 'http://10.95.53.49:10215', //海南服务器ip
|
// target: 'http://10.95.53.49:10215', //海南服务器ip
|
||||||
// target: 'http://10.118.135.128:10215', ///hsw
|
// target: 'http://10.118.135.128:10215', ///hsw
|
||||||
target: 'http://192.168.1.67:10215', ///hsw
|
target: 'http://192.168.1.29:10215', ///hsw
|
||||||
// target: 'http://192.168.1.68:10215', ///hsw
|
// target: 'http://192.168.1.68:10215', ///hsw
|
||||||
// target: 'http://10.119.65.152:10215', //数据中心
|
// target: 'http://10.119.65.152:10215', //数据中心
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
@@ -33,7 +34,7 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
'/api-docx': {
|
'/api-docx': {
|
||||||
// 文件服务器地址
|
// 文件服务器地址
|
||||||
target: 'http://192.168.1.68:9009',
|
target: 'http://192.168.1.29:9009',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: path => path.replace(/^\/api-docx/, '')
|
rewrite: path => path.replace(/^\/api-docx/, '')
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user