|
@@ -548,7 +548,7 @@ class CustomController extends BaseController
|
|
|
$get = Yii::$app->request->get();
|
|
$get = Yii::$app->request->get();
|
|
|
$type = isset($get['type']) ? $get['type'] : 0;
|
|
$type = isset($get['type']) ? $get['type'] : 0;
|
|
|
$name = isset($get['name']) ? $get['name'] : '';
|
|
$name = isset($get['name']) ? $get['name'] : '';
|
|
|
-
|
|
|
|
|
|
|
+ $export = $get['export'] ?? 0;
|
|
|
$mainId = $this->mainId;
|
|
$mainId = $this->mainId;
|
|
|
$isCashier = $get['isCashier'] ?? 0;
|
|
$isCashier = $get['isCashier'] ?? 0;
|
|
|
if ($isCashier == 1) {
|
|
if ($isCashier == 1) {
|
|
@@ -591,6 +591,10 @@ class CustomController extends BaseController
|
|
|
$where['name'] = ['like', $name];
|
|
$where['name'] = ['like', $name];
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ if ($export == 1) {
|
|
|
|
|
+ CustomClass::exportCustom($where, $sort);
|
|
|
|
|
+ util::stop();
|
|
|
|
|
+ }
|
|
|
$list = CustomService::getCustomSortList($where, $sort);
|
|
$list = CustomService::getCustomSortList($where, $sort);
|
|
|
$main = $this->main;
|
|
$main = $this->main;
|
|
|
$list['totalUser'] = $main->totalUser ?? 0;
|
|
$list['totalUser'] = $main->totalUser ?? 0;
|