From ac35b819a7f5b96dc3ff057d1f8083ef65b221c5 Mon Sep 17 00:00:00 2001 From: tao Date: Wed, 17 Dec 2025 16:48:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B7=AF=E5=BE=84=E5=BC=95?= =?UTF-8?q?=E7=94=A8=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 1 - src/views/Line1/L1-data-list/index.vue | 2 +- src/views/Line1/L4-data-list/data.ts | 69 ----- src/views/Line1/L4-data-list/index.vue | 318 ------------------------ src/views/Line1/L4-data-list/types.ts | 106 -------- src/views/Line1/alarm-records/index.vue | 4 +- 6 files changed, 3 insertions(+), 497 deletions(-) delete mode 100644 src/views/Line1/L4-data-list/data.ts delete mode 100644 src/views/Line1/L4-data-list/index.vue delete mode 100644 src/views/Line1/L4-data-list/types.ts diff --git a/components.d.ts b/components.d.ts index 76bd6ba..07ba1be 100644 --- a/components.d.ts +++ b/components.d.ts @@ -31,7 +31,6 @@ declare module 'vue' { ExecutionResult: typeof import('./src/components/common/ExecutionResult/index.vue')['default'] ILucideActivity: typeof import('~icons/lucide/activity')['default'] ILucideCamera: typeof import('~icons/lucide/camera')['default'] - ILucideCircleX: typeof import('~icons/lucide/circle-x')['default'] ILucideCpu: typeof import('~icons/lucide/cpu')['default'] ILucideDatabase: typeof import('~icons/lucide/database')['default'] ILucideEdit: typeof import('~icons/lucide/edit')['default'] diff --git a/src/views/Line1/L1-data-list/index.vue b/src/views/Line1/L1-data-list/index.vue index f170720..fbc8d60 100644 --- a/src/views/Line1/L1-data-list/index.vue +++ b/src/views/Line1/L1-data-list/index.vue @@ -133,7 +133,7 @@ import { ref, reactive, onMounted } from "vue"; import { message } from "ant-design-vue"; import { getL1Data, exportData } from "@/api/line1/data"; -import type { QueryParams } from "@/api/data/model"; +import type { QueryParams } from "@/api/line1/data/model"; import type { L1Data } from "./types"; import type { Dayjs } from "dayjs"; import { download } from "@/utils/download"; diff --git a/src/views/Line1/L4-data-list/data.ts b/src/views/Line1/L4-data-list/data.ts deleted file mode 100644 index a71b687..0000000 --- a/src/views/Line1/L4-data-list/data.ts +++ /dev/null @@ -1,69 +0,0 @@ -import type { TableColumnType, TableColumnsType } from "ant-design-vue"; - -const INDEX_COLUMN: TableColumnType = { - key: "index", - title: "序号", - width: 60, - fixed: true, - align: "center", -} as const; - -// 定义操作列配置 -const ACTION_COLUMN: TableColumnType = { - key: "action", - title: "操作", - width: 120, - ellipsis: true, - fixed: "right", - align: "center", -} as const; - -// 使用 Record 类型确保键值对的安全性 -export const fields: Record = { - processInfoId: "加工信息ID", - pltNo: "PLT No", - processF1: "加工F1", - processF2: "加工F2", - goodProductF1: "良品F1", - goodProductF2: "良品F2", - electricalResult: "电气检测结果", - engraveResult: "印字检测结果", - qrCode: "二维码", - qrCodeLevel: "二维码等级", - pressure15Riveting: "压力1_5#_铆接", - height15Riveting: "高度1_5#_铆接", - pressure25Magnet1: "压力2_5#_磁石1", - height25Magnet1: "高度2_5#_磁石1", - pressure36Magnet2: "压力3_6#_磁石2", - height36Magnet2: "高度3_6#_磁石2", - torque47AxisInsert: "扭矩4_7#_轴旋入", - height47AxisInsert: "高度4_7#_轴旋入", - pressure58LowerCase: "压力5_8#_下壳装入", - height58LowerCase: "高度5_8#_下壳装入", - pressure69UpperCase: "压力6_9#_上壳装入", - height69UpperCase: "高度6_9#_上壳装入", - height79HeightCheck: "高度7_9#_高度检测", - pressure79Laser: "压力7_9#_激光", - height89Laser: "高度8_9#_激光", - value19DcrUpper: "数値1_9#_DCR(上)", - value29DcrLower: "数値2_9#_DCR(下)", - value39LcrUpperLs: "数値3_9#_LCR(上)LS", - value49LcrLowerQ: "数値4_9#_LCR(下)Q", - value59LcrLowerLs: "数値5_9#_LCR(下)LS", - value69LcrLowerQ: "数値6_9#_LCR(下)Q", - value79IrR: "数値7_9#_IR R", - value89IrI: "数値8_9#_IR I", - createTime: "创建时间" -} as const; - -// 导出完整的列配置 -export const columns: TableColumnsType = [ - INDEX_COLUMN, - ...Object.entries(fields).map(([key, title]) => ({ - key, - title, - width: 150, - ellipsis: true, - })), - ACTION_COLUMN, -]; diff --git a/src/views/Line1/L4-data-list/index.vue b/src/views/Line1/L4-data-list/index.vue deleted file mode 100644 index a879a68..0000000 --- a/src/views/Line1/L4-data-list/index.vue +++ /dev/null @@ -1,318 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/Line1/L4-data-list/types.ts b/src/views/Line1/L4-data-list/types.ts deleted file mode 100644 index 7de23d3..0000000 --- a/src/views/Line1/L4-data-list/types.ts +++ /dev/null @@ -1,106 +0,0 @@ -export interface L4Data { - /** 加工信息ID */ - processInfoId: number; - - /** PLT No */ - pltNo: number; - - /** 加工F1, 0:未加工 */ - processF1: 0 | 1; - - /** 加工F2, 1:已加工 */ - processF2: 0 | 1; - - /** 良品F1, 0:不良品 */ - goodProductF1: 0 | 1; - - /** 良品F2, 1:良品 */ - goodProductF2: 0 | 1; - - /** - * 电气检测结果 - * 0-DCR不良, 1-LCR不良, 3-IR不良, 7-良品 - */ - electricalResult: 0 | 1 | 3 | 7; - - /** 印字检测结果, 0-良品, 1-不良品 */ - engraveResult: 0 | 1; - - /** 二维码 */ - qrCode: string; - - /** 二维码等级 */ - qrCodeLevel: string; - - /** 压力1_5#_铆接 */ - pressure15Riveting: number; - - /** 高度1_5#_铆接 */ - height15Riveting: number; - - /** 压力2_5#_磁石1 */ - pressure25Magnet1: number; - - /** 高度2_5#_磁石1 */ - height25Magnet1: number; - - /** 压力3_6#_磁石2 */ - pressure36Magnet2: number; - - /** 高度3_6#_磁石2 */ - height36Magnet2: number; - - /** 扭矩4_7#_轴旋入 */ - torque47AxisInsert: number; - - /** 高度4_7#_轴旋入 */ - height47AxisInsert: number; - - /** 压力5_8#_下壳装入 */ - pressure58LowerCase: number; - - /** 高度5_8#_下壳装入 */ - height58LowerCase: number; - - /** 压力6_9#_上壳装入 */ - pressure69UpperCase: number; - - /** 高度6_9#_上壳装入 */ - height69UpperCase: number; - - /** 高度7_9#_高度检测 */ - height79HeightCheck: number; - - /** 压力7_9#_激光 */ - pressure79Laser: number; - - /** 高度8_9#_激光 */ - height89Laser: number; - - /** 数値1_9#_DCR(上) */ - value19DcrUpper: number; - - /** 数値2_9#_DCR(下) */ - value29DcrLower: number; - - /** 数値3_9#_LCR(上)LS */ - value39LcrUpperLs: number; - - /** 数値4_9#_LCR(下)Q */ - value49LcrLowerQ: number; - - /** 数値5_9#_LCR(下)LS */ - value59LcrLowerLs: number; - - /** 数値6_9#_LCR(下)Q */ - value69LcrLowerQ: number; - - /** 数値7_9#_IR R */ - value79IrR: number; - - /** 数値8_9#_IR I */ - value89IrI: number; - - /** 创建时间 (ISO 8601) */ - createTime: string; -} \ No newline at end of file diff --git a/src/views/Line1/alarm-records/index.vue b/src/views/Line1/alarm-records/index.vue index 49aab51..4db2dc3 100644 --- a/src/views/Line1/alarm-records/index.vue +++ b/src/views/Line1/alarm-records/index.vue @@ -73,8 +73,8 @@