From 4d5264ead8c96c78c9928e22fc66b0af190ed180 Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: Fri, 08 May 2026 11:06:42 +0800
Subject: [PATCH] 修改loading
---
src/views/work/onlineEducation/classHourBatch/index.vue | 21 +++++++++++----------
1 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/src/views/work/onlineEducation/classHourBatch/index.vue b/src/views/work/onlineEducation/classHourBatch/index.vue
index d264e80..572f4de 100644
--- a/src/views/work/onlineEducation/classHourBatch/index.vue
+++ b/src/views/work/onlineEducation/classHourBatch/index.vue
@@ -8,6 +8,7 @@
plain
icon="Plus"
@click="openDialog('add',{})"
+ v-hasPermi="['classHourBatch:list:add']"
>新增批次</el-button>
</el-form-item>
<el-form-item label="批次名称:" >
@@ -36,17 +37,17 @@
>重置</el-button>
</el-form-item>
</el-form>
- <span v-if="!data.isAdmin" style="font-size: 19px;font-weight: 600;margin-right: 20px">
- {{data.companyName}},您的企业当前系统可用课时总计
- <span style="font-size: 19px;font-weight: 600;color: #1ab394">{{data.remainPeriod}}</span> 分钟。<span @click="openDetail" style="cursor: pointer; font-size: 19px;font-weight: 600;color: #1890ff">[明细]</span>
- </span>
+<!-- <span v-if="!data.isAdmin" style="font-size: 19px;font-weight: 600;margin-right: 20px">-->
+<!-- {{data.companyName}},您的企业当前系统可用课时总计-->
+<!-- <span style="font-size: 19px;font-weight: 600;color: #1ab394">{{data.remainPeriod}}</span> 分钟。<span @click="openDetail" style="cursor: pointer; font-size: 19px;font-weight: 600;color: #1890ff">[明细]</span>-->
+<!-- </span>-->
</div>
<!-- 表格数据 -->
<el-table v-loading="loading" :data="dataList" :border="true">
<el-table-column label="批次编号" prop="code" align="center" width="135" />
<el-table-column label="创建时间" prop="createTime" align="center" width="120" />
<el-table-column label="批次名称" prop="name" align="center" />
- <el-table-column label="创建企业" prop="companyName" align="center" />
+<!-- <el-table-column label="创建企业" prop="companyName" align="center" />-->
<el-table-column label="批次级别" prop="level" align="center" >
<template #default="scope">
<span>{{scope.row.level === 1 ? '公司级' : scope.row.level === 2 ? '部门级' : scope.row.level === 3 ? '车间级' : '其他' }}</span>
@@ -54,14 +55,14 @@
</el-table-column>
<el-table-column label="课程" prop="courseName" align="center" />
<el-table-column label="学习人数" prop="studentCount" align="center" />
- <el-table-column label="总课时" prop="coursePeriodNum" align="center" />
+<!-- <el-table-column label="总课时" prop="coursePeriodNum" align="center" />-->
<el-table-column label="已完成人数" prop="finishCount" align="center" />
<el-table-column label="完成率" prop="finishRate" align="center" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180">
<template #default="scope">
- <el-button link type="primary" @click="toStuChoose(scope.row)">学生数据</el-button>
- <el-button link type="primary" @click="openDialog('edit',scope.row)">编辑</el-button>
- <el-button link type="danger" @click="handleDelete(scope.row)">删除</el-button>
+ <el-button link type="primary" @click="toStuChoose(scope.row)">人员数据</el-button>
+ <el-button link type="primary" @click="openDialog('edit',scope.row)" v-hasPermi="['classHourBatch:list:edit']">编辑</el-button>
+ <el-button link type="danger" @click="handleDelete(scope.row)" v-hasPermi="['classHourBatch:list:del']">删除</el-button>
</template>
</el-table-column>
</el-table>
@@ -163,7 +164,7 @@
return {
...item,
coursePeriodNum: item.coursePeriod ? (item.coursePeriod /60).toFixed(2).replace(/\.00$/, '') + '分钟':'',
- finishRate: item.finishCount ? item.finishCount ===0 && item.studentCount ===0 ? '0%': (item.finishCount / item.studentCount).toFixed(2) *100 + '%' : ''
+ finishRate: item.finishCount ? item.finishCount ===0 && item.studentCount ===0 ? '0%': ((item.finishCount / item.studentCount)*100).toFixed(2).replace(/\.00$/, '') + '%' : ''
}
})
data.total = res.data.total
--
Gitblit v1.9.2