TaskDialog.js
703 Bytes
// components/TaskDialog/TaskDialog.js
Component({
/**
* 组件的属性列表
*/
properties: {
showDialog: Boolean,
taskInfo: {
type: Object,
observer: function(n) {
n.checkMonthPeriod = `${{1: '首月', 2: '次月', 3: '第三月'}[n?.checkMonth]}-${{1: '上半月', 2: '下半月'}[n?.checkPeriod]}` // 考核周期
this.setData({
infoData: n
})
}
}
},
/**
* 组件的初始数据
*/
data: {
infoData: {}
},
/**
* 组件的方法列表
*/
methods: {
// 查看驻店目标任务详情
jump() {
wx.$router.go('packageEquity.residentTarget', {id: this.data.infoData?.id})
}
}
})