From 3a5325039b8782785d029b8ebab8ff807f357eca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Fri, 8 Nov 2024 16:19:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=B7=E5=8A=9F=E8=83=BD=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/system/dict/data.js | 52 ++++++ api/system/dict/type.js | 60 +++++++ api/taicangpop/house.js | 68 ++++---- api/taicangpop/person.js | 60 +++---- components/BottomBtn/index.vue | 45 ++++++ components/ColorItem/index.vue | 36 +++-- main.js | 2 + pages.json | 171 +++++++++++--------- pages/building/building.vue | 22 ++- pages/house/addAndEdit.vue | 238 +++++++++++++++++++++++++++ pages/house/house.vue | 288 +++++++++++++++++++++++++++++++++ pages/house/personInfo.vue | 107 ++++++++++++ pages/index.vue | 3 +- static/scss/index.scss | 3 +- store/getters.js | 2 +- store/modules/user.js | 6 +- utils/handlerColor.js | 48 ++++++ 17 files changed, 1048 insertions(+), 163 deletions(-) create mode 100644 api/system/dict/data.js create mode 100644 api/system/dict/type.js create mode 100644 components/BottomBtn/index.vue create mode 100644 pages/house/addAndEdit.vue create mode 100644 pages/house/house.vue create mode 100644 pages/house/personInfo.vue diff --git a/api/system/dict/data.js b/api/system/dict/data.js new file mode 100644 index 0000000..6c9eb79 --- /dev/null +++ b/api/system/dict/data.js @@ -0,0 +1,52 @@ +import request from '@/utils/request' + +// 查询字典数据列表 +export function listData(query) { + return request({ + url: '/system/dict/data/list', + method: 'get', + params: query + }) +} + +// 查询字典数据详细 +export function getData(dictCode) { + return request({ + url: '/system/dict/data/' + dictCode, + method: 'get' + }) +} + +// 根据字典类型查询字典数据信息 +export function getDicts(dictType) { + return request({ + url: '/system/dict/data/type/' + dictType, + method: 'get' + }) +} + +// 新增字典数据 +export function addData(data) { + return request({ + url: '/system/dict/data', + method: 'post', + data: data + }) +} + +// 修改字典数据 +export function updateData(data) { + return request({ + url: '/system/dict/data', + method: 'put', + data: data + }) +} + +// 删除字典数据 +export function delData(dictCode) { + return request({ + url: '/system/dict/data/' + dictCode, + method: 'delete' + }) +} diff --git a/api/system/dict/type.js b/api/system/dict/type.js new file mode 100644 index 0000000..a7a6e01 --- /dev/null +++ b/api/system/dict/type.js @@ -0,0 +1,60 @@ +import request from '@/utils/request' + +// 查询字典类型列表 +export function listType(query) { + return request({ + url: '/system/dict/type/list', + method: 'get', + params: query + }) +} + +// 查询字典类型详细 +export function getType(dictId) { + return request({ + url: '/system/dict/type/' + dictId, + method: 'get' + }) +} + +// 新增字典类型 +export function addType(data) { + return request({ + url: '/system/dict/type', + method: 'post', + data: data + }) +} + +// 修改字典类型 +export function updateType(data) { + return request({ + url: '/system/dict/type', + method: 'put', + data: data + }) +} + +// 删除字典类型 +export function delType(dictId) { + return request({ + url: '/system/dict/type/' + dictId, + method: 'delete' + }) +} + +// 刷新字典缓存 +export function refreshCache() { + return request({ + url: '/system/dict/type/refreshCache', + method: 'delete' + }) +} + +// 获取字典选择框列表 +export function optionselect() { + return request({ + url: '/system/dict/type/optionselect', + method: 'get' + }) +} \ No newline at end of file diff --git a/api/taicangpop/house.js b/api/taicangpop/house.js index 55493d9..a8143be 100644 --- a/api/taicangpop/house.js +++ b/api/taicangpop/house.js @@ -1,55 +1,55 @@ -import { request } from '@/api/request.js' +import request from '@/utils/request' // 查询住户管理列表 export function listHouse(query) { - return request({ - url: '/taicangpop/house/list', - method: 'get', - params: query, - }) + return request({ + url: '/taicangpop/house/list', + method: 'get', + params: query, + }) } // 查询住户管理详细 export function getHouse(id) { - return request({ - url: '/taicangpop/house/' + id, - method: 'get', - }) + return request({ + url: '/taicangpop/house/' + id, + method: 'get', + }) } // 新增住户管理 export function addHouse(data) { - return request({ - url: '/taicangpop/house', - method: 'post', - data: data, - }) + return request({ + url: '/taicangpop/house', + method: 'post', + data: data, + }) } // 修改住户管理 export function updateHouse(data) { - return request({ - url: '/taicangpop/house', - method: 'put', - data: data, - }) + return request({ + url: '/taicangpop/house', + method: 'put', + data: data, + }) } // 删除住户管理 export function delHouse(id) { - return request({ - url: '/taicangpop/house/' + id, - method: 'delete', - }) + return request({ + url: '/taicangpop/house/' + id, + method: 'delete', + }) } // 导出住户管理 export function exportHouse(query) { - return request({ - url: '/taicangpop/house/export', - method: 'get', - params: query, - }) + return request({ + url: '/taicangpop/house/export', + method: 'get', + params: query, + }) } // 查询住户管理排摸 @@ -61,8 +61,8 @@ export function exportHouse(query) { // } export function listPaimoHouse(id) { - return request({ - url: '/taicangpop/house/getweigengxinnew?buildingid=' + id, - method: 'get', - }) -} + return request({ + url: '/taicangpop/house/getweigengxinnew?buildingid=' + id, + method: 'get', + }) +} \ No newline at end of file diff --git a/api/taicangpop/person.js b/api/taicangpop/person.js index 9d545ce..ce0f10e 100644 --- a/api/taicangpop/person.js +++ b/api/taicangpop/person.js @@ -1,53 +1,53 @@ -import { request } from '@/api/request.js' +import request from '@/utils/request' // 查询居民管理列表 export function listPerson(query) { - return request({ - url: '/taicangpop/person/list', - method: 'get', - params: query, - }) + return request({ + url: '/taicangpop/person/list', + method: 'get', + params: query, + }) } // 查询居民管理详细 export function getPerson(id) { - return request({ - url: '/taicangpop/person/' + id, - method: 'get', - }) + return request({ + url: '/taicangpop/person/' + id, + method: 'get', + }) } // 新增居民管理 export function addPerson(data) { - return request({ - url: '/taicangpop/person', - method: 'post', - data: data, - }) + return request({ + url: '/taicangpop/person', + method: 'post', + data: data, + }) } // 修改居民管理 export function updatePerson(data) { - return request({ - url: '/taicangpop/person', - method: 'put', - data: data, - }) + return request({ + url: '/taicangpop/person', + method: 'put', + data: data, + }) } // 删除居民管理 export function delPerson(id) { - return request({ - url: '/taicangpop/person/' + id, - method: 'delete', - }) + return request({ + url: '/taicangpop/person/' + id, + method: 'delete', + }) } // 导出居民管理 export function exportPerson(query) { - return request({ - url: '/taicangpop/person/export', - method: 'get', - params: query, - }) -} + return request({ + url: '/taicangpop/person/export', + method: 'get', + params: query, + }) +} \ No newline at end of file diff --git a/components/BottomBtn/index.vue b/components/BottomBtn/index.vue new file mode 100644 index 0000000..08b2faa --- /dev/null +++ b/components/BottomBtn/index.vue @@ -0,0 +1,45 @@ + + + + + \ No newline at end of file diff --git a/components/ColorItem/index.vue b/components/ColorItem/index.vue index 286a060..e1e5379 100644 --- a/components/ColorItem/index.vue +++ b/components/ColorItem/index.vue @@ -1,17 +1,16 @@