From 5d6531c446e2f312d70e6d10da4bd499e856af56 Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: 星期四, 04 十二月 2025 10:36:18 +0800
Subject: [PATCH] 修改新增
---
src/views/work/onlineEducation/offlineEducation/index.vue | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/src/views/work/onlineEducation/offlineEducation/index.vue b/src/views/work/onlineEducation/offlineEducation/index.vue
index 5b1ef28..f2896ac 100644
--- a/src/views/work/onlineEducation/offlineEducation/index.vue
+++ b/src/views/work/onlineEducation/offlineEducation/index.vue
@@ -8,10 +8,11 @@
plain
icon="Plus"
@click="openDialog('add',{})"
+ v-hasPermi="['offlineEducation:list:add']"
>新增登记</el-button>
</el-form-item>
- <el-form-item label="企业名称:" >
- <el-input v-model="data.queryParams.companyName" placeholder="请输入企业名称"></el-input>
+ <el-form-item label="单位名称:" >
+ <el-input v-model="data.queryParams.companyName" placeholder="请输入单位名称"></el-input>
</el-form-item>
<el-form-item label="课程名称:" >
<el-input v-model="data.queryParams.courseName" placeholder="请输入课程名称"></el-input>
@@ -42,7 +43,7 @@
<!-- 表格数据 -->
<el-table v-loading="loading" :data="dataList" :border="true">
<el-table-column label="序号" type="index" align="center" width="80" />
- <el-table-column label="日期" prop="createTime" align="center" />
+ <el-table-column label="日期" prop="planDate" align="center" />
<el-table-column label="计划名称" prop="planName" align="center" />
<el-table-column label="学员姓名" prop="studentName" align="center">
<template #default="scope">
@@ -76,12 +77,12 @@
<!-- <span>{{scope.row.passed == 0 ? '不合格':'合格'}}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
- <el-table-column label="培洲记录及有效评价" prop="passed" align="center" width="180">
+ <el-table-column label="培训记录及有效评价" prop="passed" align="center" width="180">
<template #default="scope">
<div v-for="item in scope.row.files" style="display: flex;flex-direction: column">
<div style="display: flex;flex-direction: column;align-items: center">
<el-link type="primary" @click="openFile(item.filePath)">{{item.fileName}}</el-link>
- <el-button style="width: 50px;margin-bottom: 5px" size="small" @click="downloadFile(item)">下载</el-button>
+ <el-button style="width: 50px;margin-bottom: 5px" size="small" @click="downloadFile(item)" v-hasPermi="['offlineEducation:list:edit']">下载</el-button>
</div>
</div>
@@ -90,8 +91,8 @@
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="120">
<template #default="scope">
- <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="openDialog('edit',scope.row)" v-hasPermi="['offlineEducation:list:edit']">编辑</el-button>
+ <el-button link type="danger" @click="handleDelete(scope.row)" v-hasPermi="['offlineEducation:list:del']">删除</el-button>
</template>
</el-table-column>
</el-table>
@@ -164,7 +165,7 @@
data.dataList = res.data.list.map(item => {
return {
...item,
- createTime: item.createTime.substring(0,10)
+ planDate: item.planDate?item.planDate.substring(0,10):null
}
})
data.total = res.data.total
--
Gitblit v1.9.2