liuyu
21 小时以前 93c133349a5ccd7a328371fa113dce69d5611f21
apps/jnpf-web-apps-main/src/views/x/tms/examGrade/index.vue
@@ -8,13 +8,16 @@
import { BasicVxeTable, TableAction, useVxeTable } from '@jnpf/ui/vxeTable';
import { getGradeSessionList } from '#/api/x/tms/examGrade';
import { TMS_BTN } from '#/views/x/tms/shared/ui';
import '#/views/x/tms/shared/page.css';
defineOptions({ name: 'TmsExamGrade' });
const router = useRouter();
const columns: BasicColumn[] = [
  { title: '培训编号', dataIndex: 'taskNo', width: 140 },
  { title: '试卷编号', dataIndex: 'taskNo', width: 140 },
  { title: '培训主题', dataIndex: 'taskSubject', minWidth: 260 },
  { title: '试卷名称', dataIndex: 'paperName', minWidth: 200 },
  {
@@ -51,9 +54,9 @@
    schemas: [
      {
        field: 'taskNo',
        label: '培训编号',
        label: '试卷编号',
        component: 'Input',
        componentProps: { placeholder: '请输入培训编号', submitOnPressEnter: true },
        componentProps: { placeholder: '请输入试卷编号', submitOnPressEnter: true },
      },
      {
        field: 'keyword',
@@ -72,7 +75,13 @@
});
async function fetchList(params: Record<string, any>) {
  return { data: await getGradeSessionList(params) };
  const page = await getGradeSessionList(params);
  return {
    data: {
      list: Array.isArray(page?.list) ? page.list : [],
      pagination: page?.pagination || { total: 0 },
    },
  };
}
function handleEnter(record: GradeSessionListItem) {
@@ -80,7 +89,7 @@
}
function getTableActions(record: GradeSessionListItem): ActionItem[] {
  return [{ label: '进入', onClick: handleEnter.bind(null, record) }];
  return [{ label: TMS_BTN.grade, onClick: handleEnter.bind(null, record) }];
}
</script>
@@ -91,8 +100,8 @@
        <BasicVxeTable @register="registerTable">
          <template #tableTitle>
            <div>
              <div class="text-base font-medium">考试阅卷</div>
              <div class="mt-1 text-gray-400 text-sm">阅卷列表,选择试卷进行阅卷,或查看考试详情。</div>
              <div class="tms-page-header__title">考试阅卷</div>
              <div class="tms-page-header__sub">选择场次进入答卷列表,对待阅试卷评分。</div>
            </div>
          </template>
          <template #examTime="{ record }">