diff --git a/src/api/base/energyQuantityManual.js b/src/api/base/energyQuantityManual.js index d919b5a3..a44a5d70 100644 --- a/src/api/base/energyQuantityManual.js +++ b/src/api/base/energyQuantityManual.js @@ -53,4 +53,28 @@ export function energyQuantityManualExport(data) { data: data, responseType: 'blob' }) +} +// 获得能源表名配置分页 +export function energyTablePage(data) { + return request({ + url: '/base/energy-table/page', + method: 'post', + data: data + }) +} +// 获得能源表名配置 +export function energyTableGet(query) { + return request({ + url: '/base/energy-table/get', + method: 'get', + params: query + }) +} +// 更新能源表名配置 +export function energyTableUpdate(data) { + return request({ + url: '/base/energy-table/update', + method: 'put', + data: data + }) } \ No newline at end of file diff --git a/src/store/modules/dict.js b/src/store/modules/dict.js index f2dc57ac..0d21f707 100644 --- a/src/store/modules/dict.js +++ b/src/store/modules/dict.js @@ -32,6 +32,7 @@ const actions = { } // 处理 dictValue 层级 dictDataMap[dictData.dictType].push({ + id: dictData.id, value: dictData.value, label: dictData.label, colorType: dictData.colorType, diff --git a/src/views/energy/analysis/trendAnalysis/components/lineChart.vue b/src/views/energy/analysis/trendAnalysis/components/lineChart.vue index 750dd157..ce62c734 100644 --- a/src/views/energy/analysis/trendAnalysis/components/lineChart.vue +++ b/src/views/energy/analysis/trendAnalysis/components/lineChart.vue @@ -14,7 +14,7 @@ export default { return { chartDom: '', chart: '', - chartHeight: this.tableHeight(214) - 100, + chartHeight: this.tableHeight(314), }; }, props: { @@ -37,7 +37,7 @@ export default { }, mounted() { window.addEventListener('resize', () => { - this.chartHeight = this.tableHeight(214) - 70; + this.chartHeight = this.tableHeight(314); }); }, methods: { diff --git a/src/views/energy/analysis/yoyAnalysis/components/lineChart.vue b/src/views/energy/analysis/yoyAnalysis/components/lineChart.vue index ae20f590..986470b6 100644 --- a/src/views/energy/analysis/yoyAnalysis/components/lineChart.vue +++ b/src/views/energy/analysis/yoyAnalysis/components/lineChart.vue @@ -1,102 +1,119 @@ \ No newline at end of file diff --git a/src/views/energy/analysis/yoyAnalysis/index.vue b/src/views/energy/analysis/yoyAnalysis/index.vue index a9778b84..6468afe3 100644 --- a/src/views/energy/analysis/yoyAnalysis/index.vue +++ b/src/views/energy/analysis/yoyAnalysis/index.vue @@ -1,143 +1,153 @@ \ No newline at end of file diff --git a/src/views/energy/base/energyPlcConnect/components/energyPlcParamAdd.vue b/src/views/energy/base/energyPlcConnect/components/energyPlcParamAdd.vue index 6eed9ca8..632d7a8b 100644 --- a/src/views/energy/base/energyPlcConnect/components/energyPlcParamAdd.vue +++ b/src/views/energy/base/energyPlcConnect/components/energyPlcParamAdd.vue @@ -1,132 +1,163 @@ diff --git a/src/views/energy/base/energyQuantityManual/index.vue b/src/views/energy/base/energyQuantityManual/index.vue index 036c8b83..82e82e34 100644 --- a/src/views/energy/base/energyQuantityManual/index.vue +++ b/src/views/energy/base/energyQuantityManual/index.vue @@ -1,271 +1,323 @@ diff --git a/src/views/energy/base/tableNameConfig/components/tableNameConfigUpdate.vue b/src/views/energy/base/tableNameConfig/components/tableNameConfigUpdate.vue new file mode 100644 index 00000000..3b4c3286 --- /dev/null +++ b/src/views/energy/base/tableNameConfig/components/tableNameConfigUpdate.vue @@ -0,0 +1,72 @@ + + \ No newline at end of file diff --git a/src/views/energy/base/tableNameConfig/index.vue b/src/views/energy/base/tableNameConfig/index.vue new file mode 100644 index 00000000..4c8b05ff --- /dev/null +++ b/src/views/energy/base/tableNameConfig/index.vue @@ -0,0 +1,106 @@ + + \ No newline at end of file diff --git a/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue b/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue index 8ad6b1af..934063e9 100644 --- a/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue +++ b/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue @@ -33,11 +33,28 @@ v-model="objIds" :options="objList" :props="{ checkStrictly: true, value: 'id', label: 'name' }" - popper-class="cascaderParent" @change="selectObj" clearable> + + + + + + + @@ -56,24 +73,6 @@ - - - - - - - @@ -353,8 +352,3 @@ export default { }, }; - diff --git a/src/views/energy/monitoring/energyLimit/index.vue b/src/views/energy/monitoring/energyLimit/index.vue index 851607ea..940ef488 100644 --- a/src/views/energy/monitoring/energyLimit/index.vue +++ b/src/views/energy/monitoring/energyLimit/index.vue @@ -48,7 +48,7 @@ import { deleteEnergyLimit, } from '@/api/monitoring/energyLimit'; import { getEnergyTypeListAll } from '@/api/base/energyType'; -import { getTree } from '@/api/base/factory'; +import { getTree } from '@/api/analysis/energyAnalysis'; import { publicFormatter } from '@/utils/dict'; import EnergyLimitAdd from './components/energyLimitAdd'; const tableProps = [ @@ -60,20 +60,27 @@ const tableProps = [ { prop: 'objName', label: '监控对象', + minWidth: 100, + showOverflowtooltip: true, }, { prop: 'objCode', label: '对象编码', + minWidth: 140, + showOverflowtooltip: true, }, { prop: 'tableName', label: '能源表名', filter: publicFormatter('table_name'), + minWidth: 120, + showOverflowtooltip: true, }, { prop: 'energyType', label: '能源类型', filter: publicFormatter('energy_type'), + showOverflowtooltip: true, }, { prop: 'type', @@ -104,6 +111,7 @@ export default { type: 'select', label: '能源类型', selectOptions: [], + labelField: 'labelName', param: 'energyTypeId', }, { diff --git a/src/views/energy/monitoring/energyOverlimitLog/index.vue b/src/views/energy/monitoring/energyOverlimitLog/index.vue index 4f8d24d7..8336e738 100644 --- a/src/views/energy/monitoring/energyOverlimitLog/index.vue +++ b/src/views/energy/monitoring/energyOverlimitLog/index.vue @@ -1,248 +1,271 @@ diff --git a/src/views/energy/monitoring/energyReport/index.vue b/src/views/energy/monitoring/energyReport/index.vue index acb50c9a..f814ebe4 100644 --- a/src/views/energy/monitoring/energyReport/index.vue +++ b/src/views/energy/monitoring/energyReport/index.vue @@ -56,6 +56,7 @@ const tableProps = [ { prop: 'energyType', label: '能源类型', + filter: publicFormatter('energy_type'), }, { prop: 'startNum', @@ -79,6 +80,7 @@ export default { { type: 'select', label: '能源类型', + labelField: 'labelName', selectOptions: [], param: 'energyTypeId', filterable: true, diff --git a/src/views/energy/monitoring/energyStatistics/components/energyStatisticsAdd.vue b/src/views/energy/monitoring/energyStatistics/components/energyStatisticsAdd.vue index 2d9c8440..aa796b74 100644 --- a/src/views/energy/monitoring/energyStatistics/components/energyStatisticsAdd.vue +++ b/src/views/energy/monitoring/energyStatistics/components/energyStatisticsAdd.vue @@ -1,128 +1,160 @@ diff --git a/src/views/energy/monitoring/energyStatistics/index.vue b/src/views/energy/monitoring/energyStatistics/index.vue index 1bdcb6c0..fe64b362 100644 --- a/src/views/energy/monitoring/energyStatistics/index.vue +++ b/src/views/energy/monitoring/energyStatistics/index.vue @@ -1,222 +1,254 @@