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
d7ec9568
Commit
d7ec9568
authored
May 31, 2022
by
youjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/youjie/thinkapp
parents
fc8f6f8e
244ec4dc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
423 additions
and
347 deletions
+423
-347
rulesPopup.vue
src/components/setComments/rulesPopup.vue
+175
-150
workSituation.vue
src/pages/index/workSituation.vue
+1
-1
commentRulesList.vue
src/pages/setComments/commentRulesList.vue
+247
-196
No files found.
src/components/setComments/rulesPopup.vue
View file @
d7ec9568
<
template
>
<view
class=
"rulesPopup-box"
>
<van-popup
:show=
"show"
:round=
"true"
@
close=
"closepopup"
>
<view
class=
"rulesPopup-box"
>
<van-icon
class=
"rulesPopup-closure"
name=
"cross"
@
click=
"closepopup"
/>
<view
class=
"rulesPopup-title"
>
自定义评论规则
</view>
<view
class=
"rulesPopup-content"
>
<input
v-model=
"uploadParm.ExamName"
class=
"rulesPopup-name"
placeholder=
"请输入本组自定义规则名称"
/>
<view
class=
"rulesPopup-RuleSettings"
>
<text
class=
"RuleSettings-title"
>
规则设置
</text>
<view
class=
"RuleSettings-slider"
>
<van-slider
v-model=
"value"
bar-height=
"10rpx"
active-color=
"#ee0a24"
>
<template
#
button
>
<div
class=
"custom-button"
>
{{
value
}}
</div>
</
template
>
</van-slider>
<!-- <van-slider v-model="valueNum" range
bar-height="4px" active-color="#ee0a24"
@change="onChange" /> -->
</view>
</view>
</view>
<view
class=
"RuleSettings-content"
>
<textarea
placeholder=
"请填写评论内容"
></textarea>
</view>
<view
class=
"rulesPopup-save flex"
>
<view
@
click=
"save"
>
保存
</view>
</view>
</view>
</van-popup>
<van-popup
:show=
"show"
:round=
"true"
@
close=
"closepopup"
>
<view
class=
"rulesPopup-box"
>
<van-icon
class=
"rulesPopup-closure"
name=
"cross"
@
click=
"closepopup"
/>
<view
class=
"rulesPopup-title"
>
自定义评论规则
</view>
<view
class=
"rulesPopup-content"
>
<input
v-model=
"ruleObj.Title"
class=
"rulesPopup-name"
placeholder=
"请输入本组自定义规则名称"
/>
<view
class=
"rulesPopup-RuleSettings"
>
<text
class=
"RuleSettings-title"
>
规则设置
</text>
<view
class=
"RuleSettings-slider"
>
<van-slider
v-model=
"valueNum"
:range=
"isRange"
@
change=
"onChange"
/>
</view>
</view>
</view>
<view
class=
"RuleSettings-content"
>
<textarea
placeholder=
"请填写评论内容"
v-model=
"ruleObj.Info"
></textarea>
</view>
<view
class=
"rulesPopup-save flex"
>
<view
@
click=
"save"
>
保存
</view>
</view>
</view>
</van-popup>
</view>
</
template
>
<
script
>
import
{
ref
,
ref
,
reactive
,
toRefs
,
onMounted
,
getCurrentInstance
,
inject
,
watch
watch
}
from
"vue"
;
import
{
uploadFile
}
from
"@/utils/index"
;
import
{
uploadFile
}
from
"@/utils/index"
;
export
default
{
props
:
{
},
emits
:
[
'change'
],
components
:
{},
setup
(
props
,
ctx
)
{
// 双滑块模式时,值必须是数组
const
value
=
ref
([
10
,
50
]);
let
{
setup
(
props
,
ctx
)
{
let
{
proxy
}
=
getCurrentInstance
();
let
data
=
reactive
({
valueNum
:
ref
([
0
,
0
]),
show
:
false
,
loading
:
false
,
valueNum
:
[
10
,
50
],
show
:
false
,
loading
:
false
,
isRange
:
true
,
ruleObj
:
{
DetailId
:
0
,
//详情编号
Title
:
""
,
//标题
StartNum
:
0
,
//开始值
EndNum
:
0
,
//结束值
Info
:
""
,
//评价
}
});
let
methods
=
{
showFun
(){
data
.
show
=
true
},
closepopup
(){
data
.
show
=
false
},
onChange
(
value
){
console
.
log
(
value
)
// data.valueNum = value
// console.log(data.valueNum)
},
save
(){
data
.
show
=
false
}
};
let
methods
=
{
showFun
(
item
)
{
if
(
item
)
{
data
.
ruleObj
.
DetailId
=
item
.
DetailId
;
data
.
ruleObj
.
StartNum
=
item
.
StartNum
;
data
.
ruleObj
.
EndNum
=
item
.
EndNum
;
data
.
ruleObj
.
Info
=
item
.
Info
;
}
else
{
data
.
ruleObj
.
DetailId
=
0
;
data
.
ruleObj
.
StartNum
=
0
;
data
.
ruleObj
.
EndNum
=
0
;
data
.
ruleObj
.
Info
=
""
;
}
data
.
show
=
true
},
closepopup
()
{
data
.
show
=
false
},
onChange
(
value
)
{
console
.
log
(
value
)
},
save
()
{
data
.
ruleObj
.
StartNum
=
data
.
valueNum
[
0
];
data
.
ruleObj
.
EndNum
=
data
.
valueNum
[
1
];
ctx
.
emit
(
"change"
,
data
.
ruleObj
);
data
.
show
=
false
}
};
let
that
=
methods
;
return
{
...
toRefs
(
data
),
value
,
...
methods
...
methods
};
},
onLoad
()
{
},
onShow
()
{
onLoad
()
{
},
onShow
()
{
}
};
</
script
>
<
style
scoped
>
.custom-button
{
width
:
26
rpx
;
color
:
#fff
;
font-size
:
20
rpx
;
line-height
:
36
rpx
;
text-align
:
center
;
background-color
:
#ee0a24
;
border-radius
:
100
rpx
;
}
.RuleSettings-slider
{
padding
:
52
rpx
0
66
rpx
0
;
}
.rulesPopup-save
view
{
background
:
#C91727
;
font-size
:
30
rpx
;
font-weight
:
bold
;
letter-spacing
:
1
rpx
;
width
:
260
rpx
;
line-height
:
88
rpx
;
border-radius
:
44
rpx
;
text-align
:
center
;
color
:
#FFFFFF
;
}
.rulesPopup-save
{
justify-content
:
flex-end
;
margin-top
:
40
rpx
;
}
.RuleSettings-content
textarea
{
width
:
100%
;
}
.RuleSettings-content
{
background
:
#F7F7F7
;
border-radius
:
30
rpx
;
min-height
:
152
rpx
;
padding
:
37
rpx
43
rpx
;
}
.RuleSettings-title
{
font-size
:
30
rpx
;
font-weight
:
bold
;
color
:
#282828
;
}
.rulesPopup-box
.noData
{
.custom-button
{
width
:
26
rpx
;
color
:
#fff
;
font-size
:
20
rpx
;
line-height
:
36
rpx
;
text-align
:
center
;
flex
:
1
;
background-color
:
#ee0a24
;
border-radius
:
100
rpx
;
}
.RuleSettings-slider
{
padding
:
52
rpx
0
66
rpx
0
;
}
.rulesPopup-save
view
{
background
:
#C91727
;
font-size
:
30
rpx
;
font-weight
:
bold
;
letter-spacing
:
1
rpx
;
width
:
260
rpx
;
line-height
:
88
rpx
;
border-radius
:
44
rpx
;
text-align
:
center
;
color
:
#FFFFFF
;
}
.rulesPopup-save
{
justify-content
:
flex-end
;
margin-top
:
40
rpx
;
}
.RuleSettings-content
textarea
{
width
:
100%
;
}
.rulesPopup-box
.noData
image
{
width
:
200
rpx
;
.RuleSettings-content
{
background
:
#F7F7F7
;
border-radius
:
30
rpx
;
min-height
:
152
rpx
;
padding
:
37
rpx
43
rpx
;
}
.RuleSettings-title
{
font-size
:
30
rpx
;
font-weight
:
bold
;
color
:
#282828
;
}
.rulesPopup-box
.noData
{
text-align
:
center
;
flex
:
1
;
width
:
100%
;
}
.rulesPopup-box
.noData
image
{
width
:
200
rpx
;
margin-bottom
:
40
rpx
;
}
.rulesPopup-box
.noData
view
{
.rulesPopup-box
.noData
view
{
font-size
:
24
rpx
;
color
:
#cecece
;
text-align
:
center
;
}
.rulesPopup-RuleSettings
{
background
:
#FCEEEF
;
border-radius
:
30
rpx
;
padding
:
35
rpx
41
rpx
;
margin-top
:
51
rpx
;
margin-bottom
:
40
rpx
;
}
.rulesPopup-name
{
background-color
:
#F7F7F7
;
text-align
:
center
;
border
:
1px
solid
#F7F7F7
;
height
:
88
rpx
;
line-height
:
88
rpx
;
padding
:
0
10
rpx
;
border-radius
:
44
rpx
;
font-size
:
30
rpx
;
letter-spacing
:
1
rpx
;
}
.rulesPopup-title
{
width
:
100%
;
text-align
:
center
;
font-size
:
30
rpx
;
font-weight
:
500
;
margin-bottom
:
73
rpx
;
letter-spacing
:
1
rpx
;
}
.rulesPopup-closure
{
position
:
absolute
;
right
:
31
rpx
;
top
:
31
rpx
;
color
:
#282828
;
font-size
:
38
rpx
;
}
.rulesPopup-box
{
position
:
relative
;
width
:
548
rpx
;
padding
:
48
rpx
55
rpx
60
rpx
55
rpx
;
}
.rulesPopup-box
{
}
.rulesPopup-RuleSettings
{
background
:
#FCEEEF
;
border-radius
:
30
rpx
;
padding
:
35
rpx
41
rpx
;
margin-top
:
51
rpx
;
margin-bottom
:
40
rpx
;
}
.rulesPopup-name
{
background-color
:
#F7F7F7
;
text-align
:
center
;
border
:
1px
solid
#F7F7F7
;
height
:
88
rpx
;
line-height
:
88
rpx
;
padding
:
0
10
rpx
;
border-radius
:
44
rpx
;
font-size
:
30
rpx
;
letter-spacing
:
1
rpx
;
}
.rulesPopup-title
{
width
:
100%
;
text-align
:
center
;
font-size
:
30
rpx
;
font-weight
:
500
;
margin-bottom
:
73
rpx
;
letter-spacing
:
1
rpx
;
}
.rulesPopup-closure
{
position
:
absolute
;
right
:
31
rpx
;
top
:
31
rpx
;
color
:
#282828
;
font-size
:
38
rpx
;
}
.rulesPopup-box
{
position
:
relative
;
width
:
548
rpx
;
padding
:
48
rpx
55
rpx
60
rpx
55
rpx
;
}
.rulesPopup-box
{}
</
style
>
src/pages/index/workSituation.vue
View file @
d7ec9568
...
...
@@ -43,7 +43,7 @@
>
<operation
v-if=
"tabNme=='作业情况'"
:dataList=
"homeWorks"
></operation>
<studentList
@
selected=
"selectStuHandler"
v-if=
"tabNme=='学生列表'"
:dataList=
"students"
></studentList>
<examList
v-if=
"tabNme=='考试信息'"
:dataList=
"exams"
></examList>
<examList
v-if=
"tabNme=='考试信息'"
:dataList=
"exams"
:CourseId=
"currentCourseId"
></examList>
</scroll-view>
<Loadmore
:state=
"pageState"
/>
</view>
...
...
src/pages/setComments/commentRulesList.vue
View file @
d7ec9568
This diff is collapsed.
Click to expand it.
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