微调
This commit is contained in:
@@ -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 => {
|
||||
|
||||
@@ -170,7 +170,7 @@ tableStore.table.params.statisticalType = {}
|
||||
|
||||
// 柱状图数据处理
|
||||
const histogram = (res: any) => {
|
||||
console.log(123);
|
||||
|
||||
|
||||
echartList.value = {
|
||||
title: {
|
||||
|
||||
@@ -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 + '详情'
|
||||
|
||||
@@ -62,7 +62,7 @@ const tableStore = new TableStore({
|
||||
render: 'basicButton',
|
||||
|
||||
click: row => {
|
||||
console.log("🚀 ~ row:", row)
|
||||
|
||||
push({
|
||||
path: "/admin/division/detail",
|
||||
query: {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 = []
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user