Commit ef921b61 by yuananting

fix:同名校验

parent 362577dd
......@@ -10,12 +10,9 @@ import GraphicsEditor from '../../course-manage/components/GraphicsEditor';
import SelectPaperModal from './SelectPaperModal'
import PreviewModal from './PreviewModal'
import './AddExam.less';
import { get } from '_@types_jquery@3.5.5@@types/jquery';
const { RangePicker } = DatePicker;
function AddExam(props: any) {
const paperInfoInit: any = { passScore: 60 };
const [showModal, setShowModal] = useState(false);
......
......@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-03-27 16:15:13
* @LastEditors: yuananting
* @LastEditTime: 2021-04-13 21:29:20
* @LastEditTime: 2021-04-14 16:50:31
* @Description: 助学工具-新建/复制/编辑试卷
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
......@@ -310,7 +310,7 @@ class OperatePaper extends Component {
const { selectQuestionList, formData, currentOperate } = this.state;
const categoryId = getParameterByName("categoryId");
let questionList = [];
if (!formData.passRate || !formData.paperName) {
if (!formData.passRate || !formData.paperName || this.checkExist()) {
return;
}
if (selectQuestionList.length === 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment