Commit cab5cd30 authored by zhengke's avatar zhengke

no message

parent 0caab806
<template>
<view class="jobDetailsComponents-box">
<view class="jobDetailsComponents activeTwo flex" v-for="(item,index) in dataList" :key="index">
<view class="jobDetailsComponents flex"
:class="item.Status==0?'activeThree':(tem.Status==1?'activeTwo':'activeOne')"
v-for="(item,index) in dataList" :key="index">
<view class="jobDetailsComponents-time-box flex">
<view class="jobDetailsComponents-time flex">
<view>{{item.student_name.slice(0,1)}}</view>
......@@ -16,7 +18,7 @@
<view class="operation-state flex">
<view class="operation-state-img"></view>
<view class="operation-state-text">
{{item.Status==0?'未审批':(tem.Status==1?'已提交':'已批阅')}}
{{item.Status==0?'未提交':(tem.Status==1?'已提交':'已批阅')}}
</view>
</view>
<view class="operation-name">{{item.add_time}}</view>
......@@ -24,7 +26,7 @@
<view class="jobDetailsComponents-right flex">
<view class="homework-score flex">
<view class="homework-score-title">
得分 <text>{{item.score}}}</text>
得分 <text>{{item.score}}</text>
</view>
</view>
<view class="homework-score flex">
......@@ -63,6 +65,7 @@
showLogin: true, //多次点击
dataList: props.dataList
});
console.log(props.dataList)
let methods = {
}
......
......@@ -32,12 +32,15 @@
</view>
</view>
<view class="index-student-information">
<jobDetailsComponents :dataList="dataList"></jobDetailsComponents>
<van-empty description="暂无数据" v-if="dataList.length === 0" />
<jobDetailsComponents v-if="dataList.length>0" :dataList="dataList"></jobDetailsComponents>
</view>
<Loadmore :state="pageState" />
</view>
</view>
</template>
<script>
import Loadmore from "@/components/loadmore.vue";
import jobDetailsComponents from '@/components/index/scoreDetails/jobDetailsComponents'
import {
reactive,
......@@ -52,7 +55,8 @@
},
components: {
jobDetailsComponents
jobDetailsComponents,
Loadmore
},
setup() {
let {
......@@ -67,7 +71,8 @@
showLogin: true, //多次点击
HomeWorkId:'',
jobDetails: {},
dataList:[]
dataList:[],
pageState:'more'
});
let methods = {
back(){
......@@ -81,6 +86,7 @@
if(res){
data.jobDetails = res.Data
data.dataList = res.Data.DataList;
data.pageState = "none";
}
})
},
......
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