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
fd1868b1
Commit
fd1868b1
authored
Jun 01, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
b04d6680
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
154 additions
and
127 deletions
+154
-127
commentDetails.vue
src/components/setComments/commentDetails.vue
+10
-5
commentDetailsPopu.vue
src/components/setComments/commentDetailsPopu.vue
+138
-116
workSituation.vue
src/pages/index/workSituation.vue
+4
-4
commentDetails.vue
src/pages/setComments/commentDetails.vue
+2
-2
No files found.
src/components/setComments/commentDetails.vue
View file @
fd1868b1
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<view>
{{
item
.
StuName
}}
</view>
<view>
{{
item
.
StuName
}}
</view>
<view
class=
"flex"
>
<view
class=
"flex"
>
<text>
{{
item
.
ShowTypeStr
}}
</text>
<text>
{{
item
.
ShowTypeStr
}}
</text>
<van-image
@
click=
"editRules"
class=
"img"
width=
"31rpx"
height=
"30rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653980151000_180.png"
/>
<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"
/>
</view>
</view>
<view
class=
"Wire"
></view>
<view
class=
"Wire"
></view>
</view>
</view>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<view>
暂无评论规则数据
</view>
<view>
暂无评论规则数据
</view>
</view>
</view>
</view>
</view>
<commentDetailsPopu
ref=
"getcommentPopup"
></commentDetailsPopu>
<commentDetailsPopu
ref=
"getcommentPopup"
@
change=
"changeData"
></commentDetailsPopu>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -73,9 +73,9 @@
...
@@ -73,9 +73,9 @@
data
.
show
=
true
data
.
show
=
true
refs
.
getcommentPopup
.
$vm
.
showFun
()
refs
.
getcommentPopup
.
$vm
.
showFun
()
},
},
editRules
(){
//编辑规则
editRules
(
item
){
//编辑规则
data
.
show
=
true
data
.
show
=
true
refs
.
getcommentPopup
.
$vm
.
showFun
()
refs
.
getcommentPopup
.
$vm
.
showFun
(
item
)
},
},
deleteRules
(){
//删除规则
deleteRules
(){
//删除规则
uni
.
showModal
({
uni
.
showModal
({
...
@@ -98,7 +98,6 @@
...
@@ -98,7 +98,6 @@
item
.
optionsShow
=
!
item
.
optionsShow
;
item
.
optionsShow
=
!
item
.
optionsShow
;
},
},
clickoptions
(
item
,
subItem
)
{
clickoptions
(
item
,
subItem
)
{
let
showTypeMsg
=
{
let
showTypeMsg
=
{
CourseId
:
item
.
CourseId
,
CourseId
:
item
.
CourseId
,
Times
:
item
.
Times
,
Times
:
item
.
Times
,
...
@@ -111,6 +110,12 @@
...
@@ -111,6 +110,12 @@
})
})
item
.
optionsShow
=
false
;
item
.
optionsShow
=
false
;
//调用父组件方法
context
.
emit
(
'refreshData'
);
},
//刷新数据
changeData
()
{
//调用父组件方法
//调用父组件方法
context
.
emit
(
'refreshData'
);
context
.
emit
(
'refreshData'
);
}
}
...
...
src/components/setComments/commentDetailsPopu.vue
View file @
fd1868b1
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
<view
class=
"commentPopup-box"
>
<view
class=
"commentPopup-box"
>
<van-popup
:show=
"show"
:round=
"true"
@
close=
"closepopup"
>
<van-popup
:show=
"show"
:round=
"true"
@
close=
"closepopup"
>
<view
class=
"commentPopup-box"
>
<view
class=
"commentPopup-box"
>
<van-icon
class=
"commentPopup-closure"
name=
"cross"
@
click=
"closepopup"
/>
<van-icon
class=
"commentPopup-closure"
name=
"cross"
@
click=
"closepopup"
/>
<view
class=
"commentPopup-title"
>
修改评语
</view>
<view
class=
"commentPopup-title"
>
修改评语
</view>
<view
class=
"commentPopup-content"
>
<view
class=
"commentPopup-content"
>
<textarea
placeholder=
"请填写评语内容
"
></textarea>
<textarea
placeholder=
"请填写评语内容"
v-model=
"stuCommentObj.Info
"
></textarea>
</view>
</view>
<view
class=
"commentPopup-save flex"
>
<view
class=
"commentPopup-save flex"
>
<view
@
click=
"save"
>
确认
</view>
<view
@
click=
"save"
>
确认
</view>
...
@@ -24,37 +24,50 @@
...
@@ -24,37 +24,50 @@
inject
,
inject
,
watch
watch
}
from
"vue"
;
}
from
"vue"
;
import
{
uploadFile
}
from
"@/utils/index"
;
import
{
uploadFile
}
from
"@/utils/index"
;
export
default
{
export
default
{
props
:
{
props
:
{
},
},
components
:
{},
components
:
{},
setup
(
props
,
ctx
)
{
emits
:
[
'change'
],
setup
(
props
,
ctx
)
{
// 双滑块模式时,值必须是数组
// 双滑块模式时,值必须是数组
const
value
=
ref
([
10
,
50
]);
const
value
=
ref
([
10
,
50
]);
let
{
let
{
proxy
proxy
}
=
getCurrentInstance
();
}
=
getCurrentInstance
();
let
data
=
reactive
({
let
data
=
reactive
({
valueNum
:
ref
([
0
,
0
]),
show
:
false
,
show
:
false
,
loading
:
false
,
loading
:
false
,
stuCommentObj
:
{
Id
:
0
,
Info
:
""
}
});
});
let
methods
=
{
let
methods
=
{
showFun
(){
showFun
(
item
)
{
if
(
item
)
{
data
.
stuCommentObj
.
Id
=
item
.
Id
;
data
.
stuCommentObj
.
Info
=
item
.
Info
;
}
data
.
show
=
true
data
.
show
=
true
},
},
closepopup
()
{
closepopup
()
{
data
.
show
=
false
data
.
show
=
false
},
},
onChange
(
value
){
save
()
{
console
.
log
(
value
)
proxy
.
$request
(
"/Teacher/SetStuCommentInfo"
,
data
.
stuCommentObj
).
then
(
res
=>
{
// data.valueNum = value
if
(
res
.
Code
==
1
)
{
// console.log(data.valueNum)
uni
.
showToast
({
},
icon
:
'none'
,
save
(){
duration
:
500
});
}
});
ctx
.
emit
(
"change"
);
data
.
show
=
false
data
.
show
=
false
}
}
};
};
...
@@ -65,7 +78,7 @@
...
@@ -65,7 +78,7 @@
...
methods
...
methods
};
};
},
},
onLoad
()
{
onLoad
()
{
},
},
onShow
()
{
onShow
()
{
...
@@ -83,13 +96,15 @@
...
@@ -83,13 +96,15 @@
background-color
:
#ee0a24
;
background-color
:
#ee0a24
;
border-radius
:
100
rpx
;
border-radius
:
100
rpx
;
}
}
.commentPopup-content
{
.commentPopup-content
{
background
:
#F7F7F7
;
background
:
#F7F7F7
;
border-radius
:
30
rpx
;
border-radius
:
30
rpx
;
min-height
:
152
rpx
;
min-height
:
152
rpx
;
padding
:
37
rpx
43
rpx
;
padding
:
37
rpx
43
rpx
;
}
}
.commentPopup-save
view
{
.commentPopup-save
view
{
background
:
#C91727
;
background
:
#C91727
;
font-size
:
30
rpx
;
font-size
:
30
rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
...
@@ -100,25 +115,30 @@
...
@@ -100,25 +115,30 @@
text-align
:
center
;
text-align
:
center
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
}
}
.commentPopup-save
{
.commentPopup-save
{
justify-content
:
center
;
justify-content
:
center
;
margin-top
:
40
rpx
;
margin-top
:
40
rpx
;
}
}
.commentPopup-box
.noData
{
.commentPopup-box
.noData
{
text-align
:
center
;
text-align
:
center
;
flex
:
1
;
flex
:
1
;
width
:
100%
;
width
:
100%
;
}
}
.commentPopup-box
.noData
image
{
width
:
200
rpx
;
.commentPopup-box
.noData
image
{
width
:
200
rpx
;
margin-bottom
:
40
rpx
;
margin-bottom
:
40
rpx
;
}
}
.commentPopup-box
.noData
view
{
.commentPopup-box
.noData
view
{
font-size
:
24
rpx
;
font-size
:
24
rpx
;
color
:
#cecece
;
color
:
#cecece
;
text-align
:
center
;
text-align
:
center
;
}
}
.commentPopup-name
{
.commentPopup-name
{
background-color
:
#F7F7F7
;
background-color
:
#F7F7F7
;
text-align
:
center
;
text-align
:
center
;
border
:
1px
solid
#F7F7F7
;
border
:
1px
solid
#F7F7F7
;
...
@@ -129,7 +149,8 @@
...
@@ -129,7 +149,8 @@
font-size
:
30
rpx
;
font-size
:
30
rpx
;
letter-spacing
:
1
rpx
;
letter-spacing
:
1
rpx
;
}
}
.commentPopup-title
{
.commentPopup-title
{
width
:
100%
;
width
:
100%
;
text-align
:
center
;
text-align
:
center
;
font-size
:
30
rpx
;
font-size
:
30
rpx
;
...
@@ -137,19 +158,20 @@
...
@@ -137,19 +158,20 @@
margin-bottom
:
73
rpx
;
margin-bottom
:
73
rpx
;
letter-spacing
:
1
rpx
;
letter-spacing
:
1
rpx
;
}
}
.commentPopup-closure
{
.commentPopup-closure
{
position
:
absolute
;
position
:
absolute
;
right
:
31
rpx
;
right
:
31
rpx
;
top
:
31
rpx
;
top
:
31
rpx
;
color
:
#282828
;
color
:
#282828
;
font-size
:
38
rpx
;
font-size
:
38
rpx
;
}
}
.commentPopup-box
{
.commentPopup-box
{
position
:
relative
;
position
:
relative
;
width
:
548
rpx
;
width
:
548
rpx
;
padding
:
48
rpx
55
rpx
60
rpx
55
rpx
;
padding
:
48
rpx
55
rpx
60
rpx
55
rpx
;
}
}
.commentPopup-box
{
}
.commentPopup-box
{
}
</
style
>
</
style
>
src/pages/index/workSituation.vue
View file @
fd1868b1
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
homeWorks
:[],
homeWorks
:[],
exams
:[],
exams
:[],
pageState
:
"more"
,
pageState
:
"more"
,
currentCourseId
:
189666293
,
currentCourseId
:
45329247
,
userData
:{},
userData
:{},
loading
:
false
loading
:
false
});
});
...
@@ -138,9 +138,9 @@
...
@@ -138,9 +138,9 @@
},
},
changeCourseHandler
(
id
){
changeCourseHandler
(
id
){
console
.
log
(
id
,
'........................'
)
console
.
log
(
id
,
'........................'
)
data
.
Msg
.
courseId
=
189666293
data
.
Msg
.
courseId
=
45329247
data
.
OperationMsg
.
courseId
=
189666293
data
.
OperationMsg
.
courseId
=
45329247
data
.
currentCourseId
=
189666293
data
.
currentCourseId
=
45329247
methods
.
getCourseStuList
()
methods
.
getCourseStuList
()
methods
.
getExamPageList
()
methods
.
getExamPageList
()
methods
.
getCourseHomeWorkList
()
methods
.
getCourseHomeWorkList
()
...
...
src/pages/setComments/commentDetails.vue
View file @
fd1868b1
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<commentDetails
:CourseCommentTimesList=
"courseTimeList"
@
refreshData=
"get
CourseCommentTimes
"
></commentDetails>
<commentDetails
:CourseCommentTimesList=
"courseTimeList"
@
refreshData=
"get
StuCommentList
"
></commentDetails>
</view>
</view>
...
@@ -96,8 +96,8 @@
...
@@ -96,8 +96,8 @@
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
delta
:
1
})
})
},
},
//获取系统生成学员评价列表
getStuCommentList
(){
getStuCommentList
(){
proxy
.
$request
(
"/Teacher/GetStuCommentList"
,
data
.
Msg
).
then
(
res
=>
{
proxy
.
$request
(
"/Teacher/GetStuCommentList"
,
data
.
Msg
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
...
...
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