Commit e32c4061 authored by zhengke's avatar zhengke

修改

parent cb4f5658
...@@ -94,6 +94,9 @@ ...@@ -94,6 +94,9 @@
title="学员信息" :data="studentList" :columns="columns" row-key="Id"> title="学员信息" :data="studentList" :columns="columns" row-key="Id">
</q-table> </q-table>
</div> </div>
<div v-if="tabCheck=='second'">
        <lessForm></lessForm>
      </div>
</q-card> </q-card>
<div class="dialog-out-close" @click="closeShenheForm" <div class="dialog-out-close" @click="closeShenheForm"
style="height:40px !important;border-top-left-radius: 4px !important;border-bottom-left-radius: 4px !important;"> style="height:40px !important;border-top-left-radius: 4px !important;border-bottom-left-radius: 4px !important;">
...@@ -105,9 +108,8 @@ ...@@ -105,9 +108,8 @@
<script> <script>
import { import {
queryClassStudent, queryClassStudent,
} from '../../api/course/class'; } from '../../api/course/class';
import lessForm from '../course/lesson-form';
export default { export default {
props: { props: {
setingObj: { setingObj: {
...@@ -116,7 +118,7 @@ ...@@ -116,7 +118,7 @@
} }
}, },
components: { components: {
lessForm
}, },
data() { data() {
return { return {
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<template v-slot:body-cell-CompleteProgress="props"> <template v-slot:body-cell-CompleteProgress="props">
<q-td auto-width :props="props"> <q-td auto-width :props="props">
已进行{{props.row.CompleteProgress}}% 已进行{{props.row.CompleteProgress}}%
<q-linear-progress rounded size="20px" :value="getProgress2(props.row.CompleteProgress,100)" style="background-color:#EEEEEF;color:#3FC4FF" <q-linear-progress rounded size="20px" :value="getProgress(props.row.CompleteProgress,100)" style="background-color:#EEEEEF;color:#3FC4FF"
class="q-mt-sm" /> class="q-mt-sm" />
</q-td> </q-td>
</template> </template>
...@@ -250,14 +250,7 @@ ...@@ -250,14 +250,7 @@
} }
}, },
//获取进度条 //获取进度条
getProgress(s1, s2) { getProgress(num, total) {
if (s1 && s2 && s2!=0) {
return (s1 / s2).toFixed(2);
}
return 0.00;
},
//获取进度2
getProgress2(num,total) {
if (num == 0 || total == 0){ if (num == 0 || total == 0){
return 0; return 0;
} }
......
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