diff --git a/index.html b/index.html index 0b85aab..9448926 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - + <%= title %> <%- copyrightScript %> diff --git a/index.html b/index.html index 0b85aab..9448926 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - + <%= title %> <%- copyrightScript %> diff --git a/src/api/api/energy/count.ts b/src/api/api/energy/count.ts new file mode 100644 index 0000000..3958071 --- /dev/null +++ b/src/api/api/energy/count.ts @@ -0,0 +1,17 @@ +import request from '@/api/index' +// 综合能耗TOP10排行 +export function getEnergyConsumptionRank(params: any) { + return request({ + url: '/energy/carbonData/top', + method: 'get', + params, + }) +} +// 占比分析 +export function getEnergyConsumptionRatio(params: any) { + return request({ + url: '/energy/carbonData/proportion-analysis', + method: 'get', + params, + }) +} diff --git a/index.html b/index.html index 0b85aab..9448926 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - + <%= title %> <%- copyrightScript %> diff --git a/src/api/api/energy/count.ts b/src/api/api/energy/count.ts new file mode 100644 index 0000000..3958071 --- /dev/null +++ b/src/api/api/energy/count.ts @@ -0,0 +1,17 @@ +import request from '@/api/index' +// 综合能耗TOP10排行 +export function getEnergyConsumptionRank(params: any) { + return request({ + url: '/energy/carbonData/top', + method: 'get', + params, + }) +} +// 占比分析 +export function getEnergyConsumptionRatio(params: any) { + return request({ + url: '/energy/carbonData/proportion-analysis', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/data.ts b/src/api/api/energy/data.ts new file mode 100644 index 0000000..c4dc737 --- /dev/null +++ b/src/api/api/energy/data.ts @@ -0,0 +1,50 @@ +import request from '@/api/index' +// 综合能耗管理数据列表 +export function getEnergyConsumptionList(params: any) { + return request({ + url: '/energy/carbonData/listPage', + method: 'get', + params, + }) +} +// 删除 +export function removeEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/delete', + method: 'get', + params, + }) +} +// 批量删除 +export function batchRemoveEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/batchDelete', + method: 'post', + data, + }) +} +// 导出 +export function exportEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/export', + method: 'get', + params, + responseType: 'blob', + }) +} +// 导入 +export function importEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/import', + method: 'post', + data, + }) +} +// 详情 +export function detailEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/detail', + method: 'get', + params, + }) +} diff --git a/index.html b/index.html index 0b85aab..9448926 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - + <%= title %> <%- copyrightScript %> diff --git a/src/api/api/energy/count.ts b/src/api/api/energy/count.ts new file mode 100644 index 0000000..3958071 --- /dev/null +++ b/src/api/api/energy/count.ts @@ -0,0 +1,17 @@ +import request from '@/api/index' +// 综合能耗TOP10排行 +export function getEnergyConsumptionRank(params: any) { + return request({ + url: '/energy/carbonData/top', + method: 'get', + params, + }) +} +// 占比分析 +export function getEnergyConsumptionRatio(params: any) { + return request({ + url: '/energy/carbonData/proportion-analysis', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/data.ts b/src/api/api/energy/data.ts new file mode 100644 index 0000000..c4dc737 --- /dev/null +++ b/src/api/api/energy/data.ts @@ -0,0 +1,50 @@ +import request from '@/api/index' +// 综合能耗管理数据列表 +export function getEnergyConsumptionList(params: any) { + return request({ + url: '/energy/carbonData/listPage', + method: 'get', + params, + }) +} +// 删除 +export function removeEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/delete', + method: 'get', + params, + }) +} +// 批量删除 +export function batchRemoveEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/batchDelete', + method: 'post', + data, + }) +} +// 导出 +export function exportEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/export', + method: 'get', + params, + responseType: 'blob', + }) +} +// 导入 +export function importEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/import', + method: 'post', + data, + }) +} +// 详情 +export function detailEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/detail', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/setup.ts b/src/api/api/energy/setup.ts new file mode 100644 index 0000000..ca43a6e --- /dev/null +++ b/src/api/api/energy/setup.ts @@ -0,0 +1,26 @@ +import request from '@/api/index' +// 因子设置列表 +export function getSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/list', + method: 'get', + params, + }) +} +// 详情 +export function detailSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/detail', + method: 'get', + params, + }) +} + +// 编辑 +export function updateSetUpList(data: any) { + return request({ + url: '/energy/factorInfo/update', + method: 'post', + data, + }) +} diff --git a/index.html b/index.html index 0b85aab..9448926 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - + <%= title %> <%- copyrightScript %> diff --git a/src/api/api/energy/count.ts b/src/api/api/energy/count.ts new file mode 100644 index 0000000..3958071 --- /dev/null +++ b/src/api/api/energy/count.ts @@ -0,0 +1,17 @@ +import request from '@/api/index' +// 综合能耗TOP10排行 +export function getEnergyConsumptionRank(params: any) { + return request({ + url: '/energy/carbonData/top', + method: 'get', + params, + }) +} +// 占比分析 +export function getEnergyConsumptionRatio(params: any) { + return request({ + url: '/energy/carbonData/proportion-analysis', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/data.ts b/src/api/api/energy/data.ts new file mode 100644 index 0000000..c4dc737 --- /dev/null +++ b/src/api/api/energy/data.ts @@ -0,0 +1,50 @@ +import request from '@/api/index' +// 综合能耗管理数据列表 +export function getEnergyConsumptionList(params: any) { + return request({ + url: '/energy/carbonData/listPage', + method: 'get', + params, + }) +} +// 删除 +export function removeEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/delete', + method: 'get', + params, + }) +} +// 批量删除 +export function batchRemoveEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/batchDelete', + method: 'post', + data, + }) +} +// 导出 +export function exportEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/export', + method: 'get', + params, + responseType: 'blob', + }) +} +// 导入 +export function importEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/import', + method: 'post', + data, + }) +} +// 详情 +export function detailEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/detail', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/setup.ts b/src/api/api/energy/setup.ts new file mode 100644 index 0000000..ca43a6e --- /dev/null +++ b/src/api/api/energy/setup.ts @@ -0,0 +1,26 @@ +import request from '@/api/index' +// 因子设置列表 +export function getSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/list', + method: 'get', + params, + }) +} +// 详情 +export function detailSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/detail', + method: 'get', + params, + }) +} + +// 编辑 +export function updateSetUpList(data: any) { + return request({ + url: '/energy/factorInfo/update', + method: 'post', + data, + }) +} diff --git a/src/assets/icons/icon-delete.svg b/src/assets/icons/icon-delete.svg new file mode 100644 index 0000000..736c8e6 --- /dev/null +++ b/src/assets/icons/icon-delete.svg @@ -0,0 +1 @@ + diff --git a/index.html b/index.html index 0b85aab..9448926 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - + <%= title %> <%- copyrightScript %> diff --git a/src/api/api/energy/count.ts b/src/api/api/energy/count.ts new file mode 100644 index 0000000..3958071 --- /dev/null +++ b/src/api/api/energy/count.ts @@ -0,0 +1,17 @@ +import request from '@/api/index' +// 综合能耗TOP10排行 +export function getEnergyConsumptionRank(params: any) { + return request({ + url: '/energy/carbonData/top', + method: 'get', + params, + }) +} +// 占比分析 +export function getEnergyConsumptionRatio(params: any) { + return request({ + url: '/energy/carbonData/proportion-analysis', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/data.ts b/src/api/api/energy/data.ts new file mode 100644 index 0000000..c4dc737 --- /dev/null +++ b/src/api/api/energy/data.ts @@ -0,0 +1,50 @@ +import request from '@/api/index' +// 综合能耗管理数据列表 +export function getEnergyConsumptionList(params: any) { + return request({ + url: '/energy/carbonData/listPage', + method: 'get', + params, + }) +} +// 删除 +export function removeEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/delete', + method: 'get', + params, + }) +} +// 批量删除 +export function batchRemoveEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/batchDelete', + method: 'post', + data, + }) +} +// 导出 +export function exportEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/export', + method: 'get', + params, + responseType: 'blob', + }) +} +// 导入 +export function importEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/import', + method: 'post', + data, + }) +} +// 详情 +export function detailEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/detail', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/setup.ts b/src/api/api/energy/setup.ts new file mode 100644 index 0000000..ca43a6e --- /dev/null +++ b/src/api/api/energy/setup.ts @@ -0,0 +1,26 @@ +import request from '@/api/index' +// 因子设置列表 +export function getSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/list', + method: 'get', + params, + }) +} +// 详情 +export function detailSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/detail', + method: 'get', + params, + }) +} + +// 编辑 +export function updateSetUpList(data: any) { + return request({ + url: '/energy/factorInfo/update', + method: 'post', + data, + }) +} diff --git a/src/assets/icons/icon-delete.svg b/src/assets/icons/icon-delete.svg new file mode 100644 index 0000000..736c8e6 --- /dev/null +++ b/src/assets/icons/icon-delete.svg @@ -0,0 +1 @@ + diff --git a/src/assets/icons/icon-energy.svg b/src/assets/icons/icon-energy.svg new file mode 100644 index 0000000..4d2900b --- /dev/null +++ b/src/assets/icons/icon-energy.svg @@ -0,0 +1 @@ + diff --git a/index.html b/index.html index 0b85aab..9448926 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - + <%= title %> <%- copyrightScript %> diff --git a/src/api/api/energy/count.ts b/src/api/api/energy/count.ts new file mode 100644 index 0000000..3958071 --- /dev/null +++ b/src/api/api/energy/count.ts @@ -0,0 +1,17 @@ +import request from '@/api/index' +// 综合能耗TOP10排行 +export function getEnergyConsumptionRank(params: any) { + return request({ + url: '/energy/carbonData/top', + method: 'get', + params, + }) +} +// 占比分析 +export function getEnergyConsumptionRatio(params: any) { + return request({ + url: '/energy/carbonData/proportion-analysis', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/data.ts b/src/api/api/energy/data.ts new file mode 100644 index 0000000..c4dc737 --- /dev/null +++ b/src/api/api/energy/data.ts @@ -0,0 +1,50 @@ +import request from '@/api/index' +// 综合能耗管理数据列表 +export function getEnergyConsumptionList(params: any) { + return request({ + url: '/energy/carbonData/listPage', + method: 'get', + params, + }) +} +// 删除 +export function removeEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/delete', + method: 'get', + params, + }) +} +// 批量删除 +export function batchRemoveEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/batchDelete', + method: 'post', + data, + }) +} +// 导出 +export function exportEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/export', + method: 'get', + params, + responseType: 'blob', + }) +} +// 导入 +export function importEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/import', + method: 'post', + data, + }) +} +// 详情 +export function detailEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/detail', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/setup.ts b/src/api/api/energy/setup.ts new file mode 100644 index 0000000..ca43a6e --- /dev/null +++ b/src/api/api/energy/setup.ts @@ -0,0 +1,26 @@ +import request from '@/api/index' +// 因子设置列表 +export function getSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/list', + method: 'get', + params, + }) +} +// 详情 +export function detailSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/detail', + method: 'get', + params, + }) +} + +// 编辑 +export function updateSetUpList(data: any) { + return request({ + url: '/energy/factorInfo/update', + method: 'post', + data, + }) +} diff --git a/src/assets/icons/icon-delete.svg b/src/assets/icons/icon-delete.svg new file mode 100644 index 0000000..736c8e6 --- /dev/null +++ b/src/assets/icons/icon-delete.svg @@ -0,0 +1 @@ + diff --git a/src/assets/icons/icon-energy.svg b/src/assets/icons/icon-energy.svg new file mode 100644 index 0000000..4d2900b --- /dev/null +++ b/src/assets/icons/icon-energy.svg @@ -0,0 +1 @@ + diff --git a/src/components.d.ts b/src/components.d.ts index 4c4a4e3..9ee0c9f 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map/index copy.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] diff --git a/index.html b/index.html index 0b85aab..9448926 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - + <%= title %> <%- copyrightScript %> diff --git a/src/api/api/energy/count.ts b/src/api/api/energy/count.ts new file mode 100644 index 0000000..3958071 --- /dev/null +++ b/src/api/api/energy/count.ts @@ -0,0 +1,17 @@ +import request from '@/api/index' +// 综合能耗TOP10排行 +export function getEnergyConsumptionRank(params: any) { + return request({ + url: '/energy/carbonData/top', + method: 'get', + params, + }) +} +// 占比分析 +export function getEnergyConsumptionRatio(params: any) { + return request({ + url: '/energy/carbonData/proportion-analysis', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/data.ts b/src/api/api/energy/data.ts new file mode 100644 index 0000000..c4dc737 --- /dev/null +++ b/src/api/api/energy/data.ts @@ -0,0 +1,50 @@ +import request from '@/api/index' +// 综合能耗管理数据列表 +export function getEnergyConsumptionList(params: any) { + return request({ + url: '/energy/carbonData/listPage', + method: 'get', + params, + }) +} +// 删除 +export function removeEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/delete', + method: 'get', + params, + }) +} +// 批量删除 +export function batchRemoveEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/batchDelete', + method: 'post', + data, + }) +} +// 导出 +export function exportEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/export', + method: 'get', + params, + responseType: 'blob', + }) +} +// 导入 +export function importEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/import', + method: 'post', + data, + }) +} +// 详情 +export function detailEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/detail', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/setup.ts b/src/api/api/energy/setup.ts new file mode 100644 index 0000000..ca43a6e --- /dev/null +++ b/src/api/api/energy/setup.ts @@ -0,0 +1,26 @@ +import request from '@/api/index' +// 因子设置列表 +export function getSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/list', + method: 'get', + params, + }) +} +// 详情 +export function detailSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/detail', + method: 'get', + params, + }) +} + +// 编辑 +export function updateSetUpList(data: any) { + return request({ + url: '/energy/factorInfo/update', + method: 'post', + data, + }) +} diff --git a/src/assets/icons/icon-delete.svg b/src/assets/icons/icon-delete.svg new file mode 100644 index 0000000..736c8e6 --- /dev/null +++ b/src/assets/icons/icon-delete.svg @@ -0,0 +1 @@ + diff --git a/src/assets/icons/icon-energy.svg b/src/assets/icons/icon-energy.svg new file mode 100644 index 0000000..4d2900b --- /dev/null +++ b/src/assets/icons/icon-energy.svg @@ -0,0 +1 @@ + diff --git a/src/components.d.ts b/src/components.d.ts index 4c4a4e3..9ee0c9f 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map/index copy.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] diff --git a/src/components/NormalTable/index.vue b/src/components/NormalTable/index.vue index 985d230..3b65c2c 100644 --- a/src/components/NormalTable/index.vue +++ b/src/components/NormalTable/index.vue @@ -187,7 +187,7 @@ ref="table" v-loading="listLoading" :data="data" - height="height" + :height="height" border stripe :size="size" diff --git a/index.html b/index.html index 0b85aab..9448926 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - + <%= title %> <%- copyrightScript %> diff --git a/src/api/api/energy/count.ts b/src/api/api/energy/count.ts new file mode 100644 index 0000000..3958071 --- /dev/null +++ b/src/api/api/energy/count.ts @@ -0,0 +1,17 @@ +import request from '@/api/index' +// 综合能耗TOP10排行 +export function getEnergyConsumptionRank(params: any) { + return request({ + url: '/energy/carbonData/top', + method: 'get', + params, + }) +} +// 占比分析 +export function getEnergyConsumptionRatio(params: any) { + return request({ + url: '/energy/carbonData/proportion-analysis', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/data.ts b/src/api/api/energy/data.ts new file mode 100644 index 0000000..c4dc737 --- /dev/null +++ b/src/api/api/energy/data.ts @@ -0,0 +1,50 @@ +import request from '@/api/index' +// 综合能耗管理数据列表 +export function getEnergyConsumptionList(params: any) { + return request({ + url: '/energy/carbonData/listPage', + method: 'get', + params, + }) +} +// 删除 +export function removeEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/delete', + method: 'get', + params, + }) +} +// 批量删除 +export function batchRemoveEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/batchDelete', + method: 'post', + data, + }) +} +// 导出 +export function exportEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/export', + method: 'get', + params, + responseType: 'blob', + }) +} +// 导入 +export function importEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/import', + method: 'post', + data, + }) +} +// 详情 +export function detailEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/detail', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/setup.ts b/src/api/api/energy/setup.ts new file mode 100644 index 0000000..ca43a6e --- /dev/null +++ b/src/api/api/energy/setup.ts @@ -0,0 +1,26 @@ +import request from '@/api/index' +// 因子设置列表 +export function getSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/list', + method: 'get', + params, + }) +} +// 详情 +export function detailSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/detail', + method: 'get', + params, + }) +} + +// 编辑 +export function updateSetUpList(data: any) { + return request({ + url: '/energy/factorInfo/update', + method: 'post', + data, + }) +} diff --git a/src/assets/icons/icon-delete.svg b/src/assets/icons/icon-delete.svg new file mode 100644 index 0000000..736c8e6 --- /dev/null +++ b/src/assets/icons/icon-delete.svg @@ -0,0 +1 @@ + diff --git a/src/assets/icons/icon-energy.svg b/src/assets/icons/icon-energy.svg new file mode 100644 index 0000000..4d2900b --- /dev/null +++ b/src/assets/icons/icon-energy.svg @@ -0,0 +1 @@ + diff --git a/src/components.d.ts b/src/components.d.ts index 4c4a4e3..9ee0c9f 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map/index copy.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] diff --git a/src/components/NormalTable/index.vue b/src/components/NormalTable/index.vue index 985d230..3b65c2c 100644 --- a/src/components/NormalTable/index.vue +++ b/src/components/NormalTable/index.vue @@ -187,7 +187,7 @@ ref="table" v-loading="listLoading" :data="data" - height="height" + :height="height" border stripe :size="size" diff --git a/src/router/modules/energyConsumption.ts b/src/router/modules/energyConsumption.ts new file mode 100644 index 0000000..f9a2c91 --- /dev/null +++ b/src/router/modules/energyConsumption.ts @@ -0,0 +1,96 @@ +// 综合能耗管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/energy', + component: Layout, + redirect: '/energyData', + name: 'Energy', + meta: { + title: '综合能耗管理', + icon: 'ep:key', + auth: '/energy', + }, + children: [ + { + path: '/energyData', + component: Layout, + redirect: '/energyData/list', + name: 'EnergyData', + meta: { + title: '数据列表', + icon: 'ep:key', + auth: '/energy/data', + }, + children: [ + { + path: 'list', + name: 'LDevice', + component: () => import('@/views/energyConsumption/data/index.vue'), + meta: { + title: '设备管理', + auth: '/energy/data', + sidebar: false, + breadcrumb: true, + activeMenu: '/energyData', + }, + }, + ], + }, + { + path: '/factor', + component: Layout, + redirect: '/factor/setup', + name: 'Factor', + meta: { + title: '因子设置', + icon: 'ep:key', + auth: '/energy/setup', + }, + children: [ + { + path: 'setup', + name: 'Setup', + component: () => import('@/views/energyConsumption/setup/index.vue'), + meta: { + title: '因子设置', + auth: '/energy/setup', + sidebar: false, + breadcrumb: true, + activeMenu: '/factor', + }, + }, + ], + }, + { + path: '/count', + component: Layout, + redirect: '/count/data', + name: 'CountData', + meta: { + title: '数据统计', + icon: 'ep:key', + auth: '/energy/count', + }, + children: [ + { + path: 'data', + name: 'Data', + component: () => import('@/views/energyConsumption/count/index.vue'), + meta: { + title: '数据统计', + auth: '/energy/count', + sidebar: false, + breadcrumb: true, + activeMenu: '/count', + }, + }, + ], + }, + ], + }, +] + +export default routes diff --git a/index.html b/index.html index 0b85aab..9448926 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - + <%= title %> <%- copyrightScript %> diff --git a/src/api/api/energy/count.ts b/src/api/api/energy/count.ts new file mode 100644 index 0000000..3958071 --- /dev/null +++ b/src/api/api/energy/count.ts @@ -0,0 +1,17 @@ +import request from '@/api/index' +// 综合能耗TOP10排行 +export function getEnergyConsumptionRank(params: any) { + return request({ + url: '/energy/carbonData/top', + method: 'get', + params, + }) +} +// 占比分析 +export function getEnergyConsumptionRatio(params: any) { + return request({ + url: '/energy/carbonData/proportion-analysis', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/data.ts b/src/api/api/energy/data.ts new file mode 100644 index 0000000..c4dc737 --- /dev/null +++ b/src/api/api/energy/data.ts @@ -0,0 +1,50 @@ +import request from '@/api/index' +// 综合能耗管理数据列表 +export function getEnergyConsumptionList(params: any) { + return request({ + url: '/energy/carbonData/listPage', + method: 'get', + params, + }) +} +// 删除 +export function removeEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/delete', + method: 'get', + params, + }) +} +// 批量删除 +export function batchRemoveEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/batchDelete', + method: 'post', + data, + }) +} +// 导出 +export function exportEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/export', + method: 'get', + params, + responseType: 'blob', + }) +} +// 导入 +export function importEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/import', + method: 'post', + data, + }) +} +// 详情 +export function detailEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/detail', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/setup.ts b/src/api/api/energy/setup.ts new file mode 100644 index 0000000..ca43a6e --- /dev/null +++ b/src/api/api/energy/setup.ts @@ -0,0 +1,26 @@ +import request from '@/api/index' +// 因子设置列表 +export function getSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/list', + method: 'get', + params, + }) +} +// 详情 +export function detailSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/detail', + method: 'get', + params, + }) +} + +// 编辑 +export function updateSetUpList(data: any) { + return request({ + url: '/energy/factorInfo/update', + method: 'post', + data, + }) +} diff --git a/src/assets/icons/icon-delete.svg b/src/assets/icons/icon-delete.svg new file mode 100644 index 0000000..736c8e6 --- /dev/null +++ b/src/assets/icons/icon-delete.svg @@ -0,0 +1 @@ + diff --git a/src/assets/icons/icon-energy.svg b/src/assets/icons/icon-energy.svg new file mode 100644 index 0000000..4d2900b --- /dev/null +++ b/src/assets/icons/icon-energy.svg @@ -0,0 +1 @@ + diff --git a/src/components.d.ts b/src/components.d.ts index 4c4a4e3..9ee0c9f 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map/index copy.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] diff --git a/src/components/NormalTable/index.vue b/src/components/NormalTable/index.vue index 985d230..3b65c2c 100644 --- a/src/components/NormalTable/index.vue +++ b/src/components/NormalTable/index.vue @@ -187,7 +187,7 @@ ref="table" v-loading="listLoading" :data="data" - height="height" + :height="height" border stripe :size="size" diff --git a/src/router/modules/energyConsumption.ts b/src/router/modules/energyConsumption.ts new file mode 100644 index 0000000..f9a2c91 --- /dev/null +++ b/src/router/modules/energyConsumption.ts @@ -0,0 +1,96 @@ +// 综合能耗管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/energy', + component: Layout, + redirect: '/energyData', + name: 'Energy', + meta: { + title: '综合能耗管理', + icon: 'ep:key', + auth: '/energy', + }, + children: [ + { + path: '/energyData', + component: Layout, + redirect: '/energyData/list', + name: 'EnergyData', + meta: { + title: '数据列表', + icon: 'ep:key', + auth: '/energy/data', + }, + children: [ + { + path: 'list', + name: 'LDevice', + component: () => import('@/views/energyConsumption/data/index.vue'), + meta: { + title: '设备管理', + auth: '/energy/data', + sidebar: false, + breadcrumb: true, + activeMenu: '/energyData', + }, + }, + ], + }, + { + path: '/factor', + component: Layout, + redirect: '/factor/setup', + name: 'Factor', + meta: { + title: '因子设置', + icon: 'ep:key', + auth: '/energy/setup', + }, + children: [ + { + path: 'setup', + name: 'Setup', + component: () => import('@/views/energyConsumption/setup/index.vue'), + meta: { + title: '因子设置', + auth: '/energy/setup', + sidebar: false, + breadcrumb: true, + activeMenu: '/factor', + }, + }, + ], + }, + { + path: '/count', + component: Layout, + redirect: '/count/data', + name: 'CountData', + meta: { + title: '数据统计', + icon: 'ep:key', + auth: '/energy/count', + }, + children: [ + { + path: 'data', + name: 'Data', + component: () => import('@/views/energyConsumption/count/index.vue'), + meta: { + title: '数据统计', + auth: '/energy/count', + sidebar: false, + breadcrumb: true, + activeMenu: '/count', + }, + }, + ], + }, + ], + }, +] + +export default routes diff --git a/src/router/routes.ts b/src/router/routes.ts index 7f746e8..05bbf5d 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -14,6 +14,7 @@ import environment from './modules/environment' // import electricityRoute from './modules/electricity' import countRoute from './modules/carbonCount' +import energyConsumption from './modules/energyConsumption' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' // 固定路由(默认路由) @@ -188,6 +189,16 @@ }, { meta: { + title: '综合能耗管理', + icon: '', + auth: '/energy', + }, + children: [ + ...energyConsumption, + ], + }, + { + meta: { title: '电力碳核算', icon: '', auth: '/count', diff --git a/index.html b/index.html index 0b85aab..9448926 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - + <%= title %> <%- copyrightScript %> diff --git a/src/api/api/energy/count.ts b/src/api/api/energy/count.ts new file mode 100644 index 0000000..3958071 --- /dev/null +++ b/src/api/api/energy/count.ts @@ -0,0 +1,17 @@ +import request from '@/api/index' +// 综合能耗TOP10排行 +export function getEnergyConsumptionRank(params: any) { + return request({ + url: '/energy/carbonData/top', + method: 'get', + params, + }) +} +// 占比分析 +export function getEnergyConsumptionRatio(params: any) { + return request({ + url: '/energy/carbonData/proportion-analysis', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/data.ts b/src/api/api/energy/data.ts new file mode 100644 index 0000000..c4dc737 --- /dev/null +++ b/src/api/api/energy/data.ts @@ -0,0 +1,50 @@ +import request from '@/api/index' +// 综合能耗管理数据列表 +export function getEnergyConsumptionList(params: any) { + return request({ + url: '/energy/carbonData/listPage', + method: 'get', + params, + }) +} +// 删除 +export function removeEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/delete', + method: 'get', + params, + }) +} +// 批量删除 +export function batchRemoveEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/batchDelete', + method: 'post', + data, + }) +} +// 导出 +export function exportEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/export', + method: 'get', + params, + responseType: 'blob', + }) +} +// 导入 +export function importEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/import', + method: 'post', + data, + }) +} +// 详情 +export function detailEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/detail', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/setup.ts b/src/api/api/energy/setup.ts new file mode 100644 index 0000000..ca43a6e --- /dev/null +++ b/src/api/api/energy/setup.ts @@ -0,0 +1,26 @@ +import request from '@/api/index' +// 因子设置列表 +export function getSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/list', + method: 'get', + params, + }) +} +// 详情 +export function detailSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/detail', + method: 'get', + params, + }) +} + +// 编辑 +export function updateSetUpList(data: any) { + return request({ + url: '/energy/factorInfo/update', + method: 'post', + data, + }) +} diff --git a/src/assets/icons/icon-delete.svg b/src/assets/icons/icon-delete.svg new file mode 100644 index 0000000..736c8e6 --- /dev/null +++ b/src/assets/icons/icon-delete.svg @@ -0,0 +1 @@ + diff --git a/src/assets/icons/icon-energy.svg b/src/assets/icons/icon-energy.svg new file mode 100644 index 0000000..4d2900b --- /dev/null +++ b/src/assets/icons/icon-energy.svg @@ -0,0 +1 @@ + diff --git a/src/components.d.ts b/src/components.d.ts index 4c4a4e3..9ee0c9f 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map/index copy.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] diff --git a/src/components/NormalTable/index.vue b/src/components/NormalTable/index.vue index 985d230..3b65c2c 100644 --- a/src/components/NormalTable/index.vue +++ b/src/components/NormalTable/index.vue @@ -187,7 +187,7 @@ ref="table" v-loading="listLoading" :data="data" - height="height" + :height="height" border stripe :size="size" diff --git a/src/router/modules/energyConsumption.ts b/src/router/modules/energyConsumption.ts new file mode 100644 index 0000000..f9a2c91 --- /dev/null +++ b/src/router/modules/energyConsumption.ts @@ -0,0 +1,96 @@ +// 综合能耗管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/energy', + component: Layout, + redirect: '/energyData', + name: 'Energy', + meta: { + title: '综合能耗管理', + icon: 'ep:key', + auth: '/energy', + }, + children: [ + { + path: '/energyData', + component: Layout, + redirect: '/energyData/list', + name: 'EnergyData', + meta: { + title: '数据列表', + icon: 'ep:key', + auth: '/energy/data', + }, + children: [ + { + path: 'list', + name: 'LDevice', + component: () => import('@/views/energyConsumption/data/index.vue'), + meta: { + title: '设备管理', + auth: '/energy/data', + sidebar: false, + breadcrumb: true, + activeMenu: '/energyData', + }, + }, + ], + }, + { + path: '/factor', + component: Layout, + redirect: '/factor/setup', + name: 'Factor', + meta: { + title: '因子设置', + icon: 'ep:key', + auth: '/energy/setup', + }, + children: [ + { + path: 'setup', + name: 'Setup', + component: () => import('@/views/energyConsumption/setup/index.vue'), + meta: { + title: '因子设置', + auth: '/energy/setup', + sidebar: false, + breadcrumb: true, + activeMenu: '/factor', + }, + }, + ], + }, + { + path: '/count', + component: Layout, + redirect: '/count/data', + name: 'CountData', + meta: { + title: '数据统计', + icon: 'ep:key', + auth: '/energy/count', + }, + children: [ + { + path: 'data', + name: 'Data', + component: () => import('@/views/energyConsumption/count/index.vue'), + meta: { + title: '数据统计', + auth: '/energy/count', + sidebar: false, + breadcrumb: true, + activeMenu: '/count', + }, + }, + ], + }, + ], + }, +] + +export default routes diff --git a/src/router/routes.ts b/src/router/routes.ts index 7f746e8..05bbf5d 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -14,6 +14,7 @@ import environment from './modules/environment' // import electricityRoute from './modules/electricity' import countRoute from './modules/carbonCount' +import energyConsumption from './modules/energyConsumption' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' // 固定路由(默认路由) @@ -188,6 +189,16 @@ }, { meta: { + title: '综合能耗管理', + icon: '', + auth: '/energy', + }, + children: [ + ...energyConsumption, + ], + }, + { + meta: { title: '电力碳核算', icon: '', auth: '/count', diff --git a/src/views/energyConsumption/count/index.vue b/src/views/energyConsumption/count/index.vue new file mode 100644 index 0000000..726d86e --- /dev/null +++ b/src/views/energyConsumption/count/index.vue @@ -0,0 +1,157 @@ + + + + + + diff --git a/index.html b/index.html index 0b85aab..9448926 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - + <%= title %> <%- copyrightScript %> diff --git a/src/api/api/energy/count.ts b/src/api/api/energy/count.ts new file mode 100644 index 0000000..3958071 --- /dev/null +++ b/src/api/api/energy/count.ts @@ -0,0 +1,17 @@ +import request from '@/api/index' +// 综合能耗TOP10排行 +export function getEnergyConsumptionRank(params: any) { + return request({ + url: '/energy/carbonData/top', + method: 'get', + params, + }) +} +// 占比分析 +export function getEnergyConsumptionRatio(params: any) { + return request({ + url: '/energy/carbonData/proportion-analysis', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/data.ts b/src/api/api/energy/data.ts new file mode 100644 index 0000000..c4dc737 --- /dev/null +++ b/src/api/api/energy/data.ts @@ -0,0 +1,50 @@ +import request from '@/api/index' +// 综合能耗管理数据列表 +export function getEnergyConsumptionList(params: any) { + return request({ + url: '/energy/carbonData/listPage', + method: 'get', + params, + }) +} +// 删除 +export function removeEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/delete', + method: 'get', + params, + }) +} +// 批量删除 +export function batchRemoveEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/batchDelete', + method: 'post', + data, + }) +} +// 导出 +export function exportEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/export', + method: 'get', + params, + responseType: 'blob', + }) +} +// 导入 +export function importEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/import', + method: 'post', + data, + }) +} +// 详情 +export function detailEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/detail', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/setup.ts b/src/api/api/energy/setup.ts new file mode 100644 index 0000000..ca43a6e --- /dev/null +++ b/src/api/api/energy/setup.ts @@ -0,0 +1,26 @@ +import request from '@/api/index' +// 因子设置列表 +export function getSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/list', + method: 'get', + params, + }) +} +// 详情 +export function detailSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/detail', + method: 'get', + params, + }) +} + +// 编辑 +export function updateSetUpList(data: any) { + return request({ + url: '/energy/factorInfo/update', + method: 'post', + data, + }) +} diff --git a/src/assets/icons/icon-delete.svg b/src/assets/icons/icon-delete.svg new file mode 100644 index 0000000..736c8e6 --- /dev/null +++ b/src/assets/icons/icon-delete.svg @@ -0,0 +1 @@ + diff --git a/src/assets/icons/icon-energy.svg b/src/assets/icons/icon-energy.svg new file mode 100644 index 0000000..4d2900b --- /dev/null +++ b/src/assets/icons/icon-energy.svg @@ -0,0 +1 @@ + diff --git a/src/components.d.ts b/src/components.d.ts index 4c4a4e3..9ee0c9f 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map/index copy.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] diff --git a/src/components/NormalTable/index.vue b/src/components/NormalTable/index.vue index 985d230..3b65c2c 100644 --- a/src/components/NormalTable/index.vue +++ b/src/components/NormalTable/index.vue @@ -187,7 +187,7 @@ ref="table" v-loading="listLoading" :data="data" - height="height" + :height="height" border stripe :size="size" diff --git a/src/router/modules/energyConsumption.ts b/src/router/modules/energyConsumption.ts new file mode 100644 index 0000000..f9a2c91 --- /dev/null +++ b/src/router/modules/energyConsumption.ts @@ -0,0 +1,96 @@ +// 综合能耗管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/energy', + component: Layout, + redirect: '/energyData', + name: 'Energy', + meta: { + title: '综合能耗管理', + icon: 'ep:key', + auth: '/energy', + }, + children: [ + { + path: '/energyData', + component: Layout, + redirect: '/energyData/list', + name: 'EnergyData', + meta: { + title: '数据列表', + icon: 'ep:key', + auth: '/energy/data', + }, + children: [ + { + path: 'list', + name: 'LDevice', + component: () => import('@/views/energyConsumption/data/index.vue'), + meta: { + title: '设备管理', + auth: '/energy/data', + sidebar: false, + breadcrumb: true, + activeMenu: '/energyData', + }, + }, + ], + }, + { + path: '/factor', + component: Layout, + redirect: '/factor/setup', + name: 'Factor', + meta: { + title: '因子设置', + icon: 'ep:key', + auth: '/energy/setup', + }, + children: [ + { + path: 'setup', + name: 'Setup', + component: () => import('@/views/energyConsumption/setup/index.vue'), + meta: { + title: '因子设置', + auth: '/energy/setup', + sidebar: false, + breadcrumb: true, + activeMenu: '/factor', + }, + }, + ], + }, + { + path: '/count', + component: Layout, + redirect: '/count/data', + name: 'CountData', + meta: { + title: '数据统计', + icon: 'ep:key', + auth: '/energy/count', + }, + children: [ + { + path: 'data', + name: 'Data', + component: () => import('@/views/energyConsumption/count/index.vue'), + meta: { + title: '数据统计', + auth: '/energy/count', + sidebar: false, + breadcrumb: true, + activeMenu: '/count', + }, + }, + ], + }, + ], + }, +] + +export default routes diff --git a/src/router/routes.ts b/src/router/routes.ts index 7f746e8..05bbf5d 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -14,6 +14,7 @@ import environment from './modules/environment' // import electricityRoute from './modules/electricity' import countRoute from './modules/carbonCount' +import energyConsumption from './modules/energyConsumption' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' // 固定路由(默认路由) @@ -188,6 +189,16 @@ }, { meta: { + title: '综合能耗管理', + icon: '', + auth: '/energy', + }, + children: [ + ...energyConsumption, + ], + }, + { + meta: { title: '电力碳核算', icon: '', auth: '/count', diff --git a/src/views/energyConsumption/count/index.vue b/src/views/energyConsumption/count/index.vue new file mode 100644 index 0000000..726d86e --- /dev/null +++ b/src/views/energyConsumption/count/index.vue @@ -0,0 +1,157 @@ + + + + + + diff --git a/src/views/energyConsumption/data/components/detailDialog.vue b/src/views/energyConsumption/data/components/detailDialog.vue new file mode 100644 index 0000000..2608110 --- /dev/null +++ b/src/views/energyConsumption/data/components/detailDialog.vue @@ -0,0 +1,141 @@ + + + + + diff --git a/index.html b/index.html index 0b85aab..9448926 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - + <%= title %> <%- copyrightScript %> diff --git a/src/api/api/energy/count.ts b/src/api/api/energy/count.ts new file mode 100644 index 0000000..3958071 --- /dev/null +++ b/src/api/api/energy/count.ts @@ -0,0 +1,17 @@ +import request from '@/api/index' +// 综合能耗TOP10排行 +export function getEnergyConsumptionRank(params: any) { + return request({ + url: '/energy/carbonData/top', + method: 'get', + params, + }) +} +// 占比分析 +export function getEnergyConsumptionRatio(params: any) { + return request({ + url: '/energy/carbonData/proportion-analysis', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/data.ts b/src/api/api/energy/data.ts new file mode 100644 index 0000000..c4dc737 --- /dev/null +++ b/src/api/api/energy/data.ts @@ -0,0 +1,50 @@ +import request from '@/api/index' +// 综合能耗管理数据列表 +export function getEnergyConsumptionList(params: any) { + return request({ + url: '/energy/carbonData/listPage', + method: 'get', + params, + }) +} +// 删除 +export function removeEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/delete', + method: 'get', + params, + }) +} +// 批量删除 +export function batchRemoveEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/batchDelete', + method: 'post', + data, + }) +} +// 导出 +export function exportEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/export', + method: 'get', + params, + responseType: 'blob', + }) +} +// 导入 +export function importEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/import', + method: 'post', + data, + }) +} +// 详情 +export function detailEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/detail', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/setup.ts b/src/api/api/energy/setup.ts new file mode 100644 index 0000000..ca43a6e --- /dev/null +++ b/src/api/api/energy/setup.ts @@ -0,0 +1,26 @@ +import request from '@/api/index' +// 因子设置列表 +export function getSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/list', + method: 'get', + params, + }) +} +// 详情 +export function detailSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/detail', + method: 'get', + params, + }) +} + +// 编辑 +export function updateSetUpList(data: any) { + return request({ + url: '/energy/factorInfo/update', + method: 'post', + data, + }) +} diff --git a/src/assets/icons/icon-delete.svg b/src/assets/icons/icon-delete.svg new file mode 100644 index 0000000..736c8e6 --- /dev/null +++ b/src/assets/icons/icon-delete.svg @@ -0,0 +1 @@ + diff --git a/src/assets/icons/icon-energy.svg b/src/assets/icons/icon-energy.svg new file mode 100644 index 0000000..4d2900b --- /dev/null +++ b/src/assets/icons/icon-energy.svg @@ -0,0 +1 @@ + diff --git a/src/components.d.ts b/src/components.d.ts index 4c4a4e3..9ee0c9f 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map/index copy.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] diff --git a/src/components/NormalTable/index.vue b/src/components/NormalTable/index.vue index 985d230..3b65c2c 100644 --- a/src/components/NormalTable/index.vue +++ b/src/components/NormalTable/index.vue @@ -187,7 +187,7 @@ ref="table" v-loading="listLoading" :data="data" - height="height" + :height="height" border stripe :size="size" diff --git a/src/router/modules/energyConsumption.ts b/src/router/modules/energyConsumption.ts new file mode 100644 index 0000000..f9a2c91 --- /dev/null +++ b/src/router/modules/energyConsumption.ts @@ -0,0 +1,96 @@ +// 综合能耗管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/energy', + component: Layout, + redirect: '/energyData', + name: 'Energy', + meta: { + title: '综合能耗管理', + icon: 'ep:key', + auth: '/energy', + }, + children: [ + { + path: '/energyData', + component: Layout, + redirect: '/energyData/list', + name: 'EnergyData', + meta: { + title: '数据列表', + icon: 'ep:key', + auth: '/energy/data', + }, + children: [ + { + path: 'list', + name: 'LDevice', + component: () => import('@/views/energyConsumption/data/index.vue'), + meta: { + title: '设备管理', + auth: '/energy/data', + sidebar: false, + breadcrumb: true, + activeMenu: '/energyData', + }, + }, + ], + }, + { + path: '/factor', + component: Layout, + redirect: '/factor/setup', + name: 'Factor', + meta: { + title: '因子设置', + icon: 'ep:key', + auth: '/energy/setup', + }, + children: [ + { + path: 'setup', + name: 'Setup', + component: () => import('@/views/energyConsumption/setup/index.vue'), + meta: { + title: '因子设置', + auth: '/energy/setup', + sidebar: false, + breadcrumb: true, + activeMenu: '/factor', + }, + }, + ], + }, + { + path: '/count', + component: Layout, + redirect: '/count/data', + name: 'CountData', + meta: { + title: '数据统计', + icon: 'ep:key', + auth: '/energy/count', + }, + children: [ + { + path: 'data', + name: 'Data', + component: () => import('@/views/energyConsumption/count/index.vue'), + meta: { + title: '数据统计', + auth: '/energy/count', + sidebar: false, + breadcrumb: true, + activeMenu: '/count', + }, + }, + ], + }, + ], + }, +] + +export default routes diff --git a/src/router/routes.ts b/src/router/routes.ts index 7f746e8..05bbf5d 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -14,6 +14,7 @@ import environment from './modules/environment' // import electricityRoute from './modules/electricity' import countRoute from './modules/carbonCount' +import energyConsumption from './modules/energyConsumption' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' // 固定路由(默认路由) @@ -188,6 +189,16 @@ }, { meta: { + title: '综合能耗管理', + icon: '', + auth: '/energy', + }, + children: [ + ...energyConsumption, + ], + }, + { + meta: { title: '电力碳核算', icon: '', auth: '/count', diff --git a/src/views/energyConsumption/count/index.vue b/src/views/energyConsumption/count/index.vue new file mode 100644 index 0000000..726d86e --- /dev/null +++ b/src/views/energyConsumption/count/index.vue @@ -0,0 +1,157 @@ + + + + + + diff --git a/src/views/energyConsumption/data/components/detailDialog.vue b/src/views/energyConsumption/data/components/detailDialog.vue new file mode 100644 index 0000000..2608110 --- /dev/null +++ b/src/views/energyConsumption/data/components/detailDialog.vue @@ -0,0 +1,141 @@ + + + + + diff --git a/src/views/energyConsumption/data/index.vue b/src/views/energyConsumption/data/index.vue new file mode 100644 index 0000000..14112ce --- /dev/null +++ b/src/views/energyConsumption/data/index.vue @@ -0,0 +1,244 @@ + + + + diff --git a/index.html b/index.html index 0b85aab..9448926 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - + <%= title %> <%- copyrightScript %> diff --git a/src/api/api/energy/count.ts b/src/api/api/energy/count.ts new file mode 100644 index 0000000..3958071 --- /dev/null +++ b/src/api/api/energy/count.ts @@ -0,0 +1,17 @@ +import request from '@/api/index' +// 综合能耗TOP10排行 +export function getEnergyConsumptionRank(params: any) { + return request({ + url: '/energy/carbonData/top', + method: 'get', + params, + }) +} +// 占比分析 +export function getEnergyConsumptionRatio(params: any) { + return request({ + url: '/energy/carbonData/proportion-analysis', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/data.ts b/src/api/api/energy/data.ts new file mode 100644 index 0000000..c4dc737 --- /dev/null +++ b/src/api/api/energy/data.ts @@ -0,0 +1,50 @@ +import request from '@/api/index' +// 综合能耗管理数据列表 +export function getEnergyConsumptionList(params: any) { + return request({ + url: '/energy/carbonData/listPage', + method: 'get', + params, + }) +} +// 删除 +export function removeEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/delete', + method: 'get', + params, + }) +} +// 批量删除 +export function batchRemoveEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/batchDelete', + method: 'post', + data, + }) +} +// 导出 +export function exportEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/export', + method: 'get', + params, + responseType: 'blob', + }) +} +// 导入 +export function importEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/import', + method: 'post', + data, + }) +} +// 详情 +export function detailEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/detail', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/setup.ts b/src/api/api/energy/setup.ts new file mode 100644 index 0000000..ca43a6e --- /dev/null +++ b/src/api/api/energy/setup.ts @@ -0,0 +1,26 @@ +import request from '@/api/index' +// 因子设置列表 +export function getSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/list', + method: 'get', + params, + }) +} +// 详情 +export function detailSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/detail', + method: 'get', + params, + }) +} + +// 编辑 +export function updateSetUpList(data: any) { + return request({ + url: '/energy/factorInfo/update', + method: 'post', + data, + }) +} diff --git a/src/assets/icons/icon-delete.svg b/src/assets/icons/icon-delete.svg new file mode 100644 index 0000000..736c8e6 --- /dev/null +++ b/src/assets/icons/icon-delete.svg @@ -0,0 +1 @@ + diff --git a/src/assets/icons/icon-energy.svg b/src/assets/icons/icon-energy.svg new file mode 100644 index 0000000..4d2900b --- /dev/null +++ b/src/assets/icons/icon-energy.svg @@ -0,0 +1 @@ + diff --git a/src/components.d.ts b/src/components.d.ts index 4c4a4e3..9ee0c9f 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map/index copy.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] diff --git a/src/components/NormalTable/index.vue b/src/components/NormalTable/index.vue index 985d230..3b65c2c 100644 --- a/src/components/NormalTable/index.vue +++ b/src/components/NormalTable/index.vue @@ -187,7 +187,7 @@ ref="table" v-loading="listLoading" :data="data" - height="height" + :height="height" border stripe :size="size" diff --git a/src/router/modules/energyConsumption.ts b/src/router/modules/energyConsumption.ts new file mode 100644 index 0000000..f9a2c91 --- /dev/null +++ b/src/router/modules/energyConsumption.ts @@ -0,0 +1,96 @@ +// 综合能耗管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/energy', + component: Layout, + redirect: '/energyData', + name: 'Energy', + meta: { + title: '综合能耗管理', + icon: 'ep:key', + auth: '/energy', + }, + children: [ + { + path: '/energyData', + component: Layout, + redirect: '/energyData/list', + name: 'EnergyData', + meta: { + title: '数据列表', + icon: 'ep:key', + auth: '/energy/data', + }, + children: [ + { + path: 'list', + name: 'LDevice', + component: () => import('@/views/energyConsumption/data/index.vue'), + meta: { + title: '设备管理', + auth: '/energy/data', + sidebar: false, + breadcrumb: true, + activeMenu: '/energyData', + }, + }, + ], + }, + { + path: '/factor', + component: Layout, + redirect: '/factor/setup', + name: 'Factor', + meta: { + title: '因子设置', + icon: 'ep:key', + auth: '/energy/setup', + }, + children: [ + { + path: 'setup', + name: 'Setup', + component: () => import('@/views/energyConsumption/setup/index.vue'), + meta: { + title: '因子设置', + auth: '/energy/setup', + sidebar: false, + breadcrumb: true, + activeMenu: '/factor', + }, + }, + ], + }, + { + path: '/count', + component: Layout, + redirect: '/count/data', + name: 'CountData', + meta: { + title: '数据统计', + icon: 'ep:key', + auth: '/energy/count', + }, + children: [ + { + path: 'data', + name: 'Data', + component: () => import('@/views/energyConsumption/count/index.vue'), + meta: { + title: '数据统计', + auth: '/energy/count', + sidebar: false, + breadcrumb: true, + activeMenu: '/count', + }, + }, + ], + }, + ], + }, +] + +export default routes diff --git a/src/router/routes.ts b/src/router/routes.ts index 7f746e8..05bbf5d 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -14,6 +14,7 @@ import environment from './modules/environment' // import electricityRoute from './modules/electricity' import countRoute from './modules/carbonCount' +import energyConsumption from './modules/energyConsumption' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' // 固定路由(默认路由) @@ -188,6 +189,16 @@ }, { meta: { + title: '综合能耗管理', + icon: '', + auth: '/energy', + }, + children: [ + ...energyConsumption, + ], + }, + { + meta: { title: '电力碳核算', icon: '', auth: '/count', diff --git a/src/views/energyConsumption/count/index.vue b/src/views/energyConsumption/count/index.vue new file mode 100644 index 0000000..726d86e --- /dev/null +++ b/src/views/energyConsumption/count/index.vue @@ -0,0 +1,157 @@ + + + + + + diff --git a/src/views/energyConsumption/data/components/detailDialog.vue b/src/views/energyConsumption/data/components/detailDialog.vue new file mode 100644 index 0000000..2608110 --- /dev/null +++ b/src/views/energyConsumption/data/components/detailDialog.vue @@ -0,0 +1,141 @@ + + + + + diff --git a/src/views/energyConsumption/data/index.vue b/src/views/energyConsumption/data/index.vue new file mode 100644 index 0000000..14112ce --- /dev/null +++ b/src/views/energyConsumption/data/index.vue @@ -0,0 +1,244 @@ + + + + diff --git a/src/views/energyConsumption/setup/components/edit.vue b/src/views/energyConsumption/setup/components/edit.vue new file mode 100644 index 0000000..8cc756e --- /dev/null +++ b/src/views/energyConsumption/setup/components/edit.vue @@ -0,0 +1,120 @@ + + + + + diff --git a/index.html b/index.html index 0b85aab..9448926 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - + <%= title %> <%- copyrightScript %> diff --git a/src/api/api/energy/count.ts b/src/api/api/energy/count.ts new file mode 100644 index 0000000..3958071 --- /dev/null +++ b/src/api/api/energy/count.ts @@ -0,0 +1,17 @@ +import request from '@/api/index' +// 综合能耗TOP10排行 +export function getEnergyConsumptionRank(params: any) { + return request({ + url: '/energy/carbonData/top', + method: 'get', + params, + }) +} +// 占比分析 +export function getEnergyConsumptionRatio(params: any) { + return request({ + url: '/energy/carbonData/proportion-analysis', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/data.ts b/src/api/api/energy/data.ts new file mode 100644 index 0000000..c4dc737 --- /dev/null +++ b/src/api/api/energy/data.ts @@ -0,0 +1,50 @@ +import request from '@/api/index' +// 综合能耗管理数据列表 +export function getEnergyConsumptionList(params: any) { + return request({ + url: '/energy/carbonData/listPage', + method: 'get', + params, + }) +} +// 删除 +export function removeEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/delete', + method: 'get', + params, + }) +} +// 批量删除 +export function batchRemoveEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/batchDelete', + method: 'post', + data, + }) +} +// 导出 +export function exportEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/export', + method: 'get', + params, + responseType: 'blob', + }) +} +// 导入 +export function importEnergyConsumption(data: any) { + return request({ + url: '/energy/carbonData/import', + method: 'post', + data, + }) +} +// 详情 +export function detailEnergyConsumption(params: any) { + return request({ + url: '/energy/carbonData/detail', + method: 'get', + params, + }) +} diff --git a/src/api/api/energy/setup.ts b/src/api/api/energy/setup.ts new file mode 100644 index 0000000..ca43a6e --- /dev/null +++ b/src/api/api/energy/setup.ts @@ -0,0 +1,26 @@ +import request from '@/api/index' +// 因子设置列表 +export function getSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/list', + method: 'get', + params, + }) +} +// 详情 +export function detailSetUpList(params: any) { + return request({ + url: '/energy/factorInfo/detail', + method: 'get', + params, + }) +} + +// 编辑 +export function updateSetUpList(data: any) { + return request({ + url: '/energy/factorInfo/update', + method: 'post', + data, + }) +} diff --git a/src/assets/icons/icon-delete.svg b/src/assets/icons/icon-delete.svg new file mode 100644 index 0000000..736c8e6 --- /dev/null +++ b/src/assets/icons/icon-delete.svg @@ -0,0 +1 @@ + diff --git a/src/assets/icons/icon-energy.svg b/src/assets/icons/icon-energy.svg new file mode 100644 index 0000000..4d2900b --- /dev/null +++ b/src/assets/icons/icon-energy.svg @@ -0,0 +1 @@ + diff --git a/src/components.d.ts b/src/components.d.ts index 4c4a4e3..9ee0c9f 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map/index copy.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] diff --git a/src/components/NormalTable/index.vue b/src/components/NormalTable/index.vue index 985d230..3b65c2c 100644 --- a/src/components/NormalTable/index.vue +++ b/src/components/NormalTable/index.vue @@ -187,7 +187,7 @@ ref="table" v-loading="listLoading" :data="data" - height="height" + :height="height" border stripe :size="size" diff --git a/src/router/modules/energyConsumption.ts b/src/router/modules/energyConsumption.ts new file mode 100644 index 0000000..f9a2c91 --- /dev/null +++ b/src/router/modules/energyConsumption.ts @@ -0,0 +1,96 @@ +// 综合能耗管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/energy', + component: Layout, + redirect: '/energyData', + name: 'Energy', + meta: { + title: '综合能耗管理', + icon: 'ep:key', + auth: '/energy', + }, + children: [ + { + path: '/energyData', + component: Layout, + redirect: '/energyData/list', + name: 'EnergyData', + meta: { + title: '数据列表', + icon: 'ep:key', + auth: '/energy/data', + }, + children: [ + { + path: 'list', + name: 'LDevice', + component: () => import('@/views/energyConsumption/data/index.vue'), + meta: { + title: '设备管理', + auth: '/energy/data', + sidebar: false, + breadcrumb: true, + activeMenu: '/energyData', + }, + }, + ], + }, + { + path: '/factor', + component: Layout, + redirect: '/factor/setup', + name: 'Factor', + meta: { + title: '因子设置', + icon: 'ep:key', + auth: '/energy/setup', + }, + children: [ + { + path: 'setup', + name: 'Setup', + component: () => import('@/views/energyConsumption/setup/index.vue'), + meta: { + title: '因子设置', + auth: '/energy/setup', + sidebar: false, + breadcrumb: true, + activeMenu: '/factor', + }, + }, + ], + }, + { + path: '/count', + component: Layout, + redirect: '/count/data', + name: 'CountData', + meta: { + title: '数据统计', + icon: 'ep:key', + auth: '/energy/count', + }, + children: [ + { + path: 'data', + name: 'Data', + component: () => import('@/views/energyConsumption/count/index.vue'), + meta: { + title: '数据统计', + auth: '/energy/count', + sidebar: false, + breadcrumb: true, + activeMenu: '/count', + }, + }, + ], + }, + ], + }, +] + +export default routes diff --git a/src/router/routes.ts b/src/router/routes.ts index 7f746e8..05bbf5d 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -14,6 +14,7 @@ import environment from './modules/environment' // import electricityRoute from './modules/electricity' import countRoute from './modules/carbonCount' +import energyConsumption from './modules/energyConsumption' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' // 固定路由(默认路由) @@ -188,6 +189,16 @@ }, { meta: { + title: '综合能耗管理', + icon: '', + auth: '/energy', + }, + children: [ + ...energyConsumption, + ], + }, + { + meta: { title: '电力碳核算', icon: '', auth: '/count', diff --git a/src/views/energyConsumption/count/index.vue b/src/views/energyConsumption/count/index.vue new file mode 100644 index 0000000..726d86e --- /dev/null +++ b/src/views/energyConsumption/count/index.vue @@ -0,0 +1,157 @@ + + + + + + diff --git a/src/views/energyConsumption/data/components/detailDialog.vue b/src/views/energyConsumption/data/components/detailDialog.vue new file mode 100644 index 0000000..2608110 --- /dev/null +++ b/src/views/energyConsumption/data/components/detailDialog.vue @@ -0,0 +1,141 @@ + + + + + diff --git a/src/views/energyConsumption/data/index.vue b/src/views/energyConsumption/data/index.vue new file mode 100644 index 0000000..14112ce --- /dev/null +++ b/src/views/energyConsumption/data/index.vue @@ -0,0 +1,244 @@ + + + + diff --git a/src/views/energyConsumption/setup/components/edit.vue b/src/views/energyConsumption/setup/components/edit.vue new file mode 100644 index 0000000..8cc756e --- /dev/null +++ b/src/views/energyConsumption/setup/components/edit.vue @@ -0,0 +1,120 @@ + + + + + diff --git a/src/views/energyConsumption/setup/index.vue b/src/views/energyConsumption/setup/index.vue new file mode 100644 index 0000000..faabf27 --- /dev/null +++ b/src/views/energyConsumption/setup/index.vue @@ -0,0 +1,103 @@ + + + +