微调
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
@@ -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 = ''
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user