[测评系统]--前端(用户答题页面)
阳洁
2024-01-17 917b4cbe663dd840492bb47842be0f1ed422a4f8
修改VAQ取消选择后图片分类错误问题、调整VAQ提交页面
3个文件已修改
26 ■■■■ 已修改文件
src/lang/en.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/lang/zh.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam/paper/values.vue 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/lang/en.js
@@ -104,6 +104,6 @@
    values_mostUnLikeMe:'Most unlike me',
    values_no_select:'No picture left',
    values_pic_tmpArea:'Picture Staging Area',
    values_pic_tmpArea_desc:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is your opportunity to review the categories in which you have created based on your picture selections.<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;As a reminder, the order of the images you place in each category from left to right does not matter.<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If you feel that you would like to move pictures around, you must drag them to the staging area before placing them into a new category. In order to replace one picture in a category with another, both pictures must be dragged into the staging area.<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Once you are satisfied with your choices, click "Submit," and your choices will be finalized.',
    values_pic_tmpArea_desc:'This is your opportunity to review the categories in which you have created based on your picture selections.<br/>As a reminder, the order of the images you place in each category from left to right does not matter.<br/>If you feel that you would like to move pictures around, you must drag them to the staging area before placing them into a new category. In order to replace one picture in a category with another, both pictures must be dragged into the staging area.<br/>Once you are satisfied with your choices, click "Submit," and your choices will be finalized.',
    values_nextStepTips_tips:'Please refine the sort and rank the images by selecting them into the nine categories. Please note that the number of images you can put in each of the categories is fixed.'
}
src/lang/zh.js
@@ -105,7 +105,7 @@
    values_mostUnLikeMe:'最不像我',
    values_no_select:'无可选图片',
    values_pic_tmpArea:'图片整理区',
    values_pic_tmpArea_desc:'现在你可以对你刚才对图片做出的分类进行修改。再次提醒一下,每个类别内部图片从左到右的顺序是无关紧要的。如果你想更改某些图片的类别,你需要先把这些图片拖拽放入“图片整理区”,然后再拖入新的类别。如果你想更换两张图片的类别,那么你需要把这两张图片都拖入“图片整理区”。在你确定自己选好了之后,请点击“提交”。',
    values_pic_tmpArea_desc:'现在你可以对你刚才对图片做出的分类进行修改。<br/>再次提醒一下,每个类别内部图片从左到右的顺序是无关紧要的。<br/>如果你想更改某些图片的类别,你需要先把这些图片拖拽放入“图片整理区”,然后再拖入新的类别。<br/>如果你想更换两张图片的类别,那么你需要把这两张图片都拖入“图片整理区”。<br/>在你确定自己选好了之后,请点击“提交”。',
    values_nextStepTips_tips:'请通过将图像分为九类来细化图像的排序和排名。请注意,您可以在每个类别中放置的图像数量是固定的。'
}
src/views/exam/paper/values.vue
@@ -312,7 +312,7 @@
                            <div v-html="$t('values_pic_tmpArea_desc')">
                            </div>
                            <el-button type="primary" round style="height: fit-content;margin: 0 10px;"
                            <el-button type="primary" round style="height: fit-content;margin-top:5px"
                                @click="step3_commit" :disabled="submitDisable">
                                {{$t('commit')}}
                            </el-button>
@@ -337,7 +337,7 @@
                    </div>
                </div>
                <div style="display:flex;margin-top: 200px;">
                    <div style="display: inline-block;min-width: 150px;text-align: right;padding-right: 5px;">
                    <div style="display: inline-block;min-width: 160px;text-align: right;padding-right: 5px;">
                        <div class="mul-inlinediv-row mul-inlinediv-lineheight"
                            v-for="(item,index) in step2ScoreRanges">
                            <span v-if="item.stepName=='不确定是否相似'">
@@ -955,8 +955,19 @@
            resetQuestionItemsSubjectIdById(id, value) {
                for (let item of this.questionItems) {
                    if (item.id == id) {
                        item["subjectId"] = value
                        item['content'] = this.getLikeTypeByScoreRangeItemOrder(value)
                        // 如果为null,就是从选择中取消
                        if (value == null) {
                            item["subjectId"] = value
                            item['content'] = item['tempContent']
                        } else {
                            if (item['content'] != null && item['content'] != undefined) {
                                item['tempContent'] = item['content']
                            }
                            item["subjectId"] = value
                            item['content'] = this.getLikeTypeByScoreRangeItemOrder(value)
                        }
                        console.log("更改content:", item)
                    }
                }
                //console.log('resetQuestionItems...', id, value, this.questionItems)
@@ -967,6 +978,9 @@
                    if (this.isNull(item[key])) {
                        item[key] = value
                        if ("subjectId" == key) {
                            if (item['content'] != null && item['content'] != undefined) {
                                item['tempContent'] = item['content']
                            }
                            item['content'] = this.getLikeTypeByScoreRangeItemOrder(value)
                        }
                    }