|
|
@@ -2,7 +2,7 @@
|
|
|
* @Author: liuJie
|
|
|
* @Date: 2026-02-13 16:04:29
|
|
|
* @LastEditors: liuJie
|
|
|
- * @LastEditTime: 2026-03-19 10:32:45
|
|
|
+ * @LastEditTime: 2026-04-17 17:39:36
|
|
|
* @Describe: file describe
|
|
|
-->
|
|
|
<script setup lang="ts">
|
|
|
@@ -142,6 +142,21 @@
|
|
|
tableQuery.pageNumber = 1;
|
|
|
handleSearch();
|
|
|
};
|
|
|
+ const getNumber = (value, unit)=>{
|
|
|
+ if(value===0){
|
|
|
+ return value + unit;
|
|
|
+ }else if(value === null || value === undefined || value === ''){
|
|
|
+ return '-';
|
|
|
+ } else {
|
|
|
+ return value + unit
|
|
|
+ }
|
|
|
+ }
|
|
|
+ const preViewVisible = ref(false)
|
|
|
+ const imageUrl = ref('')
|
|
|
+ const preview = (url)=>{
|
|
|
+ preViewVisible.value = true
|
|
|
+ imageUrl.value = url
|
|
|
+ }
|
|
|
</script>
|
|
|
<template>
|
|
|
<div>
|
|
|
@@ -163,23 +178,22 @@
|
|
|
|
|
|
<!-- 表格 -->
|
|
|
<el-table border stripe :data="tableData">
|
|
|
- <el-table-column type="selection" width="50" />
|
|
|
- <el-table-column label="编号" type="index" width="80" />
|
|
|
+ <el-table-column label="编号" type="index" width="80" align="center" />
|
|
|
<el-table-column label="日期" prop="logDate" width="200" />
|
|
|
<el-table-column label="教育内容" prop="educationContent" width="280" />
|
|
|
<el-table-column label="学时" prop="creditHour">
|
|
|
<template #default="scope">
|
|
|
- <span>{{ scope.row.creditHour }}时</span>
|
|
|
+ <span>{{ getNumber(scope.row.creditHour, '时') }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="成绩" prop="scoreMust">
|
|
|
<template #default="scope">
|
|
|
- <span>{{ scope.row.scoreMust }}分</span>
|
|
|
+ <span>{{ getNumber(scope.row.scoreMust, '分') }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="受教育者签字" prop="educationSign" width="220">
|
|
|
<template #default="scope">
|
|
|
- <img :src="scope.row.educationSign" style="width:100%" v-if="scope.row.educationSign" alt="">
|
|
|
+ <img :src="scope.row.educationSign" style="width:100%;height:60px; cursor: pointer;" @click="preview(scope.row.educationSign)" v-if="scope.row.educationSign" alt="">
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="220">
|
|
|
@@ -217,6 +231,10 @@
|
|
|
<el-button type="primary" @click="confirmHandle">保存</el-button>
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
+ <!-- 预览 -->
|
|
|
+ <el-dialog v-model="preViewVisible" width="60%" @close="preViewVisible = false">
|
|
|
+ <img :src="imageUrl" style="width: 100%;" alt="">
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|