feature: 按钮名称
This commit is contained in:
parent
14c8801cba
commit
ee2d779f71
|
|
@ -117,7 +117,7 @@ class Schedule extends Backend
|
||||||
$res[$adminId][$tmpDate] = '无';
|
$res[$adminId][$tmpDate] = '无';
|
||||||
$res[$adminId]['admin_id'] = $adminId;
|
$res[$adminId]['admin_id'] = $adminId;
|
||||||
$res[$adminId]['name'] = $adminNames[$adminId];
|
$res[$adminId]['name'] = $adminNames[$adminId];
|
||||||
$res[$adminId]['editable'] = $this->auth->isSuperAdmin() ? 1 : 0;
|
$res[$adminId]['editable'] = $this->auth->check('oa/schedule/custom_manage') ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$dates[] = $tmpDate;
|
$dates[] = $tmpDate;
|
||||||
|
|
|
||||||
|
|
@ -154,7 +154,7 @@ class Detail extends Backend
|
||||||
return json($result);
|
return json($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->assignconfig("manage", $this->auth->isSuperAdmin());
|
$this->assignconfig("manage", $this->auth->check('salary/custom_manage'));
|
||||||
$this->view->assign("month", $month);
|
$this->view->assign("month", $month);
|
||||||
$this->view->assign("salaryitem", json_encode($salaryItem));
|
$this->view->assign("salaryitem", json_encode($salaryItem));
|
||||||
return $this->view->fetch();
|
return $this->view->fetch();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user