Browse Source

登录 居民详情页面

master
mk 10 months ago
parent
commit
0ab2d29886
  1. 16
      App.vue
  2. 10
      components/Head/index.vue
  3. 4
      components/custom-tab-bar/index.vue
  4. 5
      ec-canvas/ec-canvas.vue
  5. 102
      manifest.json
  6. 71
      pages.json
  7. 2
      pages/information/echartsCallBack.js
  8. 2
      pages/information/information.vue
  9. 31
      pages/login/login.vue
  10. 2
      pages/statistics/modules/HotlineComplaints/HotlineComplaints.vue
  11. 2
      pages/statistics/modules/RequirementAnalysis/RequirementAnalysis.vue
  12. 2
      pages/statistics/modules/SmyddcSqmydzc/SmyddcSqmydzc.vue
  13. 2
      pages/statistics/modules/Trend/Trend.vue
  14. 0
      static/echarts.js
  15. 984
      subpages/addResi/pages/addResi/addResi.vue
  16. 4
      subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.vue
  17. 2
      subpages/house/pages/housePortrait/component/graph/graph.vue
  18. 36
      subpages/morenews/pages/morenews/morenews.vue
  19. 16
      subpages/searchResult/pages/punchCard/punchCard.vue
  20. 2
      subpages/searchResult/pages/resiInfo/component/graph/graph.vue
  21. 131
      subpages/searchResult/pages/resiInfo/resiInfo.vue
  22. 2
      subpages/statistics/pages/residentPortrait2/residentPortrait.vue
  23. 2
      utils/api.js

16
App.vue

@ -18,14 +18,14 @@ export default {
} else {
this.globalData.share = false;
}
const menuButtonInfo = uni.getMenuButtonBoundingClientRect();
uni.getSystemInfo({
success: (res) => {
this.globalData.height = res.statusBarHeight;
this.globalData.deviceInfo.statusHeight = res.statusBarHeight;
this.globalData.deviceInfo.navigationHeight = menuButtonInfo.height + (menuButtonInfo.top - res.statusBarHeight) * 2;
}
});
// const menuButtonInfo = uni.getMenuButtonBoundingClientRect();
// uni.getSystemInfo({
// success: (res) => {
// this.globalData.height = res.statusBarHeight;
// this.globalData.deviceInfo.statusHeight = res.statusBarHeight;
// this.globalData.deviceInfo.navigationHeight = menuButtonInfo.height + (menuButtonInfo.top - res.statusBarHeight) * 2;
// }
// });
uni.hideTabBar();
getStaffbasicinfo()
.then((res) => {

10
components/Head/index.vue

@ -57,12 +57,12 @@ export default {
navigationHeight: app.globalData.deviceInfo.navigationHeight,
agencyName: app.globalData.user.agencyName
});
const menuButton = uni.getMenuButtonBoundingClientRect();
// const menuButton = uni.getMenuButtonBoundingClientRect();
console.log(menuButton);
this.setData({
leftWidth: menuButton.left,
iconWidth: menuButton.width
});
// this.setData({
// leftWidth: menuButton.left,
// iconWidth: menuButton.width
// });
},
back() {

4
components/custom-tab-bar/index.vue

@ -94,13 +94,13 @@ export default {
getOwnedRolesOfStaffId(res.data.id).then((res2) => {
app.globalData.user = res.data;
this.setData({
'list[3].show': res2.data.filter((item) => item.roleKey === 'secretary' || item.roleKey === 'admin').length > 0
'list[3].show': true
});
});
});
} else {
this.setData({
'list[3].show': app.globalData.roleList.filter((item) => item.roleKey === 'secretary' || item.roleKey === 'admin').length > 0
'list[3].show': true
});
}
console.log(app.globalData.roleList, 'userss');

5
ec-canvas/ec-canvas.vue

