From 3c9705d4f2f85a3527ec92213a76f9375ad146ee Mon Sep 17 00:00:00 2001 From: guoapeng Date: Fri, 20 Jun 2025 19:06:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=8F=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/system.ts | 2 +- src/components/common/FTTable/index.vue | 7 +- src/components/craft/AddCraft/index.vue | 33 ++++++++-- src/components/home/ExtractLiquid/index.vue | 29 +++++++-- src/components/home/SetTemperature/index.vue | 30 ++++++--- src/layouts/default.vue | 9 +++ src/types/system.d.ts | 1 + src/views/craft/index.vue | 5 +- src/views/home/index.vue | 97 ++++++++++++++++++++-------- src/views/taskLog/index.vue | 4 -- 10 files changed, 161 insertions(+), 56 deletions(-) diff --git a/src/apis/system.ts b/src/apis/system.ts index 930f1b9..24dc490 100644 --- a/src/apis/system.ts +++ b/src/apis/system.ts @@ -8,5 +8,5 @@ export const requireOutTray = (): Promise<{ moduleCode: string }[]> => http.get( export const setIgnoreItem = (params: { ignoreSelfTestType: string, ignore: boolean }): Promise => http.post('/self-test/set-ignore-item', params) export const getTime = (): Promise => http.get('/sys/datetime') export const setTime = (params: { datetime?: string }): Promise => http.post('/sys/datetime', params) -export const configList = (): Promise => http.get('/sys/config-list') +export const configList = (): Promise => http.get('/sys/config-list') export const updateConfig = (params: System.SystemConfig): Promise => http.post('/sys/update-config', params) diff --git a/src/components/common/FTTable/index.vue b/src/components/common/FTTable/index.vue index d4c1093..bc4253e 100644 --- a/src/components/common/FTTable/index.vue +++ b/src/components/common/FTTable/index.vue @@ -30,6 +30,7 @@ const emits = defineEmits([ 'editTreeNode', 'delTreeNode', 'rowClick', + 'rowDblclick', ]) enum ColumnType { index = 'index', @@ -107,10 +108,6 @@ function initData() { const handleSelectionChange = (val: any) => { state.selectedRows = val } - -const rowClickHandle = (data: any) => { - emits('rowClick', data) -} defineExpose({ initData, }) @@ -155,8 +152,8 @@ defineExpose({ :highlight-current-row="true" class="container-table" header-row-class-name="header-row-class" + v-on="$attrs" @selection-change="handleSelectionChange" - @row-click="rowClickHandle" >