diff --git a/.env.development b/.env.development index de7243a..8a3b4e7 100644 --- a/.env.development +++ b/.env.development @@ -6,7 +6,7 @@ ENV = 'development' # 全医通护理站管理平台/开发环境 # VUE_APP_BASE_API = '/dev-api' -VUE_APP_BASE_API = 'http://192.168.16.64:8080' +VUE_APP_BASE_API = 'http://192.168.16.85:8080' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/api/system/communityInfo.js b/src/api/system/communityInfo.js index f9fff17..fe19e17 100644 --- a/src/api/system/communityInfo.js +++ b/src/api/system/communityInfo.js @@ -16,7 +16,21 @@ export function getCommunityInfo(id) { method: 'get' }) } - +// 查询省信息 +export function FirstLevels(query) { + return request({ + url: '/system/communityInfo/getFirstLevelInfo', + method: 'get', + params: query + }) +} +// 查询市信息 +export function SecondaryLevelInfo(id) { + return request({ + url: `/system/communityInfo/getSecondaryLevelInfo?`+`parentId=${id}`, + method: 'get', + }) +} // 新增居住社区信息 export function addCommunityInfo(data) { return request({ @@ -29,7 +43,7 @@ export function addCommunityInfo(data) { // 修改居住社区信息 export function updateCommunityInfo(data) { return request({ - url: '/system/nurseItemTemplate/edit', + url: '/system/communityInfo/edit', method: 'post', data: data }) diff --git a/src/api/system/patientArchives.js b/src/api/system/patientArchives.js new file mode 100644 index 0000000..5f0a0ac --- /dev/null +++ b/src/api/system/patientArchives.js @@ -0,0 +1,58 @@ +import request from '@/utils/request' + +// 查询被护理人基本信息列表 +export function listPatientArchives(query) { + return request({ + url: '/system/patientArchives/list', + method: 'get', + params: query + }) +} + +// 查询被护理人基本信息详细 +export function getPatientArchives(id) { + return request({ + url: '/system/patientArchives/' + id, + method: 'get' + }) +} +// 查询省信息 +export function FirstLevel(query) { + return request({ + url: '/system/communityInfo/getFirstLevelInfo', + method: 'get', + params: query + }) +} +// 查询市信息 +export function SecondaryLevelInfo(id) { + return request({ + url: `/system/communityInfo/getSecondaryLevelInfo?`+`parentId=${id}`, + method: 'get', + }) +} +// 新增被护理人基本信息 +export function addPatientArchives(data) { + return request({ + url: '/system/patientArchives', + method: 'post', + data: data + }) +} + +// 修改被护理人基本信息 +export function updatePatientArchives(data) { + return request({ + url: '/system/patientArchives/edit', + method: 'post', + data: data + }) +} + +// 删除被护理人基本信息 +export function delPatientArchives(id) { + return request({ + url: '/system/patientArchives/' + id, + method: 'delete' + }) +} diff --git a/src/views/system/communityInfo/index.vue b/src/views/system/communityInfo/index.vue index 7127234..59f8eed 100644 --- a/src/views/system/communityInfo/index.vue +++ b/src/views/system/communityInfo/index.vue @@ -1,7 +1,14 @@ diff --git a/src/views/system/patientArchives/index.vue b/src/views/system/patientArchives/index.vue new file mode 100644 index 0000000..a9c6a15 --- /dev/null +++ b/src/views/system/patientArchives/index.vue @@ -0,0 +1,681 @@ + + + diff --git a/src/views/system/person/index.vue b/src/views/system/person/index.vue index 5f67f60..bc4fd0d 100644 --- a/src/views/system/person/index.vue +++ b/src/views/system/person/index.vue @@ -8,7 +8,59 @@ v-show="showSearch" label-width="68px" > - + + + + + + + + + + + --> -