From 505ac5ba0dbb8e4621edbec3b76fdfac140e4ae7 Mon Sep 17 00:00:00 2001 From: guoapeng Date: Tue, 25 Mar 2025 12:20:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=A1=B9=E7=9B=AE=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E8=B0=83=E6=95=B4;drawer=E6=A0=B7=E5=BC=8F=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/matrix.ts | 5 ----- src/apis/matrixCraft.ts | 6 ------ src/components/home/Stop/index.vue | 28 ++++++++++++++++++++++++++++ src/components/home/stop/index.vue | 28 ---------------------------- src/views/main/index.vue | 2 +- src/views/matrix/index.d.ts | 5 +++++ src/views/matrixCraft/index.d.ts | 6 ++++++ src/views/spray/index.vue | 4 +++- 8 files changed, 43 insertions(+), 41 deletions(-) create mode 100644 src/components/home/Stop/index.vue delete mode 100644 src/components/home/stop/index.vue create mode 100644 src/views/matrix/index.d.ts create mode 100644 src/views/matrixCraft/index.d.ts diff --git a/src/apis/matrix.ts b/src/apis/matrix.ts index 01d272f..436c840 100644 --- a/src/apis/matrix.ts +++ b/src/apis/matrix.ts @@ -1,10 +1,5 @@ import http from 'libs/http' -export interface MatrixQuery { - pageNum: number - pageSize: number - matrixName?: string | undefined -} export const list = (params: MatrixQuery): Promise => http.post('matrix/list', params) export const add = (params: any): Promise => http.post('matrix/add', params) export const update = (params: any): Promise => http.put('matrix', params) diff --git a/src/apis/matrixCraft.ts b/src/apis/matrixCraft.ts index 86d8cbd..fe70256 100644 --- a/src/apis/matrixCraft.ts +++ b/src/apis/matrixCraft.ts @@ -1,11 +1,5 @@ import http from 'libs/http' -export interface MatrixCraftQuery { - pageNum: number - pageSize: number - matrixCraftName?: string | undefined - matrixId?: number | undefined -} export const list = (params: MatrixCraftQuery): Promise => http.post('matrixCraft/list', params) export const getListByMatrixId = (matrixId: number) => http.get(`matrixCraft/getListByMatrixId/${matrixId}`) export const add = (params: any) => http.post(`matrixCraft/add`, params) diff --git a/src/components/home/Stop/index.vue b/src/components/home/Stop/index.vue new file mode 100644 index 0000000..955f320 --- /dev/null +++ b/src/components/home/Stop/index.vue @@ -0,0 +1,28 @@ + + + + + diff --git a/src/components/home/stop/index.vue b/src/components/home/stop/index.vue deleted file mode 100644 index 955f320..0000000 --- a/src/components/home/stop/index.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - - - diff --git a/src/views/main/index.vue b/src/views/main/index.vue index 331c7b4..bb4fe6c 100644 --- a/src/views/main/index.vue +++ b/src/views/main/index.vue @@ -2,7 +2,7 @@ import { getDeviceStatus } from 'apis/system' import FtStream from 'components/common/FTStream/index.vue' import Check from 'components/home/Check/index.vue' -import Stop from 'components/home/stop/index.vue' +import Stop from 'components/home/Stop/index.vue' import { ElMessageBox } from 'element-plus' import { FtMessage } from 'libs/message' import { isClose, socket } from 'libs/socket' diff --git a/src/views/matrix/index.d.ts b/src/views/matrix/index.d.ts new file mode 100644 index 0000000..0878ef2 --- /dev/null +++ b/src/views/matrix/index.d.ts @@ -0,0 +1,5 @@ +interface MatrixQuery { + pageNum: number + pageSize: number + matrixName?: string | undefined +} diff --git a/src/views/matrixCraft/index.d.ts b/src/views/matrixCraft/index.d.ts new file mode 100644 index 0000000..bb12f3b --- /dev/null +++ b/src/views/matrixCraft/index.d.ts @@ -0,0 +1,6 @@ +interface MatrixCraftQuery { + pageNum: number + pageSize: number + matrixCraftName?: string | undefined + matrixId?: number | undefined +} diff --git a/src/views/spray/index.vue b/src/views/spray/index.vue index a766d06..986f4f2 100644 --- a/src/views/spray/index.vue +++ b/src/views/spray/index.vue @@ -183,7 +183,6 @@ const startWork = async () => { console.log('valid', valid) if (!valid) { FtMessage.error('请检查参数配置') - return } const position = checkPosition() @@ -659,4 +658,7 @@ const addCraft = () => { .tray-name { color: var(--el-color-primary); } +:deep(.el-drawer) { + width: 33% !important; +}