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;
});