|
@@ -21,7 +21,9 @@
|
|
text-indent: 2em;
|
|
text-indent: 2em;
|
|
background: white;
|
|
background: white;
|
|
padding-top: 20px;
|
|
padding-top: 20px;
|
|
- font-size: 14px;
|
|
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ font-weight: 700;
|
|
|
|
+ font-family: "楷体";
|
|
}
|
|
}
|
|
|
|
|
|
.info-btn {
|
|
.info-btn {
|
|
@@ -34,7 +36,7 @@
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
- align-items: flex-start;
|
|
|
|
|
|
+ align-items: center;
|
|
}
|
|
}
|
|
|
|
|
|
.evaluate .el-radio-group .el-radio {
|
|
.evaluate .el-radio-group .el-radio {
|
|
@@ -52,6 +54,7 @@
|
|
.evaluate .detail-title {
|
|
.evaluate .detail-title {
|
|
padding-top: 50px;
|
|
padding-top: 50px;
|
|
padding-right: 50px;
|
|
padding-right: 50px;
|
|
|
|
+ text-align: center;
|
|
}
|
|
}
|
|
|
|
|
|
.mt-50 {
|
|
.mt-50 {
|
|
@@ -93,6 +96,9 @@
|
|
color: white;
|
|
color: white;
|
|
background: #1D6BD0;
|
|
background: #1D6BD0;
|
|
}
|
|
}
|
|
|
|
+ .el-radio:last-child {
|
|
|
|
+ margin-right:32px;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|
|
{/block}
|
|
{/block}
|
|
{block name="body"}
|
|
{block name="body"}
|
|
@@ -112,9 +118,9 @@
|
|
</div>
|
|
</div>
|
|
<div class="content">
|
|
<div class="content">
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col :span="17">
|
|
|
|
|
|
+ <el-col :span="24">
|
|
<fieldset style="height:600px;box-sizing: border-box;">
|
|
<fieldset style="height:600px;box-sizing: border-box;">
|
|
- <legend>考试题目</legend>
|
|
|
|
|
|
+ <legend>测评条目</legend>
|
|
<div class="detail-title">{{list[index].no}}、{{list[index].title}}</div>
|
|
<div class="detail-title">{{list[index].no}}、{{list[index].title}}</div>
|
|
<el-radio-group v-model="answer_detail[list[index].no]">
|
|
<el-radio-group v-model="answer_detail[list[index].no]">
|
|
<el-radio
|
|
<el-radio
|
|
@@ -123,30 +129,30 @@
|
|
border
|
|
border
|
|
:key="list[index].no + '_' + option.score"
|
|
:key="list[index].no + '_' + option.score"
|
|
v-for="option in list[index].option"
|
|
v-for="option in list[index].option"
|
|
- @change="selectTile"
|
|
|
|
>{{option.title}}
|
|
>{{option.title}}
|
|
</el-radio>
|
|
</el-radio>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</fieldset>
|
|
</fieldset>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="7" style="height:600px;">
|
|
|
|
- <div class="title-list">
|
|
|
|
- <ul>
|
|
|
|
- <li
|
|
|
|
- class="num"
|
|
|
|
- :class="{finish:answer_detail[item.no] > 0,current:i==index}"
|
|
|
|
- :key="item.id"
|
|
|
|
- v-for="(item,i) in list"
|
|
|
|
- @click="changeTitle(i)"
|
|
|
|
- >{{item.no}}
|
|
|
|
- </li>
|
|
|
|
- </ul>
|
|
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
|
|
+<!-- <el-col :span="7" style="height:600px;">-->
|
|
|
|
+<!-- <div class="title-list">-->
|
|
|
|
+<!-- <ul>-->
|
|
|
|
+<!-- <li-->
|
|
|
|
+<!-- class="num"-->
|
|
|
|
+<!-- :class="{finish:answer_detail[item.no] > 0,current:i==index}"-->
|
|
|
|
+<!-- :key="item.id"-->
|
|
|
|
+<!-- v-for="(item,i) in list"-->
|
|
|
|
+<!-- @click="changeTitle(i)"-->
|
|
|
|
+<!-- >{{item.no}}-->
|
|
|
|
+<!-- </li>-->
|
|
|
|
+<!-- </ul>-->
|
|
|
|
+<!-- </div>-->
|
|
|
|
+<!-- </el-col>-->
|
|
</el-row>
|
|
</el-row>
|
|
</div>
|
|
</div>
|
|
<div class="info-btn mt-50">
|
|
<div class="info-btn mt-50">
|
|
- <el-button type="primary" size="large" @click="onSubmit" v-loading="loading">提交</el-button>
|
|
|
|
|
|
+ <el-button type="primary" size="large" @click="onNext" v-show="index + 1 != list.length">下一题</el-button>
|
|
|
|
+ <el-button type="primary" size="large" @click="onSubmit" v-loading="loading" v-show="index + 1 == list.length">提交</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/block}
|
|
{/block}
|
|
@@ -169,28 +175,58 @@
|
|
base.index.value = i;
|
|
base.index.value = i;
|
|
}
|
|
}
|
|
base.loading = Vue.ref(false);
|
|
base.loading = Vue.ref(false);
|
|
|
|
+ base.onNext = () => {
|
|
|
|
+ postJson("{:url('officer/answerDetailPost')}", {
|
|
|
|
+ id: {$id},
|
|
|
|
+ index: base.answer_detail.value[base.list[base.index.value].no],
|
|
|
|
+ aid: base.aid.value,
|
|
|
|
+ no: base.list[base.index.value].no,
|
|
|
|
+ })
|
|
|
|
+ base.index.value++;
|
|
|
|
+ }
|
|
base.onSubmit = () => {
|
|
base.onSubmit = () => {
|
|
if (base.loading.value) {
|
|
if (base.loading.value) {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
- for (let i = 0; i < base.list.length; i++) {
|
|
|
|
- if (base.answer_detail.value[i + 1] === undefined) {
|
|
|
|
- ElementPlus.ElMessage.error(`第${i + 1}题未填写`);
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- base.answer.value.rid = {$id};
|
|
|
|
- base.loading.value = true;
|
|
|
|
- postJson("{:url('officer/answerPost')}", {
|
|
|
|
|
|
+
|
|
|
|
+ postJson("{:url('officer/answerDetailPost')}", {
|
|
id: {$id},
|
|
id: {$id},
|
|
- answer: base.answer.value,
|
|
|
|
- answer_detail: base.answer_detail.value
|
|
|
|
- }).then((data) => {
|
|
|
|
- base.loading.value = false;
|
|
|
|
- ElementPlus.ElMessage.success('提交成功');
|
|
|
|
- location.href = "{:url('officer/finish')}";
|
|
|
|
|
|
+ index: base.answer_detail.value[base.list[base.index.value].no],
|
|
|
|
+ aid: base.aid.value,
|
|
|
|
+ no: base.list[base.index.value].no,
|
|
|
|
+ }).then(() => {
|
|
|
|
+ postJson("{:url('officer/answerFinish')}", {
|
|
|
|
+ aid: base.aid.value,
|
|
|
|
+ }).then((data) => {
|
|
|
|
+ base.loading.value = false;
|
|
|
|
+ ElementPlus.ElMessage.success('提交成功');
|
|
|
|
+ location.href = "{:url('officer/finish')}";
|
|
|
|
+ })
|
|
})
|
|
})
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
+ // base.onSubmit = () => {
|
|
|
|
+ // if (base.loading.value) {
|
|
|
|
+ // return false;
|
|
|
|
+ // }
|
|
|
|
+ // for (let i = 0; i < base.list.length; i++) {
|
|
|
|
+ // if (base.answer_detail.value[i + 1] === undefined) {
|
|
|
|
+ // ElementPlus.ElMessage.error(`第${i + 1}题未填写`);
|
|
|
|
+ // return false;
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // base.answer.value.rid = {$id};
|
|
|
|
+ // base.loading.value = true;
|
|
|
|
+ // postJson("{:url('officer/answerPost')}", {
|
|
|
|
+ // id: {$id},
|
|
|
|
+ // answer: base.answer.value,
|
|
|
|
+ // answer_detail: base.answer_detail.value
|
|
|
|
+ // }).then((data) => {
|
|
|
|
+ // base.loading.value = false;
|
|
|
|
+ // ElementPlus.ElMessage.success('提交成功');
|
|
|
|
+ // location.href = "{:url('officer/finish')}";
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
|
|
|
|
return base;
|
|
return base;
|
|
}
|
|
}
|