Commit e32c4061 authored by zhengke's avatar zhengke

修改

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