From 39e44ec22004b5f22cbde49ce4a46497d65ec6ab Mon Sep 17 00:00:00 2001 From: Claude Lee Date: Mon, 23 Sep 2024 13:59:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BD=E5=AE=B6=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=EF=BC=88=E6=9C=AA=E5=AE=8C=E6=88=90=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/dhc/area.js | 4 ++-- src/views/dhc/country/index.vue | 34 +++++++++++++++++++++++++++++++-- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/src/api/dhc/area.js b/src/api/dhc/area.js index f532b2e..94c7901 100644 --- a/src/api/dhc/area.js +++ b/src/api/dhc/area.js @@ -44,10 +44,10 @@ export function delArea(areaId) { } // 查询区域信息 -export function queryArealist(data) { +export function queryArealist(query) { return request({ url: '/dhc/area/queryArealist', - method: 'post', + method: 'get', params: query }) } diff --git a/src/views/dhc/country/index.vue b/src/views/dhc/country/index.vue index 573d073..32fcd05 100644 --- a/src/views/dhc/country/index.vue +++ b/src/views/dhc/country/index.vue @@ -17,6 +17,16 @@ @keyup.enter.native="handleQuery" /> + + + + + + + + @@ -132,6 +147,17 @@ + + + + + - > + @@ -166,6 +192,7 @@ import { listCountry, getCountry, delCountry, addCountry, updateCountry } from " import { queryArealist } from "@/api/dhc/area"; export default { name: "Country", + dicts: ['product_line'], data() { return { // 遮罩层 @@ -211,6 +238,9 @@ export default { countryName: [ { required: true, message: "国家名称不能为空", trigger: "blur" } ], + productLineCode: [ + { required: true, message: "产品线不能为空", trigger: "blur" } + ], areaIdLarge: [ { required: true, message: "销售大区不能为空", trigger: "blur" } ], @@ -236,7 +266,7 @@ export default { /** 查询区域信息 */ getAreaList() { this.loading = true; - let params = {areaType: '', areaLevel:''}; + let params = {productLineCode: this.form.productLineCode, areaType: 'sale_area'}; queryArealist(params).then(response => { this.areaLargeList = response.data; });