Skip to content

Commit

Permalink
feat: Update taskCard status
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoBingyu committed Dec 14, 2023
1 parent a00de1a commit 2c3d2a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clients/home/pages/new-approvals/my-applies/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { APPROVAL, FILL_IN, listData } from '../constant';
// handle type : ALL,REVIEW, WRITE, READ, OTHER
const status = [
{ label: '全部', value: 'ALL' },
{ label: '待补充', value: 'SEND_BACK' },
// { label: '待补充', value: 'SEND_BACK' },
{ label: '进行中', value: 'REVIEW' },
{ label: '已拒绝', value: 'REFUSE' },
{ label: '已通过', value: 'AGREE' },
Expand Down
6 changes: 5 additions & 1 deletion clients/home/pages/new-approvals/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,14 +449,18 @@ export const getApplyParams = (query: any)=>{
let NodeResult; let TaskResult;
if (query.status === 'REVIEW' || query.status === 'Pending') {
NodeResult = 'Pending';
} else if (query.status === 'REFUSE' || query.status === 'AGREE' || query.status === 'Finish' ) {
} else if (query.status === 'REFUSE' || query.status === 'AGREE' || query.status === 'CANCEL' || query.status === 'Finish' ) {
NodeResult = 'Finish';
if (query.status === 'REFUSE') {
TaskResult = 'reject';
}
if (query.status === 'AGREE') {
TaskResult = 'agree';
}

if (query.status === 'CANCEL') {
TaskResult = 'recall';
}
}
const res = {
page: query.page,
Expand Down

0 comments on commit 2c3d2a0

Please sign in to comment.