mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-11 03:46:48 +08:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -382,7 +382,7 @@ const signClick = () => {
|
|||||||
|
|
||||||
function toSurvery() {
|
function toSurvery() {
|
||||||
if (data.value.isSurvery) {
|
if (data.value.isSurvery) {
|
||||||
return;
|
// return;
|
||||||
}
|
}
|
||||||
if(data.value.planDto.beginTime){
|
if(data.value.planDto.beginTime){
|
||||||
let date1 = new Date(data.value.planDto.beginTime).getTime()
|
let date1 = new Date(data.value.planDto.beginTime).getTime()
|
||||||
|
|||||||
@@ -51,7 +51,8 @@
|
|||||||
|
|
||||||
<div
|
<div
|
||||||
class="question"
|
class="question"
|
||||||
v-for="(value, index) in [data.assessmentEssayQuestionDtoList,data.assessmentMultipleChoiceDtoList,data.assessmentScoringQuestionDtoList,data.assessmentSingleChoiceDtoList].sort((a,b)=>{
|
v-for="
|
||||||
|
(value, index) in formateArr([data.assessmentEssayQuestionDtoList,data.assessmentMultipleChoiceDtoList,data.assessmentScoringQuestionDtoList,data.assessmentSingleChoiceDtoList]).sort((a,b)=>{
|
||||||
return a[0].orderNumber - b[0].orderNumber
|
return a[0].orderNumber - b[0].orderNumber
|
||||||
}) "
|
}) "
|
||||||
:key="index"
|
:key="index"
|
||||||
@@ -397,6 +398,18 @@ const returnclick = () => {
|
|||||||
router.back();
|
router.back();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 数组去空对象
|
||||||
|
function formateArr(arr1) {
|
||||||
|
console.log(arr1,arr1[0],arr1[0].length)
|
||||||
|
let newarr = []
|
||||||
|
for(let i=0;i<arr1.length;i++){
|
||||||
|
if(arr1[i].length!==0){
|
||||||
|
newarr.push(arr1[i])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return newarr
|
||||||
|
}
|
||||||
|
|
||||||
const { data } = useRequest(ASSESSMENT_QUERY(courseId), { id: courseId });
|
const { data } = useRequest(ASSESSMENT_QUERY(courseId), { id: courseId });
|
||||||
console.log('我是需要排序得题目', data )
|
console.log('我是需要排序得题目', data )
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user