-
{items ?
@@ -442,6 +460,7 @@ class Listjihe extends Component {
""
:
items.analysis.length>0?
+ analysisnames===null || analysisnames===undefined?"":
{
+ if ( str == "" ) return true;
+ var regu = "^[ ]+$";
+ var re = new RegExp(regu);
+ //为空或纯空格为 true 有值为false
+ console.log(re.test(str))
+ return re.test(str);
+ }
handleChange=(e)=>{
// this.setState({
@@ -20,6 +28,10 @@ class PaperDeletModel extends Component {
// })
// //console.log(e.target.value);
// //console.log(e.target.value.length);
+ if(this.isNull(e.target.value)===true){
+ this.props.showNotification('不能输入空格');
+ return
+ }
this.setState({
newkntypeinput: e.target.value
})
@@ -60,7 +72,7 @@ class PaperDeletModel extends Component {
>
-
+
this.props.NewknTypedeldel(false)}>取消
diff --git a/public/react/src/modules/question/component/QuestionModalys.js b/public/react/src/modules/question/component/QuestionModalys.js
new file mode 100644
index 000000000..29482e464
--- /dev/null
+++ b/public/react/src/modules/question/component/QuestionModalys.js
@@ -0,0 +1,42 @@
+import React, { Component } from 'react';
+import {getImageUrl} from 'educoder';
+import { Modal} from 'antd';
+import axios from 'axios';
+import './../questioncss/questioncom.css'
+//立即申请试用
+class QuestionModalys extends Component {
+
+ constructor(props) {
+ super(props);
+ this.state={
+
+ }
+ }
+
+
+ render() {
+
+ return(
+
+
+
+ )
+ }
+}
+
+export default QuestionModalys;
diff --git a/public/react/src/modules/question/comthetestpaper/Comthetestpaperst.js b/public/react/src/modules/question/comthetestpaper/Comthetestpaperst.js
index bc1e8cd00..662a5a9d5 100644
--- a/public/react/src/modules/question/comthetestpaper/Comthetestpaperst.js
+++ b/public/react/src/modules/question/comthetestpaper/Comthetestpaperst.js
@@ -41,7 +41,7 @@ const options = [
],
},
];
-//Itembankstop 题库的
+//Itembankstop Intelligentcomponents 题库的
class Comthetestpaperst extends Component {
constructor(props) {
super(props);
@@ -56,6 +56,7 @@ class Comthetestpaperst extends Component {
options: [],
NewknTypedel:false,
boolred:false,
+ sub_disciplineslength:1,
}
}
setboolred=(bool)=>{
@@ -413,11 +414,16 @@ class Comthetestpaperst extends Component {
const didata = this.props.disciplinesdata;
const knowledgepointsdata = [];
-
+ var sub_disciplineslength=0;
for (var i = 0; i < didata.length; i++) {
//方向
if (value[0] === didata[i].id) {
const fxdidata = didata[i].sub_disciplines;
+ try {
+ sub_disciplineslength=fxdidata.length;
+ }catch (e) {
+
+ }
for (var j = 0; j < fxdidata.length; j++) {
//课程
if (value[1] === fxdidata[j].id) {
@@ -441,6 +447,7 @@ class Comthetestpaperst extends Component {
Knowpoints: [],
knowledgepoints: knowledgepointsdata,
knowledgepoints2:knowledgepointsdata,
+ sub_disciplineslength:sub_disciplineslength,
})
this.props.form.setFieldsValue({
@@ -686,34 +693,39 @@ class Comthetestpaperst extends Component {
-
-
- {getFieldDecorator("rbzsd"
- )(
-
-
-
-
+ {
+ this.state.sub_disciplineslength===null || this.state.sub_disciplineslength===undefined||this.state.sub_disciplineslength===0?"":
+
+
+ {getFieldDecorator("rbzsd"
+ )(
+
+
+
+
-
this.NewknTypedeldel(true)}/>
+
this.NewknTypedeldel(true)}/>
+
+
+ )}
+
- )}
-
-
+ }
+
{
this.state.Knowpoints===undefined||this.state.Knowpoints===null?"":
this.state.Knowpoints.length>0?
diff --git a/public/react/src/modules/question/comthetestpaper/Intelligentcomponents.js b/public/react/src/modules/question/comthetestpaper/Intelligentcomponents.js
index 64d57e452..19b08899e 100644
--- a/public/react/src/modules/question/comthetestpaper/Intelligentcomponents.js
+++ b/public/react/src/modules/question/comthetestpaper/Intelligentcomponents.js
@@ -20,7 +20,9 @@ import Newknledpots from '../component/Newknledpots';
import Ldanxuan from './lntlligentpone';
const InputGroup = Input.Group;
const {Option} = Select;
-//Itembankstop Comthetestpaperst 题库的
+// Comthetestpaperst 题库的
+// Itembankstop 题库的
+
class Intelligentcomponents extends Component {
constructor(props) {
super(props);
@@ -35,7 +37,8 @@ class Intelligentcomponents extends Component {
options: [],
NewknTypedel:false,
boolred:false,
- rbly:"1"
+ rbly:"1",
+ sub_disciplineslength:1,
}
}
setboolred=(bool)=>{
@@ -310,11 +313,16 @@ class Intelligentcomponents extends Component {
const didata = this.props.disciplinesdata;
const knowledgepointsdata = [];
-
+ var sub_disciplineslength=0;
for (var i = 0; i < didata.length; i++) {
//方向
if (value[0] === didata[i].id) {
const fxdidata = didata[i].sub_disciplines;
+ try {
+ sub_disciplineslength=fxdidata.length;
+ }catch (e) {
+
+ }
for (var j = 0; j < fxdidata.length; j++) {
//课程
if (value[1] === fxdidata[j].id) {
@@ -597,34 +605,38 @@ class Intelligentcomponents extends Component {
-
-
this.gotoseesj(items.id)}>{names}
+
试题数:{question_counts}
总分:{total_scores}
@@ -92,9 +92,15 @@ class Listjihe extends Component {
更新时间:
{update_times}
-
- 使用次数:{quotess}
-
+ {
+ quotess===null||quotess===undefined||quotess===0?
+ ""
+ :
+
+ 使用次数:{quotess}
+
+ }
+
{
defaultActiveKey===1||defaultActiveKey==="1"?
diff --git a/public/react/src/modules/testpaper/component/Paperlibraryseeid_items.js b/public/react/src/modules/testpaper/component/Paperlibraryseeid_items.js
index 7d66a19c4..c7c974c5b 100644
--- a/public/react/src/modules/testpaper/component/Paperlibraryseeid_items.js
+++ b/public/react/src/modules/testpaper/component/Paperlibraryseeid_items.js
@@ -24,6 +24,7 @@ const tagArray = [
]
//单选题
+//Paperreview_single.js Listjihe.js
class Paperlibraryseeid_items extends Component {
constructor(props) {
super(props);
@@ -160,10 +161,16 @@ class Paperlibraryseeid_items extends Component {
-
+ {
+ itemssname===null || itemssname===undefined?
+ ""
+ :
+
+ }
+
@@ -196,10 +203,16 @@ class Paperlibraryseeid_items extends Component {
objectsingle&&objectsingle.program_attr&&objectsingle.program_attr.description?