|
@@ -2,13 +2,13 @@ import {http} from './service.js'
|
|
|
|
|
|
|
|
//文件上传
|
|
//文件上传
|
|
|
const uploadFile={
|
|
const uploadFile={
|
|
|
- submit:p => http.upload('/upload/putfile', {name:'file',filePath:p}),
|
|
|
|
|
|
|
+ submit:p => http.upload('/blade-resource/oss/endpoint/put-pic-md5', {name:'file',filePath:p}),
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//短信api
|
|
//短信api
|
|
|
const SMSApi = {
|
|
const SMSApi = {
|
|
|
- sendSms:p => http.post('huawei/sms/sendSms'+p),
|
|
|
|
|
- validCode:p => http.post('huawei/sms/validCode'+p),
|
|
|
|
|
|
|
+ sendSms:p => http.post('/park-app-service/huawei/sms/sendSms'+p),
|
|
|
|
|
+ validCode:p => http.post('/park-app-service/huawei/sms/validCode'+p),
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//字典
|
|
//字典
|
|
@@ -28,21 +28,21 @@ let wxData={
|
|
|
|
|
|
|
|
//微信api
|
|
//微信api
|
|
|
const wxApi = {
|
|
const wxApi = {
|
|
|
- subscribe:p => http.post('/wx/msgSend', p),
|
|
|
|
|
- getAccessToken:p => http.get('/wx/getAccessToken', {params:p}),
|
|
|
|
|
- getOpenId:p => http.get('/wx/getOpenId', {params:p}),
|
|
|
|
|
|
|
+ subscribe:p => http.post('/park-app-service/app/msgSend', p),
|
|
|
|
|
+ getAccessToken:p => http.get('/park-app-service/app/getAccessToken', {params:p}),
|
|
|
|
|
+ getOpenId:p => http.get('/park-app-service/app/getOpenId', {params:p}),
|
|
|
//获取小程序的audit状态
|
|
//获取小程序的audit状态
|
|
|
- getAppletStatus:p => http.get('appconf/appconf/getById', {params:p}),
|
|
|
|
|
|
|
+ getAppletStatus:p => http.get('/park-app-service/app/wxConf/getById', {params:p}),
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//登录
|
|
//登录
|
|
|
-const login=p => http.post('community/enterprisestaff/app/login', p)
|
|
|
|
|
|
|
+const login=p => http.post('/park-app-service/app/login/login', p)
|
|
|
|
|
|
|
|
//修改密码
|
|
//修改密码
|
|
|
const updatePassword=p => http.post('community/enterprisestaff/app/updatePassword'+p)
|
|
const updatePassword=p => http.post('community/enterprisestaff/app/updatePassword'+p)
|
|
|
|
|
|
|
|
//获取管理员的openid集合
|
|
//获取管理员的openid集合
|
|
|
-const getManagerOpenList=p => http.get('/community/enterprisestaff/app/getManagerList',{params:p})
|
|
|
|
|
|
|
+const getManagerOpenList=p => http.get('/cyzh-enterprise/staff/app/getManagerList',{params:p})
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取token
|
|
//获取token
|
|
@@ -50,16 +50,19 @@ const getToken=p => http.post('blade-auth/oauth/token'+p,{},{header: {"Authoriza
|
|
|
|
|
|
|
|
//园区api
|
|
//园区api
|
|
|
const agency = {
|
|
const agency = {
|
|
|
- getAgencyTenantList:p => http.get('agency/agency/getAgencyTenantList', {params:p}),
|
|
|
|
|
- page:p => http.get('/agency/agency/getAgencyList', {params:p}),
|
|
|
|
|
|
|
+ getAgencyTenantList:p => http.get('/park-app-service/agency/getAgencyTenantList', {params:p}),
|
|
|
|
|
+ page:p => http.get('/cyzh-community/agency/list', {params:p}),
|
|
|
submit:p => http.post('/agency/agency/submit', p),
|
|
submit:p => http.post('/agency/agency/submit', p),
|
|
|
}
|
|
}
|
|
|
//区域api
|
|
//区域api
|
|
|
const residential = {
|
|
const residential = {
|
|
|
- page:p => http.get('/community/residential/listByAgencyId', {params:p}),
|
|
|
|
|
|
|
+ page:p => http.get('/cyzh-community/residential/list', {params:p}),
|
|
|
selectPage:p => http.get('/community/residential/select', {params:p}),
|
|
selectPage:p => http.get('/community/residential/select', {params:p}),
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
//楼栋
|
|
//楼栋
|
|
|
const building = {
|
|
const building = {
|
|
|
page:p => http.get('/building/building/list', {params:p})
|
|
page:p => http.get('/building/building/list', {params:p})
|
|
@@ -68,40 +71,40 @@ const building = {
|
|
|
|
|
|
|
|
//企业api
|
|
//企业api
|
|
|
const enterprise = {
|
|
const enterprise = {
|
|
|
- page:p => http.get('/enterprise/enterprise/list', {params:p}),
|
|
|
|
|
- detail:p => http.get('/enterprise/enterprise/detail', {params:p}),
|
|
|
|
|
- submit:p => http.post('/enterprise/enterprise/submit', p),
|
|
|
|
|
|
|
+ page:p => http.get('/cyzh-enterprise/enterprise/list', {params:p}),
|
|
|
|
|
+ detail:p => http.get('/cyzh-enterprise/enterprise/detail', {params:p}),
|
|
|
|
|
+ submit:p => http.post('/cyzh-enterprise/enterprise/submit', p),
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//企业员工
|
|
//企业员工
|
|
|
const enterprisestaff = {
|
|
const enterprisestaff = {
|
|
|
- page:p => http.get('/community/enterprisestaff/getEnterpriseList', {params:p}),
|
|
|
|
|
- detail:p => http.get('/community/enterprisestaff/detail', {params:p}),
|
|
|
|
|
- submit:p => http.post('/community/enterprisestaff/submit', p),
|
|
|
|
|
|
|
+ page:p => http.get('/cyzh-enterprise/staff/list', {params:p}),
|
|
|
|
|
+ detail:p => http.get('/cyzh-enterprise/staff/detail', {params:p}),
|
|
|
|
|
+ submit:p => http.post('/cyzh-enterprise/staff/submit', p),
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//CMS
|
|
//CMS
|
|
|
const CMS={
|
|
const CMS={
|
|
|
- page:p => http.get('/estate/article/list', {params:p}),
|
|
|
|
|
- detail:p => http.get('/estate/article/detail', {params:p}),
|
|
|
|
|
- addReaderCount:p => http.post('/estate/article/addReaderCount', p),
|
|
|
|
|
|
|
+ page:p => http.get('/cyzh-estate/article/list', {params:p}),
|
|
|
|
|
+ detail:p => http.get('/cyzh-estate/article/detail', {params:p}),
|
|
|
|
|
+ addReaderCount:p => http.post('/cyzh-estate/article/addReaderCount', p),
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//banner 轮播图
|
|
//banner 轮播图
|
|
|
const banner={
|
|
const banner={
|
|
|
- page:p => http.get('/estate/banners/list', {params:p}),
|
|
|
|
|
|
|
+ page:p => http.get('/cyzh-estate/banners/list', {params:p}),
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//消防设备
|
|
//消防设备
|
|
|
const fireDevice={
|
|
const fireDevice={
|
|
|
//企业角色的设备列表接口
|
|
//企业角色的设备列表接口
|
|
|
- page:p => http.get('/smartapplication/smartdevice/list', {params:p}),
|
|
|
|
|
|
|
+ page:p => http.get('/park-app-service/iotdevice/list', {params:p}),
|
|
|
//园区角色的设备列表接口
|
|
//园区角色的设备列表接口
|
|
|
- agencyPage:p => http.get('/smartapplication/smartdevice/getDeviceList', {params:p}),
|
|
|
|
|
|
|
+ agencyPage:p => http.get('/park-app-service/iotdevice/list', {params:p}),
|
|
|
//报警记录接口
|
|
//报警记录接口
|
|
|
- alarmRecord:p => http.get('/smartapplication/smartdevice/getAlarmRecord', {params:p}),
|
|
|
|
|
|
|
+ alarmRecord:p => http.get('/cyzh-smart-device/iotalarm/list', {params:p}),
|
|
|
//电表抄表记录
|
|
//电表抄表记录
|
|
|
- electricmeterrecord:p => http.get('/electricmeterrecord/electricmeterrecord/list', {params:p}),
|
|
|
|
|
|
|
+ electricmeterrecord:p => http.get('/cyzh-smart-device/electricmeterrecord/list', {params:p}),
|
|
|
}
|
|
}
|
|
|
//用户反馈
|
|
//用户反馈
|
|
|
const feedback = {
|
|
const feedback = {
|
|
@@ -109,14 +112,14 @@ const feedback = {
|
|
|
}
|
|
}
|
|
|
//园区公告
|
|
//园区公告
|
|
|
const notice = {
|
|
const notice = {
|
|
|
- page:p => http.get('/estate/parknotice/list', {params:p}),
|
|
|
|
|
- remove:p => http.post('/estate/parknotice/remove?ids='+p),
|
|
|
|
|
- submit:p => http.post('/estate/parknotice/save', p),
|
|
|
|
|
|
|
+ page:p => http.get('/cyzh-estate/noticepushrecord/listReturnNotice', {params:p}),
|
|
|
|
|
+ remove:p => http.post('/park-app-service/parknotice/remove?ids='+p),
|
|
|
|
|
+ submit:p => http.post('/park-app-service/parknotice/save', p),
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//测温记录
|
|
//测温记录
|
|
|
const temperatureRecord = {
|
|
const temperatureRecord = {
|
|
|
- page:p => http.get('/smartapplication/temperaturerecord/getTemperatureRecord', {params:p}),
|
|
|
|
|
|
|
+ page:p => http.get('/cyzh-smart-device/temperaturerecord/list', {params:p}),
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//健康码
|
|
//健康码
|
|
@@ -126,64 +129,63 @@ const healthCode = {
|
|
|
|
|
|
|
|
const car = {
|
|
const car = {
|
|
|
//出入记录
|
|
//出入记录
|
|
|
- condition:p => http.get('carenterrecord/carenterrecord/queryRecord', {params:p}),
|
|
|
|
|
|
|
+ condition:p => http.get('/cyzh-estate/carenterrecord/queryRecord', {params:p}),
|
|
|
//入场记录
|
|
//入场记录
|
|
|
- enterPage:p => http.get('/carenterrecord/carenterrecord/list', {params:p}),
|
|
|
|
|
|
|
+ enterPage:p => http.get('/cyzh-estate/carenterrecord/list', {params:p}),
|
|
|
//出场记录
|
|
//出场记录
|
|
|
- outPage:p => http.get('/caroutrecord/caroutrecord/list', {params:p}),
|
|
|
|
|
|
|
+ outPage:p => http.get('/cyzh-estate/caroutrecord/list', {params:p}),
|
|
|
|
|
|
|
|
//车辆列表
|
|
//车辆列表
|
|
|
- carList:p => http.get('/community/car/app/list', {params:p}),
|
|
|
|
|
|
|
+ carList:p => http.get('/cyzh-estate/car/parkapp/list', {params:p}),
|
|
|
//添加车辆
|
|
//添加车辆
|
|
|
- carAdd:p => http.post('/community/car/submit', p),
|
|
|
|
|
|
|
+ carAdd:p => http.post('/cyzh-estate/car/submit', p),
|
|
|
//删除车辆
|
|
//删除车辆
|
|
|
- carRemove:p => http.post('/community/car/remove?ids='+p),
|
|
|
|
|
|
|
+ carRemove:p => http.post('/cyzh-estate/car/remove?ids='+p),
|
|
|
//车辆审核
|
|
//车辆审核
|
|
|
- carAudit:p => http.post('/community/car/audit', p),
|
|
|
|
|
|
|
+ carAudit:p => http.post('/cyzh-estate/car/audit', p),
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//开门设备
|
|
//开门设备
|
|
|
const device={
|
|
const device={
|
|
|
- page:p => http.get('facedevice/facedevice/list', {params:p}),
|
|
|
|
|
- open:p => http.post('facedevice/facedevice/remoteOpenDoor', p)
|
|
|
|
|
|
|
+ page:p => http.get('/cyzh-smart-device/doordevice/list', {params:p}),
|
|
|
|
|
+ open:p => http.post('/park-app-service/doordevice/remoteOpenDoor', p)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//园区统计
|
|
//园区统计
|
|
|
const statistical={
|
|
const statistical={
|
|
|
//园区信息统计
|
|
//园区信息统计
|
|
|
- agencyStatistical:p => http.get('/statistics/agency', {params:p}),
|
|
|
|
|
|
|
+ agencyStatistical:p => http.get('/park-app-service/statistics/agency', {params:p}),
|
|
|
//当日动态数据
|
|
//当日动态数据
|
|
|
- todayData:p => http.get('/statistics/screen/park/todayData', {params:p}),
|
|
|
|
|
|
|
+ todayData:p => http.get('/park-app-service/statistics/todayData', {params:p}),
|
|
|
//人员进出记录
|
|
//人员进出记录
|
|
|
- carTendency:p => http.get('statistics/screen/park/carTendency', {params:p}),
|
|
|
|
|
|
|
+ carTendency:p => http.get('/park-app-service/statistics/carTendency', {params:p}),
|
|
|
//三十天内用电量
|
|
//三十天内用电量
|
|
|
- electricMeterStatic:p => http.get('statistics/electricMeterStatic', {params:p}),
|
|
|
|
|
|
|
+ electricMeterStatic:p => http.get('/park-app-service/statistics/electricMeterStatic', {params:p}),
|
|
|
//消防设备数据统计
|
|
//消防设备数据统计
|
|
|
- getGateStatic:p => http.get('smartapplication/smartdevice/getFireStatic', {params:p}),
|
|
|
|
|
|
|
+ getGateStatic:p => http.get('/park-app-service/statistics/getFireStatic', {params:p}),
|
|
|
//消防场景告警事件统计
|
|
//消防场景告警事件统计
|
|
|
- getDeviceJobStaticByApp:p => http.get('jobs/devicejob/getDeviceJobStaticByApp', {params:p}),
|
|
|
|
|
-
|
|
|
|
|
|
|
+ getDeviceJobStaticByApp:p => http.get('/park-app-service/statistics/getDeviceJobStaticByApp', {params:p}),
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//出入记录
|
|
//出入记录
|
|
|
const accessrecord={
|
|
const accessrecord={
|
|
|
- page:p => http.get('/community/accessrecord/list', {params:p}),
|
|
|
|
|
|
|
+ page:p => http.get('/cyzh-estate/accessrecord/list', {params:p}),
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//访客授权
|
|
//访客授权
|
|
|
const guest={
|
|
const guest={
|
|
|
- submit:p => http.post('estate/guest/application', p),
|
|
|
|
|
- page:p => http.get('estate/guest/list', {params:p}),
|
|
|
|
|
- getByGuestOpenId:p => http.get('/estate/guest/getByGuestOpenId', {params:p}),
|
|
|
|
|
- check:p => http.post('estate/guest/check', p),
|
|
|
|
|
- remove:p => http.post('estate/guest/remove?ids='+p),
|
|
|
|
|
|
|
+ submit:p => http.post('/cyzh-estate/guest/application', p),
|
|
|
|
|
+ page:p => http.get('/cyzh-estate/guest/list', {params:p}),
|
|
|
|
|
+ getByGuestOpenId:p => http.get('/cyzh-estate/guest/getByGuestOpenId', {params:p}),
|
|
|
|
|
+ check:p => http.post('/cyzh-estate/guest/check', p),
|
|
|
|
|
+ remove:p => http.post('/cyzh-estate/guest/remove?ids='+p),
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//企业项目
|
|
//企业项目
|
|
|
const enterpriseproject={
|
|
const enterpriseproject={
|
|
|
- submit:p => http.post('enterprise/enterpriseproject/submit', p),
|
|
|
|
|
- page:p => http.get('enterprise/enterpriseproject/list', {params:p}),
|
|
|
|
|
- remove:p => http.post('enterprise/enterpriseproject/remove?ids='+p),
|
|
|
|
|
|
|
+ submit:p => http.post('/cyzh-enterprise/project/submit', p),
|
|
|
|
|
+ page:p => http.get('/cyzh-enterprise/project/list', {params:p}),
|
|
|
|
|
+ remove:p => http.post('/cyzh-enterprise/project/remove?ids='+p),
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//视频监控
|
|
//视频监控
|
|
@@ -199,7 +201,7 @@ const healthCode = {
|
|
|
branchDetail:p => http.get('party/branch/detail', {params:p}),
|
|
branchDetail:p => http.get('party/branch/detail', {params:p}),
|
|
|
//查看员工属于哪个党支部 enterpriseStaffId
|
|
//查看员工属于哪个党支部 enterpriseStaffId
|
|
|
branch:p => http.get('party/branch/app/list/', {params:p}),
|
|
branch:p => http.get('party/branch/app/list/', {params:p}),
|
|
|
- isPartyMember:p => http.get('party/member/isPartyMember', {params:p}),
|
|
|
|
|
|
|
+ isPartyMember:p => http.get('/park-app-service/party/member/isPartyMember', {params:p}),
|
|
|
//党员认证
|
|
//党员认证
|
|
|
apply:p => http.post('party/member/apply',p),
|
|
apply:p => http.post('party/member/apply',p),
|
|
|
//三会一课
|
|
//三会一课
|