@ -26,7 +26,7 @@
<script>
import WxCanvas from './wx-canvas';
import * as echarts from './echarts';
import * as echarts from '../static/echarts';
let ctx;
function compareVersion(v1, v2) {
v1 = v1.split('.');
@ -100,7 +100,7 @@ export default {
const version = uni.getSystemInfoSync().SDKVersion;
const canUseNewCanvas = compareVersion(version, '2.9.0') >= 0;
const forceUseOldCanvas = this.forceUseOldCanvas;
const isUseNewCanvas = canUseNewCanvas && !forceUseOldCanvas;
const isUseNewCanvas = true;
this.setData({
isUseNewCanvas
});
@ -170,6 +170,7 @@ export default {
size: true
})
.exec((res) => {
console.log(res,'seeeee')
const canvasNode = res[0].node;
this.canvasNode = canvasNode;
const canvasDpr = uni.getSystemInfoSync().pixelRatio;

102
manifest.json

@ -1,24 +1,24 @@
{
"name": "epmet-work-mp",
"appid": "",
"description": "{\r \"pagePath\": \"pages/information/information\",\r \"text\": \"数据\",\r \"iconPath\": \"images/home/information.png\",\r \"selectedIconPath\": \"images/home/informationSelected.png\"\r },",
"versionName": "1.0.0",
"versionCode": "100",
"transformPx": false,
"app-plus": {
"usingComponents": true,
"nvueStyleCompiler": "uni-app",
"compilerVersion": 3,
"splashscreen": {
"alwaysShowBeforeRender": true,
"waiting": true,
"autoclose": true,
"delay": 0
"name" : "epmet-work-mp",
"appid" : "__UNI__0A9CAB7",
"description" : "{\r \"pagePath\": \"pages/information/information\",\r \"text\": \"数据\",\r \"iconPath\": \"images/home/information.png\",\r \"selectedIconPath\": \"images/home/informationSelected.png\"\r },",
"versionName" : "1.0.0",
"versionCode" : "100",
"transformPx" : false,
"app-plus" : {
"usingComponents" : true,
"nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3,
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : true,
"autoclose" : true,
"delay" : 0
},
"modules": {},
"distribute": {
"android": {
"permissions": [
"modules" : {},
"distribute" : {
"android" : {
"permissions" : [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
@ -36,51 +36,51 @@
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
]
},
"ios": {},
"sdkConfigs": {}
"ios" : {},
"sdkConfigs" : {}
}
},
"quickapp": {},
"mp-weixin": {
"appid": "wxaf87b420b87e2d79",
"setting": {
"urlCheck": false
"quickapp" : {},
"mp-weixin" : {
"appid" : "wxaf87b420b87e2d79",
"setting" : {
"urlCheck" : false
},
"usingComponents": true,
"permission": {
"scope.userLocation": {
"desc": "亿联社区将获取您的位置信息"
"usingComponents" : true,
"permission" : {
"scope.userLocation" : {
"desc" : "亿联社区将获取您的位置信息"
}
},
"plugins": {
"ocr-plugin": {
"version": "3.1.3",
"provider": "wx4418e3e031e551be"
"plugins" : {
"ocr-plugin" : {
"version" : "3.1.3",
"provider" : "wx4418e3e031e551be"
},
"routePlan": {
"version": "1.0.11",
"provider": "wx50b5593e81dd937a"
"routePlan" : {
"version" : "1.0.11",
"provider" : "wx50b5593e81dd937a"
},
"WechatSI": {
"version": "0.3.6",
"provider": "wx069ba97219f66d99"
"WechatSI" : {
"version" : "0.3.6",
"provider" : "wx069ba97219f66d99"
}
}
},
"mp-alipay": {
"usingComponents": true
"mp-alipay" : {
"usingComponents" : true
},
"mp-baidu": {
"usingComponents": true
"mp-baidu" : {
"usingComponents" : true
},
"mp-toutiao": {
"usingComponents": true
"mp-toutiao" : {
"usingComponents" : true
},
"uniStatistics": {
"enable": false
"uniStatistics" : {
"enable" : false
},
"vueVersion": "2",
"networkTimeout": {
"request": 60000
"vueVersion" : "2",
"networkTimeout" : {
"request" : 60000
}
}

71
pages.json

@ -584,5 +584,74 @@
"provider": "wx4418e3e031e551be"
}
},
"sitemapLocation": "sitemap.json"
"sitemapLocation": "sitemap.json",
"globalStyle": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "WeChat",
"navigationBarTextStyle": "black",
"usingComponents": {
"van-action-sheet": "/wxcomponents/vant/action-sheet/index",
"van-area": "/wxcomponents/vant/area/index",
"van-button": "/wxcomponents/vant/button/index",
"van-card": "/wxcomponents/vant/card/index",
"van-cell": "/wxcomponents/vant/cell/index",
"van-cell-group": "/wxcomponents/vant/cell-group/index",
"van-checkbox": "/wxcomponents/vant/checkbox/index",
"van-checkbox-group": "/wxcomponents/vant/checkbox-group/index",
"van-col": "/wxcomponents/vant/col/index",
"van-count-down": "/wxcomponents/vant/count-down/index",
"van-dialog": "/wxcomponents/vant/dialog/index",
"van-divider": "/wxcomponents/vant/divider/index",
"van-field": "/wxcomponents/vant/field/index",
"van-goods-action": "/wxcomponents/vant/goods-action/index",
"van-goods-action-icon": "/wxcomponents/vant/goods-action-icon/index",
"van-goods-action-button": "/wxcomponents/vant/goods-action-button/index",
"van-icon": "/wxcomponents/vant/icon/index",
"van-image": "/wxcomponents/vant/image/index",
"van-loading": "/wxcomponents/vant/loading/index",
"van-nav-bar": "/wxcomponents/vant/nav-bar/index",
"van-notice-bar": "/wxcomponents/vant/notice-bar/index",
"van-notify": "/wxcomponents/vant/notify/index",
"van-panel": "/wxcomponents/vant/panel/index",
"van-popup": "/wxcomponents/vant/popup/index",
"van-progress": "/wxcomponents/vant/progress/index",
"van-radio": "/wxcomponents/vant/radio/index",
"van-radio-group": "/wxcomponents/vant/radio-group/index",
"van-row": "/wxcomponents/vant/row/index",
"van-search": "/wxcomponents/vant/search/index",
"van-sidebar": "/wxcomponents/vant/sidebar/index",
"van-sidebar-item": "/wxcomponents/vant/sidebar-item/index",
"van-slider": "/wxcomponents/vant/slider/index",
"van-stepper": "/wxcomponents/vant/stepper/index",
"van-steps": "/wxcomponents/vant/steps/index",
"van-sticky": "/wxcomponents/vant/sticky/index",
"van-submit-bar": "/wxcomponents/vant/submit-bar/index",
"van-swipe-cell": "/wxcomponents/vant/swipe-cell/index",
"van-uploader": "/wxcomponents/vant/uploader/index",
"van-switch": "/wxcomponents/vant/switch/index",
"van-tab": "/wxcomponents/vant/tab/index",
"van-tabs": "/wxcomponents/vant/tabs/index",
"van-tabbar": "/wxcomponents/vant/tabbar/index",
"van-tabbar-item": "/wxcomponents/vant/tabbar-item/index",
"van-tag": "/wxcomponents/vant/tag/index",
"van-toast": "/wxcomponents/vant/toast/index",
"van-transition": "/wxcomponents/vant/transition/index",
"van-tree-select": "/wxcomponents/vant/tree-select/index",
"van-datetime-picker": "/wxcomponents/vant/datetime-picker/index",
"van-rate": "/wxcomponents/vant/rate/index",
"van-collapse": "/wxcomponents/vant/collapse/index",
"van-collapse-item": "/wxcomponents/vant/collapse-item/index",
"van-picker": "/wxcomponents/vant/picker/index",
"van-overlay": "/wxcomponents/vant/overlay/index",
"van-circle": "/wxcomponents/vant/circle/index",
"van-index-bar": "/wxcomponents/vant/index-bar/index",
"van-index-anchor": "/wxcomponents/vant/index-anchor/index",
"van-grid": "/wxcomponents/vant/grid/index",
"van-grid-item": "/wxcomponents/vant/grid-item/index",
"van-dropdown-menu": "/wxcomponents/vant/dropdown-menu/index",
"van-dropdown-item": "/wxcomponents/vant/dropdown-item/index",
"van-skeleton": "/wxcomponents/vant/skeleton/index"
}
}
}

2
pages/information/echartsCallBack.js

@ -1,4 +1,4 @@
import * as echarts from '../../ec-canvas/echarts';
import * as echarts from '../../static/echarts.js';
function initLineChart(canvas, width, height, dpr, xData) {
const chart = echarts.init(canvas, null, {
width: width,

2
pages/information/information.vue

@ -7,7 +7,7 @@
<script>
import ecCanvas from '@/ec-canvas/ec-canvas';
import * as echarts from '../../ec-canvas/echarts';
import * as echarts from '../../static/echarts.js';
function initChart(canvas, width, height, dpr) {
const chart = echarts.init(canvas, null, {
width: width,

31
pages/login/login.vue

@ -14,7 +14,7 @@
<view class="input_box">
<image src="/static/images/login/user.png" mode="" />
<!-- 失去焦点的时候bindblur="handelBlurMobile" -->
<input type="text" placeholder="请输入手机号" @blur="handelBlurMobile" :value="formData.mobile" confirm-type="next" />
<input type="text" placeholder="请输入手机号" @blur="handelBlurMobile" :value="formData.phone" confirm-type="next" />
<image src="/static/images/login/password.png" mode="" />
<!-- 将值绑定formData.password中 -->
<input type="text" confirm-type="go" :password="true" placeholder="请输入密码" @input="handelBlurPassword" @blur="handelBlurPassword" :value="formData.password" />
@ -34,9 +34,12 @@ export default {
data() {
return {
formData: {
mobile: '',
phone: '',
password: '',
appId: 'wxaf87b420b87e2d79'
app:'gov',
client:'h5',
customerId:'45687aa479955f9d06204d415238f7cc'
// appId: ''
}
};
}
@ -76,7 +79,7 @@ export default {
handelBlurMobile(e) {
this.setData({
// fromData.mobile
'formData.mobile': e.detail.value
'formData.phone': e.detail.value
});
console.log(this.formData);
},
@ -90,7 +93,7 @@ export default {
},
handelClickSubmit() {
if (!this.formData.mobile) {
if (!this.formData.phone) {
// api
uni.showToast({
title: '请填写手机号',
@ -110,20 +113,12 @@ export default {
return;
}
const parm = {
// wxCode
wxCode: '',
// ...this.data.formData
...this.formData
};
// api,
uni.showLoading({
title: '登录中'
});
uni.login({
success: (res) => {
parm.wxCode = res.code;
console.log(parm.wxCode);
//
userLoginlog(parm)
.then((res) => {
console.log(res);
@ -146,8 +141,14 @@ export default {
console.log(err);
});
uni.hideLoading();
}
});
// uni.login({
// success: (res) => {
// parm.wxCode = res.code;
// console.log(parm.wxCode);
// //
// }
// });
//api,,
// uni.getUserProfile({
// desc: '',

2
pages/statistics/modules/HotlineComplaints/HotlineComplaints.vue

@ -11,7 +11,7 @@
<script>
import Tabs from '../../../../components/Tabs';
import ecCanvas from '../../../../ec-canvas/ec-canvas';
import * as echarts from '../../../../ec-canvas/echarts';
import * as echarts from '../../../../static/echarts.js';
import { dwdEventReport, event12345Group } from '../../../../utils/statisticsApi';
var chart;
const formatTime = (date) => {

2
pages/statistics/modules/RequirementAnalysis/RequirementAnalysis.vue

@ -11,7 +11,7 @@
<script>
import Tabs from '../../../../components/Tabs';
import ecCanvas from '../../../../ec-canvas/ec-canvas';
import * as echarts from '../../../../ec-canvas/echarts';
import * as echarts from '../../../../static/echarts.js';
import { commonDemandCountByCategory, countByCategory, event12345Group } from '../../../../utils/statisticsApi';
var chart;
const formatTime = (date) => {

2
pages/statistics/modules/SmyddcSqmydzc/SmyddcSqmydzc.vue

@ -11,7 +11,7 @@
<script>
import Tabs from '../../../../components/Tabs';
import ecCanvas from '../../../../ec-canvas/ec-canvas';
import * as echarts from '../../../../ec-canvas/echarts';
import * as echarts from '../../../../static/echarts.js';
import { satisfactionGroup, event12345Group } from '../../../../utils/statisticsApi';
var chart;
const formatTime = (date) => {

2
pages/statistics/modules/Trend/Trend.vue

@ -6,7 +6,7 @@
<script>
import ecCanvas from '../../../../ec-canvas/ec-canvas';
import * as echarts from '../../../../ec-canvas/echarts';
import * as echarts from '../../../../static/echarts.js';
import { notSatisfactionTrend } from '../../../../utils/statisticsApi';
var chart = null;
export default {

0
ec-canvas/echarts.js → static/echarts.js

984
subpages/addResi/pages/addResi/addResi.vue

File diff suppressed because it is too large

4
subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.vue

@ -461,9 +461,9 @@ var recorderManager = uni.getRecorderManager();
var innerAudioContext = uni.createInnerAudioContext();
import api from '../../../../../utils/api';
//
const plugin = requirePlugin('WechatSI');
// const plugin = requirePlugin('WechatSI');
//
const manager = plugin.getRecordRecognitionManager();
// const manager = plugin.getRecordRecognitionManager();
var timer;
export default {
components: {

2
subpages/house/pages/housePortrait/component/graph/graph.vue

@ -7,7 +7,7 @@
<script>
import ecCanvas from '../../../../../../ec-canvas/ec-canvas';
import * as echarts from '../../../../../../ec-canvas/echarts';
import * as echarts from '../../../../../../static/echarts.js';
import { getFamilyRelationshipListByHouseId } from '../../../../../../utils/api';
var chart;
export default {

36
subpages/morenews/pages/morenews/morenews.vue

@ -7,7 +7,7 @@
<!-- #endif -->
<!-- #ifndef MP-WEIXIN -->
<view>当前为非微信小程序环境不支持公众号关注组件请自行调整当前节点内容</view>
<!-- <view>当前为非微信小程序环境不支持公众号关注组件请自行调整当前节点内容</view> -->
<!-- #endif -->
</view>
@ -60,7 +60,7 @@ import loadMore from '../../../../components/loadMore/loadMore';
import noData from '../../../../components/noData/nodata';
import customTabBar from '../../../../components/custom-tab-bar/index.vue';
const app = getApp();
import api, { getIntelligentMessage, getToken, getStaffbasicinfo, clearMessage } from '../../../../utils/api';
import api, { getIntelligentMessage, getStaffbasicinfo, clearMessage } from '../../../../utils/api';
export default {
components: {
loadMore,
@ -91,7 +91,6 @@ export default {
navigationHeight: app.globalData.deviceInfo.navigationHeight,
share: app.globalData.share
});
await this.getToken();
// await this.getIntelligentMessage()
await this.getStaffbasicinfo();
},
@ -160,37 +159,6 @@ export default {
});
},
getToken() {
const parm = {
wxCode: '',
app: 'gov',
client: 'wxmp',
appId: 'wxaf87b420b87e2d79'
};
uni.showLoading({
title: '加载中...'
});
uni.login({
success: (res) => {
parm.wxCode = res.code;
getToken(parm)
.then((res) => {
uni.hideLoading();
if (res.code === 0) {
uni.setStorageSync('token', res.data.token);
} else {
uni.reLaunch({
url: '/pages/login/login'
});
}
})
.catch((err) => {
console.log(err);
});
}
});
},
getStaffbasicinfo() {
getStaffbasicinfo()
.then((res) => {

16
subpages/searchResult/pages/punchCard/punchCard.vue

@ -7,23 +7,23 @@
<view class="info">
<view class="item">
<view class="label">姓名</view>
<View class="value">{{ form.name }}</View>
<view class="value">{{ form.name }}</view>
</view>
<view class="item">
<view class="label">性别</view>
<View class="value">{{ form.genderName }}</View>
<view class="value">{{ form.genderName }}</view>
</view>
<view class="item">
<view class="label">出生日期</view>
<View class="value">{{ form.birthday }}</View>
<view class="value">{{ form.birthday }}</view>
</view>
<view class="item">
<view class="label">住宅</view>
<View class="value">{{ form.homeName }}</View>
<view class="value">{{ form.homeName }}</view>
</view>
<view class="item">
<view class="label">电话</view>
<View class="value">{{ form.mobile }}</View>
<view class="value">{{ form.mobile }}</view>
</view>
</view>
</view>
@ -41,7 +41,7 @@
<view class="card">
<view class="title">相关操作</view>
<view class="blue btn" @tap="toAddResi" style="margin-top: 40rpx">修改居民信息</view>
<view class="yellow btn" @tap="toWebView">满意度调查</view>
<view class="yellow btn" @tap="toWebview">满意度调查</view>
<view class="green btn" @tap="toEvent">上报居民诉求</view>
</view>
</view>
@ -194,10 +194,10 @@ export default {
});
},
toWebView() {
toWebview() {
console.log(app.globalData);
uni.navigateTo({
url: '/pages/webView/webView?url=' + app.globalData.questionnaireUrl
url: '/pages/webview/webview?url=' + app.globalData.questionnaireUrl
});
},

2
subpages/searchResult/pages/resiInfo/component/graph/graph.vue

@ -7,7 +7,7 @@
<script>
import ecCanvas from '../../../../../../ec-canvas/ec-canvas';
import * as echarts from '../../../../../../ec-canvas/echarts';
import * as echarts from '../../../../../../static/echarts.js';
import { getFamilyRelationshipList } from '../../../../../../utils/api';
var chart;
export default {

131
subpages/searchResult/pages/resiInfo/resiInfo.vue

@ -1,10 +1,10 @@
<template>
<view>
<view >
<!-- subpages/searchResult/pages/resiInfo/resiInfo.wxml -->
<!-- 基本信息 -->
<view class="card">
<view class="card" v-if="form.baseInfoDto.idNum">
<view class="top">
<view class="left">
<view class="left" >
<view class="name">
<view style="display: flex">
<image
@ -33,7 +33,7 @@
/>
<image
style="width: 40rpx; height: 40rpx; margin-right: 16rpx"
v-if="form.baseInfoDt.gender == '2' && form.baseInfoDto.age < 18"
v-if="form.baseInfoDto.gender == '2' && form.baseInfoDto.age < 18"
src="https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/internal/20240402/0c38251bba644a6b8e4a925aea74c9a7.png"
mode=""
/>
@ -160,47 +160,47 @@
<view class="item">
<text class="must">*</text>
<view class="label">国籍</view>
<View class="value">{{ form.baseInfoDto.nationalityName || '--' }}</View>
<view class="value">{{ form.baseInfoDto&&form.baseInfoDto.nationalityName?form.baseInfoDto.nationalityName:'--' }}</view>
</view>
<view class="item">
<text class="must">*</text>
<view class="label">证件类型</view>
<View class="value">{{ idTypeList[form.baseInfoDto.idType].label || '--' }}</View>
<view class="value">{{ filterLabel(idTypeList,form.baseInfoDto.idType) }}</view>
</view>
<view class="item">
<text class="must">*</text>
<view class="label">证件号</view>
<View class="value">{{ form.baseInfoDto.idNum || '--' }}</View>
<view class="value">{{ form.baseInfoDto&&form.baseInfoDto.idNum?form.baseInfoDto.idNum:'--' }}</view>
</view>
<view class="item">
<text class="must">*</text>
<view class="label">联系电话</view>
<View class="value">{{ form.baseInfoDto.mobile || '--' }}</View>
<view class="value">{{ form.baseInfoDto&&form.baseInfoDto.mobile?form.baseInfoDto.mobile:'--' }}</view>
</view>
<view class="item">
<view class="label">文化程度</view>
<View class="value">{{ form.eduInfoDto.cultureLevelName || '--' }}</View>
<view class="value">{{ form.eduInfoDto&&form.eduInfoDto.cultureLevelName?form.eduInfoDto.cultureLevelName:'--' }}</view>
</view>
<view class="item">
<view class="label">性别</view>
<View class="value">{{ form.baseInfoDto.genderName || '--' }}</View>
<view class="value">{{ form.baseInfoDto&&form.baseInfoDto.genderName?form.baseInfoDto.genderName:'--' }}</view>
</view>
<view class="item">
<view class="label">出生日期</view>
<View class="value">{{ form.baseInfoDto.birthday || '--' }}</View>
<view class="value">{{ form.baseInfoDto.birthday || '--' }}</view>
</view>
<view class="item">
<view class="label">民族</view>
<View class="value">{{ form.baseInfoDto.nationName || '--' }}</View>
<view class="value">{{ form.baseInfoDto.nationName || '--' }}</view>
</view>
<view class="item">
<view class="label">婚姻状况</view>
<View class="value">{{ marriageName || '--' }}</View>
<view class="value">{{ marriageName || '--' }}</view>
</view>
<view class="item">
<view class="label">籍贯</view>
<View class="value">{{ form.baseInfoDto.nativePlace || '--' }}</View>
<view class="value">{{ form.baseInfoDto.nativePlace || '--' }}</view>
</view>
</view>
</view>
@ -211,18 +211,18 @@
<view class="item">
<text class="must">*</text>
<view class="label">所属网格</view>
<View class="value">{{ item.gridName || '--' }}</View>
<view class="value">{{ item.gridName || '--' }}</view>
</view>
<view class="item">
<text class="must">*</text>
<view class="label">所属房屋</view>
<View class="value">{{ item.agencyName }}{{ item.homeName }}</View>
<view class="value">{{ item.agencyName }}{{ item.homeName }}</view>
</view>
<view class="item">
<view class="label">人房关系</view>
<View class="value">{{ item.resiHouseRel != null ? (item.resiHouseRel === 0 ? '自住' : item.resiHouseRel === 1 ? '租住' : '--') : '--' }}</View>
<view class="value">{{ item.resiHouseRel != null ? (item.resiHouseRel === 0 ? '自住' : item.resiHouseRel === 1 ? '租住' : '--') : '--' }}</view>
</view>
<view class="item">
@ -239,12 +239,12 @@
<view class="item">
<view class="label">户籍所在地</view>
<View class="value">{{ item.placeOfDomicile ? item.placeOfDomicile : '--' }}</View>
<view class="value">{{ item.placeOfDomicile ? item.placeOfDomicile : '--' }}</view>
</view>
<view class="item">
<view class="label">与户主关系</view>
<View class="value">{{ dicts.houseHolderRelArr[item.houseHolderRel].label || '--' }}</View>
<view class="value" >{{ filterLabel(dicts.houseHolderRelArr,item.houseHolderRel)}}</view>
</view>
</view>
</view>
@ -258,47 +258,47 @@
</view>
<view class="item">
<view class="label">就业状态</view>
<View class="value">{{ dicts.careerStatusArr[form.workInfoDto.careerStatus].label || '--' }}</View>
<view class="value" >{{ filterLabel(dicts.careerStatusArr,form.workInfoDto?form.workInfoDto.careerStatus:null)}}</view>
</view>
<view class="item" v-if="form.workInfoDto && form.workInfoDto.careerStatus >= 1 && form.workInfoDto.careerStatus <= 5">
<view class="label">工作单位</view>
<View class="value">{{ form.workInfoDto ? (form.workInfoDto.workUnit ? form.workInfoDto.workUnit : '--') : '--' }}</View>
<view class="value">{{ form.workInfoDto ? (form.workInfoDto.workUnit ? form.workInfoDto.workUnit : '--') : '--' }}</view>
</view>
<view class="item" v-if="form.unemployedDto && (form.workInfoDto.careerStatus == 0 || form.workInfoDto.careerStatus == 6)">
<view class="item" v-if="form.unemployedDto &&form.workInfoDto &&(form.workInfoDto.careerStatus == 0 || form.workInfoDto.careerStatus == 6)">
<view class="label">原工作单位</view>
<View class="value">{{ form.unemployedDto ? (form.unemployedDto.originWorkUnit ? form.unemployedDto.originWorkUnit : '--') : '--' }}</View>
<view class="value">{{ form.unemployedDto ? (form.unemployedDto.originWorkUnit ? form.unemployedDto.originWorkUnit : '--') : '--' }}</view>
</view>
<view class="item" v-if="form.workInfoDto && form.workInfoDto.careerStatus >= 1 && form.workInfoDto.careerStatus <= 5">
<view class="item" v-if="form.workInfoDto && form.workInfoDto && form.workInfoDto.careerStatus >= 1 && form.workInfoDto.careerStatus <= 5">
<view class="label">职业</view>
<View class="value">{{ form.workInfoDto ? (form.workInfoDto.occupation ? form.workInfoDto.occupation : '--') : '--' }}</View>
<view class="value">{{ form.workInfoDto ? (form.workInfoDto.occupation ? form.workInfoDto.occupation : '--') : '--' }}</view>
</view>
<view class="item" v-if="form.unemployedDto && (form.workInfoDto.careerStatus == 0 || form.workInfoDto.careerStatus == 6)">
<view class="item" v-if="form.unemployedDto &&form.workInfoDto && (form.workInfoDto.careerStatus == 0 || form.workInfoDto.careerStatus == 6)">
<view class="label">失业时间</view>
<View class="value">{{ form.unemployedDto ? (form.unemployedDto.unemploymentTime ? form.unemployedDto.unemploymentTime : '--') : '--' }}</View>
<view class="value">{{ form.unemployedDto ? (form.unemployedDto.unemploymentTime ? form.unemployedDto.unemploymentTime : '--') : '--' }}</view>
</view>
<view class="item" v-if="form.economyDto && form.workInfoDto.careerStatus >= 1 && form.workInfoDto.careerStatus <= 5">
<view class="item" v-if="form.economyDto &&form.workInfoDto && form.workInfoDto.careerStatus >= 1 && form.workInfoDto.careerStatus <= 5">
<view class="label">月收入</view>
<View class="value">{{ form.economyDto ? (form.economyDto.monthIncome ? form.economyDto.monthIncome : '--') : '--' }}</View>
<view class="value">{{ form.economyDto ? (form.economyDto.monthIncome ? form.economyDto.monthIncome : '--') : '--' }}</view>
</view>
<view class="item" v-if="form.unemployedDto && (form.workInfoDto.careerStatus == 0 || form.workInfoDto.careerStatus == 6)">
<view class="item" v-if="form.unemployedDto &&form.workInfoDto && (form.workInfoDto.careerStatus == 0 || form.workInfoDto.careerStatus == 6)">
<view class="label">失业证号</view>
<View class="value">{{ form.unemployedDto ? (form.unemployedDto.unemploymentNum ? form.unemployedDto.unemploymentNum : '--') : '--' }}</View>
<view class="value">{{ form.unemployedDto ? (form.unemployedDto.unemploymentNum ? form.unemployedDto.unemploymentNum : '--') : '--' }}</view>
</view>
<view class="item" v-if="form.unemployedDto && (form.workInfoDto.careerStatus == 0 || form.workInfoDto.careerStatus == 6)">
<view class="item" v-if="form.unemployedDto &&form.workInfoDto && (form.workInfoDto.careerStatus == 0 || form.workInfoDto.careerStatus == 6)">
<view class="label">失业原因</view>
<View class="value">{{ form.unemployedDto ? (form.unemployedDto.unemploymentReason ? form.unemployedDto.unemploymentReason : '--') : '--' }}</View>
<view class="value">{{ form.unemployedDto ? (form.unemployedDto.unemploymentReason ? form.unemployedDto.unemploymentReason : '--') : '--' }}</view>
</view>
<view class="item" v-if="form.unemployedDto && (form.workInfoDto.careerStatus == 0 || form.workInfoDto.careerStatus == 6)">
<view class="item" v-if="form.unemployedDto &&form.workInfoDto && (form.workInfoDto.careerStatus == 0 || form.workInfoDto.careerStatus == 6)">
<view class="label">失业原因</view>
<View class="value">{{ form.unemployedDto ? (form.unemployedDto.employmentNum ? form.unemployedDto.employmentNum : '--') : '--' }}</View>
<view class="value">{{ form.unemployedDto ? (form.unemployedDto.employmentNum ? form.unemployedDto.employmentNum : '--') : '--' }}</view>
</view>
<view class="item" v-if="form.unemployedDto && (form.workInfoDto.careerStatus == 0 || form.workInfoDto.careerStatus == 6)">
<view class="item" v-if="form.unemployedDto &&form.workInfoDto && (form.workInfoDto.careerStatus == 0 || form.workInfoDto.careerStatus == 6)">
<view class="label">技术特长</view>
<View class="value">{{ form.unemployedDto ? (form.unemployedDto.specialSkill ? form.unemployedDto.specialSkill : '--') : '--' }}</View>
<view class="value">{{ form.unemployedDto ? (form.unemployedDto.specialSkill ? form.unemployedDto.specialSkill : '--') : '--' }}</view>
</view>
<view class="item" v-if="form.unemployedDto && (form.workInfoDto.careerStatus == 0 || form.workInfoDto.careerStatus == 6)">
<view class="item" v-if="form.unemployedDto &&form.workInfoDto && (form.workInfoDto.careerStatus == 0 || form.workInfoDto.careerStatus == 6)">
<view class="label">是否领取失业金</view>
<View class="value">
<view class="value">
{{
form.unemployedDto.unempCompensationFlag != null
? form.unemployedDto.unempCompensationFlag === 0
@ -308,11 +308,11 @@
: '--'
: '--'
}}
</View>
</view>
<view class="item" v-if="form.unemployedDto && (form.workInfoDto.careerStatus == 0 || form.workInfoDto.careerStatus == 6)">
</view>
<view class="item" v-if="form.unemployedDto && form.workInfoDto && (form.workInfoDto.careerStatus == 0 || form.workInfoDto.careerStatus == 6)">
<view class="label">是否就业困难对象</view>
<View class="value">
<view class="value">
{{
form.unemployedDto.employmentHardFlag != null
? form.unemployedDto.employmentHardFlag === 0
@ -322,17 +322,17 @@
: '--'
: '--'
}}
</View>
</view>
<view class="item" v-if="form.workInfoDto && (form.workInfoDto.careerStatus == 0 || form.workInfoDto.careerStatus == 6)">
</view>
<view class="item" v-if="form.workInfoDto && form.workInfoDto && (form.workInfoDto.careerStatus == 0 || form.workInfoDto.careerStatus == 6)">
<view class="label">劳动就业愿望</view>
<View class="value">{{ form.workInfoDto ? (form.workInfoDto.employmentWish ? form.workInfoDto.employmentWish : '--') : '--' }}</View>
<view class="value">{{ form.workInfoDto ? (form.workInfoDto.employmentWish ? form.workInfoDto.employmentWish : '--') : '--' }}</view>
</view>
<view class="item">
<view class="label">有无赡养人</view>
<View class="value">
<view class="value">
{{ form.familyInfoDto && form.familyInfoDto.elderlyFlag == 1 ? '有' : form.familyInfoDto && form.familyInfoDto.elderlyFlag == 0 ? '无' : '--' }}
</View>
</view>
</view>
</view>
</view>
@ -343,13 +343,13 @@
<view class="info" v-for="(itemC, indexC) in item.children" :key="indexC">
<view class="item">
<view class="label">{{ itemC.label }}</view>
<View class="value">{{ itemC.value || '--' }}</View>
<view class="value">{{ itemC.value || '--' }}</view>
</view>
</view>
</view>
<view class="card" id="graph">
<view class="title">关系图谱</view>
<resi-graph :resiId="resiId" @clickGraphNode="clickGraphNode" v-if="resiId"></resi-graph>
<!-- <resi-graph :resiId="resiId" @clickGraphNode="clickGraphNode" v-if="resiId"></resi-graph> -->
</view>
<view class="card" id="business">
@ -402,7 +402,7 @@
</view>
</view>
</view>
<no-data :isShow="logs.length === 0" v-if="logs.length === 0"></no-data>
<!-- <no-data :isShow="logs.length === 0" v-if="logs.length === 0"></no-data> -->
</view>
<!-- 走访打卡 -->
<!-- <view class="card ">
@ -420,7 +420,7 @@
<view class="bto_btn">
<view class="btn" @tap="toEvent">上报诉求</view>
<view class="btn" @tap="toWebView" v-if="agencyLevel !== 'street'">满意度调查</view>
<view class="btn" @tap="toWebview" v-if="agencyLevel !== 'street'">满意度调查</view>
<view class="btn blue" @tap="handelTopunchCard">走访打卡</view>
</view>
<van-dialog
@ -1055,10 +1055,6 @@ export default {
this.getChangeRecordsById();
this.getTabData();
}
// this.data.qqMapWX = new QQMapWX({
// key: 'CMJBZ-4DECI-JXGGN-5B4WU-QLV2H-B5BEJ'
// })
// this.reverseLocation()
this.setData({
agencyLevel: app.globalData.user.level
});
@ -1097,6 +1093,20 @@ export default {
* 用户点击右上角分享
*/
onShareAppMessage() {},
computed:{
filterLabel() {
return function(arr,key){
console.log(arr,key,'seeee');
let str = ''
if(key){
str = arr[key].label
}else{
str = '--'
}
return str
}
}
},
methods: {
getDicts: async function () {
try {
@ -1141,14 +1151,15 @@ export default {
if (res.data.residentCategoryStr) {
res.data.baseInfoDto.categoryInfo.categoryNames = res.data.residentCategoryStr.split(',');
}
if (res.data.familyInfoDto && res.data.familyInfoDto.marriage) {
marriageName = this.dicts.marriageArr.filter((item) => item.value == res.data.familyInfoDto.marriage)[0].label;
}
// if (res.data.familyInfoDto && res.data.familyInfoDto.marriage) {
// marriageName = this.dicts.marriageArr.filter((item) => item.value == res.data.familyInfoDto.marriage)[0].label;
// }
// tab
this.setData({
form: res.data,
marriageName: marriageName
});
await this.updateTabList(res.data.integrityData.integrityQtyMap);
} catch (err) {
console.log('CatchClause', err);
@ -1531,10 +1542,10 @@ export default {
});
},
toWebView() {
toWebview() {
if (app.globalData.questionnaireUrl) {
uni.navigateTo({
url: '/pages/webView/webView?url=' + app.globalData.questionnaireUrl
url: '/pages/webview/webview?url=' + app.globalData.questionnaireUrl
});
} else {
uni.showToast({

2
subpages/statistics/pages/residentPortrait2/residentPortrait.vue

@ -151,7 +151,7 @@
<script>
import Tabs from '../../../../components/Tabs';
import ecCanvas from '../../../../ec-canvas/ec-canvas';
import * as echarts from '../../../../ec-canvas/echarts';
import * as echarts from '../../../../static/echarts.js';
import {
getPersonalFile,
getFamilyRelationshipList,

2
utils/api.js

@ -113,7 +113,7 @@ function clearMessage() {
*小程序用户登录
*/
function userLoginlog(para) {
return fly.post('auth/gov/loginbypassword', para);
return fly.post('auth/login/govH5/loginByPassword', para);
}
/**
*人员详情

Loading…
Cancel
Save