From 8a08ce1b40499eac2aebcfecf70babc1aa47d398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Sat, 14 Jun 2025 21:00:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E8=BD=A6=E8=BE=86?= =?UTF-8?q?=E4=BA=8C=E7=BB=B4=E7=A0=81=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/hjm/hjmBxLog/model/index.ts | 8 + .../hjm/hjmBxLog/components/hjmBxLogEdit.vue | 334 ++++++++---------- src/views/hjm/hjmBxLog/index.vue | 42 +-- src/views/hjm/hjmCar/index.vue | 4 +- 4 files changed, 187 insertions(+), 201 deletions(-) diff --git a/src/api/hjm/hjmBxLog/model/index.ts b/src/api/hjm/hjmBxLog/model/index.ts index 4ec8f32..b9214fe 100644 --- a/src/api/hjm/hjmBxLog/model/index.ts +++ b/src/api/hjm/hjmBxLog/model/index.ts @@ -10,6 +10,14 @@ export interface HjmBxLog { userId?: number; // 车辆ID carId?: number; + // 车牌号 + carNo?: string; + // 操作员 + realName?: string; + // 事故类型 + accidentType?: string; + // 部门 + parentOrganization?: string; // 保险图片 image?: string; // 排序(数字越小越靠前) diff --git a/src/views/hjm/hjmBxLog/components/hjmBxLogEdit.vue b/src/views/hjm/hjmBxLog/components/hjmBxLogEdit.vue index 9a7b0ac..84fb76d 100644 --- a/src/views/hjm/hjmBxLog/components/hjmBxLogEdit.vue +++ b/src/views/hjm/hjmBxLog/components/hjmBxLogEdit.vue @@ -19,214 +19,190 @@ styleResponsive ? { md: 19, sm: 19, xs: 24 } : { flex: '1' } " > - - + + {{ form.carNo }} - - + + {{ form.accidentType }} - - - - - + - - + + {{ form.comments }} + + + + + + - + + {{ form.realName }} + + - 显示 - 隐藏 + 待处理 + 已处理 - - - - - - diff --git a/src/views/hjm/hjmBxLog/index.vue b/src/views/hjm/hjmBxLog/index.vue index 5078b16..565f266 100644 --- a/src/views/hjm/hjmBxLog/index.vue +++ b/src/views/hjm/hjmBxLog/index.vue @@ -21,14 +21,15 @@ @@ -110,51 +110,53 @@ const columns = ref([ dataIndex: 'carNo', key: 'carNo', align: 'center', + width: 120 }, { title: '事故类型', dataIndex: 'accidentType', key: 'accidentType', align: 'center', - width: 170 + width: 120 }, { - title: '事故描述', - dataIndex: 'comments', - key: 'comments' - }, - { - title: '报险图片', + title: '现场图片', dataIndex: 'image', key: 'image', - align: 'center', - width: 170 + align: 'center' + }, + { + title: '事故描述', + dataIndex: 'comments', + key: 'comments', + align: 'center' }, { title: '操作员', dataIndex: 'realName', key: 'realName', align: 'center', - width: 170 + width: 120 }, { title: '状态', dataIndex: 'status', key: 'status', align: 'center', - width: 170 + width: 120 }, { title: '创建时间', dataIndex: 'createTime', key: 'createTime', align: 'center', - sorter: true + sorter: true, + width: 180 }, { title: '操作', key: 'action', - width: 180, + width: 120, fixed: 'right', align: 'center', hideInSetting: true @@ -181,7 +183,7 @@ const openMove = () => { /* 删除单个 */ const remove = (row: HjmBxLog) => { const hide = message.loading('请求中..', 0); - removeHjmBxLog(row.hjmBxLogId) + removeHjmBxLog(row.id) .then((msg) => { hide(); message.success(msg); @@ -206,7 +208,7 @@ const removeBatch = () => { maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchHjmBxLog(selection.value.map((d) => d.hjmBxLogId)) + removeBatchHjmBxLog(selection.value.map((d) => d.id)) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/hjm/hjmCar/index.vue b/src/views/hjm/hjmCar/index.vue index 8b66b45..d0fb9ed 100644 --- a/src/views/hjm/hjmCar/index.vue +++ b/src/views/hjm/hjmCar/index.vue @@ -102,7 +102,7 @@ const showMove = ref(false); // 加载状态 const loading = ref(true); // 二维码内容 -const qrcode = ref(); +const qrcode = ref(''); // 是否显示二维码 const showQrcode = ref(false); @@ -244,7 +244,7 @@ const openMove = () => { }; const onShare = (row?: HjmCar) => { - qrcode.value = row?.id; + qrcode.value = row?.code; showQrcode.value = true; }