From da36f860ca60924c0032ceec6df4b582728aec7e Mon Sep 17 00:00:00 2001 From: jiangyinzhi <4617248933@YFZMY.COM> Date: Tue, 24 Sep 2024 23:10:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/api.js | 10 ++++- src/store/module/user.js | 2 +- src/views/comment/components/report.vue | 6 ++- src/views/energyEfficiency/clockIn/index.vue | 6 ++- .../energyEfficiency/constructionInfo.vue | 6 --- src/views/energyEfficiency/taskManage.vue | 38 ++++++++++++++++++- src/views/enterprise/addEditMsg.vue | 4 +- .../components/distributionSystem.vue | 20 +++++++++- src/views/industrialReport/partialReport.vue | 6 ++- 9 files changed, 82 insertions(+), 16 deletions(-) diff --git a/src/api/api.js b/src/api/api.js index b64b61d..6d9cb9d 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -277,4 +277,12 @@ export function getPositionData(params) { method: 'POST', data: params }) -} \ No newline at end of file +} + +// 获取配电信息 +export function getNxzdPower(params) { + return myAxios({ + url: `${sx}/energy-effcicency-net-service/nxzdUseEnergyEquipNet/getNxzdPower?customerId=${params}`, + method: 'get', + }) +} diff --git a/src/store/module/user.js b/src/store/module/user.js index c251e4d..b5d9293 100644 --- a/src/store/module/user.js +++ b/src/store/module/user.js @@ -36,7 +36,7 @@ const getDefaultState = () => ({ path: '' }, cityType: true, //外观图片必填 - cityIsNx: process.env.VUE_APP_CITY_TYPE=='sx', //位置必填 + cityIsNx: process.env.VUE_APP_CITY_TYPE=='nx', //宁夏特供-公共机构配电获取 imageRecognition: process.env.VUE_APP_CITY_TYPE=='ah', // 图像识别 validate: process.env.VUE_APP_CITY_TYPE=='ah', // 大区间校验 }) diff --git a/src/views/comment/components/report.vue b/src/views/comment/components/report.vue index 81c6947..32c414a 100644 --- a/src/views/comment/components/report.vue +++ b/src/views/comment/components/report.vue @@ -106,6 +106,7 @@ import { import { pushWebviewVC } from '@/utils/dsbridge.js' import { Notify } from 'vant' +import {debounce} from '@/utils/common.js' // import * as echarts from 'echarts' import { mapMutations } from 'vuex' @@ -415,7 +416,10 @@ export default { this.$router.push({path: '/energyReport'}) }, // 重新生成 - async generateReport() { + generateReport:debounce(function () { + this.getGenerateReport() + }, 5000, true), + async getGenerateReport() { let data = { customerId: this.energyData.customerId, taskId: this.energyData.taskId diff --git a/src/views/energyEfficiency/clockIn/index.vue b/src/views/energyEfficiency/clockIn/index.vue index 75270cc..b6c413e 100644 --- a/src/views/energyEfficiency/clockIn/index.vue +++ b/src/views/energyEfficiency/clockIn/index.vue @@ -1,6 +1,6 @@