From 4fca11d1b7156bc1442b06af654919a292224ad4 Mon Sep 17 00:00:00 2001 From: hr121 <568127468@qq.com> Date: Sun, 17 Aug 2025 00:47:09 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A3=9E=E8=A1=8C?= =?UTF-8?q?=E5=99=A8=E5=A4=87=E6=B3=A8=E5=92=8C=E7=BB=93=E7=AE=97=E5=8D=95?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/aircraft/index.vue | 4 ++-- src/views/order/settlementOrder/index.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/aircraft/index.vue b/src/views/aircraft/index.vue index 721bc92..b3f4a9f 100644 --- a/src/views/aircraft/index.vue +++ b/src/views/aircraft/index.vue @@ -124,12 +124,12 @@ /> - + diff --git a/src/views/order/settlementOrder/index.vue b/src/views/order/settlementOrder/index.vue index e20205f..48a3251 100644 --- a/src/views/order/settlementOrder/index.vue +++ b/src/views/order/settlementOrder/index.vue @@ -11,7 +11,7 @@
Date: Sun, 17 Aug 2025 17:38:37 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=EF=BC=8C=E5=8E=BB=E6=8E=89=E7=99=BB=E5=BD=95=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E5=AF=86=E7=A0=81=EF=BC=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Breadcrumb/index.vue | 6 +++--- src/router/routers.js | 14 +++++++------- src/views/aircraft/index.vue | 1 + src/views/login.vue | 6 ++++-- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index 204ea59..dd2d97b 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -36,9 +36,9 @@ export default { let matched = this.$route.matched.filter(item => item.meta && item.meta.title) const first = matched[0] - if (!this.isDashboard(first)) { - matched = [{ path: '/dashboard', meta: { title: '首页' }}].concat(matched) - } + // if (!this.isDashboard(first)) { + // matched = [{ path: '/dashboard', meta: { title: '首页' }}].concat(matched) + // } this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false) }, diff --git a/src/router/routers.js b/src/router/routers.js index cbebe79..f7e583f 100644 --- a/src/router/routers.js +++ b/src/router/routers.js @@ -35,14 +35,14 @@ export const constantRouterMap = [ { path: '/', component: Layout, - redirect: '/dashboard', + // redirect: '/dashboard', children: [ - { - path: 'dashboard', - component: (resolve) => require(['@/views/home'], resolve), - name: 'Dashboard', - meta: { title: '首页', icon: 'index', affix: true, noCache: true } - } + // { + // path: 'dashboard', + // component: (resolve) => require(['@/views/home'], resolve), + // name: 'Dashboard', + // meta: { title: '首页', icon: 'index', affix: true, noCache: true } + // } ] }, { diff --git a/src/views/aircraft/index.vue b/src/views/aircraft/index.vue index b3f4a9f..8b56655 100644 --- a/src/views/aircraft/index.vue +++ b/src/views/aircraft/index.vue @@ -32,6 +32,7 @@ size="small" style="width: 200px" class="filter-item" + clearable > Date: Sun, 17 Aug 2025 23:14:00 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E9=A3=9E=E8=A1=8C=E8=B5=84=E8=B4=A8?= =?UTF-8?q?=E5=92=8C=E4=BF=9D=E9=99=A9=E7=B1=BB=E5=9E=8B=E9=87=87=E7=94=A8?= =?UTF-8?q?=E5=AD=97=E5=85=B8=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/InsuranceRecord.vue | 23 +++++++--- src/views/aircraft/aircraftDetail/index.vue | 42 ++++++++++++++----- src/views/aircraft/index.vue | 38 ++++++++++++----- src/views/order/loadOrder/index.vue | 19 ++++++++- .../settlementOrder/generateOrder/index.vue | 18 +++++++- .../settlementOrder/orderDetail/index.vue | 18 +++++++- 6 files changed, 129 insertions(+), 29 deletions(-) diff --git a/src/views/aircraft/aircraftDetail/components/InsuranceRecord.vue b/src/views/aircraft/aircraftDetail/components/InsuranceRecord.vue index 8c9dedc..da847cd 100644 --- a/src/views/aircraft/aircraftDetail/components/InsuranceRecord.vue +++ b/src/views/aircraft/aircraftDetail/components/InsuranceRecord.vue @@ -139,6 +139,7 @@ import { mapGetters } from 'vuex' import { upload } from '@/utils/upload' import { addInsurance, getInsuranceDetail, deleteInsurance, editInsurance } from '@/api/aircraft' +import { get as getDictDetail } from '@/api/system/dictDetail' export default { name: "InsuranceRecord", @@ -182,11 +183,7 @@ export default { edit: ['admin', 'aircraftDetail:edit'], delete: ['admin', 'aircraftDetail:delete'] }, - insuranceTypes: [ - { value: 0, label: "三方险" }, - { value: 1, label: "设备险" }, - { value: 2, label: "运营险" }, - ], + insuranceTypes: [], rules: { name: [{ required: true, message: "请输入保险名称", trigger: "blur" }], insuranceType: [ @@ -201,7 +198,23 @@ export default { }, }; }, + created() { + this.getInsuranceTypes() + }, methods: { + async getInsuranceTypes() { + try { + const res = await getDictDetail('insurance_type') + this.insuranceTypes = res.content.map(item => ({ + value: item.dictSort, + label: item.value + })) + console.log(this.insuranceTypes) + } catch (error) { + console.error('获取保险类型失败:', error) + this.$message.error('获取保险类型失败') + } + }, getInsuranceTypeName(type) { const found = this.insuranceTypes.find(t => t.value === type) return found ? found.label : '未知类型' diff --git a/src/views/aircraft/aircraftDetail/index.vue b/src/views/aircraft/aircraftDetail/index.vue index d64a2cf..b701f5e 100644 --- a/src/views/aircraft/aircraftDetail/index.vue +++ b/src/views/aircraft/aircraftDetail/index.vue @@ -32,6 +32,7 @@