Browse Source

新增居民画像

新增打卡
dev
战立标 2 years ago
parent
commit
6391ce0c3a
  1. 4
      components/Tabs/index.js
  2. 2
      components/Tabs/index.wxml
  3. 6
      components/Tabs/index.wxss
  4. 20
      ec-canvas/echarts.js
  5. 5
      subpages/searchResult/pages/punchCard/punchCard.js
  6. 1
      subpages/searchResult/pages/punchCard/punchCard.wxml
  7. 16
      subpages/searchResult/pages/punchCard/punchCard.wxss
  8. 2
      subpages/statistics/pages/crowdPortrait/crowdPortrait.js
  9. 243
      subpages/statistics/pages/residentPortrait2/residentPortrait.js
  10. 5
      subpages/statistics/pages/residentPortrait2/residentPortrait.json
  11. 180
      subpages/statistics/pages/residentPortrait2/residentPortrait.wxml
  12. 292
      subpages/statistics/pages/residentPortrait2/residentPortrait.wxss
  13. 191
      utils/api.js

4
components/Tabs/index.js

@ -2,6 +2,10 @@ Component({
properties: {
tabList: {
type: Array
},
noBg: {
type: Boolean,
default: false
}
},
data: {

2
components/Tabs/index.wxml

@ -1,5 +1,5 @@
<view class="tab">
<view class="tab-item {{cur - 0 === index - 0?'cur':''}}"
<view class="tab-item {{cur - 0 === index - 0?'cur':''}} {{noBg?'noBg':''}}"
wx:for="{{tabList}}"
data-index="{{index}}"
wx:key="{{index}}"

6
components/Tabs/index.wxss

@ -19,6 +19,12 @@
color: #3A80E7;
position: relative;
}
.tab .tab-item.noBg {
background: none!important;
border: none !important;
margin: 0 0rpx 30rpx;
}
.cur-img {
display: none;
}

20
ec-canvas/echarts.js

File diff suppressed because one or more lines are too long

5
subpages/searchResult/pages/punchCard/punchCard.js

@ -216,5 +216,10 @@ Page({
lastLog: res.data
})
})
},
goResidentPortrait2() {
wx.navigateTo({
url: '/subpages/statistics/pages/residentPortrait2/residentPortrait?id='+this.data.resiId,
})
}
})

1
subpages/searchResult/pages/punchCard/punchCard.wxml

@ -24,6 +24,7 @@
<View class="value">{{form.mobile}}</View>
</view>
</view>
<view class="jm-btn" bind:tap="goResidentPortrait2">居民画像</view>
</view>

16
subpages/searchResult/pages/punchCard/punchCard.wxss

@ -109,3 +109,19 @@ page {
color: #999;
font-size: 24rpx;
}
.jm-btn {
position: absolute;
top: 30rpx;
right: 20rpx;
width: 146rpx;
height: 56rpx;
line-height: 56rpx;
background: #3A80E7;
border-radius: 28rpx;
color: #fff;
text-align: center;
font-size: 28rpx;
}
.card {
position: relative;
}

2
subpages/statistics/pages/crowdPortrait/crowdPortrait.js

