| | |
| | | import { |
| | | approveFeedback, |
| | | deleteFeedback, |
| | | getFeedbackListByTask, |
| | | getFeedbackPage, |
| | | rejectFeedback, |
| | | submitFeedback, |
| | | } from '#/api/mes/pro/feedback'; |
| | |
| | | keepSource: true, |
| | | proxyConfig: { |
| | | ajax: { |
| | | query: async () => { |
| | | query: async ({ page }) => { |
| | | if (!props.taskId) { |
| | | return []; |
| | | return { list: [], total: 0 }; |
| | | } |
| | | return await getFeedbackListByTask(props.taskId); |
| | | return await getFeedbackPage({ |
| | | taskId: props.taskId, |
| | | pageNo: page.currentPage, |
| | | pageSize: page.pageSize, |
| | | }); |
| | | }, |
| | | }, |
| | | }, |
| | |
| | | <template #actions="{ row }"> |
| | | <Space :size="4" wrap> |
| | | <Button type="link" size="small" @click="handleDetail(row)"> |
| | | {{ $t('common.view') }} |
| | | 查看 |
| | | </Button> |
| | | <!-- 草稿:编辑、删除、提交 --> |
| | | <Button |
| | |
| | | size="small" |
| | | @click="handleEdit(row)" |
| | | > |
| | | {{ $t('common.edit') }} |
| | | 编辑 |
| | | </Button> |
| | | <Popconfirm |
| | | v-if="row.status === STATUS_PREPARE" |
| | |
| | | @confirm="handleSubmit(row)" |
| | | > |
| | | <Button type="link" size="small"> |
| | | {{ $t('common.submit') }} |
| | | 提交 |
| | | </Button> |
| | | </Popconfirm> |
| | | <Popconfirm |
| | |
| | | @confirm="handleDelete(row)" |
| | | > |
| | | <Button type="link" size="small" danger> |
| | | {{ $t('common.delete') }} |
| | | 删除 |
| | | </Button> |
| | | </Popconfirm> |
| | | <!-- 审批中:审批通过、驳回 --> |
| | |
| | | @confirm="handleApprove(row)" |
| | | > |
| | | <Button type="link" size="small"> |
| | | {{ $t('common.approve') }} |
| | | 审批通过 |
| | | </Button> |
| | | </Popconfirm> |
| | | <Popconfirm |