+
- headerTitle="历次考试成绩统计"
- actionRef={actionRef}
- rowKey="key"
- search={false}
- options={false}
- toolBarRender={() => [
- ,
- ]}
- request={rule}
- columns={columns}
- rowSelection={false}
- />
-
+ headerTitle="历次考试成绩统计"
+ actionRef={actionRef}
+ rowKey="key"
+ search={false}
+ options={false}
+ toolBarRender={() => [
+
} type="primary" key="subscribeAlert" href={`/dsideal_yy/zygh/training/statistics/exportExaminationData`}>
+ 导出名单
+ ,
+ ]}
+ request={async (value) => {
+ console.log(value, "value11")
+ const _data = await getExaminationPersonStatistics({ ...value, current: value.page_number, sort_type: 2, sort_colum: 1 });
+ return {
+ data: _data?.table_List,
+ };
+ }}
+ columns={columns}
+ rowSelection={false}
+ />
+
);
};
diff --git a/admin/src/pages/history/analysis/components/CertificateRow.tsx b/admin/src/pages/history/analysis/components/CertificateRow.tsx
index 424b421..f05b242 100644
--- a/admin/src/pages/history/analysis/components/CertificateRow.tsx
+++ b/admin/src/pages/history/analysis/components/CertificateRow.tsx
@@ -1,83 +1,18 @@
/** 各市州资质证书统计 */
-import { PlusOutlined } from '@ant-design/icons';
+import { DownloadOutlined, PlusOutlined } from '@ant-design/icons';
import { Button, message, Input, Drawer, Col, Row } from 'antd';
import React, { useState, useRef } from 'react';
import { PageContainer, FooterToolbar } from '@ant-design/pro-layout';
import type { ProColumns, ActionType } from '@ant-design/pro-table';
import ProTable from '@ant-design/pro-table';
-import { ModalForm, ProFormText, ProFormTextArea } from '@ant-design/pro-form';
-import type { ProDescriptionsItemProps } from '@ant-design/pro-descriptions';
-import ProDescriptions from '@ant-design/pro-descriptions';
+import { getCredentialPersonStatistics } from '../service';
import { rule } from '../service';
import type { TableListItem, TableListPagination } from '../data';
-import { FormValueType } from '@/pages/ListTableList2/components/UpdateForm2';
+import type { FormValueType } from '@/pages/ListTableList2/components/UpdateForm2';
+import cookie from 'react-cookies';
-/**
- * 添加
- *
- * @param fields
- */
-const handleAdd = async (fields: TableListItem) => {
- const hide = message.loading('正在添加');
- try {
- await addRule({ ...fields });
- hide();
- message.success('添加成功');
- return true;
- } catch (error) {
- hide();
- message.error('添加失败请重试!');
- return false;
- }
-};
-/**
- * 更新节点
- *
- * @param fields
- */
-
-const handleUpdate = async (fields: FormValueType, currentRow?: TableListItem) => {
- const hide = message.loading('正在配置');
-
- try {
- await updateRule({
- ...currentRow,
- ...fields,
- });
- hide();
- message.success('配置成功');
- return true;
- } catch (error) {
- hide();
- message.error('配置失败请重试!');
- return false;
- }
-};
-/**
- * 删除节点
- *
- * @param selectedRows
- */
-
-const handleRemove = async (selectedRows: TableListItem[]) => {
- const hide = message.loading('正在删除');
- if (!selectedRows) return true;
-
- try {
- await removeRule({
- key: selectedRows.map((row) => row.key),
- });
- hide();
- message.success('删除成功,即将刷新');
- return true;
- } catch (error) {
- hide();
- message.error('删除失败,请重试');
- return false;
- }
-};
const topColResponsiveProps = {
xs: 24,
@@ -96,54 +31,41 @@ const TableList: React.FC = () => {
{
title: '序号',
key: 'index',
- valueType: 'indexBorder',
+ valueType: 'indexBorder',
width: 48,
},
{
title: '市州',
- dataIndex: 'name',
+ dataIndex: 'city_name',
valueType: 'text',
},
{
title: '参加学习人数',
- dataIndex: 'callNo',
- sorter: true,
+ dataIndex: 'learning_person_number',
+ // sorter: true,
hideInForm: true,
renderText: (val: string) => `${val}`,
},
{
title: '学习完成率',
- dataIndex: 'callNo',
- sorter: true,
+ dataIndex: 'completion_rate',
+ // sorter: true,
hideInForm: true,
renderText: (val: string) => `${val}%`,
},
{
title: '取得资质证书人数',
- sorter: true,
- dataIndex: 'callNo',
+ sorter: false,
+ dataIndex: 'count',
valueType: 'text',
- renderFormItem: (item, { defaultRender, ...rest }, form) => {
- const status = form.getFieldValue('status');
-
- if (`${status}` === '0') {
- return false;
- }
-
- if (`${status}` === '3') {
- return