标题优化
This commit is contained in:
parent
ff78305aee
commit
5bdcf7679c
@ -169,6 +169,14 @@ abstract class AbstractExport implements WithEvents, WithTitle, ShouldAutoSize
|
|||||||
$title = $conditions['company_name'] . ' ' . $title;
|
$title = $conditions['company_name'] . ' ' . $title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (($conditions = $this->conditions) && $conditions['package_id']) {
|
||||||
|
$title = $title . ' P' . $conditions['package_id'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (($conditions = $this->conditions) && $conditions['package_name']) {
|
||||||
|
$title = $conditions['package_name'] . ' ' . $title;
|
||||||
|
}
|
||||||
|
|
||||||
return $title ?? '列表';
|
return $title ?? '列表';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,6 +125,10 @@ class CompanyReportDetailExport extends AbstractExport implements FromQuery, Wit
|
|||||||
$title = $title . ' C' . $conditions['company_id'];
|
$title = $title . ' C' . $conditions['company_id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (($conditions = $this->conditions) && $conditions['package_id']) {
|
||||||
|
$title = $title . ' P' . $conditions['package_id'];
|
||||||
|
}
|
||||||
|
|
||||||
return $title ?? '列表';
|
return $title ?? '列表';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,6 +84,10 @@ class CompanyReportExport extends AbstractExport implements FromCollection, With
|
|||||||
$title = $conditions['company_name'] . ' ' . $title;
|
$title = $conditions['company_name'] . ' ' . $title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (($conditions = $this->conditions) && $conditions['package_name']) {
|
||||||
|
$title = $conditions['package_name'] . ' ' . $title;
|
||||||
|
}
|
||||||
|
|
||||||
return $title ?? '列表';
|
return $title ?? '列表';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user