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) { export function makeOptionsRule(t, to, userOptions) {
console.log(userOptions[0]) //console.log(userOptions[0])
const options = [ const options = [
{ label: t('props.optionsType.struct'), value: 0 }, { label: t('props.optionsType.struct'), value: 0 },
{ label: t('props.optionsType.json'), value: 1 }, { label: t('props.optionsType.json'), value: 1 },

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -35,7 +35,7 @@ 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) => {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -83,7 +83,7 @@ const cycle = [
{ 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) {

View File

@@ -81,7 +81,7 @@ onMounted(() => {
const urlKey=ref('') 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)
dotList.value = data dotList.value = data
url.value = '' url.value = ''
flag.value = false flag.value = false

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -271,7 +271,7 @@ const tableStore = new TableStore({
return k.citName != '上送国网' && k.citName != '非上送国网' 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( totalData.value = Array.from(

View File

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

View File

@@ -175,7 +175,7 @@ const findNodeByTreeId = (treeData: any, id: any) => {
const getTargetNode = () => { const getTargetNode = () => {
const targetId = '9b7adecf588b4110acb7018f297592a7' const targetId = '9b7adecf588b4110acb7018f297592a7'
const node = findNodeByTreeId(treeData.value, targetId) const node = findNodeByTreeId(treeData.value, targetId)
console.log('Vue中找到的节点', node) // console.log('Vue中找到的节点', node)
} }
const changeTab = (e: string) => { const changeTab = (e: string) => {
activeName.value = e 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) : '' item.data[k.r][k.c].v ? (item.data[k.r][k.c] = k.v) : ''
}) })
}) })
console.log(tableStore.table.data)
setTimeout(() => { setTimeout(() => {
luckysheet.create({ luckysheet.create({
container: 'luckysheet', container: 'luckysheet',
@@ -126,7 +126,7 @@ const changetype = (val: any) => {
reportForm.value = val.reportForm reportForm.value = val.reportForm
} }
const selectChange = () => { const selectChange = () => {
console.log('🚀 ~ selectChange ~ tableStore.table.data.lnegth :', tableStore.table.data.length)
if (tableStore.table.data.length != 0) { if (tableStore.table.data.length != 0) {
setTimeout(() => { setTimeout(() => {
luckysheet && luckysheet?.resize() luckysheet && luckysheet?.resize()

View File

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

View File

@@ -231,7 +231,7 @@ 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)
let msg = '' let msg = ''
msg += params[0].name msg += params[0].name
for (let i in params) { 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] item.keys = parent ? parent.keys.concat([item.id]) : [item.id]
if (!item.children || !item.children.length) { if (!item.children || !item.children.length) {
const row: any = {} const row: any = {}
console.log("🚀 ~ item.keys.forEach ~ item:", item)
item.keys.forEach((key: any, index: number) => { item.keys.forEach((key: any, index: number) => {
const level = index + 1 const level = index + 1
@@ -1114,8 +1114,7 @@ const toColTreeData = (treeData: any[]) => {
list.push(row) list.push(row)
} }
}, options) }, options)
console.log("🚀 ~ toColTreeData ~ list:", list)
tableData.value = list tableData.value = list
} }

View File

@@ -1116,7 +1116,7 @@ const rendering = () => {
} }
opitonserise.push(data) opitonserise.push(data)
} else if (item.chufa !== undefined && item2 == '暂态触发点') { } 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 = { let data = {
name: item2, name: item2,

View File

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

View File

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

View File

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

View File

@@ -75,7 +75,7 @@ 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')
@@ -239,7 +239,7 @@ const handleClose = () => {
dialogVisible.value = false dialogVisible.value = false
} }
const echartClick = (params: any) => { const echartClick = (params: any) => {
console.log('🚀 ~ echartClick ~ params:', params.name.split('(')[0]) // console.log('🚀 ~ echartClick ~ params:', params.name.split('(')[0])
router.push({ router.push({
name: 'Supervision/Terminaldetection', name: 'Supervision/Terminaldetection',
query: { query: {

View File

@@ -114,7 +114,7 @@ function filterDataByKeyword(data, keyword) {
} }
const currentChangeEvent = () => { const currentChangeEvent = () => {
// tableRef.value.getCurrentRecord() // 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() let data = tableRef.value.getCurrentRecord()
emit('flyTo', { coordinate: [data.lng, data.lat] }, 16) emit('flyTo', { coordinate: [data.lng, data.lat] }, 16)
} }

View File

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

View File

@@ -1116,7 +1116,7 @@ const rendering = () => {
} }
opitonserise.push(data) opitonserise.push(data)
} else if (item.chufa !== undefined && item2 == '暂态触发点') { } 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 = { let data = {
name: item2, name: item2,

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -432,7 +432,7 @@ 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) // 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 detailData.value.simulationReport = r.data.simulationReport

View File

@@ -156,10 +156,8 @@ const tableStore = new TableStore({
// } // }
// 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) window.open(window.location.origin + '/#/previewFile?/' + row.absFilePath)
} }
@@ -174,16 +172,10 @@ 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 match = row.filePath.match(/excelreport(\/[^?#]*)/)
// const decodedPath = decodeURI(match[1]) // 解码URL中的中文字符 // const decodedPath = decodeURI(match[1]) // 解码URL中的中文字符
download('/' + row.absFilePath) download('/' + row.absFilePath)
//download('/supervision/微服务系统测试页面功能-20251224合并版本.docx')
//download('/onlineReport/电能[预]2025年18号-张家口地市 电能质量技术监督预警单.docx')
} }
}, },
// { // {
@@ -281,7 +273,6 @@ const tableStore = new TableStore({
) )
} }
}, },
{ {
name: 'cancel', name: 'cancel',
title: '取消', title: '取消',

View File

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

View File

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

View File

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

View File

@@ -160,7 +160,7 @@ const { query } = useRoute() // 查询参数
const props = defineProps({ const props = defineProps({
id: propTypes.string.def(undefined) id: propTypes.string.def(undefined)
}) })
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 编号
@@ -199,7 +199,7 @@ getEffectUserList()
/** 获得数据 */ /** 获得数据 */
const getInfo = async () => { const getInfo = async () => {
detailLoading.value = true detailLoading.value = true
console.log(props.id, queryId, '流程详情内部的id')
try { try {
await getPlanDetailsById({ id: props.id || queryId }).then(res => { await getPlanDetailsById({ id: props.id || queryId }).then(res => {
detailData.value = res.data detailData.value = res.data

View File

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

View File

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

View File

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

View File

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

View File

@@ -63,7 +63,7 @@ const getInfo = async () => {
getFileNameAndFilePath({ filePath: res.data.testRunReport }).then(report => { getFileNameAndFilePath({ filePath: res.data.testRunReport }).then(report => {
detailData.value.reportUrl = report.data.url detailData.value.reportUrl = report.data.url
detailData.value.reportName = report.data.fileName 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) => { const downloadTheReport = (url: string) => {
getFileNameAndFilePath({ filePath: url }).then((res: any) => { getFileNameAndFilePath({ filePath: url }).then((res: any) => {
console.log(res.data.url, 'res')
const link = document.createElement('a') const link = document.createElement('a')
link.href = res.data.url link.href = res.data.url
link.download = res.data.name link.download = res.data.name

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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