Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
6490dd3e
Commit
6490dd3e
authored
Dec 08, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
b80bb356
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
classinfo-form.vue
src/components/course/classinfo-form.vue
+19
-6
No files found.
src/components/course/classinfo-form.vue
View file @
6490dd3e
...
...
@@ -72,8 +72,9 @@
<div
class=
"row wrap"
style=
"margin-top:20px;"
>
<div
class=
"col-6"
style=
"display:flex;align-items:center;"
>
<span
class=
"normalName"
>
课程进度:
</span>
<q-linear-progress
rounded
size=
"20px"
:value=
"setingObj.CompleteProgress/100"
style=
"background-color:#EEEEEF;color:#3FC4FF;display:inline-block;width:40%"
/>
<q-linear-progress
rounded
size=
"20px"
:value=
"getProgress(setingObj.CompleteProgress,100)"
style=
"background-color:#EEEEEF;color:#3FC4FF;display:inline-block;width:30%;margin-right:10px;"
/>
{{setingObj.CompleteProgress}}%
</div>
</div>
</div>
...
...
@@ -89,9 +90,15 @@
<q-btn
outline
color=
"black"
label=
"退课"
size=
"12px"
style=
"margin-right:20px;"
/>
<q-btn
color=
"primary"
class=
"q-mr-md"
size=
"12px"
icon=
"add"
label=
"邀请新学员"
/>
</div>
<q-table
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
selection=
"multiple"
<q-table
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
selection=
"multiple"
:selected
.
sync=
"selected"
class=
"sticky-right-column-table sticky-tow-column-table"
separator=
"none"
title=
"学员信息"
:data=
"studentList"
:columns=
"columns"
row-key=
"Id"
>
title=
"学员信息"
:data=
"studentList"
:columns=
"columns"
hide-bottom
row-key=
"Id"
>
<
template
v-slot:body-cell-IsRenew=
"props"
>
<q-td
auto-width
:props=
"props"
>
<span
style=
"color:red;"
v-if=
"props.row.IsRenew==0"
>
否
</span>
<span
style=
"color:green;"
v-if=
"props.row.IsRenew==1"
>
是
</span>
</q-td>
</
template
>
</q-table>
</div>
<div
v-if=
"tabCheck=='second'"
>
...
...
@@ -126,7 +133,6 @@
tabCheck
:
'first'
,
//默认选第一个
columns
:
[{
name
:
'GuestName'
,
required
:
true
,
label
:
'姓名'
,
field
:
'GuestName'
,
align
:
'left'
,
...
...
@@ -202,7 +208,14 @@
this
.
studentList
=
res
.
Data
;
}
})
}
},
//获取进度条
getProgress
(
num
,
total
)
{
if
(
num
==
0
||
total
==
0
){
return
0
;
}
return
(
Math
.
round
(
num
/
total
*
100
)
/
100.00
);
},
},
}
...
...
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