From 14404f023e819ab58bb7b52ea02506dc9ce85209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chhk=E2=80=9D?= <“hhk@mail.com”> Date: Wed, 7 Aug 2024 18:01:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=93=81=E7=89=8C=E5=9E=8B=E5=8F=B7=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/CarBrandSelector/Api/index.js | 11 + .../components/CarBrandSelector/index.vue | 232 ++++++++++-------- .../base/carmain/components/CarLabelForm.vue | 185 ++++++++++++++ 3 files changed, 330 insertions(+), 98 deletions(-) create mode 100644 src/layout/components/CarBrandSelector/Api/index.js create mode 100644 src/views/base/carmain/components/CarLabelForm.vue diff --git a/src/layout/components/CarBrandSelector/Api/index.js b/src/layout/components/CarBrandSelector/Api/index.js new file mode 100644 index 0000000..0561251 --- /dev/null +++ b/src/layout/components/CarBrandSelector/Api/index.js @@ -0,0 +1,11 @@ +import request from '@/utils/request' + +// 创建车辆品牌维护 +export function searchBrand(data) { + return request({ + url: '/base/carModel/searchBrand', + method: 'post', + data: data + }) +} + diff --git a/src/layout/components/CarBrandSelector/index.vue b/src/layout/components/CarBrandSelector/index.vue index 9ee6d50..a464908 100644 --- a/src/layout/components/CarBrandSelector/index.vue +++ b/src/layout/components/CarBrandSelector/index.vue @@ -1,104 +1,140 @@ - - - \ No newline at end of file + + data() { + return { + selectedOptions: [], // 存储已选择的选项 + + options: [{ + value: 'zhinan', + label: '指北', + children: [{ + value: 'shejiyuanze', + label: '指北1', + children: [{ + value: 'yizhi', + label: '一致', + children: [{ + value: 'sadme', + label: 'how sad me' + }] + }, { + value: 'fankui', + label: '反馈' + }, { + value: 'xiaolv', + label: '效率' + }, { + value: 'kekong', + label: '可控' + }] + }, { + value: 'daohang', + label: '指北2', + children: [{ + value: 'cexiangdaohang', + label: '侧向导航' + }, { + value: 'dingbudaohang', + label: '顶部导航' + }] + }] + },], //选项集合 + + }; + } +}; + \ No newline at end of file diff --git a/src/views/base/carmain/components/CarLabelForm.vue b/src/views/base/carmain/components/CarLabelForm.vue new file mode 100644 index 0000000..8684ee4 --- /dev/null +++ b/src/views/base/carmain/components/CarLabelForm.vue @@ -0,0 +1,185 @@ + + +