You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
109 lines
2.3 KiB
109 lines
2.3 KiB
2 years ago
|
// subpages/communitySelfInsp/pages/synthesis/synthesis.js
|
||
|
const app = getApp()
|
||
|
import {getSynthesis} from '../../../../utils/api'
|
||
|
Page({
|
||
|
|
||
|
/**
|
||
|
* 页面的初始数据
|
||
|
*/
|
||
|
data: {
|
||
|
agencyName:'',//组织名称
|
||
|
tableData:[],
|
||
|
monthName:'',//月份
|
||
|
personQty:'',//提交人数
|
||
|
synthesisScore:'',//综合得分
|
||
|
inspRecordId:''//自查表Id
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* 生命周期函数--监听页面加载
|
||
|
*/
|
||
|
onLoad(options) {
|
||
|
this.setData({
|
||
|
statusHeight: app.globalData.deviceInfo.statusHeight,
|
||
|
navigationHeight: app.globalData.deviceInfo.navigationHeight,
|
||
|
})
|
||
|
this.getSynthesis()
|
||
|
},
|
||
|
|
||
|
getSynthesis(){
|
||
|
let parm = {
|
||
|
period:'2023-09',
|
||
|
inspRecordId:''
|
||
|
}
|
||
|
getSynthesis(parm).then(res=>{
|
||
|
this.setData({
|
||
|
tableData:res.data.categoryDatas,
|
||
|
monthName:res.data.monthName,
|
||
|
synthesisScore:res.data.synthesisScore,
|
||
|
personQty:res.data.personQty,
|
||
|
agencyName:res.data.agencyName,
|
||
|
inspRecordId:res.data.inspRecordId
|
||
|
})
|
||
|
|
||
|
}).catch((err)=>{
|
||
|
console.log(err);
|
||
|
})
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* 生命周期函数--监听页面初次渲染完成
|
||
|
*/
|
||
|
onReady() {
|
||
|
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* 生命周期函数--监听页面显示
|
||
|
*/
|
||
|
onShow() {
|
||
|
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* 生命周期函数--监听页面隐藏
|
||
|
*/
|
||
|
onHide() {
|
||
|
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* 生命周期函数--监听页面卸载
|
||
|
*/
|
||
|
onUnload() {
|
||
|
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* 页面相关事件处理函数--监听用户下拉动作
|
||
|
*/
|
||
|
onPullDownRefresh() {
|
||
|
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* 页面上拉触底事件的处理函数
|
||
|
*/
|
||
|
onReachBottom() {
|
||
|
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* 用户点击右上角分享
|
||
|
*/
|
||
|
onShareAppMessage() {
|
||
|
|
||
|
},
|
||
|
toDissatisfactionDetails(e){
|
||
|
console.log(e);
|
||
|
let category = e.currentTarget.dataset.item.satisfactionCategory
|
||
|
wx.navigateTo({
|
||
|
url: `/subpages/communitySelfInsp/pages/dissatisfactionDetails/dissatisfactionDetails?inspRecordId=${this.data.inspRecordId}&category=${category}`,
|
||
|
})
|
||
|
},
|
||
|
back(){
|
||
|
wx.navigateBack({
|
||
|
delta: 1
|
||
|
})
|
||
|
}
|
||
|
})
|