zhangwencui
6 天以前 bbb54adc8d9fd6ae6b87ac036c8b21f3ad7daef4
src/views/mes/workbench/components/tabs/FeedbackHistoryTab.vue
@@ -16,7 +16,7 @@
import {
  approveFeedback,
  deleteFeedback,
  getFeedbackListByTask,
  getFeedbackPage,
  rejectFeedback,
  submitFeedback,
} from '#/api/mes/pro/feedback';
@@ -134,11 +134,15 @@
    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,
          });
        },
      },
    },
@@ -213,7 +217,7 @@
        <template #actions="{ row }">
          <Space :size="4" wrap>
            <Button type="link" size="small" @click="handleDetail(row)">
              {{ $t('common.view') }}
              查看
            </Button>
            <!-- 草稿:编辑、删除、提交 -->
            <Button
@@ -222,7 +226,7 @@
              size="small"
              @click="handleEdit(row)"
            >
              {{ $t('common.edit') }}
              编辑
            </Button>
            <Popconfirm
              v-if="row.status === STATUS_PREPARE"
@@ -230,7 +234,7 @@
              @confirm="handleSubmit(row)"
            >
              <Button type="link" size="small">
                {{ $t('common.submit') }}
                提交
              </Button>
            </Popconfirm>
            <Popconfirm
@@ -239,7 +243,7 @@
              @confirm="handleDelete(row)"
            >
              <Button type="link" size="small" danger>
                {{ $t('common.delete') }}
                删除
              </Button>
            </Popconfirm>
            <!-- 审批中:审批通过、驳回 -->
@@ -249,7 +253,7 @@
              @confirm="handleApprove(row)"
            >
              <Button type="link" size="small">
                {{ $t('common.approve') }}
                审批通过
              </Button>
            </Popconfirm>
            <Popconfirm