Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
thinkApp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
游洁
thinkApp
Commits
6a6e3c2f
Commit
6a6e3c2f
authored
Jun 06, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
b6c1066f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
25 deletions
+32
-25
courseCard.vue
src/components/index/workSituation/courseCard.vue
+2
-3
studentList.vue
src/components/index/workSituation/studentList.vue
+0
-1
workSituation.vue
src/pages/index/workSituation.vue
+5
-4
commentRulesList.vue
src/pages/setComments/commentRulesList.vue
+22
-13
setComments.vue
src/pages/setComments/setComments.vue
+3
-4
No files found.
src/components/index/workSituation/courseCard.vue
View file @
6a6e3c2f
...
...
@@ -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
:
''
)
})
},
...
...
src/components/index/workSituation/studentList.vue
View file @
6a6e3c2f
...
...
@@ -48,7 +48,6 @@
});
let
methods
=
{
selectStuHandler
(
item
){
console
.
log
(
item
)
ctx
.
emit
(
"selected"
,
item
.
StuId
,
item
.
StuName
)
}
}
...
...
src/pages/index/workSituation.vue
View file @
6a6e3c2f
...
...
@@ -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
()
...
...
src/pages/setComments/commentRulesList.vue
View file @
6a6e3c2f
...
...
@@ -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
50
rpx
;
margin-bottom
:
240
rpx
;
margin-top
:
110
rpx
;
}
.commentRulesList-box
{
...
...
src/pages/setComments/setComments.vue
View file @
6a6e3c2f
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment