Commit 6490dd3e authored by zhengke's avatar zhengke

修改

parent b80bb356
......@@ -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);
},
},
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment