| | |
| | | }, |
| | | extraProps: { |
| | | hide: (row: API.GetTaskUsersQueryResultItem) => |
| | | row.hireStatus === EnumTaskUserHireStatus.Pass, |
| | | row.hireStatus === EnumTaskUserHireStatus.Pass || !state.isInternal, |
| | | }, |
| | | }, |
| | | refuseBtn: { |
| | |
| | | }, |
| | | extraProps: { |
| | | hide: (row: API.GetTaskUsersQueryResultItem) => |
| | | row.hireStatus !== EnumTaskUserHireStatus.Wait, |
| | | row.hireStatus !== EnumTaskUserHireStatus.Wait || !state.isInternal, |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | const id = route.params.id as string; |
| | | const BaseState = { |
| | | loading: true, |
| | | |
| | | isInternal: false, |
| | | }; |
| | | |
| | | const state = reactive({ ...BaseState }); |
| | |
| | | let res = await taskUserServices.getTaskUsers(params, { |
| | | showLoading: !state.loading, |
| | | }); |
| | | if (res) { |
| | | state.isInternal = res.objectData?.isInternal; |
| | | } |
| | | return res; |
| | | } catch (error) { |
| | | console.log('error: ', error); |