| | |
| | | <el-table-column label="企业名称" prop="name" align="center" /> |
| | | <el-table-column label="负责人" prop="major" align="center" /> |
| | | <el-table-column label="联系电话" prop="phone" align="center"/> |
| | | <el-table-column label="当前剩余课时(分)" prop="remainPeriodMin" align="center" width="150"/> |
| | | <el-table-column label="累计已用课时(分)" prop="spendPeriodMin" align="center" width="150"/> |
| | | <el-table-column label="当前剩余课时(分)" prop="remainPeriodMin" align="center" width="150" /> |
| | | <el-table-column label="累计已用课时(分)" prop="spendPeriodMin" align="center" width="150"> |
| | | <template #default="scope"> |
| | | <span>{{((scope.row.totalPeriod -scope.row.remainPeriod)/60).toFixed(2).replace(/\.00$/, '') + '分钟' }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="总课时(分)" prop="totalPeriodMin" align="center"/> |
| | | <el-table-column label="课时变动详情" align="center" class-name="small-padding fixed-width" > |
| | | <template #default="scope"> |
| | | <el-button link type="primary">查看详情</el-button> |
| | | <el-button link type="primary" @click="openDetail(scope.row)">查看详情</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200" > |
| | |
| | | /> |
| | | |
| | | <company-dialog ref="dialogRef" @getList=getList></company-dialog> |
| | | <class-hour-change ref="classHourRef" @getList=getList></class-hour-change> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import {ElMessage, ElMessageBox} from "element-plus"; |
| | | import {delCompany, getCompany} from "@/api/onlineEducation/company"; |
| | | import companyDialog from "./components/companyDialog.vue"; |
| | | import classHourChange from '@/views/onlineEducation/classHourBatch/components/classHourChange.vue' |
| | | |
| | | const { proxy } = getCurrentInstance(); |
| | | const loading = ref(false); |
| | |
| | | }); |
| | | |
| | | const { queryParams, total, dataList } = toRefs(data); |
| | | |
| | | const classHourRef = ref(); |
| | | onMounted(()=>{ |
| | | getList() |
| | | }) |
| | |
| | | return{ |
| | | ...item, |
| | | remainPeriodMin: item.remainPeriod ?(item.remainPeriod /60).toFixed(2).replace(/\.00$/, '') + '分钟':'', |
| | | spendPeriodMin:item.spendPeriod ?(item.spendPeriod /60).toFixed(2).replace(/\.00$/, '') + '分钟':'', |
| | | totalPeriodMin:item.totalPeriod ?(item.totalPeriod /60).toFixed(2).replace(/\.00$/, '') + '分钟':'', |
| | | } |
| | | }) |
| | |
| | | }) |
| | | } |
| | | |
| | | const openDetail = (val) => { |
| | | classHourRef.value.openDialog(val.id) |
| | | } |
| | | </script> |