mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-23 21:36:38 +08:00
optimize
This commit is contained in:
parent
ad498c5653
commit
bec43e4dca
33
api/examine/examineApi.js
Normal file
33
api/examine/examineApi.js
Normal file
@ -0,0 +1,33 @@
|
||||
import {
|
||||
requestNoAuth,request
|
||||
} from '../../lib/java110/java110Request.js';
|
||||
import
|
||||
url
|
||||
from '../../constant/url.js';
|
||||
|
||||
|
||||
/**
|
||||
* 查询业主小区
|
||||
* @param {Object} dataObj 对象
|
||||
*/
|
||||
export function getExamineStaffs(dataObj) {
|
||||
return new Promise(
|
||||
(resolve, reject) => {
|
||||
request({
|
||||
url: url.listExamineStaff,
|
||||
method: "GET",
|
||||
data: dataObj,
|
||||
//动态数据
|
||||
success: function(res) {
|
||||
if (res.statusCode == 200) {
|
||||
let _data = res.data.data;
|
||||
resolve(_data);
|
||||
}
|
||||
},
|
||||
fail: function(e) {
|
||||
reject(e);
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
}
|
||||
@ -155,6 +155,11 @@
|
||||
src: this.imgUrl + '/h5/images/serve/my3.png',
|
||||
href: '/pages/machine/chargeMachines'
|
||||
},
|
||||
{
|
||||
name: '物业打分',
|
||||
src: this.imgUrl + '/h5/images/serve/my9.png',
|
||||
href: '/pages/complaint/examineStaff'
|
||||
},
|
||||
|
||||
// {
|
||||
// name: "返省上报",
|
||||
|
||||
@ -196,6 +196,8 @@ export default {
|
||||
queryOaWorkflowUser: baseUrl+"app/oaWorkflow/queryOaWorkflowUser",
|
||||
listChargeMachine:baseUrl+"app/chargeMachine.listChargeMachine",
|
||||
listChargeMachinePort:baseUrl+"app/chargeMachine.listChargeMachinePort",
|
||||
listExamineStaff:baseUrl+"app/examine.listExamineStaff", // 查询打分员工
|
||||
|
||||
|
||||
|
||||
NEED_NOT_LOGIN_PAGE: [
|
||||
|
||||
@ -784,6 +784,15 @@
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/complaint/examineStaff",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "物业人员打分",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
}
|
||||
],
|
||||
"tabBar": {
|
||||
"color": "#272636",
|
||||
|
||||
138
pages/complaint/examineStaff.vue
Normal file
138
pages/complaint/examineStaff.vue
Normal file
@ -0,0 +1,138 @@
|
||||
<template>
|
||||
<view class="bg-white">
|
||||
|
||||
<view class="e-1">
|
||||
<text>2022年度业主打分情况</text>
|
||||
</view>
|
||||
|
||||
<view class="flex justify-start e-2">
|
||||
<view v-for="(item,index) in staffs" class="e-2-item" :key="index">
|
||||
<view>
|
||||
<image :src="item.url"></image>
|
||||
</view>
|
||||
<view>
|
||||
<text class="e-2-st">{{item.staffName}}</text>
|
||||
<text class="e-2-sc"> {{item.score || 0}} </text>
|
||||
<text class="e-2-f">分</text>
|
||||
</view>
|
||||
<view>
|
||||
<text class="e-2-post">{{item.post}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text class="e-2-sid">工号:{{_showStaffId(item.staffId)}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {getExamineStaffs} from '../../api/examine/examineApi.js';
|
||||
import {getCommunityId} from '../../api/community/communityApi.js';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
staffs:[]
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
// let _staff = {
|
||||
// url:'../../static/logo.png',
|
||||
// name:'张三',
|
||||
// score:100,
|
||||
// post:'管理人员',
|
||||
// staffId:'001'
|
||||
// };
|
||||
// this.staffs.push(_staff);
|
||||
// this.staffs.push(_staff);
|
||||
// this.staffs.push(_staff);
|
||||
// this.staffs.push(_staff);
|
||||
// this.staffs.push(_staff);
|
||||
// this.staffs.push(_staff);
|
||||
// this.staffs.push(_staff);
|
||||
// this.staffs.push(_staff);
|
||||
// this.staffs.push(_staff);
|
||||
// this.staffs.push(_staff);
|
||||
// this.staffs.push(_staff);
|
||||
// this.staffs.push(_staff);
|
||||
this._loadStaffs();
|
||||
},
|
||||
methods: {
|
||||
_loadStaffs:function(){
|
||||
this.staffs = [];
|
||||
let _that = this;
|
||||
getExamineStaffs({
|
||||
page:1,
|
||||
row:100,
|
||||
communityId:getCommunityId()
|
||||
}).then(_data=>{
|
||||
_that.staffs = _data;
|
||||
})
|
||||
},
|
||||
_showStaffId:function(_staffId){
|
||||
if(_staffId.length < 6){
|
||||
return _staffId;
|
||||
}
|
||||
|
||||
return _staffId.substring(_staffId.length - 6);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.e-1{
|
||||
background-color: #D2E4F8;
|
||||
height: 80upx;
|
||||
line-height: 80upx;
|
||||
margin:20upx;
|
||||
border-radius: 10upx;
|
||||
text{
|
||||
font-size: 30upx;
|
||||
margin-left:20upx;
|
||||
}
|
||||
}
|
||||
.e-2{
|
||||
flex-wrap: wrap;
|
||||
margin-top:40upx;
|
||||
.e-2-item{
|
||||
margin-bottom:50upx;
|
||||
width: 33.33%;
|
||||
text-align: center;
|
||||
image{
|
||||
width: 70%;
|
||||
height: 180upx;
|
||||
border-radius: 10upx;
|
||||
border:1px solid #167BE3;
|
||||
}
|
||||
|
||||
.e-2-st{
|
||||
font-size: 32upx;
|
||||
color: #000;
|
||||
font-weight: bold;
|
||||
}
|
||||
.e-2-sc{
|
||||
font-size: 28upx;
|
||||
color: #9E2929;
|
||||
font-weight: bold;
|
||||
margin-left: 5upx;
|
||||
}
|
||||
.e-2-f{
|
||||
font-size: 32upx;
|
||||
margin-left: 5upx;
|
||||
}
|
||||
|
||||
.e-2-post{
|
||||
font-size: 26upx;
|
||||
}
|
||||
.e-2-sid{
|
||||
font-size: 24upx;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
@ -83,7 +83,7 @@
|
||||
methods: {
|
||||
_loadDetail: function() {
|
||||
let _that = this;
|
||||
getMyItemRelease(this,{
|
||||
getMyItemRelease({
|
||||
page: 1,
|
||||
row: 1,
|
||||
irId: this.irId,
|
||||
@ -95,7 +95,7 @@
|
||||
},
|
||||
_loadDetailResNames: function() {
|
||||
let _that = this;
|
||||
getItemReleaseRes(this,{
|
||||
getItemReleaseRes({
|
||||
page: 1,
|
||||
row: 100,
|
||||
irId: this.irId,
|
||||
@ -106,7 +106,7 @@
|
||||
},
|
||||
_loadComment: function() {
|
||||
let _that = this;
|
||||
queryOaWorkflowUser(this,{
|
||||
queryOaWorkflowUser({
|
||||
page: 1,
|
||||
row: 100,
|
||||
id: this.irId,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user