This commit is contained in:
sjl
2026-02-06 10:10:24 +08:00
parent 59489aaafa
commit 15e3d4aec8
12 changed files with 555 additions and 29 deletions

View File

@@ -220,6 +220,23 @@ const tableStore = new TableStore({
beforeSearchFun: () => {
tableStore.table.params.orgNo = tableStore.table.params.deptIndex
},
exportProcessingData: () => {
tableStore.table.allData = tableStore.table.allData.filter(item => {
item.userStatus =
item.userStatus == 0 ? '可研' : item.userStatus == 1 ? '建设' : item.userStatus == 2 ? '运行' : '退运'
item.status =
item.status == 0
? '待提交审批'
: item.status == 1
? '审批中'
: item.status == 2
? '审批通过'
: item.status == 3
? '审批不通过'
: '已取消'
return item
})
}
})
tableStore.table.params.city = ''

View File

@@ -169,6 +169,14 @@ const tableStore = new TableStore({
beforeSearchFun: () => {
tableStore.table.params.orgNo = tableStore.table.params.deptIndex
},
exportProcessingData: () => {
tableStore.table.allData = tableStore.table.allData.filter(item => {
item.userStatus =
item.userStatus == 0 ? '可研' : item.userStatus == 1 ? '建设' : item.userStatus == 2 ? '运行' : '退运'
return item
})
}
})
tableStore.table.params.city = ''

View File

@@ -357,6 +357,7 @@ import {
import { getAllDeptList } from '@/api/common'
import { getTerminalDetailsById } from '@/api/supervision-boot/terminal/index'
import { nodeAllList } from '@/api/device-boot/Business'
import { getDeviceTypeList } from '@/api/device-boot/modelManage'
const emits = defineEmits(['onSubmit'])
const dictData = useDictData()
const dialogFormVisible = ref(false)
@@ -377,7 +378,8 @@ const neutralPointWiringMethodList = dictData.getBasicData('Neutral_Point')
//字典获取厂家
const manufacturerList = dictData.getBasicData('Dev_Manufacturers')
//字典获取终端型号
const terminalTypeList = dictData.getBasicData('Dev_Type')
//const terminalTypeList = dictData.getBasicData('Dev_Type')
const terminalTypeList = ref([])
//字典获取数据类型
const dataTypeList = [
{
@@ -432,7 +434,7 @@ const terminalModelList = [
const substationList: any = ref([])
//字典获取通讯类型
const frontTypeList = dictData.getBasicData('Front_Type', ['CLD', '61850'])
console.log("🚀 ~ frontTypeList:", frontTypeList)
//console.log("🚀 ~ frontTypeList:", frontTypeList)
//定义通讯状态下拉框数据
const communicationStatusList = [
{
@@ -539,6 +541,7 @@ const getPowerCompanyList = async (flag: any) => {
getAllDeptList().then(res => {
powerCompanyList.value = res.data[0].children[0].children
if (flag) {
getSubstationVoltageLevel({
orgIds: [
powerCompanyList.value.find(
@@ -1168,12 +1171,26 @@ const disabledDate = time => {
const importType = ref(null)
const resendId = ref('')
const open = async (row: any) => {
console.log('🚀 ~ open ~ row:', row.row)
let flag = row.row ? true : false
importType.value = null
if (!flag) await getPowerCompanyList(false)
title.value = row.title
dialogFormVisible.value = true
const params = {
pageNum: 1,
pageSize: 100,
searchState: '',
searchValue: ''
}
await getDeviceTypeList(params).then((res: any) => {
terminalTypeList.value = res.data.records.map((item: any) => ({
id: item.id,
name: item.name
}))
})
if (row.row) {
resendId.value = row.row.id
importType.value = row.row.importType