check workflow
This commit is contained in:
parent
e3e6a1df36
commit
a4647e102a
14 changed files with 84 additions and 73 deletions
|
|
@ -136,7 +136,7 @@ export class kpiLinkController extends Controller {
|
|||
...requestBody,
|
||||
kpiCapacitys: [],
|
||||
});
|
||||
|
||||
|
||||
const chkCapacity = await this.kpiCapacityRepository.find({
|
||||
where: {
|
||||
id: In(requestBody.kpiCapacityIds),
|
||||
|
|
@ -181,7 +181,8 @@ export class kpiLinkController extends Controller {
|
|||
*/
|
||||
@Get("edit/{id}")
|
||||
async KpiLinkByIdEdit(@Request() request: RequestWithUser, @Path() id: string) {
|
||||
let _data = await new permission().PermissionGet(request, "SYS_EVA_COMPETENCY");
|
||||
let _workflow = await new permission().Workflow(request, id, "SYS_EVA_COMPETENCY");
|
||||
if (_workflow == false) await new permission().PermissionGet(request, "SYS_EVA_COMPETENCY");
|
||||
const kpiLink = await this.kpiLinkRepository.findOne({
|
||||
where: { id: id },
|
||||
relations: ["positions", "kpiCapacitys", "kpiGroup"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue