|
@@ -392,13 +392,13 @@ const getList = () => {
|
|
|
proxy.post("/dailyReport/page", sourceList.value.pagination).then((res) => {
|
|
|
sourceList.value.data = sourceList.value.data.concat(res.rows);
|
|
|
sourceList.value.total = res.total;
|
|
|
- if (
|
|
|
- sourceList.value.data &&
|
|
|
- sourceList.value.data.length > 0 &&
|
|
|
- dailyPaperId.value !== sourceList.value.data[0].id &&
|
|
|
- !sourceList.value.pagination.senderId
|
|
|
- ) {
|
|
|
- selectDailyPaper(sourceList.value.data[0]);
|
|
|
+ if (sourceList.value.data && sourceList.value.data.length > 0) {
|
|
|
+ if (dailyPaperId.value !== sourceList.value.data[0].id && !sourceList.value.pagination.senderId) {
|
|
|
+ selectDailyPaper(sourceList.value.data[0]);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ dailyPaperDetail.value = {};
|
|
|
+ dailyPaperId.value = "";
|
|
|
}
|
|
|
if (sourceList.value.total > sourceList.value.pagination.pageNum * sourceList.value.pagination.pageSize) {
|
|
|
load();
|