| | |
| | | import request from '@/utils/axios' |
| | | export function signIn(params: string) { |
| | | return request({ |
| | | url: '/user/info/login', |
| | | method: 'post', |
| | | headers: { |
| | | 'Content-Type': 'application/x-www-form-urlencoded' |
| | | }, |
| | | data: params, |
| | | }) |
| | | } |
| | | export function getuserinfo() { |
| | | return request({ |
| | | url: '/user/info/getUserInfo', |
| | | method: 'post' |
| | | }) |
| | | } |
| | | export function getUsersByRoleCode(params: string) { |
| | | return request({ |
| | | url: '/user/info/getUsersByRoleCode', |
| | | method: 'post', |
| | | headers: { |
| | | 'Content-Type': 'application/x-www-form-urlencoded' |
| | | }, |
| | | data: params, |
| | | }) |
| | | } |
| | | export function getUsersByRoleGroup(params: Object) { |
| | | return request({ |
| | | url: '/user/info/getUsersByRoleGroup', |
| | | method: 'post', |
| | | data: params, |
| | | }) |
| | | } |
| | | // 修改用户信息 |
| | | export function editUserInfo(params:object) { |
| | | return request({ |
| | | url: '/user/info/update', |
| | | method: 'post', |
| | | data: params |
| | | }) |
| | | } |
| | | import { confingInfoStore } from '@/stores/StoresConfing' |
| | | |
| | | export function sendValidateCode(params: string) { |
| | | return request({ |
| | | url: '/user/info/sendValidateCode', |
| | | url: `${confingInfoStore().confingInfo.base_api}/user/info/sendValidateCode`, |
| | | method: 'post', |
| | | headers: { |
| | | 'Content-Type': 'application/x-www-form-urlencoded' |
| | |
| | | data: params, |
| | | }) |
| | | } |
| | | export function forgetPassword(params: Object) { |
| | | export function getPatientInfo2(params: Object) { |
| | | return request({ |
| | | url: '/user/info/forgetPassword', |
| | | url: `${confingInfoStore().confingInfo.base_api}/topic/getPatientInfo2`, |
| | | method: 'post', |
| | | data: params, |
| | | }) |
| | | } |
| | | export function updatePatient(params: Object) { |
| | | return request({ |
| | | url: `${confingInfoStore().confingInfo.base_api}/topic/updatePatient`, |
| | | method: 'post', |
| | | data: params, |
| | | }) |
| | | } |
| | | export function listWeightHistory(params: Object) { |
| | | return request({ |
| | | url: `${confingInfoStore().confingInfo.base_api}/patient/hemo/med/body/state/pre/listWeightHistory`, |
| | | method: 'post', |
| | | data: params, |
| | | }) |
| | | } |
| | | export function listBPHistory(params: Object) { |
| | | return request({ |
| | | url: `${confingInfoStore().confingInfo.base_api}/patient/hemo/med/body/state/pre/listBPHistory`, |
| | | method: 'post', |
| | | data: params, |
| | | }) |
| | | } |
| | | export function checkUploadFile(params: Object) { |
| | | return request({ |
| | | url: `${confingInfoStore().confingInfo.faceApi}/test/identifyFace`, |
| | | method: 'post', |
| | | data: params, |
| | | }) |
| | | } |
| | | export function test() { |
| | | return request({ |
| | | url: `http://127.0.0.1:5000/test`, |
| | | method: 'post', |
| | | }) |
| | | } |