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