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

@@ -23,7 +23,7 @@ export function upper(str) {
}
export function makeOptionsRule(t, to, userOptions) {
console.log(userOptions[0])
//console.log(userOptions[0])
const options = [
{ label: t('props.optionsType.struct'), value: 0 },
{ label: t('props.optionsType.json'), value: 1 },

View File

@@ -43,7 +43,6 @@ if (VITE_FLAG) {
})
} else {
setTimeout(async () => {
const previewUrl = await previewFile(currentRoute.value?.href?.split('?')[1])
url.value = previewUrl
excelOptions.value = ref({

View File

@@ -707,7 +707,7 @@ const processSave = async () => {
// return result.value || ' '
// }
onBeforeMount(() => {
console.log(props, 'propspropspropsprops')
//console.log(props, 'propspropspropsprops')
})
onMounted(() => {
initBpmnModeler()

View File

@@ -15,7 +15,7 @@ const addTask = (event, options: any = {}) => {
const ElementFactory = bpmnInstances().elementFactory
const create = bpmnInstances().modeler.get('create')
console.log(ElementFactory, create)
//console.log(ElementFactory, create)
const shape = ElementFactory.createShape(assign({ type: 'bpmn:UserTask' }, options))
@@ -23,8 +23,8 @@ const addTask = (event, options: any = {}) => {
shape.businessObject.di.isExpanded = options.isExpanded
}
console.log(event, 'event')
console.log(shape, 'shape')
//console.log(event, 'event')
//console.log(shape, 'shape')
create.start(event, shape)
}
</script>

View File

@@ -172,7 +172,7 @@ const unwatchBpmn = watch(
return
}
console.log('props.bpmnModeler 有值了!!!')
//console.log('props.bpmnModeler 有值了!!!')
const w = window as any
w.bpmnInstances = {
modeler: props.bpmnModeler,

View File

@@ -179,7 +179,7 @@ onBeforeUnmount(() => {
watch(
() => props.businessObject,
(val) => {
console.log(val, 'val')
//console.log(val, 'val')
nextTick(() => {
resetFlowCondition()
})

View File

@@ -376,7 +376,7 @@ const openListenerForm = (listener, index?) => {
}
// 移除监听器
const removeListener = (listener, index?) => {
console.log(listener, 'listener')
//console.log(listener, 'listener')
ElMessageBox.confirm('确认移除该监听器吗?', '提示', {
confirmButtonText: '确 认',
cancelButtonText: '取 消'

View File

@@ -20,7 +20,7 @@ export function initListenerForm(listener) {
self.eventDefinitionType = key.replace('time', '').toLowerCase()
}
}
console.log(k)
//console.log(k)
self.eventTimeDefinitions = listener.eventDefinitions[0][k].body
}
}

View File

@@ -68,7 +68,7 @@ const modelConfig = computed(() => {
const bpmnInstances = () => (window as any)?.bpmnInstances
const initDataList = () => {
console.log(window, 'window')
//console.log(window, 'window')
rootElements.value = bpmnInstances().modeler.getDefinitions().rootElements
messageIdMap.value = {}
signalIdMap.value = {}

View File

@@ -39,7 +39,7 @@ function xml2json(xml) {
function xmlObj2json(xml) {
const xmlObj = xmlStr2XmlObj(xml)
console.log(xmlObj)
// console.log(xmlObj)
let jsonObj = {}
if (xmlObj.childNodes.length > 0) {
jsonObj = xml2json(xmlObj)

View File

@@ -127,7 +127,7 @@ const timeChange = (e: number) => {
// 当前
const nowTime = () => {
console.log(interval.value, '000000000')
//console.log(interval.value, '000000000')
timeChange(interval.value)
}
// 上一个
@@ -312,7 +312,7 @@ const next = () => {
}
} else {
month = month + 3
console.log('🚀 ~ next ~ presentM:', presentM, month)
// console.log('🚀 ~ next ~ presentM:', presentM, month)
// 季度进位后,超过当前月份是不科学的
if (year == presentY && !props.nextFlag) {
@@ -327,7 +327,7 @@ const next = () => {
endTime = year + '-0' + presentM + '-' + presentD
}
} else if (presentM > 3 && presentM < 7) {
console.log(123123)
// console.log(123123)
// 第二季度
startTime = year + '-04-01'
if (presentD < 10) {
@@ -380,7 +380,7 @@ const next = () => {
}
}
}
console.log(startTime, endTime)
// console.log(startTime, endTime)
} else if (interval.value == 5) {
} else if (interval.value == 4) {
//根据开始时间推

View File

@@ -258,7 +258,7 @@ const setTheDate = (val: any) => {
}
// 导出
const onExport = () => {
console.log('222')
tableStore.onTableAction('export', { showAllFlag: true })
}

View File

@@ -147,7 +147,7 @@ const onMenuCollapse = () => {
}
// 查看详情
const viewDetails = (data: any) => {
console.log('🚀 ~ viewDetails ~ data:', data)
// console.log('🚀 ~ viewDetails ~ data:', data)
if (data.level == 3) {
// 变电站详情
// substationDetails
@@ -201,7 +201,7 @@ onMounted(async () => {
})
const scrollToNode = (id: string) => {
console.log("🚀 ~ scrollToNode ~ id:", id)
// console.log("🚀 ~ scrollToNode ~ id:", id)
if (!treeRef.value) return
// 获取目标节点的元素

View File

@@ -35,7 +35,7 @@ const tree = ref()
const treeRef = ref()
const loadData = (id?: any) => {
console.log('🚀 ~ loadData ~ id:', id)
// console.log('🚀 ~ loadData ~ id:', id)
let nodeKey = ''
queryAllAlgorithmLibrary().then(res => {
res.data.forEach((item: any) => {

View File

@@ -56,7 +56,7 @@ const loadData = () => {
form.statisticalType = classificationData.find((item: any) => item.id == form.statisticalType)
let nodeKey = ''
getTerminalTreeForFive(form).then(res => {
console.log(res)
if (obj.code == 'Power_Network') {
res.data = [
{

View File

@@ -28,7 +28,7 @@ const tree = ref()
const treeRef = ref()
const loadData = (id?: any) => {
console.log('🚀 ~ loadData ~ id:', id)
let nodeKey = ''
queryAll().then(res => {
res.data.forEach((item: any) => {

View File

@@ -79,7 +79,7 @@ const init = async () => {
// 设置消息接收回调
mqttClient.onMessage((topic, message) => {
const msg = JSON.parse(message.toString())
console.log('🚀 ~ init ~ msg:', msg)
// console.log('🚀 ~ init ~ msg:', msg)
if (msg.deptList.includes(adminInfo.$state.deptId)) {
drawer.value = true
isLoading.value = true

View File

@@ -29,7 +29,7 @@ const emit = defineEmits(['update:modelValue'])
const dialogVisible = computed({
get: () => props.modelValue,
set: (val) => {
console.log('set: ', val)
emit('update:modelValue', val)
}
})

View File

@@ -29,9 +29,9 @@ export const useMonitoringPoint = defineStore(
const setShowCheckBox = (val: boolean) => {
if (val && state.lineIds.length === 0) {
state.lineIds = [state.lineId]
console.log('====================================')
console.log(state.lineIds)
console.log('====================================')
// console.log('====================================')
// console.log(state.lineIds)
// console.log('====================================')
}
state.showCheckBox = val
}

View File

@@ -1,8 +1,13 @@
import { downloadFile } from '@/api/system-boot/file'
const sanitizeUrl = (url: string): string => {
return url.replace(/\[/g, '(').replace(/\]/g, ')')
}
// 下载文件
export const download = (urls: string) => {
//console.log('下载', urls)
downloadFile({ filePath: urls })
.then((res: any) => {
// 1. 确定文件MIME类型优化用更简洁的方式
@@ -55,10 +60,8 @@ function removeLastDotSuffix(str: string) {
export const previewFile = async (urls: any) => {
//console.log('预览', urls)
let url = ''
//console.log('urls', decodeURI(urls))
await downloadFile({ filePath: decodeURI(urls) })
.then((res: any) => {
.then((res: any) => {
// 1. 确定文件MIME类型优化用更简洁的方式
const getFileType = (url: string) => {
const ext = url.split('.').pop()?.toLowerCase() || ''
@@ -74,11 +77,8 @@ export const previewFile = async (urls: any) => {
jpg: 'image/jpg'
}
return mimeMap[ext] || ''
}
}
const blob = new Blob([res], { type: getFileType(decodeURI(urls)) })
// 3. 创建下载链接
url = window.URL.createObjectURL(blob)
})

View File

@@ -786,7 +786,7 @@ onMounted(() => {
})
const handleNodeClick = (data: any, node: any) => {
console.log('🚀 ~ handleNodeClick ~ data:', data)
//console.log('🚀 ~ handleNodeClick ~ data:', data)
if (data.level == 6) {
dotList.value = data
// dotList.value.id = '6469e77fda42db12c7ca6620a092f03c1'

View File

@@ -757,7 +757,7 @@ const timeClick = (row: any) => {
}
// 点击越限
const detailClick = (row: any, title: string, key: string) => {
console.log('🚀 ~ detailClick ~ row:', row)
// console.log('🚀 ~ detailClick ~ row:', row)
detailRef.value.open({
row: row,
title: title,
@@ -802,7 +802,7 @@ onMounted(() => {
})
const handleNodeClick = (data: any, node: any) => {
console.log('🚀 ~ handleNodeClick ~ data:', data)
// console.log('🚀 ~ handleNodeClick ~ data:', data)
if (data.level == 6) {
dotList.value = data
// dotList.value.id = '6469e77fda42db12c7ca6620a092f03c1'

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 => {

View File

@@ -102,7 +102,7 @@ onMounted(() => {
})
const open = (text: string, data?: anyObj) => {
console.log(data)
title.value = text
dialogVisible.value = true
if (data) {
@@ -119,7 +119,7 @@ const submit = () => {
scale: 2
}).then(canvas => {
url = canvas.toDataURL('image/png')
console.log('🚀 ~ html2canvas ~ url:', url)
// console.log('🚀 ~ html2canvas ~ url:', url)
})
if (title.value == '新增组件') {
await componentAdd({

View File

@@ -99,7 +99,7 @@ const ziDeptOption = [
]
const areaOption = ref<any>([])
const open = (text: string, data: anyObj) => {
console.log(data)
title.value = text
dialogVisible.value = true
if (data.id) {

View File

@@ -194,7 +194,7 @@ const unbind = () => {
}
const open = (row: any) => {
console.log(row)
dialogVisible.value = true
binData.deptId = row.id
binData.deptType = row.type

View File

@@ -113,7 +113,7 @@ watch(
provide('tableStore', tableStore)
const addMenu = () => {
console.log(popupRef)
popupRef.value.open('新增菜单', {})
}
const currentChange = (newValue: any) => {

View File

@@ -80,7 +80,7 @@ const formRef = ref()
const dialogVisible = ref(false)
const title = ref('新增菜单')
const open = (text: string, data: anyObj) => {
console.log(data)
title.value = text
// 重置表单
for (let key in form) {

View File

@@ -335,7 +335,7 @@ const getProcessInstance = async () => {
return
}
processInstance.value = data
console.log(data)
// 设置表单信息
const processDefinition = data.processDefinition
if (processDefinition.formType === 10) {

View File

@@ -97,7 +97,7 @@ const isValidFile = (file: UploadRawFile) => {
// 上传报告
const handleExceed: UploadProps['onExceed'] = files => {
console.log('🚀 ~ files:', files)
uploadRef.value!.clearFiles()
const file = files[0] as UploadRawFile
@@ -111,7 +111,7 @@ const removeFile = (file: any, uploadFiles: any) => {
}
const submit = async () => {
console.log(123, reportPath.value[0]?.raw)
if (reportPath.value.length == 0) {
return ElMessage.warning('请上传icd文件')
}

View File

@@ -31,7 +31,7 @@ const exportExcel = function(luckysheet, value) {
const blob = new Blob([data], {
type: 'application/vnd.ms-excel;charset=utf-8'
})
console.log("导出成功!")
FileSaver.saveAs(blob, `${value}.xlsx`)
})
return buffer

View File

@@ -107,7 +107,7 @@ const preservation = () => {
const submitForm = (formdata: any, text: string) => {
// let userStr = JSON.stringify(luckysheet.getAllSheets())
let userStr = luckysheet.getAllSheets()
console.log('🚀 ~ submitForm ~ userStr:', userStr)
userStr.forEach((item: any) => {
item.data1 = JSON.stringify(item.data)
})

View File

@@ -392,7 +392,7 @@ const Cancel = () => {
* @param e
*/
const chooseImage = (e: any) => {
console.log('🚀 ~ chooseImage ~ e:', URL.createObjectURL(e.raw!))
logoFile.url = URL.createObjectURL(e.raw!)
configStore.value.logoFile = e.raw
// uploadFile(e.raw, 'sgGovern/').then(res => {