diff --git a/src/App.vue b/src/App.vue
index bd338dd..9f09616 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -16,6 +16,5 @@
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
- border: var(--theme-primary-bdr-1);
}
-
+
\ No newline at end of file
diff --git a/src/api/dashboard.js b/src/api/dashboard.js
index 755261c..a6cb750 100644
--- a/src/api/dashboard.js
+++ b/src/api/dashboard.js
@@ -19,7 +19,24 @@ export function getHistoryReport(inputTime) {
// 获取前处理页面甘特图数据
export function getGanttData(deviceId, inputTime) {
return request({
- url: `/State?deviceId=${deviceId}&inputTime=${inputTime}`,
- method: 'get'
+ url: `/State?deviceId=${deviceId}&inputTime=${inputTime}`,
+ method: 'get'
});
- }
\ No newline at end of file
+}
+
+// 获取停机原因列表
+export function getStopReason() {
+ return request({
+ url: '/State/stop-reason',
+ method: 'get'
+ });
+}
+
+// 停机原因维护
+export function setStopReason(data) {
+ return request({
+ url: '/State/stop-reason',
+ method: 'post',
+ data
+ });
+}
\ No newline at end of file
diff --git a/src/components/CustomDatetimePicker.vue b/src/components/CustomDatetimePicker.vue
new file mode 100644
index 0000000..ae5b0d6
--- /dev/null
+++ b/src/components/CustomDatetimePicker.vue
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
diff --git a/src/components/ProcessGanttChart.vue b/src/components/ProcessGanttChart.vue
index 993afa6..8b37825 100644
--- a/src/components/ProcessGanttChart.vue
+++ b/src/components/ProcessGanttChart.vue
@@ -1,12 +1,37 @@
+
\ No newline at end of file
diff --git a/src/utils/request.js b/src/utils/request.js
index e0fdc89..dbb0743 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -1,7 +1,8 @@
import axios from 'axios';
const service = axios.create({
- baseURL: 'http://192.168.1.199:8080/api', // 接口的基础路径'http://cs-vsc.siemens.com.cn:8005',//
+ // baseURL: 'http://192.168.1.199:8080/api', // 办公室测试接口
+ baseURL: 'http://39.105.9.124:8090/api', // 家用测试接口
timeout: 5000, // 请求超时时间
headers: {
"Access-Control-Allow-Origin": "*",
diff --git a/src/views/Dashboard/index.vue b/src/views/Dashboard/index.vue
index c6719d5..75c848f 100644
--- a/src/views/Dashboard/index.vue
+++ b/src/views/Dashboard/index.vue
@@ -10,12 +10,11 @@
+ :data-device-id="item?.deviceId" @click="handleBlockClick(item?.deviceId, item.name, false)" >
{{ item.name }}:
-
+
+ :style="{ width: item.rate + '%', background: getStatusColor(item.deviceStatus) }">
{{ item.value }}
@@ -29,12 +28,11 @@
+ :data-device-id="item?.deviceId" @click="handleBlockClick(item?.deviceId, item.name, false)">
{{ item.name }}:
-
+
+ :style="{ width: item.rate + '%', background: getStatusColor(item.deviceStatus) }">
{{ item.value }}
@@ -45,7 +43,7 @@
+ @click="handleBlockClick(uhtData?.deviceId, uhtData.name, true)" style="cursor: pointer;">
果汁 UHT
@@ -96,7 +94,7 @@
+ @click="handleBlockClick(pulpUHTData?.deviceId, pulpUHTData.name, true)" style="cursor: pointer;">
果肉 UHT
@@ -175,7 +173,6 @@
{{ juiceTank.liquidLevel }}
-
-
+
-
@@ -263,8 +258,8 @@
-
生产进度
-
+
{{ currentTitle }}
+
全部
一小时
二小时
@@ -273,49 +268,52 @@
+ @segment-click="handleSegmentClick" />
-
diff --git a/src/views/layout/vueLayout.vue b/src/views/layout/vueLayout.vue
index ce8ceea..427d386 100644
--- a/src/views/layout/vueLayout.vue
+++ b/src/views/layout/vueLayout.vue
@@ -79,6 +79,7 @@ const toggleDatetimePicker = () => {
const handleReset = () => {
// 触发主页中的 getHistory 方法
const event = new CustomEvent('reset');
+ updateTime();
window.dispatchEvent(event);
};
@@ -103,10 +104,13 @@ const updateHistory = (datetime) => {
const hours = String(parsedDate.getHours()).padStart(2, '0');
const minutes = String(parsedDate.getMinutes()).padStart(2, '0');
const seconds = String(parsedDate.getSeconds()).padStart(2, '0');
- const formattedDatetime = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
+ const formattedDatetime = `${year}-${month}-${day} ${hours}:${minutes}`;
// 触发主页中的 getHistory 方法
console.log("🚀 ~ updateHistory ~ formattedDatetime:", formattedDatetime)
const event = new CustomEvent('update-history', { detail: formattedDatetime });
+
+ currentTime.value = formattedDatetime;
+
window.dispatchEvent(event);
};
@@ -214,6 +218,10 @@ ix-application {
/* 确保在最上层 */
}
+:deep(ix-datetime-picker){
+ --theme-menu--background: #23233C;
+}
+
:deep(IxApplication) {
margin: 0;
/* 确保没有外边距 */