From 38512c153eca4621c27970ec9b3b330353647ac7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=88=98=E5=8F=AC=E9=9B=AA?= <1637048769@qq.com>
Date: Fri, 20 Nov 2020 09:19:57 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=8C=BA=E5=88=97=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/hardware/area.js | 41 +++++++
src/views/system/area/index.vue | 200 ++++++++++++++++++++++++++++++++
2 files changed, 241 insertions(+)
create mode 100644 src/views/system/area/index.vue
diff --git a/src/api/hardware/area.js b/src/api/hardware/area.js
index fd93260..d8bf7da 100644
--- a/src/api/hardware/area.js
+++ b/src/api/hardware/area.js
@@ -7,6 +7,9 @@ export function list() {
method: 'get',
})
}
+
+
+// 获取大区下拉列表
export function areaSelect() {
return request({
url: '/system/area/select',
@@ -14,15 +17,53 @@ export function areaSelect() {
})
}
+
+// 更新和保存
+export function save(data) {
+ return request({
+ url: '/system/area/save',
+ method: 'post',
+ data
+ })
+}
+
+// 删除
+export function del(ids) {
+ return request({
+ url: '/system/area/' + ids,
+ method: 'delete'
+ })
+}
+
+// 保存大区地区信息
+export function saveProvince(data) {
+ return request({
+ url: '/system/area/saveProvince',
+ method: 'post',
+ data
+ })
+}
+
+// 根据大区ID获取地区列表
export function getProvinceByArea(id) {
return request({
url: '/system/province/getProvinceByArea?areaId=' + id,
method: 'get',
})
}
+
+// 根据parentCode获取地区列表
export function getProvinceByParent(id) {
return request({
url: '/system/province/getProvinceByParent?parent=' + id,
method: 'get',
})
}
+
+// 获取省份地区列表
+export function province() {
+ return request({
+ url: '/system/province/list',
+ method: 'get',
+ })
+}
diff --git a/src/views/system/area/index.vue b/src/views/system/area/index.vue
new file mode 100644
index 0000000..0e8b888
--- /dev/null
+++ b/src/views/system/area/index.vue
@@ -0,0 +1,200 @@
+
+
+
+ 添加
+ 批量删除
+
+
+
+
+
+
+
+
+
+
+
+
+ 查看省份
+ 修改
+ 删除
+
+
+
+
+
+
+ {{data.cityName}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file