Commit e1618602 authored by 黄奎's avatar 黄奎

页面修改

parent b9effd4a
...@@ -58,8 +58,7 @@ ...@@ -58,8 +58,7 @@
v-if="item.QuestionKey=='single' ||item.QuestionKey=='multiple'|| item.QuestionKey=='single-number'"> v-if="item.QuestionKey=='single' ||item.QuestionKey=='multiple'|| item.QuestionKey=='single-number'">
<tr v-for="(subItem,subIndex) in item.SubAnwser"> <tr v-for="(subItem,subIndex) in item.SubAnwser">
<td style="width:40px;text-align:center;"> <td style="width:40px;text-align:center;">
<template <template v-if="item.QuestionKey=='single'||item.QuestionKey=='single-number'">
v-if="item.QuestionKey=='single'||item.QuestionKey=='multiple'|| item.QuestionKey=='single-number'">
<div class="Answer_List" @click="ChangeItem(item,subItem)" :class="{'Is_Answer':subItem.IsAnswer}"> <div class="Answer_List" @click="ChangeItem(item,subItem)" :class="{'Is_Answer':subItem.IsAnswer}">
{{subItem.Name}} {{subItem.Name}}
</div> </div>
...@@ -113,6 +112,7 @@ ...@@ -113,6 +112,7 @@
<template v-if="item.QuestionKey=='short-answer'"> <template v-if="item.QuestionKey=='short-answer'">
<tr v-for="(subItem,subIndex) in item.SubAnwser"> <tr v-for="(subItem,subIndex) in item.SubAnwser">
<td colspan="3"> <td colspan="3">
答案<br />
<UeEditor v-model="subItem.Content" :config="config"></UeEditor> <UeEditor v-model="subItem.Content" :config="config"></UeEditor>
</td> </td>
</tr> </tr>
...@@ -229,6 +229,7 @@ ...@@ -229,6 +229,7 @@
SubTitle: "", //题目内容 SubTitle: "", //题目内容
SubAnwser: "" SubAnwser: ""
}; };
if (item.Key == "short-answer") { if (item.Key == "short-answer") {
qObj.SubAnwser = []; qObj.SubAnwser = [];
qObj.SubAnwser.push({ qObj.SubAnwser.push({
...@@ -237,6 +238,7 @@ ...@@ -237,6 +238,7 @@
} else { } else {
qObj.SubAnwser = CreateQuestion(item.Key); qObj.SubAnwser = CreateQuestion(item.Key);
} }
console.log("qObj", qObj)
this.data.push(qObj); this.data.push(qObj);
}, },
//删除选项 //删除选项
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
</style> </style>
<template> <template>
<div class="v_judgeQuestion"> <div class="v_judgeQuestion">
{{data}}
<table v-if="data&&data.QuestionContentObj&&data.QuestionContentObj.length>0" class="common_TiTable"> <table v-if="data&&data.QuestionContentObj&&data.QuestionContentObj.length>0" class="common_TiTable">
<tbody v-for="(item,index) in data.QuestionContentObj" :key="index"> <tbody v-for="(item,index) in data.QuestionContentObj" :key="index">
<tr> <tr>
......
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
<template v-if="item.QuestionKey=='short-answer'"> <template v-if="item.QuestionKey=='short-answer'">
<tr v-for="(subItem,subIndex) in item.SubAnwser"> <tr v-for="(subItem,subIndex) in item.SubAnwser">
<td colspan="3"> <td colspan="3">
<div v-html="subItem.Content"></div> 答案: <div v-html="subItem.Content"></div>
</td> </td>
</tr> </tr>
</template> </template>
......
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