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
3624fcbe
Commit
3624fcbe
authored
Jun 02, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
0932f873
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
108 additions
and
101 deletions
+108
-101
courseCard.vue
src/components/index/workSituation/courseCard.vue
+3
-3
commentDetails.vue
src/components/setComments/commentDetails.vue
+4
-33
commentDetailsPopu.vue
src/components/setComments/commentDetailsPopu.vue
+10
-6
rulesPopup.vue
src/components/setComments/rulesPopup.vue
+4
-2
setComments.vue
src/components/setComments/setComments.vue
+39
-35
sregionslider.vue
src/components/sregionslider/sregionslider.vue
+1
-1
commentDetails.vue
src/pages/setComments/commentDetails.vue
+42
-15
setComments.vue
src/pages/setComments/setComments.vue
+5
-6
No files found.
src/components/index/workSituation/courseCard.vue
View file @
3624fcbe
...
...
@@ -174,9 +174,9 @@
queryTecherCourse
(){
getTeacherCourse
().
then
(
r
=>
{
data
.
courses
=
r
.
Data
data
.
titleList
[
0
].
data
=
r
.
Data
.
AllCourseList
data
.
titleList
[
1
].
data
=
r
.
Data
.
NotFinishList
data
.
titleList
[
2
].
data
=
r
.
Data
.
FinishList
data
.
titleList
[
0
].
data
=
r
.
Data
.
AllCourseList
.
reverse
()
data
.
titleList
[
1
].
data
=
r
.
Data
.
NotFinishList
.
reverse
()
data
.
titleList
[
2
].
data
=
r
.
Data
.
FinishList
.
reverse
()
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
)
...
...
src/components/setComments/commentDetails.vue
View file @
3624fcbe
...
...
@@ -16,12 +16,7 @@
<view
class=
"commentDetailsList-img-text"
>
<view
class=
"img-text"
@
click
.
stop=
"clickOptionsShow(item)"
>
<text>
{{
item
.
ShowTypeStr
}}
</text>
<van-icon
:name=
"item.optionsShow?'arrow-down':'arrow'"
/>
</view>
<view
v-if=
"item.optionsShow"
class=
"Detailstype flex"
>
<text
v-for=
"(subItem,index) in optionsList"
:key=
"index"
@
click=
"clickoptions(item,subItem)"
>
{{
subItem
.
text
}}
</text>
<van-icon
name=
"arrow-down"
/>
</view>
</view>
<van-image
@
click=
"editRules(item)"
class=
"img"
width=
"31rpx"
height=
"30rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653980151000_180.png"
/>
...
...
@@ -58,7 +53,7 @@
import
navbar
from
'../../components/navbar.vue'
export
default
{
props
:
[
"CourseCommentTimesList"
,
"qMsg"
],
emits
:
[
'refreshData'
],
emits
:
[
'refreshData'
,
'check-status'
],
components
:
{
navbar
,
commentDetailsPopu
...
...
@@ -85,12 +80,9 @@
show
:
false
});
let
methods
=
{
clickOptionsShow
(
item
)
{
item
.
optionsShow
=
!
item
.
optionsShow
;
clickOptionsShow
(
item
)
{
context
.
emit
(
'check-status'
,
item
)
},
clickoptions
(
item
,
subItem
){
},
goAdd
()
{
let
url
=
'/pages/setComments/addComment?CourseId='
+
this
.
qMsg
.
CourseId
+
"&CommentTimes="
+
this
.
qMsg
.
CommentTimes
;
console
.
log
(
"url"
,
url
);
...
...
@@ -128,27 +120,6 @@
}
});
},
clickOptionsShow
(
item
)
{
item
.
optionsShow
=
!
item
.
optionsShow
;
},
//实在评价可见性
clickoptions
(
item
,
subItem
)
{
let
showTypeMsg
=
{
CourseId
:
item
.
CourseId
,
Times
:
item
.
Times
,
ShowType
:
subItem
.
value
};
return
proxy
.
$request
(
"/Teacher/SetStuCommentShowTypeByTimes"
,
showTypeMsg
).
then
(
res
=>
{
if
(
res
)
{
}
})
item
.
optionsShow
=
false
;
//调用父组件方法
context
.
emit
(
'refreshData'
);
},
//刷新数据
changeData
()
{
//调用父组件方法
...
...
src/components/setComments/commentDetailsPopu.vue
View file @
3624fcbe
<
template
>
<view
class=
"commentPopup-box"
>
<van-popup
:show=
"show"
:round=
"true"
@
close=
"closepopup"
>
<view
class=
"commentPopup-box"
>
<van-icon
class=
"commentPopup-closure"
name=
"cross"
@
click=
"closepopup"
/>
...
...
@@ -8,11 +8,11 @@
<textarea
placeholder=
"请填写评语内容"
v-model=
"stuCommentObj.Info"
></textarea>
</view>
<view
class=
"commentPopup-save flex"
>
<view
@
click=
"save"
>
确认
</view>
</view>
</view>
</van-popup>
</view>
</
template
>
<
script
>
import
{
...
...
@@ -59,16 +59,20 @@
data
.
show
=
false
},
save
()
{
uni
.
showLoading
()
proxy
.
$request
(
"/Teacher/SetStuCommentInfo"
,
data
.
stuCommentObj
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
ctx
.
emit
(
"change"
);
data
.
show
=
false
}
else
{
uni
.
showToast
({
icon
:
'none'
,
duration
:
500
duration
:
2000
,
title
:
'保存失败,请重试'
});
}
uni
.
hideLoading
()
});
ctx
.
emit
(
"change"
);
data
.
show
=
false
}
};
let
that
=
methods
;
...
...
@@ -92,12 +96,12 @@
font-size
:
30
rpx
;
line-height
:
58
rpx
;
font-weight
:
400
;
height
:
50vh
;
color
:
#282828
;
}
.commentPopup-content
{
background
:
#F7F7F7
;
border-radius
:
30
rpx
;
min-height
:
152
rpx
;
padding
:
37
rpx
43
rpx
;
}
...
...
src/components/setComments/rulesPopup.vue
View file @
3624fcbe
...
...
@@ -8,7 +8,7 @@
<!--
<input
v-model=
"ruleObj.Title"
class=
"rulesPopup-name"
placeholder=
"请输入本组自定义规则名称"
/>
-->
<view
class=
"rulesPopup-RuleSettings"
>
<view
class=
"RuleSettings-title"
>
规则设置
</view>
<sRegionSlider
:minValue=
"minValue"
:maxValue=
"maxValue"
:fillMinValue=
'rangeValue[0]'
:fullValue=
'rangeValue[1]'
:step=
"5"
<sRegionSlider
v-if=
"readyShow"
:minValue=
"minValue"
:maxValue=
"maxValue"
:fillMinValue=
'rangeValue[0]'
:fullValue=
'rangeValue[1]'
:step=
"5"
@
up=
"up"
@
down=
"down"
@
move=
"move"
/>
</view>
</view>
...
...
@@ -75,7 +75,8 @@
minValue
:
0
,
maxValue
:
0
,
rangeValue
:[
0
,
100
],
rules
:
props
.
rules
rules
:
props
.
rules
,
readyShow
:
false
});
if
(
props
.
rule
!=-
1
){
let
tempRule
=
data
.
rules
.
CommentDetails
[
props
.
rule
]
...
...
@@ -135,6 +136,7 @@
}
};
let
that
=
methods
;
data
.
readyShow
=
true
return
{
...
toRefs
(
data
),
...
methods
...
...
src/components/setComments/setComments.vue
View file @
3624fcbe
...
...
@@ -12,7 +12,7 @@
<text
class=
"setComments-title-left"
>
第
{{
item
.
Times
}}
次评价
</text>
<view
class=
"setComments-title-right"
>
<view
class=
"setComments-options flex"
>
<view
class=
"setComments-options-title flex"
@
click
.
stop=
"
clickOptionsShow
(item)"
>
<view
class=
"setComments-options-title flex"
@
click
.
stop=
"
showActionHandler
(item)"
>
<view
class=
"point"
></view>
<text>
{{
item
.
ShowTypeStr
}}
</text>
<van-icon
:name=
"item.optionsShow?'arrow-down':'arrow'"
/>
...
...
@@ -37,6 +37,13 @@
<view>
暂无评价规则数据
</view>
</view>
</view>
<van-action-sheet
:show=
"showAction"
:actions=
"actions"
@
close=
"closeAction"
@
select=
"selectAction"
description=
"修改本期评语的可见状态"
/>
</view>
</template>
<
script
>
...
...
@@ -60,56 +67,56 @@
proxy
}
=
getCurrentInstance
();
let
data
=
reactive
({
optionsList
:
[{
text
:
'可见'
,
value
:
1
},
{
text
:
'部分可见'
,
value
:
2
},
{
text
:
'不可见'
,
value
:
3
},
],
actions
:
[{
name
:
'全部可见'
,
type
:
1
},{
name
:
'全部不可见'
,
color
:
'#ee0a24'
,
type
:
3
}],
dataList
:
[],
showAction
:
false
,
currentAction
:
null
});
let
methods
=
{
// back() {
// uni.navigateBack({
// delta: 1
// })
// },
addComments
(){
uni
.
navigateTo
({
url
:
'/pages/setComments/commentRulesList?show='
+
true
})
},
showActionHandler
(
item
){
data
.
currentAction
=
item
data
.
showAction
=
true
},
closeAction
(){
data
.
showAction
=
false
data
.
currentAction
=
null
},
selectAction
(
e
){
let
x
=
e
.
detail
methods
.
clickoptions
(
x
.
type
)
},
goComment
(
item
){
uni
.
navigateTo
({
url
:
'/pages/setComments/commentDetails?comment='
+
encodeURIComponent
(
JSON
.
stringify
(
item
))
})
},
clickOptionsShow
(
item
)
{
item
.
optionsShow
=
!
item
.
optionsShow
;
},
clickoptions
(
item
,
subItem
)
{
//
clickOptionsShow(item) {
//
item.optionsShow = !item.optionsShow;
//
},
clickoptions
(
type
)
{
let
showTypeMsg
=
{
CourseId
:
item
.
CourseId
,
Times
:
item
.
Times
,
ShowType
:
subItem
.
valu
e
CourseId
:
data
.
currentAction
.
CourseId
,
Times
:
data
.
currentAction
.
Times
,
ShowType
:
typ
e
};
proxy
.
$request
(
"/Teacher/SetStuCommentShowTypeByTimes"
,
showTypeMsg
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
.
Code
==
1
)
{
console
.
log
(
res
)
context
.
emit
(
'refreshData'
);
}
else
{
uni
.
showToast
({
title
:
"设置失败,请重试"
,
duration
:
2000
})
}
})
item
.
optionsShow
=
false
;
//调用父组件方法
context
.
emit
(
'refreshData'
);
}
};
//监听属性数组
...
...
@@ -125,10 +132,7 @@
...
toRefs
(
data
),
...
methods
};
},
onLoad
(
option
)
{
},
}
};
</
script
>
<
style
scoped
>
...
...
src/components/sregionslider/sregionslider.vue
View file @
3624fcbe
...
...
@@ -315,7 +315,7 @@ export default {
</
script
>
<
style
scoped
>
<
style
>
.scale
view
{
width
:
2
rpx
;
height
:
7
rpx
;
...
...
src/pages/setComments/commentDetails.vue
View file @
3624fcbe
...
...
@@ -25,8 +25,14 @@
</view>
</view>
</view>
<commentDetails
:qMsg=
"Msg"
:CourseCommentTimesList=
"courseTimeList"
@
refreshData=
"getStuCommentList"
></commentDetails>
<commentDetails
:qMsg=
"Msg"
@
check-status=
"showActionHandler"
:CourseCommentTimesList=
"courseTimeList"
@
refreshData=
"getStuCommentList"
></commentDetails>
<van-action-sheet
:show=
"showAction"
:actions=
"actions"
@
close=
"closeAction"
@
select=
"selectAction"
description=
"修改本期评语的可见状态"
/>
</view>
</view>
...
...
@@ -55,19 +61,9 @@
}
=
getCurrentInstance
();
let
data
=
reactive
({
value
:
1
,
optionsList
:
[{
text
:
'部分可见'
,
value
:
0
},
{
text
:
'可见不可见'
,
value
:
1
},
{
text
:
'活动商品'
,
value
:
2
},
],
actions
:
[{
name
:
'可见'
,
type
:
1
},{
name
:
'不可见'
,
color
:
'#ee0a24'
,
type
:
3
}],
showAction
:
false
,
currentAction
:
null
,
radioList
:
[{
name
:
'使用默认配置'
,
id
:
1
,
...
...
@@ -97,12 +93,43 @@
delta
:
1
})
},
showActionHandler
(
item
){
data
.
currentAction
=
item
data
.
showAction
=
true
},
closeAction
(){
data
.
showAction
=
false
data
.
currentAction
=
null
},
selectAction
(
e
){
let
x
=
e
.
detail
methods
.
clickoptions
(
x
.
type
)
},
//实在评价可见性
clickoptions
(
type
)
{
let
showTypeMsg
=
{
ids
:
''
+
data
.
currentAction
.
Id
,
ShowType
:
type
};
proxy
.
$request
(
"/Teacher/SetStuCommentShowTypeByTimes"
,
showTypeMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
methods
.
getStuCommentList
()
}
else
{
uni
.
showToast
({
title
:
"设置失败,请重试"
,
duration
:
2000
})
}
})
},
//获取系统生成学员评价列表
getStuCommentList
(){
uni
.
showLoading
()
proxy
.
$request
(
"/Teacher/GetStuCommentList"
,
data
.
Msg
).
then
(
res
=>
{
if
(
res
)
{
data
.
courseTimeList
=
res
.
Data
;
}
uni
.
hideLoading
()
})
}
};
...
...
src/pages/setComments/setComments.vue
View file @
3624fcbe
...
...
@@ -78,38 +78,37 @@
});
let
methods
=
{
backFirst
()
{
console
.
log
(
'come in...'
)
console
.
log
(
getCurrentPages
())
uni
.
navigateBack
({
url
:
'/pages/index/workSituation'
,
delta
:
1
})
},
radioChange
(
e
)
{
console
.
log
(
"打印国家名称"
,
e
.
target
.
value
)
},
//获取课程评论次数列表
getCourseCommentTimes
()
{
uni
.
showLoading
()
proxy
.
$request
(
"/Teacher/GetCourseCommentTimes"
,
data
.
Msg
).
then
(
res
=>
{
if
(
res
)
{
data
.
courseTimeList
=
res
.
Data
;
}
uni
.
hideLoading
()
})
},
//获取课程评价规则信息
getCourseRule
()
{
uni
.
showLoading
()
proxy
.
$request
(
"/Teacher/GetCourseComment"
,
data
.
Msg
).
then
(
res
=>
{
if
(
res
)
{
data
.
courseRule
=
res
.
Data
;
}
uni
.
hideLoading
()
})
},
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?show='
+
false
+
'
&
CourseId='
+
data
.
Msg
.
CourseId
})
}
};
...
...
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