Commit c04c3b25 authored by zhengke's avatar zhengke

no message

parent 8a808686
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<text>导入考试信息</text> <text>导入考试信息</text>
</view> </view>
<view class="examList activeOne" v-for="(item,index) in dataList" :key="index"> <view class="examList activeOne" v-for="(item,index) in dataList" :key="index">
<view class="examList-center-box" @click="examDetails"> <view class="examList-center-box" @click="examDetails(item.ExamId)">
<view class="examList-center-line"></view> <view class="examList-center-line"></view>
<view class="examList-center flex"> <view class="examList-center flex">
<view class="examList-left"> <view class="examList-left">
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</view> </view>
</view> </view>
<view class="examList-hint-right"> <view class="examList-hint-right">
<view>重新导入</view> <view @click="clickReimport(item)">重新导入</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -109,9 +109,9 @@ ...@@ -109,9 +109,9 @@
}); });
let methods = { let methods = {
examDetails(){ examDetails(item){
uni.reLaunch({ uni.reLaunch({
url: '/pages/index/examDetails' url: '/pages/index/examDetails?examId=' + item
}); });
}, },
//获取考试信息列表 //获取考试信息列表
...@@ -127,6 +127,11 @@ ...@@ -127,6 +127,11 @@
uploadFilesBefore(){ uploadFilesBefore(){
}, },
// 重新导入
clickReimport(item){
},
// 添加导入
customUpload(event){ customUpload(event){
let host = '' let host = ''
if (process.env.NODE_ENV === "development") { if (process.env.NODE_ENV === "development") {
......
<template> <template>
<view class="operation-box"> <view class="operation-box">
<view class="operation activeOne"> <view class="operation activeOne"
v-for="(item,index) in dataList" :key="index">
<view class="operation-center-box" @click="JobDetails"> <view class="operation-center-box" @click="JobDetails">
<view class="operation-center-line"></view> <view class="operation-center-line"></view>
<view class="operation-center flex"> <view class="operation-center flex">
<view class="operation-left"> <view class="operation-left">
<view class="operation-name">高一作业</view> <view class="operation-name">{{item.HomeWorkTitle}}</view>
<view class="operation-state flex"> <view class="operation-state flex">
<view class="operation-state-point"></view> <view class="operation-state-point"></view>
<view class="operation-state-text">进行中</view> <view class="operation-state-text">{{item.Status==0?'未开始':(item.Status==1?'进行中':'已结束')}}</view>
</view> </view>
</view> </view>
<view class="operation-right flex"> <view class="operation-right flex">
<view class="homework-score flex"> <view class="homework-score flex">
<view class="homework-score-title">学生数</view> <view class="homework-score-title">学生数</view>
<view class="homework-score-num flex"> <view class="homework-score-num flex">
86 {{item.StuNum}}
</view> </view>
</view> </view>
<view class="homework-score flex"> <view class="homework-score flex">
<view class="homework-score-title">已提交</view> <view class="homework-score-title">已提交</view>
<view class="homework-score-num flex"> <view class="homework-score-num flex">
86 {{item.SubmitNum}}
</view> </view>
</view> </view>
<view class="homework-score flex"> <view class="homework-score flex">
<view class="homework-score-title">已批阅</view> <view class="homework-score-title">已批阅</view>
<view class="homework-score-num flex"> <view class="homework-score-num flex">
86 {{item.ReviewNum}}
</view> </view>
</view> </view>
<view class="homework-score flex"> <view class="homework-score flex">
<view class="homework-score-title">优 秀</view> <view class="homework-score-title">优 秀</view>
<view class="homework-score-num flex"> <view class="homework-score-num flex">
66 {{item.ExcellentNum}}
</view> </view>
</view> </view>
</view> </view>
...@@ -53,18 +54,13 @@ ...@@ -53,18 +54,13 @@
export default { export default {
props: { props: {
dataList:[]
}, },
components: {}, components: {},
setup() { setup(props) {
let data = reactive({ let data = reactive({
obj: { dataList: props.dataList
Name: '',
Photo: '',
},
showPhone: false,
showLogin: true, //多次点击
}); });
let methods = { let methods = {
JobDetails(){ JobDetails(){
...@@ -77,7 +73,7 @@ ...@@ -77,7 +73,7 @@
...toRefs(data), ...toRefs(data),
...methods ...methods
}; };
}, }
}; };
</script> </script>
<style scoped> <style scoped>
......
<template> <template>
<view class="studentList-box flex"> <view class="studentList-box flex">
<view class="studentList-content"> <view class="studentList-content" v-for="(item,index) in dataList" :key="index">
<view class="studentList flex"> <view class="studentList flex">
<view class="studentList-img"> <view class="studentList-img">
<van-image width="100%" height="100%" fit="cover" class="img" <van-image width="100%" height="100%" fit="cover" class="img"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_713.png" /> src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653894192000_645.png" />
</view> </view>
<text> <text>
周杰伦 {{item.StuName}}
</text>
</view>
</view>
<view class="studentList-content">
<view class="studentList flex">
<view class="studentList-img">
<van-image width="100%" height="100%" fit="cover" class="img"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_713.png" />
</view>
<text>
周杰伦
</text>
</view>
</view>
<view class="studentList-content">
<view class="studentList flex">
<view class="studentList-img">
<van-image width="100%" height="100%" fit="cover" class="img"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_713.png" />
</view>
<text>
周杰伦
</text>
</view>
</view>
<view class="studentList-content">
<view class="studentList flex">
<view class="studentList-img">
<van-image width="100%" height="100%" fit="cover" class="img"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_713.png" />
</view>
<text>
周杰伦
</text> </text>
</view> </view>
</view> </view>
...@@ -57,10 +24,10 @@ ...@@ -57,10 +24,10 @@
export default { export default {
props: { props: {
dataList: []
}, },
components: {}, components: {},
setup() { setup(props) {
let data = reactive({ let data = reactive({
obj: { obj: {
...@@ -69,6 +36,7 @@ ...@@ -69,6 +36,7 @@
}, },
showPhone: false, showPhone: false,
showLogin: true, //多次点击 showLogin: true, //多次点击
dataList: props.dataList
}); });
let methods = { let methods = {
JobDetails(){ JobDetails(){
......
...@@ -152,6 +152,9 @@ ...@@ -152,6 +152,9 @@
data.workList = []; data.workList = [];
proxy.$request("/Stu/GetStuWork", this.workMsg).then(res => { proxy.$request("/Stu/GetStuWork", this.workMsg).then(res => {
data.workList = res.Data; data.workList = res.Data;
uni.reLaunch({
url: '/pages/index/workSituation?tabNme=' + '作业情况' +'&courseId=' + courseId
});
}) })
}, },
async getColor(src, index, y) { async getColor(src, index, y) {
......
<template> <template>
<view class="workSituationpage"> <view class="workSituationpage">
<navbar class="navbarSticky" bg="#F6F6F6"> <navbar class="navbarSticky" bg="#F6F6F6">
<view class="index-header-box"> <view class="index-header-box" @click="back">
<view class="index-header-img"> <view class="index-header-img">
<van-image width="100%" height="100%" fit="cover" class="img" <van-image width="100%" height="100%" fit="cover" class="img"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_713.png" /> src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_713.png" />
...@@ -43,8 +43,8 @@ ...@@ -43,8 +43,8 @@
@scrolltolower="lower" @scrolltolower="lower"
v-if="dataList.length > 0" v-if="dataList.length > 0"
> >
<operation v-if="tabNme=='作业情况'"></operation> <operation v-if="tabNme=='作业情况'" :dataList="dataList"></operation>
<studentList v-if="tabNme=='学生列表'"></studentList> <studentList v-if="tabNme=='学生列表'" :dataList="dataList"></studentList>
<examList v-if="tabNme=='考试信息'" :dataList="dataList"></examList> <examList v-if="tabNme=='考试信息'" :dataList="dataList"></examList>
<Loadmore :state="pageState" /> <Loadmore :state="pageState" />
</scroll-view> </scroll-view>
...@@ -99,12 +99,16 @@ ...@@ -99,12 +99,16 @@
{name:'作业情况',num:5}, {name:'作业情况',num:5},
{name:'考试信息',num:18}, {name:'考试信息',num:18},
], ],
tabNme:'考试信息', tabNme:'作业情况',
Msg:{ Msg:{
PageIndex: 1, PageIndex: 1,
PageSize: 10, PageSize: 10,
ExamName:'' ExamName:'',
courseId:''
}, },
OperationMsg:{
courseId:''
},
pageCount: 0, pageCount: 0,
timer: null, //防抖 timer: null, //防抖
dataList:[], dataList:[],
...@@ -120,17 +124,20 @@ ...@@ -120,17 +124,20 @@
toggleTitle(t) { toggleTitle(t) {
data.tabNme = t data.tabNme = t
if(this.tabNme=='学生列表'){ if(this.tabNme=='学生列表'){
this.GetExamStuList() this.getCourseStuList()
}else if(this.tabNme=='作业情况'){ }else if(this.tabNme=='作业情况'){
this.getGetCourseHomeWorkList()
}else{ }else{
this.getExamPageList() this.getExamPageList()
} }
}, },
//获取学生列表 //获取学生列表
getCourseStuList(){ getCourseStuList(){
proxy.$request("/Teacher/GetCourseStu", data.Msg).then(res => { proxy.$request("/Teacher/GetCourseStu", data.OperationMsg).then(res => {
if(res){ if(res){
data.dataList = res.Data;
data.pageState = "none";
return
if (data.timer) data.timer = null; if (data.timer) data.timer = null;
if (data.Msg.PageIndex === 1) { if (data.Msg.PageIndex === 1) {
data.dataList = res.Data.PageData; data.dataList = res.Data.PageData;
...@@ -148,8 +155,11 @@ ...@@ -148,8 +155,11 @@
}, },
//获取作业情况列表 //获取作业情况列表
getGetCourseHomeWorkList(){ getGetCourseHomeWorkList(){
proxy.$request("/Teacher/GetCourseHomeWork", data.Msg).then(res => { proxy.$request("/Teacher/GetCourseHomeWork", data.OperationMsg).then(res => {
if(res){ if(res){
data.dataList = res.Data;
data.pageState = "none";
return
if (data.timer) data.timer = null; if (data.timer) data.timer = null;
if (data.Msg.PageIndex === 1) { if (data.Msg.PageIndex === 1) {
data.dataList = res.Data.PageData; data.dataList = res.Data.PageData;
...@@ -214,6 +224,8 @@ ...@@ -214,6 +224,8 @@
}, },
onLoad(option) { onLoad(option) {
this.tabNme = option.tabNme this.tabNme = option.tabNme
this.OperationMsg.courseId = option.courseId
this.Msg.courseId = option.courseId
}, },
onShow() { onShow() {
this.userData = uni.getStorageSync('userInfo'); this.userData = uni.getStorageSync('userInfo');
......
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