|
|
@@ -2,7 +2,7 @@
|
|
|
* @Author: liuJie
|
|
|
* @Date: 2026-02-13 16:04:29
|
|
|
* @LastEditors: liuJie
|
|
|
- * @LastEditTime: 2026-04-17 17:31:01
|
|
|
+ * @LastEditTime: 2026-04-21 14:14:11
|
|
|
* @Describe: file describe
|
|
|
-->
|
|
|
<script setup lang="ts">
|
|
|
@@ -145,7 +145,7 @@
|
|
|
tableQuery.pageNumber = 1;
|
|
|
handleSearch();
|
|
|
};
|
|
|
- const getNumber = (value, unit)=>{
|
|
|
+ const getNumber = (value, unit='')=>{
|
|
|
if(value===0){
|
|
|
return value + unit;
|
|
|
}else if(value === null || value === undefined || value === ''){
|
|
|
@@ -192,7 +192,7 @@
|
|
|
<el-table-column label="培训单位" prop="trainingCompany" width="220" />
|
|
|
<el-table-column label="学时" prop="creditHour" width="120">
|
|
|
<template #default="scope">
|
|
|
- <span>{{ getNumber(scope.row.creditHour, '时') }}</span>
|
|
|
+ <span>{{ getNumber(scope.row.creditHour) }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="220" fixed="right">
|
|
|
@@ -200,7 +200,7 @@
|
|
|
<el-button link type="primary" @click="editHandle(scope.row)">编辑</el-button>
|
|
|
<el-popconfirm title="确定要删除该条记录吗?" placement="top" @confirm="deleteHandle(scope.row.id)">
|
|
|
<template #reference>
|
|
|
- <el-button link type="danger">删除</el-button>
|
|
|
+ <el-button link type="primary">删除</el-button>
|
|
|
</template>
|
|
|
</el-popconfirm>
|
|
|
</template>
|