fix:功能进一步优化。
This commit is contained in:
@@ -438,7 +438,8 @@ const updateChart = () => {
|
|||||||
data: xData,
|
data: xData,
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
interval: Math.floor(xData.length / 20), // 控制显示密度
|
interval: Math.floor(xData.length / 20), // 控制显示密度
|
||||||
rotate: 0
|
rotate: 20, // 倾斜45度
|
||||||
|
fontSize: 11
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
@@ -528,6 +529,8 @@ const handleDeviceSelect = (device: DeviceVO) => {
|
|||||||
selectedDevice.value = device;
|
selectedDevice.value = device;
|
||||||
queryParams.value.serialNum = device.serialNum;
|
queryParams.value.serialNum = device.serialNum;
|
||||||
deviceSelectVisible.value = false;
|
deviceSelectVisible.value = false;
|
||||||
|
// 选择设备后自动查询
|
||||||
|
getHistoryList();
|
||||||
};
|
};
|
||||||
|
|
||||||
/** 取消设备选择 */
|
/** 取消设备选择 */
|
||||||
|
|||||||
@@ -24,8 +24,8 @@ export default defineConfig(({ mode, command }) => {
|
|||||||
open: true,
|
open: true,
|
||||||
proxy: {
|
proxy: {
|
||||||
[env.VITE_APP_BASE_API]: {
|
[env.VITE_APP_BASE_API]: {
|
||||||
target: 'http://localhost:8080',
|
// target: 'http://localhost:8080',
|
||||||
// target: 'https://www.qdintc.com/fishery-api/',
|
target: 'https://www.qdintc.com/fishery-api/',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
ws: true,
|
ws: true,
|
||||||
rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')
|
rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')
|
||||||
|
|||||||
Reference in New Issue
Block a user