|
@@ -79,7 +79,7 @@ const getRateData = async () => {
|
|
|
}
|
|
|
})
|
|
|
.then((res) => {
|
|
|
- ElMessage.success(`${moment(searchDate).format('YYYY-MM')} 数据查询成功`)
|
|
|
+ ElMessage.success(`${moment(searchDate).format('YYYY年M月')} 数据查询成功`)
|
|
|
const rateTree = handleTree(res, 'deptId')
|
|
|
dataSource.value = setRateData(rateTree)
|
|
|
loading.value = false
|
|
@@ -198,9 +198,13 @@ const { push } = useRouter()
|
|
|
const handleView = (row) => {
|
|
|
// 还需判断是跳转周报还是日报
|
|
|
if (row.reportType == 'weekly') {
|
|
|
- push(`/oaSystem/DeptCenter/weeklyStatistic?deptId=${row.deptId}`)
|
|
|
+ push(
|
|
|
+ `/oaSystem/DeptCenter/weeklyStatistic?deptId=${row.deptId}&date=${moment(selectDate.value).format('YYYY-MM')}`
|
|
|
+ )
|
|
|
} else {
|
|
|
- push(`/oaSystem/DeptCenter/dailyStatistic?deptId=${row.deptId}`)
|
|
|
+ push(
|
|
|
+ `/oaSystem/DeptCenter/dailyStatistic?deptId=${row.deptId}&date=${moment(selectDate.value).format('YYYY-MM')}`
|
|
|
+ )
|
|
|
}
|
|
|
}
|
|
|
</script>
|