|
|
@@ -70,6 +70,12 @@ abstract class BaseDataLists implements ListsInterface
|
|
|
|
|
|
$this->params = $this->request->param();
|
|
|
|
|
|
+ $this->initController();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ public function initController()
|
|
|
+ {
|
|
|
//初始化租户
|
|
|
$this->initTenant();
|
|
|
|
|
|
@@ -86,7 +92,6 @@ abstract class BaseDataLists implements ListsInterface
|
|
|
$this->initExport();
|
|
|
}
|
|
|
|
|
|
-
|
|
|
public function initTenant()
|
|
|
{
|
|
|
if(!empty($this->request->adminInfo['tenant_id'])){
|
|
|
@@ -232,9 +237,13 @@ abstract class BaseDataLists implements ListsInterface
|
|
|
public function setParams($params): self
|
|
|
{
|
|
|
$this->params = $params;
|
|
|
+ $this->initController();
|
|
|
return $this;
|
|
|
}
|
|
|
-
|
|
|
+ public function getParams(): array
|
|
|
+ {
|
|
|
+ return $this->params;
|
|
|
+ }
|
|
|
public function setExcelComplexFields(): array
|
|
|
{
|
|
|
return [];
|