|
|
|
@ -5,7 +5,7 @@ import { ModalForm } from '@ant-design/pro-form';
|
|
|
|
|
import { ProFormRadio } from '@ant-design/pro-form';
|
|
|
|
|
import ProForm, {StepsForm, ProFormText, ProFormDatePicker, ProFormSelect, ProFormTextArea, ProFormCheckbox, ProFormDateRangePicker,} from '@ant-design/pro-form';
|
|
|
|
|
import ProCard from '@ant-design/pro-card';
|
|
|
|
|
import { Button, Checkbox, Col, Divider, Dropdown, Form, Input, List, Menu, message, Modal, Radio, Row, Space, Table, Typography, Upload, Empty } from 'antd';
|
|
|
|
|
import { Button, Checkbox, Col, Divider, Dropdown, Form, Input, List, Menu, message, Modal, Radio, Row, Space, Table, Typography, Upload, Empty, Tooltip } from 'antd';
|
|
|
|
|
import { PageContainer } from '@ant-design/pro-layout';
|
|
|
|
|
import ProDescriptions from '@ant-design/pro-descriptions';
|
|
|
|
|
import styles from './index.less'
|
|
|
|
@ -470,12 +470,14 @@ export default () => {
|
|
|
|
|
console.log('typeQuestionCount', typeQuestionCount);
|
|
|
|
|
handleScoreModalVisible(true)
|
|
|
|
|
}}>批量设置分值</Button>
|
|
|
|
|
<Button size="large" type="primary" block onClick={async () => {
|
|
|
|
|
console.log('uuidPaper::', uuidPaper)
|
|
|
|
|
console.log('rules_id::', params?.id)
|
|
|
|
|
const paper_id = paper_id ? paper_id : 0;
|
|
|
|
|
await handleUpdatePaper(params?.id || rulesId, uuidPaper, paper_id)
|
|
|
|
|
}}>保存试卷</Button>
|
|
|
|
|
<Tooltip zIndex={1} title={<span style={{display:'block', width:152}}>请选择试题组卷并设置分值后保存</span>} placement="bottom" visible={questions ? false : true} color='#108ee9'>
|
|
|
|
|
<Button size="large" disabled={questions ? false : true} type="primary" block onClick={async () => {
|
|
|
|
|
console.log('uuidPaper::', uuidPaper)
|
|
|
|
|
console.log('rules_id::', params?.id)
|
|
|
|
|
const paper_id = paper_id ? paper_id : 0;
|
|
|
|
|
await handleUpdatePaper(params?.id || rulesId, uuidPaper, paper_id)
|
|
|
|
|
}}>保存试卷</Button>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
</Space>
|
|
|
|
|
</div>
|
|
|
|
|
</Col>
|
|
|
|
|