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
3cb5a641
Commit
3cb5a641
authored
Jun 01, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
fd0b5a98
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
411 additions
and
7 deletions
+411
-7
rulesPopup.vue
src/components/setComments/rulesPopup.vue
+21
-7
sregionslider.vue
src/components/sregionslider/sregionslider.vue
+376
-0
commentRulesList.vue
src/pages/setComments/commentRulesList.vue
+14
-0
No files found.
src/components/setComments/rulesPopup.vue
View file @
3cb5a641
...
...
@@ -9,9 +9,8 @@
<view
class=
"rulesPopup-RuleSettings"
>
<text
class=
"RuleSettings-title"
>
规则设置
</text>
<view
class=
"RuleSettings-slider"
>
<van-slider
v-model=
"valueNum"
range
bar-height=
"4rpx"
active-color=
"#ee0a24"
@
change=
"onChange"
/>
<sRegionSlider
:minValue=
"minValue"
:maxValue=
"maxValue"
:step=
"1"
@
up=
"up"
@
down=
"down"
@
move=
"move"
/>
</view>
</view>
</view>
...
...
@@ -26,6 +25,7 @@
</view>
</
template
>
<
script
>
import
sRegionSlider
from
'@/components/sregionslider/sregionslider'
import
{
ref
,
reactive
,
...
...
@@ -39,17 +39,18 @@
uploadFile
}
from
"@/utils/index"
;
export
default
{
components
:
{
sRegionSlider
},
props
:
{
},
emits
:
[
'change'
],
components
:
{},
setup
(
props
,
ctx
)
{
let
{
proxy
}
=
getCurrentInstance
();
let
data
=
reactive
({
valueNum
:
[
10
,
50
],
show
:
false
,
loading
:
false
,
isRange
:
true
,
...
...
@@ -59,9 +60,22 @@
StartNum
:
0
,
//开始值
EndNum
:
0
,
//结束值
Info
:
""
,
//评价
}
},
minValue
:
0
,
maxValue
:
10
});
let
methods
=
{
chage
(
minValue
,
maxValue
){
data
.
minValue
=
minValue
;
data
.
maxValue
=
maxValue
;
},
up
(
e
){
// console.log(e);//// e中包含了原有的e信息, 并添加了custom对象
data
.
minValue
=
e
.
custom
.
minValue
;
data
.
maxValue
=
e
.
custom
.
maxValue
;
},
down
(
e
){
},
move
(
e
){
},
showFun
(
item
)
{
if
(
item
)
{
data
.
ruleObj
.
DetailId
=
item
.
DetailId
;
...
...
@@ -115,7 +129,7 @@
}
.RuleSettings-slider
{
padding
:
52
rpx
0
66
rpx
0
;
padding
:
0
0
30
rpx
0
;
}
.rulesPopup-save
view
{
...
...
src/components/sregionslider/sregionslider.vue
0 → 100644
View file @
3cb5a641
This diff is collapsed.
Click to expand it.
src/pages/setComments/commentRulesList.vue
View file @
3cb5a641
...
...
@@ -86,11 +86,16 @@
show
:
false
});
let
methods
=
{
back
()
{
uni
.
navigateBack
({
delta
:
1
})
},
// 关闭规则弹窗
closure
(){
refs
.
getrulesPopup
.
$vm
.
closepopup
()
},
saveRules
()
{
//保存规则
proxy
.
$request
(
"/Teacher/SetCourseComment"
,
data
.
courseRule
).
then
(
res
=>
{
if
(
res
)
{
...
...
@@ -113,6 +118,7 @@
data
.
show
=
true
refs
.
getrulesPopup
.
$vm
.
showFun
(
item
)
},
//删除规则
deleteRules
(
item
,
index
)
{
let
self
=
this
;
...
...
@@ -208,6 +214,14 @@
this
.
show
=
option
.
show
this
.
addRules
()
}
if
(
option
.
CourseId
){
this
.
show
=
true
this
.
addRules
()
setTimeout
(()
=>
{
this
.
show
=
false
this
.
closure
()
},
100
)
}
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