|
|
|
@ -18,6 +18,7 @@ import ScoreSetter from '../../components/ScoreSetter';
|
|
|
|
|
import AutoSelector from '../components/AutoSelector';
|
|
|
|
|
import QuestionSelector from '../../components/QuestionSelector';
|
|
|
|
|
import { getSubjectInfo } from '@/pages/course/subject/service';
|
|
|
|
|
import { max } from 'lodash';
|
|
|
|
|
|
|
|
|
|
/** 选项序号 */
|
|
|
|
|
const labels = ['A','B','C','D','E','F','G','H','I','J','K'];
|
|
|
|
@ -80,7 +81,7 @@ export default () => {
|
|
|
|
|
dataIndex: 'examination_time',
|
|
|
|
|
valueType: 'text',
|
|
|
|
|
sorter: false,
|
|
|
|
|
hideInTable: false,
|
|
|
|
|
hideInTable: true,
|
|
|
|
|
hideInForm: true,
|
|
|
|
|
hideInSearch: true,
|
|
|
|
|
renderText: (val: string) => `${val}`,
|
|
|
|
@ -93,9 +94,9 @@ export default () => {
|
|
|
|
|
hideInTable: false,
|
|
|
|
|
hideInForm: true,
|
|
|
|
|
hideInSearch: true,
|
|
|
|
|
renderText: (val: string) => {
|
|
|
|
|
render: (dom, record,index) => {
|
|
|
|
|
return <>
|
|
|
|
|
|
|
|
|
|
{record.question_type_count.map((item)=>{return <span style={{paddingRight:15}}>{`${item.type_name} ${item.count} 题`}</span>})}
|
|
|
|
|
</>
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
@ -282,6 +283,18 @@ export default () => {
|
|
|
|
|
name="rules_name"
|
|
|
|
|
label="考试名称"
|
|
|
|
|
width="md"
|
|
|
|
|
fieldProps={{
|
|
|
|
|
type: 'text',
|
|
|
|
|
allowClear: false,
|
|
|
|
|
width: 'large',
|
|
|
|
|
onInput:(e)=>{
|
|
|
|
|
const val = `${e.currentTarget?.value}`;
|
|
|
|
|
if(val.length > 50) {
|
|
|
|
|
e.currentTarget.value = val.slice(0,50)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//style:{width: '100%'}
|
|
|
|
|
}}
|
|
|
|
|
initialValue={ruleData.rules_name}
|
|
|
|
|
// tooltip="最长为 6 位汉字,需要与考生身份证一致"
|
|
|
|
|
placeholder="请输入名称"
|
|
|
|
|