@ -23,7 +23,7 @@ Page({
},
gotopage(e) {
wx.navigateTo({
url: "/subpages/statistics/pages/residentPortrait/residentPortrait?id="+e.currentTarget.dataset.id
url: "/subpages/statistics/pages/residentPortrait2/residentPortrait?id="+e.currentTarget.dataset.id
})
},
getList() {

243
subpages/statistics/pages/residentPortrait2/residentPortrait.js

@ -1,71 +1,234 @@
import * as echarts from '../../../../ec-canvas/echarts';
import {
getFamilyRelationshipList, getPersonalFeature,
getPersonalFile, potentialSatisfactionForResident, queryResidentFollowRecord
} from "../../../../utils/statisticsApi";
getPersonalFile,
getFamilyRelationshipList,
provincialSatisfactionPageList,
communitySatisfactionPageList,
eventPageList,
recorHistory,
serviceNumber
} from '../../../../utils/api'
var chart;
Page({
data: {
id: 0,
ec: {
lazyLoad: true
},
id: '',
tabList: [{
label: '12345投诉',
value: '1'
}, {
label: '省满意度调查',
value: '2'
}, {
label: '社区满意度自查',
value: '3'
}],
userInfo: {},
relationship: {},
unSolvedNum: 0,
unFinishNum: 0,
noServiceNum: 0,
event12345Num: 0,
provinceSatisfactionNum: 0,
selfInspectNum: 0,
logList: [],
tags: {}
userList: [],
eventList: [],
provincialList: [],
communityList: [],
businessIndex: 0,
recorHistoryList: []
},
onLoad(options) {
this.setData({
id: options.id
})
this.getUser()
this.getNum()
this.getlog()
this.getPersonal()
this.getFamily()
this.geteventPageList()
this.getRecorHistory()
this.getData()
},
getUser() {
getPersonalFile({resid: this.data.id}).then(({data}) => {
tabChange(e) {
this.setData({
userInfo: data
businessIndex: e.detail
})
console.log(e.detail)
if (e.detail == '0') {
this.geteventPageList()
}
if (e.detail == '1') {
this.getprovincialSatisfactionPageList()
}
if (e.detail == '2') {
this.getcommunitySatisfactionPageList()
}
},
getPersonal() {
getPersonalFile({ resid: this.data.id }).then(res => {
this.setData({
userInfo: res.data
})
getFamilyRelationshipList({resid: this.data.id, type: 0}).then(({data}) => {
})
},
getFamily() {
getFamilyRelationshipList({
id: this.data.id,
type: '0'
}).then(res => {
this.setData({
relationship: data
userList: res.data
})
})
getPersonalFeature({resid: this.data.id}).then(({data}) => {
},
getprovincialSatisfactionPageList() {
let params = {
residList: [this.data.id],
pageNo: 1,
pageSize: 5
}
provincialSatisfactionPageList(params).then(res => {
this.setData({
tags: data
provincialList: res.data
})
})
},
getNum() {
getcommunitySatisfactionPageList() {
let params = {
resiId: this.data.id,
};
potentialSatisfactionForResident(params).then(({data}) => {
residList: [this.data.id],
pageNo: 1,
pageSize: 5
}
communitySatisfactionPageList(params).then(res => {
this.setData({
unSolvedNum: data.unSolvedNum,
unFinishNum: data.unFinishNum,
noServiceNum: data.noServiceNum,
event12345Num: data.event12345Num,
provinceSatisfactionNum: data.provinceSatisfactionNum,
selfInspectNum: data.selfInspectNum
communityList: res.data
})
})
});
},
getlog() {
geteventPageList() {
let params = {
resiId: this.data.id,
};
queryResidentFollowRecord(params).then(({data}) => {
residList: [this.data.id],
pageNo: 1,
pageSize: 5
}
eventPageList({ eventType: "3", ...params }).then(res => {
this.setData({
logList: data
eventList: res.data.list
})
})
},
eventView(e) {
wx.navigateTo({
url: '/subpages/statistics/pages/event/detail/detail?id='+e.currentTarget.dataset.id,
})
},
provincialView(e) {
console.log(e.currentTarget.dataset.id);
wx.navigateTo({
url: '/subpages/statistics/pages/dissatisfied/detial/detail?id='+JSON.stringify(e.currentTarget.dataset.id),
})
},
communityView(e) {
console.log(e.currentTarget.dataset.id);
wx.navigateTo({
url: '/subpages/statistics/pages/dissatisfied/detial/detail?id='+JSON.stringify(e.currentTarget.dataset.id),
})
},
getRecorHistory() {
recorHistory().then(res => {
this.setData({
recorHistoryList: res.data
})
})
},
getData() {
this.selectComponent('#enjoyService').init((canvas, width, height, dpr) => {
chart = echarts.init(canvas, null, {
width: width,
height: height,
devicePixelRatio: dpr // 像素比
});
canvas.setChart(chart);
console.log(this.data.id)
serviceNumber({ resid: this.data.id }).then(res => {
const barData = res.data.map(item => {
return {
name: item.classification,
value: item.classificationNum
}
})
var option = {
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
grid: {
top: '0%',
left: '0%',
right: '0%',
bottom: '30',
},
xAxis: {
type: 'category',
data: barData.map(item => item.name),
axisLabel: {
textStyle: {
fontSize: '12',
color: '#999999'
}
},
axisLine: {
show: true,
lineStyle: {
color: '#EAEAEA',
},
},
axisTick: {
show: false
}
},
yAxis: {
type: 'value',
splitLine: {
show: true,
color: '#EAEAEA'
},
axisLabel: {
show: false
}
},
series: [{
type: 'bar',
barWidth: 16,
data: barData.map(item => item.value),
itemStyle: {
normal: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0,
color: "#3A80E7"
}, {
offset: 1,
color: "#88B8FF"
}]),
label: {
show: true,
formatter: `{c}`,
position: 'top',
textStyle: {
fontSize: '13',
color: '#333333'
}
}
}
},
}]
};
chart.setOption(option);
})
return chart;
});
}
})

5
subpages/statistics/pages/residentPortrait2/residentPortrait.json

@ -1,4 +1,7 @@
{
"navigationBarTitleText": "居民画像",
"usingComponents": {}
"usingComponents": {
"Tabs": "../../../../components/Tabs",
"ec-canvas": "../../../../ec-canvas/ec-canvas"
}
}

180
subpages/statistics/pages/residentPortrait2/residentPortrait.wxml

@ -4,7 +4,7 @@
<view class="user-info">
<image src="../../images/woman.png" class="img" mode="widthFix" />
<view class="name">
张三 125468745410
{{userInfo.name}} {{userInfo.mobile}}
</view>
</view>
@ -13,7 +13,7 @@
居住地址:
</view>
<view class="value">
四季景园1号楼1单元101
{{userInfo.fullName || '--'}}
</view>
</view>
<view class="user-infos">
@ -21,7 +21,7 @@
所属网格:
</view>
<view class="value">
第三网格
{{userInfo.gridName || '--'}}
</view>
</view>
<view class="user-infos">
@ -29,7 +29,7 @@
入户状况:
</view>
<view class="value">
入户一致
{{userInfo.householdSituation || '--'}}
</view>
</view>
<view class="user-infos">
@ -37,7 +37,7 @@
居住类型:
</view>
<view class="value">
与子女同住
{{userInfo.resideSituation?userInfo.resideSituation:'--'}}
</view>
</view>
<view class="user-infos">
@ -45,119 +45,131 @@
家庭预警:
</view>
<view class="value">
满意度风险家庭
</view>
</view>
<view class="table">
<view class="tr">
<view class="th">姓名</view>
<view class="th" style="flex:2">与本人关系</view>
<view class="th">性别</view>
<view class="th">年龄</view>
</view>
<view class="tr" wx:for="{{relationship}}" wx:key="{{index}}">
<view class="td">{{item.name}}</view>
<view class="td" style="flex:2">{{item.houseHolderRel ? item.houseHolderRel : ''}}</view>
<view class="td">{{item.gender == 2?'男':item.gender == 1?'女':item.gender === '0'?'未知':''}}</view>
<view class="td">{{item.age}}
<image mode="widthFix" class="table-right-icon" src="../../images/right2.png" />
{{userInfo.riskyFlag === '1' ? '满意度风险家庭' : '--'}}
</view>
</view>
</view>
</view>
<view class="card">
<view class="title">居民画像</view>
<view class="portrait">
<view class="bg">
<image src="../../images/jmhx_center.png" mode="widthFix" />
<view class="title">家庭关系</view>
<view wx:for="{{userList}}" wx:key="index" wx:if="{{index == 0}}">
<view class="user-info">
<image src="../../images/man.png" class="img" mode="widthFix" />
<view class="name">
{{item.name}} (户主)
</view>
</view>
<view class="tags">
<view class="tag" wx-if="{{tags.age}}">
<view class="text">{{tags.age}}岁</view>
<view class="user-infos">
<view class="label">
入户状况:
</view>
<view class="tag" wx-if="{{tags.category1}}">
<view class="text">{{tags.category1}}</view>
<view class="value">
{{item.householdSituation || '--'}}
</view>
<view class="tag" wx-if="{{tags.category2}}">
<view class="text">{{tags.category2}}</view>
</view>
<view class="tag" wx-if="{{tags.monthIncomeLevel}}">
<view class="text">{{tags.monthIncomeLevel}}</view>
<view class="user-infos">
<view class="label">
居民分类:
</view>
<view class="tag" wx-if="{{tags.cultureLevel}}">
<view class="text">{{tags.cultureLevel}}</view>
<view class="value">
{{item.classificationOfInhabitantsList || '--'}}
</view>
<view class="tag" wx-if="{{tags.marriage}}">
<view class="text">{{tags.marriage}}</view>
</view>
<view class="tag" wx-if="{{tags.gender || tags.gender === '0'}}">
<view class="text">{{tags.gender == 2?'男':tags.gender == 1?'女':tags.gender === '0'?'未知':''}}</view>
</view>
<view class="user-list">
<view class="user-item" wx:for="{{userList}}" wx:key="index" wx:if="{{index>0}}">
<view class="user-name">
{{item.name}}<text wx:if="{{item.houseHolderRel}}">({{item.houseHolderRel}})</text>
</view>
<view>
入户状况:{{item.householdSituation || '--'}}
</view>
<view>
居民分类:{{item.classificationOfInhabitantsList || '--'}}
</view>
<view class="card">
<view class="title">历史及潜在不满意事项</view>
<view class="num-list">
<view class="num-item">
<view class="txt">
<text>12345投诉</text>
</view>
<view class="num">{{event12345Num}}</view>
</view>
<view class="num-item">
<view class="txt">
<text>省满意度调查</text>
</view>
<view class="num">{{provinceSatisfactionNum}}</view>
<view class="card">
<view class="title">各项业务记录</view>
<Tabs tabList="{{tabList}}" bind:tabChange="tabChange" noBg />
<view class="business-log">
<view class="header">
<view>事件描述</view>
<view>操作</view>
</view>
<view class="num-item">
<view class="txt">
<text>社区满意度自查</text>
<block wx:if="{{businessIndex == 0}}">
<view class="content" wx:for="{{eventList}}" wx:key="index">
<view class="tit">{{item.eventcontent}}</view>
<view class="operation" bind:tap="eventView" data-id="{{item.id}}">
<text>查看</text>
<image src="../../images/right2.png" mode="widthFix" />
</view>
<view class="num">{{selfInspectNum}}</view>
</view>
<view class="num-item">
<view class="txt">
<text>事件未解决
的次数</text>
<view wx:if="{{eventList.length <= 0}}" class="no-data">暂无数据</view>
</block>
<block wx:if="{{businessIndex == 1}}">
<view class="content" wx:for="{{provincialList}}" wx:key="index">
<view class="tit">{{item.problemDesc}}</view>
<view class="operation" bind:tap="provincialView" data-id="{{item}}">
<text>查看</text>
<image src="../../images/right2.png" mode="widthFix" />
</view>
<view class="num">{{unSolvedNum}}</view>
</view>
<view class="num-item">
<view class="txt">
<text>需求未满足
的次数</text>
<view wx:if="{{provincialList.length <= 0}}" class="no-data">暂无数据</view>
</block>
<block wx:if="{{businessIndex == 2}}">
<view class="content" wx:for="{{communityList}}" wx:if="{{communityList.length > 0}}" wx:key="index">
<view class="tit">{{item.problemDesc}}</view>
<view class="operation" bind:tap="communityView" data-id="{{item}}">
<text>查看</text>
<image src="../../images/right2.png" mode="widthFix" />
</view>
<view class="num">{{unFinishNum}}</view>
</view>
<view class="num-item">
<view class="txt">
<text>应享未享服务
的次数</text>
<view wx:if="{{communityList.length <= 0}}" class="no-data">暂无数据</view>
</block>
</view>
<view class="num">{{noServiceNum}}</view>
</view>
<view class="card">
<view class="title">享受服务次数统计</view>
<view class="enjoyService">
<ec-canvas
id="enjoyService"
forceUseOldCanvas="{{false}}"
canvas-id="enjoyService"
ec="{{ ec }}"
/>
</view>
</view>
<view class="card">
<view class="title">回访记录</view>
<view class="log-list">
<view class="log-item" wx:for="{{logList}}" wx:key="{{index}}">
<view>
<view class="user">
<view class="tag blue">{{item.followUpWay}}</view>
<view class="name">{{item.followPersonName}}({{item.roleNames}})</view>
<view class="title">积分记录</view>
<view class="integral-log">
<view class="integral-item" wx:for="{{recorHistoryList}}" wx:key="index">
<view class="num">
+{{item.classificationNum}}
</view>
<view class="date">{{item.followTime}}</view>
<view>
<view class="tit">{{item.classification}}</view>
<view class="time">{{item.recordTime}}</view>
</view>
<image src="../../../images/right.png" mode="widthFix" class="icon" />
</view>
</view>
</view>

292
subpages/statistics/pages/residentPortrait2/residentPortrait.wxss

@ -35,265 +35,127 @@ page {
margin-right: 20rpx;
}
.user-info {
display: flex;
align-items: center;
margin-bottom: 20rpx;
}
.user-info .img {
width: 128rpx;
height: 128rpx
}
.user-info .name {
font-size: 32rpx;
font-weight: bold;
color: #333333;
margin-bottom: 30rpx;
margin-left: 20rpx;
}
.user-info .address {
font-size: 28rpx;
font-weight: 400;
color: #666666;
padding-bottom: 30rpx;
}
.table .tr {
.user-infos {
display: flex;
padding: 0 20rpx;
}
.table .tr .th {
font-size: 32rpx;
font-weight: bold;
color: #333333;
line-height: 60rpx;
}
.table .tr .td {
.user-infos .label {
white-space: nowrap;
}
.user-item {
background: rgba(193, 212, 240, 0.2);
border-radius: 10px;
padding: 32rpx;
margin-top: 20rpx;
font-size: 30rpx;
font-weight: 500;
color: #666666;
line-height: 46rpx;
}
.table .tr .th,
.table .tr .td {
flex: 1;
position: relative;
height: 100rpx;
line-height: 100rpx;
}
.table .tr:nth-of-type(2n) {
background: rgba(58, 128, 231, 0.08);
}
.table-right-icon {
width: 24rpx;
height: 24rpx;
position: absolute;
right: 0;
top: calc(50% - 12rpx);
}
.portrait {
position: relative;
width: 633rpx;
height: 542rpx;
.user-item .user-name {
font-size: 30rpx;
font-weight: bold;
color: #3A80E7;
line-height: 36rpx;
color: #333333;
}
.portrait .tag {
position: absolute;
background: #f4f8fe;
padding: 30rpx;
width: 129rpx;
height: 129rpx;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
text-align: center;
}
.business-log {
.portrait .tag:after {
content: "";
display: block;
width: calc(100% - 28rpx);
height: calc(100% - 28rpx);
position: absolute;
left: 14rpx;
top: 14rpx;
background: #d3e3fa;
border-radius: 50%;
}
.portrait .tag .text {
position: relative;
z-index: 2;
}
.portrait .tag:nth-of-type(1) {
padding: 38rpx;
width: 163rpx;
height: 163rpx;
left: 227rpx;
top: 0;
}
.portrait .tag:nth-of-type(2) {
padding: 24rpx;
width: 121rpx;
height: 121rpx;
right: 58rpx;
top: 101rpx;
}
.portrait .tag:nth-of-type(3) {
width: 145rpx;
height: 145rpx;
right: 0rpx;
top: 249rpx;
}
.portrait .tag:nth-of-type(4) {
width: 163rpx;
height: 163rpx;
right: 100rpx;
bottom: 0;
}
.portrait .tag:nth-of-type(5) {
left: 99rpx;
bottom: 10rpx;
}
.portrait .tag:nth-of-type(6) {
left: 0rpx;
top: 251rpx;
}
.portrait .tag:nth-of-type(7) {
left: 53rpx;
top: 101rpx;
}
.bg {
width: 238rpx;
height: 238rpx;
position: absolute;
left: calc(50% - 119rpx);
top: calc(50% - 100rpx);
}
.bg image {
width: 100%;
height: 100%;
}
.num-list {
.business-log .header {
display: flex;
width: 100%;
align-items: center;
justify-content: space-between;
position: relative;
flex-wrap: wrap;
}
.num-list .num-item {
flex: 0 0 33.333333%;
position: relative;
margin-bottom: 20rpx;
}
.num-list .num-item:after {
content: '';
display: block;
position: absolute;
right: 25rpx;
top: calc(50% - 45rpx);
width: 1rpx;
height: 90rpx;
background: #C1C1C1;
opacity: 0.66;
}
.num-list .num-item:nth-of-type(3n):after {
display: none;
}
.num-list .num-item:last-child:after {
display: none;
}
.num-list .num-item .txt {
font-size: 28rpx;
font-weight: 500;
color: #999999;
margin-bottom: 10rpx;
}
.num-list .num-item .num {
font-size: 42rpx;
font-size: 32rpx;
font-weight: bold;
color: #333333;
padding: 0 0 32rpx 0;
}
.tag {
display: inline-block;
line-height: 40rpx;
height: 40rpx;
border-radius: 20rpx;
font-size: 26rpx;
font-weight: 500;
.business-log .content {
display: flex;
align-items: center;
justify-content: space-between;
height: 100rpx;
background: #F3F6FC;
padding: 0 20rpx;
margin-right: 30rpx;
}
.blue {
background: rgba(79, 148, 255, 0.14);
color: #4F94FF;
.business-log .content:nth-child(odd) {
background: none;
}
.orange {
background: rgba(255, 120, 60, 0.14);
color: #FF783C;
.business-log .content .tit {
width: calc(100% - 100rpx);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 30rpx;
font-weight: 500;
color: #666666;
}
.green {
background: rgba(4, 184, 173, 0.14);
color: #04B8AD;
.business-log .operation {
font-size: 30rpx;
font-weight: 500;
color: #3A80E7;
display: flex;
align-items: center;
width: 100rpx;
}
.red {
color: #FA1919;
background: rgba(255, 48, 27, 0.14);
.business-log .operation image {
width: 24rpx;
margin-left: 10rpx;
}
.log-item {
border-bottom: 1px solid #EAEAEA;
padding: 30rpx 0;
.enjoyService {
width: 100%;
height: 362rpx;
}
ec-canvas {
width: 100%;
height: 100%;
}
.log-item .user {
.integral-log .integral-item {
display: flex;
align-items: center;
border-bottom: 1px #E0E0E0 dashed;
padding: 25rpx 0;
}
.integral-log .integral-item .num {
font-size: 40rpx;
font-weight: bold;
color: #FC7031;
margin-right: 40rpx;
.log-item .tag {
margin-right: 17px;
}
.log-item .icon {
width: 48rpx;
height: 48rpx;
}
.log-item .name {
.integral-log .integral-item .tit {
font-size: 32rpx;
font-weight: 500;
color: #333333;
margin-bottom: 23rpx;
}
.log-item .date {
.integral-log .integral-item .time {
font-size: 28rpx;
font-weight: 500;
color: #C1C1C1;
margin-top: 17rpx;
color: #999999;
}
.log-item {
display: flex;
justify-content: space-between;
align-items: center;
}
.img {
width: 128rpx;
height: 128rpx
}
.user-info {
display: flex;
.no-data {
color: #E0E0E0;
text-align: center;
padding: 50rpx 0;
}

191
utils/api.js

@ -1,12 +1,12 @@
var fly = require('./request.js')
module.exports = {
getIntelligentMessage,
userLoginlog:userLoginlog,
getToken:getToken,
userLoginlog: userLoginlog,
getToken: getToken,
getResidentBaseInfo,
getCommunityHouse,
getStaffbasicinfo,
resiAdd:resiAdd,
resiAdd: resiAdd,
getNationDictList,
getEducationDictList,
getDictList,
@ -47,180 +47,187 @@ module.exports = {
changePassword,
getCheckLogList,
getLastLog,
getResiUserInfo
getResiUserInfo,
getPersonalFile,
getFamilyRelationshipList,
provincialSatisfactionPageList,
communitySatisfactionPageList,
eventPageList,
recorHistory,
serviceNumber
}
// 获取公钥
function getPubKey () {
function getPubKey() {
return fly.post(`auth/govweb/getKey`)
}
function changePassword (parm) {
return fly.post(`epmetuser/customerstaff/changePassword`,parm)
function changePassword(parm) {
return fly.post(`epmetuser/customerstaff/changePassword`, parm)
}
// 消息列表
function getIntelligentMessage(param){
return fly.get(`message/intelligentMessage/page`,param)
function getIntelligentMessage(param) {
return fly.get(`message/intelligentMessage/page`, param)
}
function clearOneMessage (parm) {
function clearOneMessage(parm) {
return fly.post(`message/intelligentMessage/msg/clearOne/?msgId=${parm.msgId}`)
}
function clearMessage () {
}
function clearMessage() {
return fly.post('message/intelligentMessage/msg/clear')
}
}
/**
*小程序用户登录
*/
function userLoginlog (para) {
function userLoginlog(para) {
return fly.post('auth/gov/loginbypassword', para)
}
// 获取token
function getToken (para) {
function getToken(para) {
return fly.post('auth/gov/loginwxmp/loginbywxcode', para)
}
// 退出登录
function logout () {
return fly.post('auth/login/logout', )
function logout() {
return fly.post('auth/login/logout',)
}
// 居民查询
function getResidentBaseInfo (para) {
function getResidentBaseInfo(para) {
return fly.post('actual/base/residentBaseInfo/residentSearch', para)
}
// 房屋查询
function getCommunityHouse (para) {
function getCommunityHouse(para) {
return fly.post('actual/base/communityHouse/houseSearch', para)
}
// 获取用户信息
function getStaffbasicinfo (para) {
function getStaffbasicinfo(para) {
return fly.post('epmetuser/customerstaff/staffbasicinfo', para)
}
// 新增居民
function resiAdd (para) {
function resiAdd(para) {
return fly.post('actual/base/residentBaseInfo/save', para)
}
// 民族字典
function getNationDictList () {
function getNationDictList() {
return fly.post('sys/dict/data/nation', { formCode: "resi_base_info" })
}
// 文化程度字典
function getEducationDictList () {
return fly.post('sys/dict/data/education',{ formCode: "resi_base_info" })
function getEducationDictList() {
return fly.post('sys/dict/data/education', { formCode: "resi_base_info" })
}
// 居民信息(根据当前用户组织id获取下级网格){"agencyId":"","purpose":""}
function getGridoptionDict (parm) {
return fly.post('gov/org/customergrid/gridoption',parm)
function getGridoptionDict(parm) {
return fly.post('gov/org/customergrid/gridoption', parm)
}
// 居民信息(选择网格获取小区列表) 入参 {"gridId":"","agencyId":""}
function getQuartersOptions (parm) {
return fly.post('actual/base/communityQuarters/listQuartersOptions',parm)
function getQuartersOptions(parm) {
return fly.post('actual/base/communityQuarters/listQuartersOptions', parm)
}
// 居民信息(选择小区获取楼栋列表) 入参 {"quartersId":"1565599579037511681"}
function getBuildingoption (id) {
return fly.post('actual/base/communityBuilding/buildingoption',{quartersId:id})
function getBuildingoption(id) {
return fly.post('actual/base/communityBuilding/buildingoption', { quartersId: id })
}
// 居民信息(选择楼栋获取单元列表) 入参 {"buildingId":""}
function getUnitoption (id) {
return fly.post('actual/base/communityBuildingUnit/unitoption',{buildingId:id})
function getUnitoption(id) {
return fly.post('actual/base/communityBuildingUnit/unitoption', { buildingId: id })
}
// 居民信息(选择单元获取房屋列表) 入参{"unitId":""}
function getHouseoption (id) {
return fly.post('actual/base/communityHouse/houseoption',{unitId:id})
function getHouseoption(id) {
return fly.post('actual/base/communityHouse/houseoption', { unitId: id })
}
// 运营端统一配置字典
function getDictList (code) {
return fly.post('sys/dict/data/dictlist',{ dictType:code })
function getDictList(code) {
return fly.post('sys/dict/data/dictlist', { dictType: code })
}
function getResiDetail (id) {
function getResiDetail(id) {
return fly.post(`actual/base/residentBaseInfo/detail/${id}`)
}
// 获取居住地详情
function getResidentResideInfo (id) {
function getResidentResideInfo(id) {
return fly.post(`actual/base/residentResideInfo/getResideInfoDetailById/${id}`)
}
// 获取宗教信仰详情
function getResidentReligion (id) {
function getResidentReligion(id) {
return fly.get(`actual/base/residentReligion/detail/${id}`)
}
// 获取教育详情
function getResidentEduInfo (id) {
function getResidentEduInfo(id) {
return fly.get(`actual/base/residentEduInfo/detail/${id}`)
}
// 获取家庭详情
function getFamilyInfoDetailById (id) {
function getFamilyInfoDetailById(id) {
return fly.post(`actual/base/residentFamilyInfo/getFamilyInfoDetailById/${id}`)
}
// 居民修改
function resiEdit (parm) {
return fly.post(`actual/base/residentBaseInfo/update`,parm)
function resiEdit(parm) {
return fly.post(`actual/base/residentBaseInfo/update`, parm)
}
// 工作页面信息采集面板
function getSituation () {
function getSituation() {
return fly.get(`actual/base/wxcollect/situation`)
}
// 生成房屋码
function getHouseCoding (id) {
function getHouseCoding(id) {
return fly.post(`actual/base/communityHouse/getHouseCoding/${id}`)
}
// 房屋新增
function saveCommunityHouse (parm) {
return fly.post(`actual/base/communityHouse/saveCommunityHouse`,parm)
function saveCommunityHouse(parm) {
return fly.post(`actual/base/communityHouse/saveCommunityHouse`, parm)
}
// 房屋详情
function getClearHouseDeatilById (id) {
function getClearHouseDeatilById(id) {
return fly.post(`actual/base/communityHouse/getClearHouseDeatilById/${id}`)
}
// 房屋编辑
function updateCommunityHouse (parm) {
return fly.post(`actual/base/communityHouse/updateCommunityHouse`,parm)
function updateCommunityHouse(parm) {
return fly.post(`actual/base/communityHouse/updateCommunityHouse`, parm)
}
// 采集信息列表
function getCollect (parm) {
return fly.post(`message/intelligentMessage/collect/page`,parm)
function getCollect(parm) {
return fly.post(`message/intelligentMessage/collect/page`, parm)
}
// 自查记录列表
function getInspRecord (parm) {
return fly.get(`governance/satisfaction/communitySelfInsp/inspRecord/list`,parm)
function getInspRecord(parm) {
return fly.get(`governance/satisfaction/communitySelfInsp/inspRecord/list`, parm)
}
// 自查统计
function getSynthesis(parm){
return fly.get(`governance/satisfaction/communitySelfInsp/stats/synthesis`,parm)
function getSynthesis(parm) {
return fly.get(`governance/satisfaction/communitySelfInsp/stats/synthesis`, parm)
}
// 不满意结果列表
function getInspResult(parm){
return fly.get(`governance/satisfaction/communitySelfInsp/inspResult/list`,parm)
function getInspResult(parm) {
return fly.get(`governance/satisfaction/communitySelfInsp/inspResult/list`, parm)
}
// 回访记录列表
function getFollowUpList(parm){
return fly.get(`governance/satisfaction/communitySelfInsp/followUp/list`,parm)
function getFollowUpList(parm) {
return fly.get(`governance/satisfaction/communitySelfInsp/followUp/list`, parm)
}
// 回访记录新增/修改
function followUpSave (parm) {
return fly.post(`governance/satisfaction/communitySelfInsp/followUp/save`,parm)
function followUpSave(parm) {
return fly.post(`governance/satisfaction/communitySelfInsp/followUp/save`, parm)
}
// 回访记录删除
function followUpDelete (parm) {
function followUpDelete(parm) {
return fly.post(`governance/satisfaction/communitySelfInsp/followUp/delete/${parm}`,)
}
// 获取组织树
function getAgencygridtree () {
function getAgencygridtree() {
return fly.post(`gov/org/customeragency/agencygridtree`,)
}
// 上报事件
function addEvent (parm) {
return fly.post(`governance/icEventOld/add-event-resi`,parm)
function addEvent(parm) {
return fly.post(`governance/icEventOld/add-event-resi`, parm)
}
// 上报诉求中选择居民
function getResidentBaseInfoPage (parm) {
return fly.post(`actual/base/residentBaseInfo/page`,parm)
function getResidentBaseInfoPage(parm) {
return fly.post(`actual/base/residentBaseInfo/page`, parm)
}
// 获取需求分类树
function getDemandoption (parm) {
return fly.post(`governance/icresidemanddict/demandoption`,parm)
function getDemandoption(parm) {
return fly.post(`governance/icresidemanddict/demandoption`, parm)
}
// 上报诉求
function addMeasure(parm) {
return fly.post(`governance/userdemand/add`,parm)
return fly.post(`governance/userdemand/add`, parm)
}
// 获取不满意原因
function getFollowUpDetail(id) {
@ -228,15 +235,15 @@ function getFollowUpDetail(id) {
}
// 打卡
function clockRecords(parm) {
return fly.post(`actual/base/clockRecords/save`,parm)
return fly.post(`actual/base/clockRecords/save`, parm)
}
// 打卡记录
function getCheckLogList(parm) {
return fly.get(`actual/base/clockRecords/logList`,parm)
return fly.get(`actual/base/clockRecords/logList`, parm)
}
// 打卡记录
function getLastLog(parm) {
return fly.get(`actual/base/clockRecords/lastLog`,parm)
return fly.get(`actual/base/clockRecords/lastLog`, parm)
}
// 获取居民敏感信息
function getResiUserInfo(id) {
@ -244,3 +251,39 @@ function getResiUserInfo(id) {
}
/// 获取居民档案
function getPersonalFile(parm) {
return fly.post(`actual/base/peopleRoomOverview/getPersonalFile?resid=` + parm.resid)
}
// 获取家庭关系
function getFamilyRelationshipList(parm) {
return fly.post(`actual/base/peopleRoomOverview/getFamilyRelationshipList?type=${parm.type}&resid=` + parm.id)
}
// 省满意度
function provincialSatisfactionPageList(parm) {
return fly.post(`actual/base/peopleRoomOverview/provincialSatisfactionPageList`, parm)
}
// 社区满意度
function communitySatisfactionPageList(parm) {
return fly.post(`actual/base/peopleRoomOverview/communitySatisfactionPageList`, parm)
}
// 12345
function eventPageList(parm) {
return fly.post(`actual/base/peopleRoomOverview/eventPageList`, parm)
}
// 积分记录
function recorHistory(parm) {
return fly.get(`actual/base/peopleRoomOverview/recorHistory`, parm)
}
// 享受服务次数统计
function serviceNumber(parm) {
return fly.get(`actual/base/peopleRoomOverview/serviceNumber`, parm)
}

Loading…
Cancel
Save