diff --git a/.env.prod b/.env.prod index a2e15ab..98d7bf2 100644 --- a/.env.prod +++ b/.env.prod @@ -8,7 +8,7 @@ VITE_OPEN = true ENV = 'prod' # ADMIN 服务地址 -VITE_ADMIN_PROXY_PATH = http://123.157.250.162:36588 +VITE_ADMIN_PROXY_PATH = http://127.0.0.1:36588 # 图片访问基础地址 VITE_IMAGE_BASE_PATH = http://123.157.250.162:36588/api diff --git a/dict.js b/dict.js index c788ae0..5664e0e 100644 --- a/dict.js +++ b/dict.js @@ -1,7 +1,7 @@ (function () { const result = [] - const dictId = "1944581845801713666" - const dictType = "dh_device_model" + const dictId = "1945360709185765377" + const dictType = "dh_house_type" let children = document.querySelector("#doc").children; if (children) { children = Array.from(children) diff --git a/src/api/area/areaManage.ts b/src/api/area/areaManage.ts index f94dbb3..9c1f785 100644 --- a/src/api/area/areaManage.ts +++ b/src/api/area/areaManage.ts @@ -1,5 +1,13 @@ import request from "/@/utils/request" +export function select(query: any) { + return request({ + url: '/admin/areaManage/select', + method: 'get', + params: query + }) +} + export function fetchList(query?: Object) { return request({ url: '/admin/areaManage/page', diff --git a/src/components/Select/SelectArea.vue b/src/components/Select/SelectArea.vue new file mode 100644 index 0000000..b5c921d --- /dev/null +++ b/src/components/Select/SelectArea.vue @@ -0,0 +1,105 @@ + + + diff --git a/src/components/index.ts b/src/components/index.ts index 99b59bc..6140ce7 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -22,6 +22,8 @@ import TagSex from "/@/components/Tag/TagSex.vue" import TagSync from "/@/components/Tag/TagSync.vue" import TagUserStatus from "/@/components/Tag/TagUserStatus.vue" +import SelectArea from "/@/components/Select/SelectArea.vue" + // import DictSelect from "/@/components/DictSelect/index.vue" // 第三方组件 @@ -69,6 +71,7 @@ export default { app.component('TagSync', TagSync); app.component('TagUserStatus', TagUserStatus); + app.component('SelectArea', SelectArea); // app.component('DictSelect', DictSelect); // 导入全部的elmenet-plus的图标 diff --git a/src/views/area/_components/areaHouseForm.vue b/src/views/area/_components/areaHouseForm.vue new file mode 100644 index 0000000..24260a1 --- /dev/null +++ b/src/views/area/_components/areaHouseForm.vue @@ -0,0 +1,148 @@ + + + \ No newline at end of file diff --git a/src/views/area/_components/areaHouseTable.vue b/src/views/area/_components/areaHouseTable.vue new file mode 100644 index 0000000..4a50630 --- /dev/null +++ b/src/views/area/_components/areaHouseTable.vue @@ -0,0 +1,203 @@ + + + \ No newline at end of file diff --git a/src/views/area/_components/bindCameraTable.vue b/src/views/area/_components/bindCameraTable.vue new file mode 100644 index 0000000..fe8dd0f --- /dev/null +++ b/src/views/area/_components/bindCameraTable.vue @@ -0,0 +1,106 @@ + + + \ No newline at end of file diff --git a/src/views/area/areaHouse/index.vue b/src/views/area/areaHouse/index.vue new file mode 100644 index 0000000..822cb72 --- /dev/null +++ b/src/views/area/areaHouse/index.vue @@ -0,0 +1,156 @@ + + + \ No newline at end of file diff --git a/src/views/area/areaManage/form.vue b/src/views/area/areaManage/form.vue index 1ae653a..70c6c37 100644 --- a/src/views/area/areaManage/form.vue +++ b/src/views/area/areaManage/form.vue @@ -2,42 +2,40 @@ - - - + + + - - + - - - - + + + - - - - + + + - - - - - - - - + - + + + + + + + -