view(unitRecord, punishRecord) {
console.log("punishRecord.id",punishRecord.id)
getAction('/wyCounterpartPunishLog/wyCounterpartPunishLog/queryListById',{'id' : punishRecord.id}).then((res)=>{
if(res.success){
this.dataSource = res.result.records || res.result;
//this.model = res.result;
this.$message.success(res.message);
this.$emit('ok');
}else{
this.$message.warning(res.message);
}
}).finally(() => {
this.confirmLoading = false;
})
this.visible = true
},