This commit is contained in:
sjl
2026-01-06 08:35:36 +08:00
parent fd09e24cf0
commit cb19fef4c6
88 changed files with 117 additions and 135 deletions

View File

@@ -450,7 +450,7 @@ const selChange = async (e: any) => {
}
// 导出
const onExport = () => {
console.log("🚀 ~ onExport ~ document.getElementById('exportId'):", document.getElementById('exportId'))
// console.log("🚀 ~ onExport ~ document.getElementById('exportId'):", document.getElementById('exportId'))
// 转换成canvas
html2canvas(document.getElementById('exportId'), {
@@ -459,7 +459,7 @@ const onExport = () => {
logging: false, // 关闭日志
scale: 2 // 提高缩放比例以获得更清晰的截图
}).then(function (canvas) {
console.log('🚀 ~ onExport ~ canvas:', canvas)
// console.log('🚀 ~ onExport ~ canvas:', canvas)
// 创建a标签实现下载
let creatIMg = document.createElement('a')
creatIMg.download = '光伏电站承载能力评估结果.png' // 设置下载的文件名,

View File

@@ -176,7 +176,7 @@ const info = () => {
})
})
})
console.log('🚀 ~ queyDetail ~ photovoltaicData.value:', photovoltaicData.value)
// console.log('🚀 ~ queyDetail ~ photovoltaicData.value:', photovoltaicData.value)
})
// 电弧炉
queyDetailDhl().then(res => {

View File

@@ -430,7 +430,7 @@ const currentChangeEvent = () => {
// 重启进程
const restart = (data: any) => {
console.log('🚀 ~ restart ~ data:', data)
// console.log('🚀 ~ restart ~ data:', data)
askRestartProcess({
deviceRebootType: data.processNo,
nodeId: nodeId.value,

View File

@@ -35,7 +35,7 @@ const dialogVisible = ref(false)
const tableData = ref([])
const open = (e: any) => {
console.log("🚀 ~ open ~ e:", e)
//console.log("🚀 ~ open ~ e:", e)
echartsXq.value = {
title: {
text: e.name + '性能详情'

View File

@@ -223,7 +223,7 @@ const manage = (name: string, key: number) => {
.getCheckboxRecords()
.filter((item: any) => item.level == 4)
.map(item => item.id)
console.log('🚀 ~ deviceData ~ selectRecords:', selectRecords)
//console.log('🚀 ~ deviceData ~ selectRecords:', selectRecords)
if (selectRecords.length == 0) {
return ElMessage({
message: '请至少选择一台装置',

View File

@@ -2313,7 +2313,7 @@ const remove = () => {
const next = async () => {
await mainForm.value.validate((valid: any) => {
if (valid) {
console.log('🚀 ~ awaitmainForm.value.validate ~ nodeLevel.value:', nodeLevel.value)
// console.log('🚀 ~ awaitmainForm.value.validate ~ nodeLevel.value:', nodeLevel.value)
switch (nodeLevel.value) {
case 100:

View File

@@ -1059,7 +1059,7 @@ const filterUsers = (arr: any) => {
userTypeList.value = userTypeList.value.filter(item => !arr.includes(item.value))
}
const setcontroFlag = () => {
console.log(12333)
controFlag.value = true
}

View File

@@ -383,7 +383,7 @@ const preview = (val: any, url: any) => {
}
//预测评估报告
if (val == 'predictionEvaluationReport') {
console.log(url, '9999999')
predictionEvaluationReportRef?.value.open(url)
}
//预测评估评审意见报告

View File

@@ -181,7 +181,7 @@ const zoom = (value: any) => {
component: registerComponent(item.path)
}))
}
console.log('🚀 ~ zoom ~ layout.value:', layout.value)
// console.log('🚀 ~ zoom ~ layout.value:', layout.value)
flag.value = !flag.value

View File

@@ -83,7 +83,7 @@ const cycle = [
{ value: '3', label: '年' }
]
const changeTree = (row: any) => {
console.log("🚀 ~ changeTree ~ row:", row)
// console.log("🚀 ~ changeTree ~ row:", row)
TreeList.value = row
if (title.value == '修改算法') {
if (row.level != 4) {

View File

@@ -81,7 +81,7 @@ onMounted(() => {
const urlKey=ref('')
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
const handleNodeClick = (data: any, node: any) => {
console.log("🚀 ~ handleNodeClick ~ data:", data)
// console.log("🚀 ~ handleNodeClick ~ data:", data)
dotList.value = data
url.value = ''
flag.value = false

View File

@@ -153,7 +153,7 @@ const treeData = ref([])
const idArr = ref([])
const activeName = ref(0)
const getTreeData = async () => {
console.log('getTreeData')
await getAreaDept().then(res => {
var data = res.data
data.forEach(element => {

View File

@@ -170,7 +170,7 @@ tableStore.table.params.statisticalType = {}
// 柱状图数据处理
const histogram = (res: any) => {
console.log(123);
echartList.value = {
title: {

View File

@@ -85,7 +85,7 @@ const title = ref('')
const key = ref(0)
const statisticalName = ref('')
const open = (row: any, flag: boolean, params: any) => {
console.log('🚀 ~ open ~ row:', row)
voltageLevelFlag.value = flag
loading.value = true
title.value = row.name + '详情'

View File

@@ -62,7 +62,7 @@ const tableStore = new TableStore({
render: 'basicButton',
click: row => {
console.log("🚀 ~ row:", row)
push({
path: "/admin/division/detail",
query: {

View File

@@ -122,7 +122,7 @@ const tableStore = new TableStore({
},
click: row => {
detailDialogTitle.value = '监测点污染详情'
console.log('🚀 ~ row:', row)
detailLoading.value = true
detailData.value = row.powerFlagPollutionList
detailDialogVisible.value = true

View File

@@ -111,7 +111,7 @@ const tableStore = new TableStore({
map(tableStore.table.data)
histogram(tableStore.table.data)
EchartMap.value.GetEchar(header.value.areaRef.areaName)
console.log("🚀 ~ header.value.areaRef.areaName:", header.value.areaRef.areaName)
// console.log("🚀 ~ header.value.areaRef.areaName:", header.value.areaRef.areaName)
}
})
@@ -124,7 +124,7 @@ provide('tableStore', tableStore)
// 地图点击事件
const getRegionByRegion = (list: any) => {
console.log("🚀 ~ getRegionByRegion ~ list:", list)
// console.log("🚀 ~ getRegionByRegion ~ list:", list)
tableStore.table.params.deptIndex = list.id
tableStore.onTableAction('search', {})
}
@@ -134,7 +134,7 @@ const getRegionByRegion = (list: any) => {
// 地图数处理
const map = (res: any) => {
console.log("🚀 ~ map ~ res:", res)
// console.log("🚀 ~ map ~ res:", res)
let areaData: any = []
let xarr = []
let yarr = []

View File

@@ -249,7 +249,7 @@ const searchEvent = debounce(() => {
(item: any) => searchProps.some(key => String(item[key]).toLowerCase().indexOf(filterVal) > -1),
options
)
console.log('🚀 ~ searchEvent ~ rest:', rest)
// console.log('🚀 ~ searchEvent ~ rest:', rest)
tableStore.table.data = rest

View File

@@ -249,7 +249,7 @@ const searchEvent = debounce(() => {
(item: any) => searchProps.some(key => String(item[key]).toLowerCase().indexOf(filterVal) > -1),
options
)
console.log('🚀 ~ searchEvent ~ rest:', rest)
// console.log('🚀 ~ searchEvent ~ rest:', rest)
tableStore.table.data = rest

View File

@@ -193,7 +193,7 @@ const searchEvent = debounce(() => {
(item: any) => searchProps.some(key => String(item[key]).toLowerCase().indexOf(filterVal) > -1),
options
)
console.log("🚀 ~ searchEvent ~ rest:", rest)
// console.log("🚀 ~ searchEvent ~ rest:", rest)
tableStore.table.data = rest

View File

@@ -271,7 +271,7 @@ const tableStore = new TableStore({
return k.citName != '上送国网' && k.citName != '非上送国网'
}
})
console.log(123, tableStore.table.params.statisticalType.name)
// console.log(123, tableStore.table.params.statisticalType.name)
// 合并子集数据 并去重
totalData.value = Array.from(

View File

@@ -194,9 +194,9 @@ const checkChange = () => {
}
}
const close = () => {
console.log('====================================')
console.log(2123123)
console.log('====================================')
// console.log('====================================')
// console.log(2123123)
// console.log('====================================')
options.value = null
}
const showCharts = (row: any, valueType: number, name: string) => {

View File

@@ -175,7 +175,7 @@ const findNodeByTreeId = (treeData: any, id: any) => {
const getTargetNode = () => {
const targetId = '9b7adecf588b4110acb7018f297592a7'
const node = findNodeByTreeId(treeData.value, targetId)
console.log('Vue中找到的节点', node)
// console.log('Vue中找到的节点', node)
}
const changeTab = (e: string) => {
activeName.value = e

View File

@@ -86,7 +86,7 @@ const tableStore = new TableStore({
item.data[k.r][k.c].v ? (item.data[k.r][k.c] = k.v) : ''
})
})
console.log(tableStore.table.data)
setTimeout(() => {
luckysheet.create({
container: 'luckysheet',
@@ -126,7 +126,7 @@ const changetype = (val: any) => {
reportForm.value = val.reportForm
}
const selectChange = () => {
console.log('🚀 ~ selectChange ~ tableStore.table.data.lnegth :', tableStore.table.data.length)
if (tableStore.table.data.length != 0) {
setTimeout(() => {
luckysheet && luckysheet?.resize()

View File

@@ -1300,7 +1300,7 @@ const rendering = () => {
getEcharts()
}
const getEcharts = () => {
console.log("🚀 ~ list.value.forEach ~ list.value:", list.value)
list.value.forEach((item: any, i: number) => {
item.option = {

View File

@@ -231,7 +231,7 @@ const init = () => {
},
backgroundColor: 'rgba(0,0,0,0.55)',
formatter: function (params: any) {
console.log(params)
let msg = ''
msg += params[0].name
for (let i in params) {

View File

@@ -1099,7 +1099,7 @@ const toColTreeData = (treeData: any[]) => {
item.keys = parent ? parent.keys.concat([item.id]) : [item.id]
if (!item.children || !item.children.length) {
const row: any = {}
console.log("🚀 ~ item.keys.forEach ~ item:", item)
item.keys.forEach((key: any, index: number) => {
const level = index + 1
@@ -1114,8 +1114,7 @@ const toColTreeData = (treeData: any[]) => {
list.push(row)
}
}, options)
console.log("🚀 ~ toColTreeData ~ list:", list)
tableData.value = list
}

View File

@@ -1116,7 +1116,7 @@ const rendering = () => {
}
opitonserise.push(data)
} else if (item.chufa !== undefined && item2 == '暂态触发点') {
console.log(123, new URL('@/assets/point.png', import.meta.url).href)
// console.log(123, new URL('@/assets/point.png', import.meta.url).href)
let data = {
name: item2,

View File

@@ -653,7 +653,7 @@ const echart = (row: any) => {
data: [item.ratioList]
})
})
console.log("🚀 ~ echart ~ option:", option)
// console.log("🚀 ~ echart ~ option:", option)
chart.setOption(option)
}

View File

@@ -56,7 +56,7 @@ const addMarkers= async()=>{
const mouseover = () => {
console.log(123);
}
onMounted(() => {

View File

@@ -106,7 +106,7 @@ const loadingTab = ref(false)
const PollutionList = dictData.getBasicData('Pollution_Calc').filter(item => item.name == '谐波电压')
const open = async (row: any, list: any) => {
console.log('🚀 ~ open ~ list:', list)
// getAssessDetail(row).then(res => {
tableData.value = list
subdata.value = tableData.value[0]?.powerFlagPollutionList || []

View File

@@ -75,7 +75,7 @@ const picList: any = ref([])
const Voltage = dictData.getBasicData('Dev_Voltage_Stand')
const tableData: any = ref([])
const options = dictData.getBasicData('Statistical_Type', ['Report_Type', 'Power_Network', 'JB_Power_Flag'])
console.log("🚀 ~ options:", options)
const time = ref('1')
const statisticalType = ref('Load_Type')
const loadTypeArr = dictData.getBasicData('Interference_Source')
@@ -239,7 +239,7 @@ const handleClose = () => {
dialogVisible.value = false
}
const echartClick = (params: any) => {
console.log('🚀 ~ echartClick ~ params:', params.name.split('(')[0])
// console.log('🚀 ~ echartClick ~ params:', params.name.split('(')[0])
router.push({
name: 'Supervision/Terminaldetection',
query: {

View File

@@ -114,7 +114,7 @@ function filterDataByKeyword(data, keyword) {
}
const currentChangeEvent = () => {
// tableRef.value.getCurrentRecord()
console.log('🚀 ~ currentChangeEvent ~ tableRef.value.getCurrentRecord():', tableRef.value.getCurrentRecord())
// console.log('🚀 ~ currentChangeEvent ~ tableRef.value.getCurrentRecord():', tableRef.value.getCurrentRecord())
let data = tableRef.value.getCurrentRecord()
emit('flyTo', { coordinate: [data.lng, data.lat] }, 16)
}

View File

@@ -278,7 +278,7 @@ const contaminateC = () => {
num6: item[7]
}
})
console.log(123, tableData.value)
let data = []
let a1 = tableData.value.reduce((t, item) => t + (item.num1 - 0 || 0), 0)

View File

@@ -1116,7 +1116,7 @@ const rendering = () => {
}
opitonserise.push(data)
} else if (item.chufa !== undefined && item2 == '暂态触发点') {
console.log(123, new URL('@/assets/point.png', import.meta.url).href)
// console.log(123, new URL('@/assets/point.png', import.meta.url).href)
let data = {
name: item2,

View File

@@ -202,7 +202,7 @@ const change = () => {
if (!targetList.value.some(item => item.key == targetKey.value) ) {
targetKey.value = ''
}
console.log('🚀 ~ change ~ targetList.value:', targetList.value)
// console.log('🚀 ~ change ~ targetList.value:', targetList.value)
}
// 核心去重逻辑
function deduplicateByKey(data) {

View File

@@ -17,7 +17,7 @@ import load from './components/load/index.vue'
const activeName = ref('1')
const handleClick = (tab: TabsPaneContext, event: Event) => {
console.log(tab, event)
// console.log(tab, event)
}
</script>

View File

@@ -528,7 +528,7 @@ const DeviceQ = () => {
// 定位
const flyTo = (e: any, zoom?: number) => {
console.log('🚀 ~ flyTo ~ e:', e)
// console.log('🚀 ~ flyTo ~ e:', e)
let regex = new RegExp(e.psrName, 'i')
center.value.lng = e.coordinate[0]
center.value.lat = e.coordinate[1]
@@ -548,14 +548,14 @@ const grids = (row: any) => {
// 综合评估
getRunEvaluate({ ...row, deptIndex: props.params.deptIndex }).then((res: any) => {
console.log('🚀 ~ getRunEvaluate ~ res:', res)
// console.log('🚀 ~ getRunEvaluate ~ res:', res)
AreaData.value = res.data
GridDiagramArea()
})
// if (powerManageGridMap.value) powerLoad()
}
const radiusPop = (k: any) => {
console.log('🚀 ~ radiusPop ~ k:', k)
// console.log('🚀 ~ radiusPop ~ k:', k)
if (k != undefined) PopKey.value = k
}
const GridDiagramArea = () => {

View File

@@ -155,7 +155,7 @@ onMounted(() => {
}
})
const submit = (num: number) => {
console.log(prop.addData.problemSources)
//console.log(prop.addData.problemSources)
form1Ref.value.validate(async (valid: any) => {
if (valid) {

View File

@@ -403,7 +403,7 @@ const changeAlarm = e => {
let flagList = exceeded.filter(item => item.name == '谐波电压' || item.name == '谐波电流').map(item => item.id)
// 发起预警单
const launch = (title: string) => {
console.log('🚀 ~ flagList:', flagList)
// console.log('🚀 ~ flagList:', flagList)
if (tableStore.table.selection.length == 0) {
ElMessage.warning('请选择一条数据')
@@ -420,7 +420,7 @@ const launch = (title: string) => {
return
}
console.log('🚀 ~ launch ~ list.value:', tableStore.table.selection)
// console.log('🚀 ~ launch ~ list.value:', tableStore.table.selection)
alarmListRef.value.open({
text: title,

View File

@@ -432,7 +432,7 @@ const getInfo = async () => {
try {
userReportGoNetById({ id: props.id }).then(r => {
getUserReportById(r.data.userReportId).then(res => {
console.log("🚀 ~ getInfo ~ res:", res)
// console.log("🚀 ~ getInfo ~ res:", res)
detailData.value = res.data
detailData.value.otherReport = r.data.otherReport
detailData.value.simulationReport = r.data.simulationReport

View File

@@ -156,10 +156,8 @@ const tableStore = new TableStore({
// }
// return true;
},
click: row => {
// const match = row.filePath.match(/excelreport(\/[^?#]*)/)
// window.open(window.location.origin + '/#/previewFile?' + match[1])
window.open(window.location.origin + '/#/previewFile?/' + row.absFilePath)
}
@@ -174,16 +172,10 @@ const tableStore = new TableStore({
return row.problemType != 2
},
click: row => {
//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')
}
},
// {
@@ -281,7 +273,6 @@ const tableStore = new TableStore({
)
}
},
{
name: 'cancel',
title: '取消',

View File

@@ -191,7 +191,7 @@ const rules = ref({
// fileList: [{ required: true, message: '请上传文件', trigger: 'change' }],
})
const changeSubstationFlag = () => {
console.log(form.value.customSubstationFlag)
//处理所属变电站手都输入1/下拉数据0
key.value += 1
if (form.value.customSubstationFlag == 0) {
@@ -283,7 +283,6 @@ const changeArea = () => {
treeList.value.forEach((item: any) => {
if (item.id == form.value.deptId) {
list.push(item)
} else {
if (item.children.filter((v: any) => v.id == form.value.deptId).length == 0) {
item.children.forEach((v: any) => {
@@ -295,15 +294,10 @@ const changeArea = () => {
// return k
// }
// }))
// }))
console.log("🚀 ~ list.push ~ list:", list)
// }))
} else {
list.push(item.children.filter((v: any) => v.id == form.value.deptId)[0])
}
// if (form.value.deptId != treeListCgy.value[0].id) {
// list.push(...treeListCgy.value)
// }

View File

@@ -1328,7 +1328,6 @@ const filterUsers = (arr: any) => {
userTypeList.value = userTypeList.value.filter(item => !arr.includes(item.value))
}
const setcontroFlag = () => {
console.log(12333)
controFlag.value = true
}

View File

@@ -603,7 +603,7 @@ const preview = (val: any, url: any) => {
}
//预测评估报告
if (val == 'predictionEvaluationReport') {
console.log(url, '9999999')
predictionEvaluationReportRef?.value.open(url)
}
//预测评估评审意见报告

View File

@@ -160,7 +160,7 @@ const { query } = useRoute() // 查询参数
const props = defineProps({
id: propTypes.string.def(undefined)
})
console.log(propTypes.string.def(undefined), '999999999999传参')
const detailLoading = ref(false) // 表单的加载中
const detailData = ref<any>({}) // 详情数据
const queryId = query.id as unknown as string // 从 URL 传递过来的 id 编号
@@ -199,7 +199,7 @@ getEffectUserList()
/** 获得数据 */
const getInfo = async () => {
detailLoading.value = true
console.log(props.id, queryId, '流程详情内部的id')
try {
await getPlanDetailsById({ id: props.id || queryId }).then(res => {
detailData.value = res.data

View File

@@ -117,7 +117,7 @@ const tableStore = new TableStore({
inactiveValue: '1',
render: 'switch',
onChangeField: (row: any, value) => {
console.log('🚀 ~ row:', 444123, value)
}
},

View File

@@ -152,7 +152,7 @@ const open = async (
}
if (supervisionReport) {
let arrPath = supervisionReport.split(',')
console.log('🚀 ~ arrPath:', arrPath)
await getFileNameAndFilePath({ filePath: arrPath[0] }).then(res => {
supervisionReportDetail.supervisionReportPath = res.data.url
supervisionReportDetail.supervisionReportName = res.data.fileName

View File

@@ -602,7 +602,7 @@ const preview = (val: any, url: any) => {
}
//预测评估报告
if (val == 'predictionEvaluationReport') {
console.log(url, '9999999')
predictionEvaluationReportRef?.value.open(url)
}
//预测评估评审意见报告

View File

@@ -455,7 +455,7 @@ const terminalModelList = [
const substationList: any = ref([])
//字典获取通讯类型
const frontTypeList = dictData.getBasicData('Front_Type', ['CLD', '61850'])
console.log('🚀 ~ frontTypeList:', frontTypeList)
//定义通讯状态下拉框数据
const communicationStatusList = [
{

View File

@@ -63,7 +63,7 @@ const getInfo = async () => {
getFileNameAndFilePath({ filePath: res.data.testRunReport }).then(report => {
detailData.value.reportUrl = report.data.url
detailData.value.reportName = report.data.fileName
console.log('🚀 ~ getFileNameAndFilePath ~ detailData.value:', detailData.value)
// console.log('🚀 ~ getFileNameAndFilePath ~ detailData.value:', detailData.value)
})
}
})

View File

@@ -376,7 +376,6 @@ const startRunTest = () => {
// 下载报告
const downloadTheReport = (url: string) => {
getFileNameAndFilePath({ filePath: url }).then((res: any) => {
console.log(res.data.url, 'res')
const link = document.createElement('a')
link.href = res.data.url
link.download = res.data.name

View File

@@ -9,8 +9,8 @@
<el-radio-button :label="1">离线</el-radio-button>
</el-radio-group>
</el-form-item>
<el-form-item label="筛选数据">
<el-input v-model="tableStore.table.params.searchValue" clearable placeholder="输入关键字筛选" />
<el-form-item label="筛选数据" >
<el-input v-model="tableStore.table.params.searchValue" clearable placeholder="输入关键字筛选" style="width: 200px"/>
</el-form-item>
<el-form-item label="触发类型:">
<el-select v-model="tableStore.table.params.waveType" placeholder="请选择触发类型" clearable multiple
@@ -350,6 +350,7 @@ const download = () => {
}
</script>
<style scoped lang="scss">
:deep(.el-tag.is-closable) {
width: 100px;
}

View File

@@ -52,7 +52,7 @@ const init = () => {
data.gs = res.data.voltageToleranceCurveDataList.length
data.krr = gongData.pointI.length
data.bkrr = gongData.pointIun.length
console.log(gongData)
options.value = {
// backgroundColor: "#f9f9f9", //地图背景色深蓝
title: {

View File

@@ -52,7 +52,7 @@ const init = () => {
data.gs = res.data.voltageToleranceCurveDataList.length
data.krr = gongData.pointI.length
data.bkrr = gongData.pointIun.length
console.log(gongData)
options.value = {
// backgroundColor: "#f9f9f9", //地图背景色深蓝
title: {

View File

@@ -49,7 +49,7 @@ const props = defineProps({
const tableData = ref([])
const tableData1 = ref([])
getNoDealEvents(props.params).then(res => {
console.log(res)
tableData.value = res.data
})
getAreaOffDev(props.params).then(res => {