diff --git a/.env.dev b/.env.dev index 6c794063..03228f8a 100644 --- a/.env.dev +++ b/.env.dev @@ -1,8 +1,8 @@ ### # @Author: Do not edit # @Date: 2023-08-29 09:40:39 - # @LastEditTime: 2024-04-01 08:31:57 - # @LastEditors: zhp + # @LastEditTime: 2024-04-03 11:22:19 + # @LastEditors: DY # @Description: ### # 开发环境配置 @@ -18,7 +18,7 @@ VUE_APP_TITLE = MES系统 # VUE_APP_BASE_API = 'http://192.168.2.173:48080' # VUE_APP_BASE_API = 'http://192.168.1.49:48082' # VUE_APP_BASE_API = 'http://192.168.1.8:48082' -# VUE_APP_BASE_API = 'http://192.168.4.159:48080' +# VUE_APP_BASE_API = 'http://192.168.4.173:48082' # VUE_APP_BASE_API = 'http://192.168.1.104:48082' VUE_APP_BASE_API = 'http://192.168.0.33:48082' # VUE_APP_BASE_API = 'http://192.168.1.62:48082' diff --git a/src/api/analysis/energyAnalysis.js b/src/api/analysis/energyAnalysis.js index 16e466bd..97b2e449 100644 --- a/src/api/analysis/energyAnalysis.js +++ b/src/api/analysis/energyAnalysis.js @@ -34,4 +34,22 @@ export function getQoq(data) { method: 'post', data: data }) +} + +// 获取能源设备树 +export function getTree() { + return request({ + url: '/analysis/energy-analysis/getTree', + method: 'get' + }) +} + +// 导出(走势分析) +export function exportTrend(data) { + return request({ + url: '/analysis/energy-analysis/exportTrend', + method: 'post', + responseType: 'blob', + data: data + }) } \ No newline at end of file diff --git a/src/api/base/energyType.js b/src/api/base/energyType.js index b8498ccb..0a8f605d 100644 --- a/src/api/base/energyType.js +++ b/src/api/base/energyType.js @@ -68,3 +68,4 @@ export function exportEnergyTypeExcel(query) { responseType: 'blob' }) } + diff --git a/src/mixins/lb/tableHeightMixin.js b/src/mixins/lb/tableHeightMixin.js index f8495e1b..ad23d16e 100644 --- a/src/mixins/lb/tableHeightMixin.js +++ b/src/mixins/lb/tableHeightMixin.js @@ -5,6 +5,7 @@ export default { }; }, created() { + this.tableH = this?.heightNum ? this.tableHeight(this.heightNum) : this.tableHeight(260); window.addEventListener('resize', this._setTableHeight); }, destroyed() { @@ -12,7 +13,8 @@ export default { }, methods: { _setTableHeight() { - this.tableH = this.tableHeight(260); + this.tableH = this?.heightNum ? this.tableHeight(this.heightNum) : this.tableHeight(260); + // this.tableH = this.tableHeight(260); }, }, }; diff --git a/src/utils/dict.js b/src/utils/dict.js index ddd97161..259d1a07 100644 --- a/src/utils/dict.js +++ b/src/utils/dict.js @@ -97,6 +97,8 @@ export const DICT_TYPE = { TABLE_NAME: 'table_name', METHOD: 'method', PUSH: 'push', + ENERGY_TYPE: 'energy_type', + // ============== ORDER - 订单模块 ============= ORDER_STATUS: 'order_status', @@ -117,7 +119,7 @@ export const DICT_TYPE = { // ============== GROUP - 班组模块 ============= WORK_SHOP: 'workshop', - // ============== GROUP - 质量模块 ============= + // ============== GROUP - 质量模块 ============= MATERIAL_GRADE: 'material_grade' } diff --git a/src/views/base/coreAlarmLog/index.vue b/src/views/base/coreAlarmLog/index.vue index 23b46378..c55c7d62 100644 --- a/src/views/base/coreAlarmLog/index.vue +++ b/src/views/base/coreAlarmLog/index.vue @@ -9,7 +9,8 @@ :table-props="tableProps" :page="listQuery.pageNo" :limit="listQuery.pageSize" - :table-data="tableData"> + :table-data="tableData" + :max-height="tableH"> v), tableData: [], listQuery: { - pageSize: 10, + pageSize: 20, pageNo: 1, total: 0, alarmSource: undefined, diff --git a/src/views/base/coreCustomer/add-or-updata.vue b/src/views/base/coreCustomer/add-or-updata.vue index 156fd061..caf12ba9 100644 --- a/src/views/base/coreCustomer/add-or-updata.vue +++ b/src/views/base/coreCustomer/add-or-updata.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-11-18 14:16:25 * @LastEditors: DY - * @LastEditTime: 2024-03-20 16:20:39 + * @LastEditTime: 2024-04-02 16:46:17 * @Description: -->