Commit 6a6e3c2f authored by youjie's avatar youjie

no message

parent b6c1066f
......@@ -166,7 +166,7 @@
hideExchangeBoxHandler(item){
if(item){
data.currentCourse=item
ctx.emit('change',item.courseId)
ctx.emit('change',item.courseId,item.CourseName)
}
data.showItems=false
ctx.emit('changePopStatus',0)
......@@ -178,8 +178,7 @@
data.titleList[1].data=r.Data.NotFinishList
data.titleList[2].data=r.Data.FinishList
data.currentCourse=r.Data.AllCourseList.length>0?r.Data.AllCourseList[0]:null
console.log(data.currentCourse)
ctx.emit('change',data.currentCourse?data.currentCourse.courseId:0)
ctx.emit('change',data.currentCourse?data.currentCourse.courseId:0,data.currentCourse?data.currentCourse.CourseName:'')
})
},
......
......@@ -48,7 +48,6 @@
});
let methods = {
selectStuHandler(item){
console.log(item)
ctx.emit("selected",item.StuId,item.StuName)
}
}
......
......@@ -123,7 +123,8 @@
currentCourseId:0,
userData:{},
loading:false,
showPopu:false
showPopu:false,
CourseName:''
});
data.userData=uni.getStorageSync("userInfo")
let methods = {
......@@ -131,8 +132,7 @@
data.showPopu=status==1
},
goSet(){
let url='/pages/setComments/setComments?CourseId='+data.currentCourseId;
console.log("url",url);
let url='/pages/setComments/setComments?CourseId='+data.currentCourseId+'&CourseName='+data.CourseName;
uni.navigateTo({
url:url
})
......@@ -147,10 +147,11 @@
url:'/pages/student/student?stuId='+id+'&courseId='+data.currentCourseId+'&stuName='+encodeURIComponent(name)
})
},
changeCourseHandler(id){
changeCourseHandler(id,name){
data.Msg.courseId=id
data.OperationMsg.courseId=id
data.currentCourseId=id
data.CourseName = name
methods.getCourseStuList()
methods.getExamPageList()
methods.getCourseHomeWorkList()
......
......@@ -5,6 +5,12 @@
<van-icon class="commentRulesList-header-left" name="arrow-left" @click="back" />
<text class="commentRulesList-header-title">评论规则</text>
</view>
<van-tabs v-model="activeName" swipeable
color="#D13A48" title-active-color="#D13A48"
@change="clickTabs">
<van-tab v-for="(item,indx) in LabelList" :key="index"
:title="item.name" :name="item.id"></van-tab>
</van-tabs>
</navbar>
<view class="commentRulesList-content">
<!-- <view class="commentRulesList-title flex">
......@@ -89,6 +95,8 @@
let data = reactive({
Msg: {
CourseId: '',
CourseName: '',
Times:''
},
//课程规则
courseRule: {
......@@ -100,7 +108,12 @@
isDefaultRule: true, //是否是默认规则(
detailItem: {}, //当前编辑项
show:false,
editor:-1
editor:-1,
activeName:'1',
LabelList:[
{name:'第一次规则',id:'1'},
{name:'第二次规则',id:'2'},
{name:'第三次规则',id:'3'}]
});
let methods = {
onClose(event) {
......@@ -173,6 +186,10 @@
}
});
},
clickTabs(name){
data.Msg.Times = name.target.name
that.getCourseRule()
},
//获取课程规则信息
getCourseRule() {
uni.showLoading()
......@@ -200,6 +217,7 @@
data.show=false
}
}
let that = methods
return {
...toRefs(data),
...methods
......@@ -207,18 +225,8 @@
},
onLoad(option) {
this.Msg.CourseId = option.CourseId;
if(option.show){
//this.show = option.show
//this.addRules()
}
// if(option.CourseId){
// this.show = true
// this.addRules()
// setTimeout(()=>{
// this.show = false
// this.closure()
// },200)
// }
this.Msg.CourseName = option.CourseName;
this.Msg.Times = '1'
this.getCourseRule();
},
};
......@@ -379,6 +387,7 @@
.commentRulesList-content {
padding: 0 50rpx;
margin-bottom: 240rpx;
margin-top: 110rpx;
}
.commentRulesList-box {
......
......@@ -75,6 +75,7 @@
},
courseTimeList: [], //课程自动生成评论次数
courseRule: {}, //课程评价规则
CourseName:''
});
let methods = {
backFirst() {
......@@ -105,10 +106,8 @@
})
},
goRules() {
console.log('come in 2 ....')
uni.navigateTo({
//url: '/pages/setComments/commentRulesList?CourseId=' + data.Msg.CourseId
url: '/pages/setComments/commentRulesList?show=' + false+'&CourseId=' + data.Msg.CourseId
url: '/pages/setComments/commentRulesList?CourseId=' + data.Msg.CourseId + '&CourseName=' + data.CourseName
})
}
};
......@@ -120,7 +119,7 @@
},
onLoad(option) {
this.Msg.CourseId = option.CourseId;
this.CourseName = option.CourseName
},
onShow() {
this.getCourseRule();
......
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