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 @@