更新
This commit is contained in:
@@ -21,7 +21,7 @@ class DeptPerformanceTargetController extends BaseAdminController
|
||||
$params = (new DeptPerformanceTargetValidate())->goCheck('monthMatrix');
|
||||
$ym = (string) $params['year_month'];
|
||||
|
||||
return $this->data(DeptPerformanceTargetLogic::monthMatrix($ym));
|
||||
return $this->data(DeptPerformanceTargetLogic::monthMatrix($ym, $this->adminId, $this->adminInfo));
|
||||
}
|
||||
|
||||
public function batchSave()
|
||||
@@ -37,12 +37,18 @@ class DeptPerformanceTargetController extends BaseAdminController
|
||||
$ym,
|
||||
$items,
|
||||
$this->adminId,
|
||||
$this->adminInfo,
|
||||
(string) ($this->adminInfo['name'] ?? '')
|
||||
);
|
||||
if ($result === false) {
|
||||
return $this->fail(DeptPerformanceTargetLogic::getError());
|
||||
}
|
||||
|
||||
return $this->success('保存成功', DeptPerformanceTargetLogic::monthMatrix($ym), 1, 1);
|
||||
return $this->success(
|
||||
'保存成功',
|
||||
DeptPerformanceTargetLogic::monthMatrix($ym, $this->adminId, $this->adminInfo),
|
||||
1,
|
||||
1
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user