diff --git a/web/public/config/columnList.js b/web/public/config/columnList.js index fdba700..a8c764d 100644 --- a/web/public/config/columnList.js +++ b/web/public/config/columnList.js @@ -213,6 +213,11 @@ export const columnList = [ key: 'status', scopedSlots: { customRender: 'status' } }, + { + title: '投运时间', + dataIndex: 'touyuntime', + key: 'touyuntime' + }, { title: '场站运行模式', dataIndex: 'work_mode', diff --git a/web/src/components/ComTable.vue b/web/src/components/ComTable.vue index 53e8dd4..1a249d7 100644 --- a/web/src/components/ComTable.vue +++ b/web/src/components/ComTable.vue @@ -163,8 +163,6 @@ onMounted(async () => { data.realTableData = [...props.tableData] await nextTick() - // console.log(props.tableH, 'props.tableH'); - console.log(comtable.value.offsetHeight,'comtable.value.offsetHeight'); scroll.value = { y: comtable.value.offsetHeight - 56 } diff --git a/web/src/components/DetailInfo.vue b/web/src/components/DetailInfo.vue index 0d8130b..28f5622 100644 --- a/web/src/components/DetailInfo.vue +++ b/web/src/components/DetailInfo.vue @@ -455,7 +455,6 @@ function confirm() { resolve(true) }) .catch((error) => { - console.log('error', error) resolve(false) }) } diff --git a/web/src/components/EditCom.vue b/web/src/components/EditCom.vue index 8e7f709..bedae7e 100644 --- a/web/src/components/EditCom.vue +++ b/web/src/components/EditCom.vue @@ -176,7 +176,6 @@ export default { watch: { workModeIdSelect: { handler(n) { - console.log(n,'nnnnnnnnnnnnnnnnworkModeIdSelectn') switch (n) { case '1': @@ -371,23 +370,8 @@ export default { add: '/insertRole', edit: '/updateRole' } - const { selectedRowKeys, selectedArr } = this.$refs.treeTable[0] - console.log(selectedRowKeys, selectedArr, 'selectedRowKeys') - // const arr = selectedArr.map((item) => ({ - // ...item, - - // // 转换操作权限为布尔值 - // ...this.getPerOperBoolean(item), - // // 递归处理children - // children: item.children - // ? item.children.map((child) => ({ - // ...child, - // ...this.getPerOperBoolean(child), - - // })) - // : [] - // })) - // console.log(arr,"arr") + const { selectedRowKeys } = this.$refs.treeTable[0] + const data = this.filterTreeData(selectedRowKeys, this.$refs.treeTable[0].tableData) const arr = data.map((item) => ({ diff --git a/web/src/components/Home/Energy.vue b/web/src/components/Home/Energy.vue index 2437927..8bd47b6 100644 --- a/web/src/components/Home/Energy.vue +++ b/web/src/components/Home/Energy.vue @@ -105,7 +105,7 @@ export default { this.energyChartData.ydata[index] = { name: item.name, smooth: true, - type: 'bar', + type: 'line', barWidth: 5, itemStyle: { borderRadius: [5, 5, 0, 0], diff --git a/web/src/components/Home/Map.vue b/web/src/components/Home/Map.vue index 94214fe..7cd98a7 100644 --- a/web/src/components/Home/Map.vue +++ b/web/src/components/Home/Map.vue @@ -57,8 +57,8 @@ export default { data() { return { - center: [116.404, 39.915], // 默认中心点(北京) - zoom: 12, + center: [113.5, 33.875], // 默认中心点(河南) + zoom: 10, map: null, currentMarker: {}, showCtrModal: false, diff --git a/web/src/components/Home/Modal/EnvInfo.vue b/web/src/components/Home/Modal/EnvInfo.vue index d606995..bf617d6 100644 --- a/web/src/components/Home/Modal/EnvInfo.vue +++ b/web/src/components/Home/Modal/EnvInfo.vue @@ -96,18 +96,14 @@ export default { handler(newVal, oldVal) { if (newVal !== oldVal) { this.list.forEach((item) => { - console.log(this.propsTotal,this.propsTotal[item.key],"this.propsTotal[item.key]") if (item.key == 'coolingStatus') { - console.log(this.coolingList.find( - (e) => e.value == this.propsTotal[item.key] - )) item.value = this.coolingList.find( (e) => e.value == this.propsTotal[item.key] - ).label + ).label ||'关机' } else if (item.key == 'aircStatus') { item.value = this.aircList.map( (e) => e.value == this.propsTotal[item.key] - ).label + )[0].label||'关机' } else { item.value = this.propsTotal[item.key] } diff --git a/web/src/components/Home/Modal/OperationalInfo.vue b/web/src/components/Home/Modal/OperationalInfo.vue index f6662b7..bcbc461 100644 --- a/web/src/components/Home/Modal/OperationalInfo.vue +++ b/web/src/components/Home/Modal/OperationalInfo.vue @@ -120,7 +120,7 @@ export default { .item { height: 50%; - width: 30%; + width: 45%; // height: 47px; box-sizing: border-box; display: flex; diff --git a/web/src/components/Home/Modal/PrefabCabin.vue b/web/src/components/Home/Modal/PrefabCabin.vue index a734b5c..c07e775 100644 --- a/web/src/components/Home/Modal/PrefabCabin.vue +++ b/web/src/components/Home/Modal/PrefabCabin.vue @@ -108,7 +108,7 @@ export default { key: 'power_rated', value: 100, d: 'Kw', - label: 'PCS额定功率', + label: '额定功率', class: 'item-6' } ] diff --git a/web/src/components/Home/Modal/StatisticalInfo.vue b/web/src/components/Home/Modal/StatisticalInfo.vue index ebb641a..3bdfc53 100644 --- a/web/src/components/Home/Modal/StatisticalInfo.vue +++ b/web/src/components/Home/Modal/StatisticalInfo.vue @@ -32,7 +32,7 @@ export default { key: 'runDays', value: 26, d: '天', - label: '场站运行天数', + label: '运行天数', class: 'item-1', iconPath: require('@/assets/home/wendu.png') }, @@ -56,7 +56,7 @@ export default { key: 'incomeTotal', value: 26, d: '元', - label: '场站累计收益', + label: '累计收益', class: 'item-4', iconPath: require('@/assets/home/dianliu.png') }, diff --git a/web/src/components/Home/onLine.vue b/web/src/components/Home/onLine.vue index c9f551d..26e16c7 100644 --- a/web/src/components/Home/onLine.vue +++ b/web/src/components/Home/onLine.vue @@ -110,7 +110,6 @@ export default { } }, mounted() { - console.log(this.total,'total') }, methods: {} } diff --git a/web/src/components/TreeTable.vue b/web/src/components/TreeTable.vue index 0b53b26..b1ae5bc 100644 --- a/web/src/components/TreeTable.vue +++ b/web/src/components/TreeTable.vue @@ -152,7 +152,6 @@ export default { this.selectedRowKeys = selectedRowKeys this.selectedRows = selectedRows[selectedRows.length - 1] this.selectedArr=selectedRows - console.log(selectedRowKeys, this.selectedArr ,"selectedRowKeys") this.$emit('getSelectedIds', selectedRowKeys) }, onSelect(record, selected) { diff --git a/web/src/components/monitor/device.vue b/web/src/components/monitor/device.vue index 2edfd53..c3f4fd6 100644 --- a/web/src/components/monitor/device.vue +++ b/web/src/components/monitor/device.vue @@ -333,7 +333,6 @@ export default { } }, async openModal(item, val) { - console.log(item, '=============') this.modalComponent = val this.modalOpen = true if (val == 1) { diff --git a/web/src/utils/dealWithData.js b/web/src/utils/dealWithData.js index c85a981..afe9909 100644 --- a/web/src/utils/dealWithData.js +++ b/web/src/utils/dealWithData.js @@ -5,8 +5,6 @@ export function getRunDays(date) { const timeDiff = today - launchDate // 毫秒差 const daysRun = Math.ceil(timeDiff / (1000 * 60 * 60 * 24)) // 转换为天数 - console.log(`从 2023-01-01 到今天已经运行了 ${daysRun} 天`) - return daysRun } export function processData(data, keys) { diff --git a/web/src/views/LoginView.vue b/web/src/views/LoginView.vue index 2787e4e..aac664d 100644 --- a/web/src/views/LoginView.vue +++ b/web/src/views/LoginView.vue @@ -76,7 +76,6 @@ export default { const res = await getReq('/login',this.form ) this.loading = false - console.log(res); if (res.errcode === 0) { this.$message.success('登录成功') @@ -91,7 +90,6 @@ export default { // this.$message.error(res.message || '登录失败') // } } catch (error) { - console.log(error); this.loading = false this.$message.error('请求失败,请稍后重试') diff --git a/web/src/views/MainView.vue b/web/src/views/MainView.vue index f0413a8..47d184d 100644 --- a/web/src/views/MainView.vue +++ b/web/src/views/MainView.vue @@ -76,7 +76,6 @@ export default { $route: { immediate: true, handler(to) { - console.log(this.dynamicMenuList, 'this.dynamicMenuList') // // 更新当前激活的菜单项 // // this.currentKey = to.matched[0]?.path || '' this.menuList = this.dynamicMenuList @@ -146,7 +145,6 @@ export default { } }, generateMenu(routes) { - console.log(routes, 'routes') return routes.map((route) => ({ ...route, title: route.name, diff --git a/web/src/views/statisticalAnalysis.vue b/web/src/views/statisticalAnalysis.vue index d1bfb54..cb904ed 100644 --- a/web/src/views/statisticalAnalysis.vue +++ b/web/src/views/statisticalAnalysis.vue @@ -535,7 +535,6 @@ export default { this.startRealtimeRefresh() }, beforeUnmount() { - console.log('beforeUnmount') clearInterval(this.interval) // 组件销毁时清除定时器 }, methods: { @@ -661,30 +660,7 @@ export default { this.getStatCharts() }, - // async getEchartsList() { - // const key = activeKey || this.activeKey; - // if (!key) return; - // const currentInfo = this.echartsInfo[this.activeKey] - - // const query = { - // ...this.paramsDate, - // category: this.activeKey - // } - // try { - // const res = await getReq('/queryStatDayList', query) - // if (res.errcode === 0) { - // this.echartsInfo[this.activeKey].chartData = res.data - // console.log( - // this.echartsInfo[this.activeKey].chartData, - // ' this.echartsInfo[this.activeKey].chartData' - // ) - // } else { - // throw res - // } - // } catch (error) { - // this.echartsInfo[this.activeKey].chartData = {} - // } - // }, + async getStatCharts() { const currentInfo = this.echartsInfo[this.activeKey] const query = { @@ -695,12 +671,7 @@ export default { try { const res = await getReq('/queryStatCharts', query) if (res.errcode === 0) { - this.echartsInfo[this.activeKey].chartDatav = { - V: [100.0, 100.0, 100.0], // 电压曲线 - I: [10.0, 10.0, 10.0], // 电流曲线 - P: [1000.0, 1000.0, 1000.0] // 功率曲线 - } - + this.echartsInfo[this.activeKey].chartDatav = res.data // x轴0点到24点 } else { throw res @@ -714,75 +685,7 @@ export default { } } - // async getTableList() { - // const currentInfo = this.tableList[this.activeKey] - // const query = { - // ...this.paramsDate, - // category: this.activeKey, - // page_size: currentInfo.pageOption.pageSize, - // pageNumber: currentInfo.pageOption.page - // } - // try { - // const res = await getReq('/queryStatDayList', query) - // if (res.errcode === 0) { - // this.tableList[this.activeKey].pageOption.tableData = res.data - // this.tableList[this.activeKey].pageOption.pageOption = { - // page: res.data.page, - // pageSize: res.data.page_size, - // count: res.data.count - // } - // } else { - // throw res - // } - // } catch (error) { - // this.tableList[this.activeKey].pageOption.tableData = [ - // { - // key1: '1515151515', - // key2: '设备1111', - // key3: '类型', - // key4: '电量', - // key5: '时长', - // key6: '时长', - // key7: 'dianl', - // key8: '时长', - // key9: '时长11' - // }, - // { - // key1: '1515151515', - // key2: '设备1111', - // key3: '类型', - // key4: '电量', - // key5: '时长', - // key6: '时长', - // key7: 'dianl', - // key8: '时长', - // key9: '时长11' - // }, - // { - // key1: '1515151515', - // key2: '设备1111', - // key3: '类型', - // key4: '电量', - // key5: '时长', - // key6: '时长', - // key7: 'dianl', - // key8: '时长', - // key9: '时长11' - // }, - // { - // key1: '1515151515', - // key2: '设备1111', - // key3: '类型', - // key4: '电量', - // key5: '时长', - // key6: '时长', - // key7: 'dianl', - // key8: '时长', - // key9: '时长11' - // } - // ] - // } - // } + } } diff --git a/web/src/views/sub/Home.vue b/web/src/views/sub/Home.vue index 5754b6b..b8dd799 100644 --- a/web/src/views/sub/Home.vue +++ b/web/src/views/sub/Home.vue @@ -117,7 +117,22 @@ export default { this.getStatDayList(1), this.getStatDayList(2), this.getStatDayList(3) - ]) + ]).then((r)=>{ + if ( + this.deviceInfo.energy.length && + this.deviceInfo.charge.length && + this.deviceInfo.pv.length + ) { + const newArr = this.mergedArray( + this.deviceInfo.energy, + this.deviceInfo.charge, + this.deviceInfo.pv + ) + this.deviceInfo.alarm = newArr + } + console.log(r,'11111') + + }) // this.showFlag=true }, @@ -189,6 +204,7 @@ export default { // 示例:获取7天前的日期 // 查询场站日统计信息 async getStatDayList(category) { + console.log(category,"category") try { // station_id: 场站ID // category: 类别: 1:储能设备,2:充电设备,3:光伏设备 @@ -205,18 +221,7 @@ export default { if (res.errcode === 0) { this.list.forEach((item) => { this.deviceInfo[arr[category]] = res.data - if ( - this.deviceInfo.energy.length && - this.deviceInfo.charge.length && - this.deviceInfo.pv.length - ) { - const newArr = this.mergedArray( - this.deviceInfo.energy, - this.deviceInfo.charge, - this.deviceInfo.pv - ) - this.deviceInfo.alarm = newArr - } + }) } else { throw res diff --git a/web/src/views/system/permission.vue b/web/src/views/system/permission.vue index aaee665..8728804 100644 --- a/web/src/views/system/permission.vue +++ b/web/src/views/system/permission.vue @@ -17,11 +17,13 @@ > @@ -63,7 +66,7 @@ export default { data() { return { tableOption: { - select:false + select: false }, formModal: false, formState: {}, @@ -161,11 +164,9 @@ export default { } catch (error) { //统一处理报错提示 this.$refs.comTable.loading = false - } }, operateForm(type, record = {}) { - console.log(record, record.id, 'rrrrrrrrrr') this.formStatus = type switch (type) { case 'add': @@ -217,7 +218,6 @@ export default { } }, onCancel() { - // console.log("Cancel"); }, class: 'test' }) diff --git a/web/src/views/system/user.vue b/web/src/views/system/user.vue index 9d713f7..c92a283 100644 --- a/web/src/views/system/user.vue +++ b/web/src/views/system/user.vue @@ -120,7 +120,6 @@ export default { } }, operateForm(type, record = {}) { - console.log(record,record.id,'rrrrrrrrrr') this.formStatus = type switch (type) { case 'add': @@ -172,7 +171,6 @@ export default { } }, onCancel() { - // console.log("Cancel"); }, class: 'test' })