:
@@ -199,8 +209,15 @@ class Paperreview_single extends Component {
{
objectsingle === undefined || objectsingle === null ? "" : objectsingle.choices.map((object, index) => {
+ var string=""
+ try {
+ string=JSON.parse(object.choice_text);
+ }catch (e) {
+ string=object.choice_text;
+ }
+
return (
-
{object ?
@@ -210,7 +227,7 @@ class Paperreview_single extends Component {
object.choice_text.length>0?
:""
:
diff --git a/public/react/src/modules/question/component/Listjihe.js b/public/react/src/modules/question/component/Listjihe.js
index 695fe77fd..408575053 100644
--- a/public/react/src/modules/question/component/Listjihe.js
+++ b/public/react/src/modules/question/component/Listjihe.js
@@ -135,6 +135,23 @@ class Listjihe extends Component {
itemssname=items.name
}
+
+ var itemsnamesy="";
+ try {
+ itemsnamesy= JSON.parse(items&&items.program_attr&&items.program_attr.description);
+
+ }catch (e) {
+ itemsnamesy=items&&items.program_attr&&items.program_attr.description;
+ }
+
+ var analysisnames="";
+ try {
+ analysisnames= JSON.parse(items&&items.analysis);
+
+ }catch (e) {
+ analysisnames=items&&items.analysis;
+ }
+
return (
@@ -217,7 +234,7 @@ class Listjihe extends Component {
>
@@ -232,6 +249,12 @@ class Listjihe extends Component {
{
items === undefined || items === null ? "" : items.choices.map((object, index) => {
+ var string=""
+ try {
+ string=JSON.parse(object.choice_text);
+ }catch (e) {
+ string=object.choice_text;
+ }
return (
{tagArray[index]}
@@ -244,7 +267,7 @@ class Listjihe extends Component {
object.choice_text.length>0?
:""
@@ -425,7 +448,7 @@ class Listjihe extends Component {
:
""
diff --git a/public/react/src/modules/question/comthetestpaper/Intelligentcomponents.js b/public/react/src/modules/question/comthetestpaper/Intelligentcomponents.js
index c40961dbb..f80f44d66 100644
--- a/public/react/src/modules/question/comthetestpaper/Intelligentcomponents.js
+++ b/public/react/src/modules/question/comthetestpaper/Intelligentcomponents.js
@@ -764,21 +764,29 @@ class Intelligentcomponents extends Component {
-
题型及数量
-
-
this.props.getdatas()} ref={dom => {
- this.$dxt = dom;
- }}>
-
this.props.getdatas()} ref={dom => {
- this.$ddxt = dom;
- }}>
-
this.props.getdatas()} ref={dom => {
- this.$pdt = dom;
- }}>
-
this.props.getdatas()} ref={dom => {
- this.$bct = dom;
- }}>
+ {
+ this.props.single_question_count===0&&this.props.multiple_question_count===0&&this.props.judgement_question_count===0&&
+ this.props.program_question_count===0?
+ ""
+ :
+
+
题型及数量
+
+
this.props.getdatas()} ref={dom => {
+ this.$dxt = dom;
+ }}>
+
this.props.getdatas()} ref={dom => {
+ this.$ddxt = dom;
+ }}>
+
this.props.getdatas()} ref={dom => {
+ this.$pdt = dom;
+ }}>
+
this.props.getdatas()} ref={dom => {
+ this.$bct = dom;
+ }}>
+
+ }
diff --git a/public/react/src/modules/question/questioncss/questioncom.css b/public/react/src/modules/question/questioncss/questioncom.css
index ae405001a..b9d2264fc 100644
--- a/public/react/src/modules/question/questioncss/questioncom.css
+++ b/public/react/src/modules/question/questioncss/questioncom.css
@@ -760,6 +760,17 @@
font-size:12px;
}
+.szdfds{
+ width:100px;
+ height:40px;
+ background:#FC7E30;
+ border-radius:4px 4px 0px 0px;
+ text-align: center;
+ color: #ffffff;
+ line-height: 40px;
+ margin-right: 27px;
+ font-size:12px;
+}
.pd20{
padding: 20px;
diff --git a/public/react/src/modules/testpaper/Intecomponents.js b/public/react/src/modules/testpaper/Intecomponents.js
index d393bdd7a..60903af14 100644
--- a/public/react/src/modules/testpaper/Intecomponents.js
+++ b/public/react/src/modules/testpaper/Intecomponents.js
@@ -257,7 +257,7 @@ class Intecomponents extends Component {
.then((result) => {
if (result.data.status == 0) {
console.log("组卷成功");
- this.props.history.push(`/IntegenerationSee/Intelligence/${result.data.exam_setting_id}`);
+ this.props.history.push(`/Integeneration/Intelligence/${result.data.exam_setting_id}`);
}
}).catch((error) => {
console.log(error);
diff --git a/public/react/src/modules/testpaper/component/Paperlibraryseeid_items.js b/public/react/src/modules/testpaper/component/Paperlibraryseeid_items.js
index 0a6a718c3..7747574dd 100644
--- a/public/react/src/modules/testpaper/component/Paperlibraryseeid_items.js
+++ b/public/react/src/modules/testpaper/component/Paperlibraryseeid_items.js
@@ -78,6 +78,14 @@ class Paperlibraryseeid_items extends Component {
if(itemssname===undefined){
itemssname=objectsingle.name
}
+
+ var itemsnamesy="";
+ try {
+ itemsnamesy= JSON.parse(objectsingle&&objectsingle.program_attr&&objectsingle.program_attr.description);
+
+ }catch (e) {
+ itemsnamesy=objectsingle&&objectsingle.program_attr&&objectsingle.program_attr.description;
+ }
return (
:
@@ -196,6 +204,12 @@ class Paperlibraryseeid_items extends Component {
{
objectsingle === undefined || objectsingle === null ? "" : objectsingle.choices.map((object, index) => {
+ var string=""
+ try {
+ string=JSON.parse(object.choice_text);
+ }catch (e) {
+ string=object.choice_text;
+ }
return (
{tagArray[index]}
@@ -207,7 +221,7 @@ class Paperlibraryseeid_items extends Component {
object.choice_text.length>0?
:""
: