|
|
|
@ -5,7 +5,7 @@ import { Button, message } from 'antd';
|
|
|
|
|
//import { useRequest } from 'umi';
|
|
|
|
|
//import { queryFakeList } from './service';
|
|
|
|
|
//import type { CardListItemDataType } from './data';
|
|
|
|
|
import styles from '../style.less';
|
|
|
|
|
//import styles from '../style.less';
|
|
|
|
|
//import SubMenu from 'antd/lib/menu/SubMenu';
|
|
|
|
|
//import ProCard from '@ant-design/pro-card';
|
|
|
|
|
//import ProList from '@ant-design/pro-list';
|
|
|
|
@ -112,7 +112,7 @@ const QuestionSelector = (props: any, ref: any) => {
|
|
|
|
|
const [selectedRowsState, setSelectedRows] = useState<API.RuleListItem[]>([]);
|
|
|
|
|
const [addType, setAddType] = useState({name: '', value: 0});
|
|
|
|
|
|
|
|
|
|
const labels = ['A','B','C','D','E']
|
|
|
|
|
const labels = ['A','B','C','D','E','F','G','H','I']
|
|
|
|
|
|
|
|
|
|
/** 获取题型 */
|
|
|
|
|
const { data } = useRequest(() => {
|
|
|
|
@ -137,18 +137,24 @@ const QuestionSelector = (props: any, ref: any) => {
|
|
|
|
|
},
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
<ProTable
|
|
|
|
|
<ProTable
|
|
|
|
|
pagination={{
|
|
|
|
|
defaultPageSize: 10,
|
|
|
|
|
showSizeChanger: false,
|
|
|
|
|
}}
|
|
|
|
|
search={{
|
|
|
|
|
optionRender: false,
|
|
|
|
|
collapsed: false,
|
|
|
|
|
labelWidth: 40,
|
|
|
|
|
}}
|
|
|
|
|
search={
|
|
|
|
|
{
|
|
|
|
|
className:'questionSeatch',
|
|
|
|
|
//optionRender: false,
|
|
|
|
|
defaultCollapsed: false,
|
|
|
|
|
collapsed: false,
|
|
|
|
|
labelWidth: 'auto',
|
|
|
|
|
span:6
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
actionRef={actionRef}
|
|
|
|
|
toolBarRender={false}
|
|
|
|
|
rowKey="id"
|
|
|
|
|