From ab3b894a3f00a972edcdc5c8e72bfd5251579375 Mon Sep 17 00:00:00 2001
From: lcc <805383944@qq.com>
Date: Tue, 15 Jul 2025 10:49:57 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BA=BF=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E5=90=8E=E5=8F=B0=E7=B4=A2=E6=B1=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pingan/src/api/receiver/clues/index.js | 10 ++
pingan/src/components/BrandSelect/index.vue | 129 ++++++++++++++++++
.../src/components/BrandSelect/load-data.js | 25 ++++
pingan/src/components/RegionsSelect/index.vue | 3 +-
pingan/src/views/receiver/clues/index.vue | 84 ++++++++++--
5 files changed, 239 insertions(+), 12 deletions(-)
create mode 100644 pingan/src/components/BrandSelect/index.vue
create mode 100644 pingan/src/components/BrandSelect/load-data.js
diff --git a/pingan/src/api/receiver/clues/index.js b/pingan/src/api/receiver/clues/index.js
index c5f4d1e..e42b404 100644
--- a/pingan/src/api/receiver/clues/index.js
+++ b/pingan/src/api/receiver/clues/index.js
@@ -41,3 +41,13 @@ export async function addCluesOptLog(data) {
}
return Promise.reject(new Error(res.data.message));
}
+
+export async function getSearch(params) {
+ const res = await request.get('/receiver/clues/search', {
+ params
+ });
+ if (res.data.code === 0) {
+ return res.data.data;
+ }
+ return Promise.reject(new Error(res.data.message));
+}
diff --git a/pingan/src/components/BrandSelect/index.vue b/pingan/src/components/BrandSelect/index.vue
new file mode 100644
index 0000000..9e61b8f
--- /dev/null
+++ b/pingan/src/components/BrandSelect/index.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
diff --git a/pingan/src/components/BrandSelect/load-data.js b/pingan/src/components/BrandSelect/load-data.js
new file mode 100644
index 0000000..d2a1374
--- /dev/null
+++ b/pingan/src/components/BrandSelect/load-data.js
@@ -0,0 +1,25 @@
+import request from '@/utils/request';
+import { API_BASE_URL } from '@/config/setting';
+const BASE_URL = API_BASE_URL;
+let reqPromise;
+
+/**
+ * 获取省市区数据
+ */
+export function getRegionsData() {
+ if (!reqPromise) {
+ reqPromise = new Promise((resolve, reject) => {
+ request
+ .get(BASE_URL + '/common/autoBrands', {
+ baseURL: ''
+ })
+ .then((res) => {
+ resolve(res.data ?? []);
+ })
+ .catch((e) => {
+ reject(e);
+ });
+ });
+ }
+ return reqPromise;
+}
diff --git a/pingan/src/components/RegionsSelect/index.vue b/pingan/src/components/RegionsSelect/index.vue
index 8f4d95e..a29c5e0 100644
--- a/pingan/src/components/RegionsSelect/index.vue
+++ b/pingan/src/components/RegionsSelect/index.vue
@@ -2,6 +2,7 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+