diff --git a/index.html b/index.html index 3cfef16..0f7fd58 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@
- + { }); }; -export const delGraphData = async (id) => { - const res = await instance.post(DELETE_GRAPH_TABLE_API, { id }); +export const delGraphData = async (id, hard_delete = false, recover_delete = false) => { + const res = await instance.post(DELETE_GRAPH_TABLE_API, { id, hard_delete, recover_delete }); return apihandler(res.code, res.data, { msg: res.msg, diff --git a/src/assets/img/chart-title02.svg b/src/assets/img/chart-title02.svg index d9cb565..c18a121 100644 --- a/src/assets/img/chart-title02.svg +++ b/src/assets/img/chart-title02.svg @@ -1 +1,12 @@ - \ No newline at end of file + diff --git a/src/components/customUI/Modal.vue b/src/components/customUI/Modal.vue index d8f80ce..7e7e77a 100644 --- a/src/components/customUI/Modal.vue +++ b/src/components/customUI/Modal.vue @@ -60,7 +60,7 @@ onMounted(() => { {{ title }} -{{ $t("upload.title") }}
{{ $t("upload.description") }}
+{{ $t("upload.formats") }} : {{props.formats}}
diff --git a/src/config/cn.json b/src/config/cn.json index aadea3c..77aec9f 100644 --- a/src/config/cn.json +++ b/src/config/cn.json @@ -12,7 +12,8 @@ }, "upload": { "title": "选择一个文件或拖放到这里", - "description": "档案不超过 10MB" + "description": "档案不超过 10MB", + "formats": "档案格式" }, "dashboard": { "yesterday_today": "昨天/今天", @@ -55,6 +56,11 @@ "green_elec": "绿电", "immediate_demand": "即时需量", "average_demand": "平均需量", + "real_time_Trend": "即时趋势", + "contract_capacity": "契约容量", + "alert_capacity": "警戒容量", + "reset_value": "复归值", + "edit_automatic_demand": "编辑自动需量", "elec_bills": "今年电费累计(元)", "interval_elec_charges": "区间电费(元)", "year_carbon_emission": "今年碳排当量累计(公斤)", @@ -71,7 +77,9 @@ "var_elec_cost": "流动电费", "fixed_elec_cost": "基本电费", "total_elec_cost": "总电费", - "carbon_equivalent": "碳排当量" + "carbon_equivalent": "碳排当量", + "edit_carbon_emission": "编辑碳排放系数", + "carbon_emission_coefficient":"碳排放系数" }, "alarm": { "title": "显示警告", @@ -191,7 +199,10 @@ "index": "编号", "oriOrgName": "档案", "operation": "功能", - "upload": "图资上传" + "folder_path": "资料夹路径", + "upload": "图资上传", + "staging_area": "删除暂存区", + "no_path": "无资料夹路径" }, "assetManagement": { "title": "资产管理", @@ -272,10 +283,12 @@ "start_time_placeholder": "请输入预计开始日期", "rename": "重新命名", "download": "下载", - "confirm": "确认" + "confirm": "确认", + "restore": "复原" }, "msg":{ "sure_to_delete": "是否确认删除该项目?", + "sure_to_delete_permanent": "是否确认永久删除该项目?", "delete_success": "删除成功", "delete_failed": "删除失败" } diff --git a/src/config/tw.json b/src/config/tw.json index 63a1f3b..d4bd684 100644 --- a/src/config/tw.json +++ b/src/config/tw.json @@ -12,7 +12,8 @@ }, "upload": { "title": "選擇一個文件或拖放到這裡", - "description": "檔案不超過 10MB" + "description": "檔案不超過 10MB", + "formats": "檔案格式" }, "dashboard": { "yesterday_today": "昨天/今天", @@ -55,6 +56,11 @@ "green_elec": "綠電", "immediate_demand": "即時需量", "average_demand": "平均需量", + "real_time_Trend": "即時趨勢", + "contract_capacity": "契約容量", + "alert_capacity": "警戒容量", + "reset_value": "復歸值", + "edit_automatic_demand": "編輯自動需量", "elec_bills": "今年電費累計(元)", "interval_elec_charges": "區間電費(元)", "year_carbon_emission": "今年碳排當量累計(公斤)", @@ -71,7 +77,9 @@ "var_elec_cost": "流動電費", "fixed_elec_cost": "基本電費", "total_elec_cost": "總電費", - "carbon_equivalent": "碳排當量" + "carbon_equivalent": "碳排當量", + "edit_carbon_emission": "編輯碳排放係數", + "carbon_emission_coefficient":"碳排放係數" }, "alarm": { "title": "顯示警告", @@ -191,7 +199,10 @@ "index": "編號", "oriOrgName": "檔案", "operation": "功能", - "upload": "圖資上傳" + "folder_path": "資料夾路徑", + "upload": "圖資上傳", + "staging_area": "刪除暫存區", + "no_path": "無資料夾路徑" }, "assetManagement": { "title": "資產管理", @@ -272,10 +283,12 @@ "start_time_placeholder": "請輸入預計開始日期", "rename": "重新命名", "download": "下載", - "confirm": "確認" + "confirm": "確認", + "restore": "復原" }, "msg":{ "sure_to_delete": "是否確認刪除該項目?", + "sure_to_delete_permanent": "是否確認永久刪除該項目?", "delete_success": "刪除成功", "delete_failed": "刪除失敗" } diff --git a/src/config/us.json b/src/config/us.json index 5afce41..8088271 100644 --- a/src/config/us.json +++ b/src/config/us.json @@ -12,7 +12,8 @@ }, "upload": { "title": "Select a file or drag and drop here", - "description": "File size cannot exceed 10MB" + "description": "File size cannot exceed 10MB", + "formats": "File formats" }, "history": { "title": "Historical Data", @@ -53,8 +54,13 @@ "elec_consumption": "Real-time distribution of electricity consumption", "total_elec": "Total electricity consumption", "green_elec": "Green electricity", - "immediate_demand": "immediate demand", - "average_demand": "average demand", + "immediate_demand": "Immediate demand", + "average_demand": "Average demand", + "real_time_Trend": "Real-time Trend", + "contract_capacity": "Contract Capacity", + "alert_capacity": "Alert Capacity", + "reset_value": "Reset Value", + "edit_automatic_demand": "Edit automatic demand", "elec_bills": "Total electricity bills this year (yuan)", "interval_elec_charges": "Interval electricity charges (yuan)", "year_carbon_emission": "Cumulative carbon emission equivalent this year (kg)", @@ -71,7 +77,9 @@ "var_elec_cost": "Var. Elec. Cost", "fixed_elec_cost": "Fixed Elec. Cost", "total_elec_cost": "Total Elec. Cost", - "carbon_equivalent": "Carbon Equivalent" + "carbon_equivalent": "Carbon Equivalent", + "edit_carbon_emission": "Edit carbon emission coefficient", + "carbon_emission_coefficient":"Carbon emission coefficient" }, "alarm": { "title": "Warning", @@ -191,7 +199,10 @@ "index": "Serial Number", "oriOrgName": "File", "operation": "Function", - "upload": "Upload" + "folder_path": "Folder Path", + "upload": "Upload", + "staging_area": "Staging Area", + "no_path": "No path" }, "assetManagement": { "title": "Asset Management", @@ -272,10 +283,12 @@ "start_time_placeholder": "Please enter expected start date", "rename": "Rename", "download": "Download", - "confirm": "Confirm" + "confirm": "Confirm", + "restore": "Restore" }, - "msg":{ + "msg": { "sure_to_delete": "Are you sure to delete this item?", + "sure_to_delete_permanent": "Are you sure you want to permanently delete this item?", "delete_success": "Delete successfully", "delete_failed": "Delete failed" } diff --git a/src/views/AssetManagement/components/AssetTableModalRightInfo.vue b/src/views/AssetManagement/components/AssetTableModalRightInfo.vue index eb1099c..dea4c70 100644 --- a/src/views/AssetManagement/components/AssetTableModalRightInfo.vue +++ b/src/views/AssetManagement/components/AssetTableModalRightInfo.vue @@ -280,6 +280,7 @@ const onCancel = () => { :getFileList="updateFileList" :multiple="false" class="col-span-2" + formats="svg" > {{ $t("assetManagement.oriFile") }} diff --git a/src/views/dashboard/components/DashboardElecChart.vue b/src/views/dashboard/components/DashboardElecChart.vue index 65bfe02..47d1b43 100644 --- a/src/views/dashboard/components/DashboardElecChart.vue +++ b/src/views/dashboard/components/DashboardElecChart.vue @@ -9,11 +9,11 @@ const yesterdayTodayData = { categories: ["00:00", "01:00", "02:00", "03:00", "04:00", "05:00", "06:00", "07:00", "08:00", "09:00", "10:00", "11:00"], values: [ { - name: `2024.10.21 ${t("dashboard.electricity_consumption")}`, + name: `2024.11.8 ${t("dashboard.electricity_consumption")}`, value: [8, 8, 8, 8, 8, 15, 25, 65, 75, 60, 70, 65], }, { - name: `2024.10.20 ${t("dashboard.electricity_consumption")}`, + name: `2024.11.7 ${t("dashboard.electricity_consumption")}`, value: [10, 10, 10, 10, 10, 20, 30, 80, 90, 70, 80, 85], }, ], @@ -74,9 +74,9 @@ const generateCylinderChartOption = (categories, values) => { x2: 1, // 向右漸層 y2: 0, // 水平漸層 colorStops: [ - { offset: 0, color: "#acd7e4" }, // 左側顏色 - { offset: 0.5, color: "#0ca9d4" }, // 中間顏色 - { offset: 1, color: "#acd7e4" }, // 右側顏色 + { offset: 0, color: "#17CEE3" }, // 左側顏色 + { offset: 0.5, color: "#398ECA" }, // 中間顏色 + { offset: 1, color: "#17CEE3" }, // 右側顏色 ], }, }, @@ -94,9 +94,9 @@ const generateCylinderChartOption = (categories, values) => { x2: 1, // 向右漸層 y2: 0, // 水平漸層 colorStops: [ - { offset: 0, color: "#fff6b3" }, // 左側顏色 - { offset: 0.5, color: "#ffe000" }, // 中間顏色 - { offset: 1, color: "#fff6b3" }, // 右側顏色 + { offset: 0, color: "#62E39A" }, // 左側顏色 + { offset: 0.5, color: "#05AA9A" }, // 中間顏色 + { offset: 1, color: "#62E39A" }, // 右側顏色 ], }, }, @@ -125,7 +125,7 @@ const generateCylinderChartOption = (categories, values) => { symbolPosition: "end", data: values[1].value, itemStyle: { - color: "#c3ae1a", + color: "#05AA9A", borderWidth: 10, borderColor: "#fff", borderType: "solid", @@ -153,7 +153,7 @@ const generateCylinderChartOption = (categories, values) => { symbolPosition: "start", data: values[1].value, itemStyle: { - color: "#ffe000", + color: "#05AA9A", }, z: 12, }, @@ -201,18 +201,17 @@ const weekComparisonOption = generateCylinderChartOption(
+