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.
		
		
		
		
			
				
					141 lines
				
				2.5 KiB
			
		
		
			
		
	
	
					141 lines
				
				2.5 KiB
			| 
								 
											1 year ago
										 
									 | 
							
								// subpages/HotlineCompletion/pages/HotlineCompletion.js
							 | 
						||
| 
								 | 
							
								import {
							 | 
						||
| 
								 | 
							
								  showRecord,icEventList
							 | 
						||
| 
								 | 
							
								} from "../../../utils/api"
							 | 
						||
| 
								 | 
							
								Page({
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    /**
							 | 
						||
| 
								 | 
							
								     * 页面的初始数据
							 | 
						||
| 
								 | 
							
								     */
							 | 
						||
| 
								 | 
							
								    data: {
							 | 
						||
| 
								 | 
							
								      pageSize:10,
							 | 
						||
| 
								 | 
							
								      pageNo:1,
							 | 
						||
| 
								 | 
							
								      eventList:[],
							 | 
						||
| 
								 | 
							
								      workOrderNum:"",
							 | 
						||
| 
								 | 
							
								      status:false,
							 | 
						||
| 
								 | 
							
								      columns:[],
							 | 
						||
| 
								 | 
							
								      statusType:"",
							 | 
						||
| 
								 | 
							
								      handleList: [
							 | 
						||
| 
								 | 
							
								        {
							 | 
						||
| 
								 | 
							
								            value: "8",
							 | 
						||
| 
								 | 
							
								            label: "未联系当事人",
							 | 
						||
| 
								 | 
							
								        },
							 | 
						||
| 
								 | 
							
								        {
							 | 
						||
| 
								 | 
							
								            value: "9",
							 | 
						||
| 
								 | 
							
								            label: "已联系当事人",
							 | 
						||
| 
								 | 
							
								        },
							 | 
						||
| 
								 | 
							
								        {
							 | 
						||
| 
								 | 
							
								            value: "10",
							 | 
						||
| 
								 | 
							
								            label: "办理中",
							 | 
						||
| 
								 | 
							
								        }, 
							 | 
						||
| 
								 | 
							
								        {
							 | 
						||
| 
								 | 
							
								            value: "11",
							 | 
						||
| 
								 | 
							
								            label: "已办结待审核",
							 | 
						||
| 
								 | 
							
								        },
							 | 
						||
| 
								 | 
							
								        {
							 | 
						||
| 
								 | 
							
								            value: "12",
							 | 
						||
| 
								 | 
							
								            label: "已审核归档",
							 | 
						||
| 
								 | 
							
								        },
							 | 
						||
| 
								 | 
							
								    ],
							 | 
						||
| 
								 | 
							
								    },
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    /**
							 | 
						||
| 
								 | 
							
								     * 生命周期函数--监听页面加载
							 | 
						||
| 
								 | 
							
								     */
							 | 
						||
| 
								 | 
							
								    onLoad(options) {
							 | 
						||
| 
								 | 
							
								      this.showRecordData()
							 | 
						||
| 
								 | 
							
								    },
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    /**
							 | 
						||
| 
								 | 
							
								     * 生命周期函数--监听页面初次渲染完成
							 | 
						||
| 
								 | 
							
								     */
							 | 
						||
| 
								 | 
							
								    onReady() {
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    },
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    /**
							 | 
						||
| 
								 | 
							
								     * 生命周期函数--监听页面显示
							 | 
						||
| 
								 | 
							
								     */
							 | 
						||
| 
								 | 
							
								    onShow() {
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    },
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    /**
							 | 
						||
| 
								 | 
							
								     * 生命周期函数--监听页面隐藏
							 | 
						||
| 
								 | 
							
								     */
							 | 
						||
| 
								 | 
							
								    onHide() {
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    },
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    /**
							 | 
						||
| 
								 | 
							
								     * 生命周期函数--监听页面卸载
							 | 
						||
| 
								 | 
							
								     */
							 | 
						||
| 
								 | 
							
								    onUnload() {
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    },
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    /**
							 | 
						||
| 
								 | 
							
								     * 页面相关事件处理函数--监听用户下拉动作
							 | 
						||
| 
								 | 
							
								     */
							 | 
						||
| 
								 | 
							
								    onPullDownRefresh() {
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    },
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    /**
							 | 
						||
| 
								 | 
							
								     * 页面上拉触底事件的处理函数
							 | 
						||
| 
								 | 
							
								     */
							 | 
						||
| 
								 | 
							
								    onReachBottom() {
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    },
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    /**
							 | 
						||
| 
								 | 
							
								     * 用户点击右上角分享
							 | 
						||
| 
								 | 
							
								     */
							 | 
						||
| 
								 | 
							
								    onShareAppMessage() {
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    },
							 | 
						||
| 
								 | 
							
								    async  showRecordData() {
							 | 
						||
| 
								 | 
							
								     console.log("sd as");
							 | 
						||
| 
								 | 
							
								    let parm = {
							 | 
						||
| 
								 | 
							
								      pageSize:this.data.pageSize,
							 | 
						||
| 
								 | 
							
								      pageNo:this.data.pageNo
							 | 
						||
| 
								 | 
							
								      
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								    await icEventList(parm).then(res => {
							 | 
						||
| 
								 | 
							
								      this.setData({
							 | 
						||
| 
								 | 
							
								        eventList:res.data.list
							 | 
						||
| 
								 | 
							
								      })
							 | 
						||
| 
								 | 
							
								      console.log(this.data.eventList);
							 | 
						||
| 
								 | 
							
								    })
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  handelShow(){
							 | 
						||
| 
								 | 
							
								    this.setData({
							 | 
						||
| 
								 | 
							
								      status:true,
							 | 
						||
| 
								 | 
							
								      columns: this.data.handleList.map(item => item.label)  // 映射出显示的选项
							 | 
						||
| 
								 | 
							
								    })
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  onChange(event) {
							 | 
						||
| 
								 | 
							
								    const { value } = event.detail;  // 获取选中的值
							 | 
						||
| 
								 | 
							
								    this.setData({
							 | 
						||
| 
								 | 
							
								      statusType: value         // 更新选中的值
							 | 
						||
| 
								 | 
							
								    });
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  // 控制 picker 显示或隐藏
							 | 
						||
| 
								 | 
							
								  togglePicker() {
							 | 
						||
| 
								 | 
							
								    this.setData({
							 | 
						||
| 
								 | 
							
								      status: !this.data.status
							 | 
						||
| 
								 | 
							
								    });
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  onCancel() {
							 | 
						||
| 
								 | 
							
								    console.log("54354");
							 | 
						||
| 
								 | 
							
								    this.setData({
							 | 
						||
| 
								 | 
							
								      status: false  // 关闭 picker
							 | 
						||
| 
								 | 
							
								    });
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  onConfirm() {
							 | 
						||
| 
								 | 
							
								    this.setData({
							 | 
						||
| 
								 | 
							
								      status: false  // 关闭 picker
							 | 
						||
| 
								 | 
							
								    });
							 | 
						||
| 
								 | 
							
								    console.log('确认按钮点击');
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								})
							 |