diff --git a/admin/src/components/CarSelector/index.vue b/admin/src/components/CarSelector/index.vue index 6483a08..ac9487b 100644 --- a/admin/src/components/CarSelector/index.vue +++ b/admin/src/components/CarSelector/index.vue @@ -95,18 +95,18 @@ }, created() { this.loadBrands(); - if (this.form.brandId) { - this.loadSeriesList(this.form.brandId); - } - if (this.form.seriesId) { - this.loadModelList(this.form.seriesId); - } }, watch: { value: { deep: true, handler(newVal) { this.form = { ...newVal }; // 外部值变化时更新内部form + if (this.form.brandId) { + this.loadSeriesList(this.form.brandId); + } + if (this.form.seriesId) { + this.loadModelList(this.form.seriesId); + } } } }, diff --git a/pingan/src/api/receiver/clues/index.js b/pingan/src/api/receiver/clues/index.js index ef9a6d3..48e977d 100644 --- a/pingan/src/api/receiver/clues/index.js +++ b/pingan/src/api/receiver/clues/index.js @@ -13,3 +13,23 @@ export async function pageClues(params) { } return Promise.reject(new Error(res.data.message)); } + +export async function getClues(params) { + const res = await request.get('/receiver/clues', { + params + }); + if (res.data.code === 0) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} + +export async function pageCluesOptLog(params) { + const res = await request.get('/receiver/clues/opt', { + params + }); + if (res.data.code === 0) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} diff --git a/pingan/src/api/receiver/customer/index.js b/pingan/src/api/receiver/customer/index.js new file mode 100644 index 0000000..c47bfb2 --- /dev/null +++ b/pingan/src/api/receiver/customer/index.js @@ -0,0 +1,35 @@ +import request from '@/utils/request'; + +/** + * 分页查询 + * @param params 查询条件 + */ +export async function pageCustomer(params) { + const res = await request.get('/receiver/customer/page', { + params + }); + if (res.data.code === 0) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} + +export async function getCustomer(params) { + const res = await request.get('/receiver/customer', { + params + }); + if (res.data.code === 0) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} + +export async function pageCustomerOptLog(params) { + const res = await request.get('/receiver/customer/opt', { + params + }); + if (res.data.code === 0) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} diff --git a/pingan/src/components/CarSelector/index.vue b/pingan/src/components/CarSelector/index.vue index 6483a08..6ef9147 100644 --- a/pingan/src/components/CarSelector/index.vue +++ b/pingan/src/components/CarSelector/index.vue @@ -1,6 +1,6 @@