|
|
@@ -48,13 +48,13 @@
|
|
|
<!-- 数据表格 -->
|
|
|
<el-table v-loading="loading" :data="reportList" @selection-change="handleSelectionChange" border>
|
|
|
<el-table-column type="selection" width="50" align="center" />
|
|
|
- <el-table-column label="报告代码" align="left" prop="reportCode" width="180" show-overflow-tooltip>
|
|
|
+ <el-table-column label="报告代码" align="left" prop="reportCode" width="200" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
<el-link type="primary" @click="handleView(scope.row)">{{ scope.row.reportCode }}</el-link>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="计划名称" align="left" prop="planName" min-width="150" show-overflow-tooltip />
|
|
|
- <el-table-column label="归属区域" align="center" prop="areaName" width="120" />
|
|
|
+ <el-table-column label="计划名称" align="left" prop="planName" min-width="120" show-overflow-tooltip />
|
|
|
+ <el-table-column label="归属区域" align="center" prop="areaName" width="180" />
|
|
|
<el-table-column label="计划类型" align="center" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<el-tag :style="{ backgroundColor: getPlanTypeColor(scope.row.planType), borderColor: getPlanTypeColor(scope.row.planType) }"
|
|
|
@@ -84,8 +84,17 @@
|
|
|
</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="执行时间" align="center" prop="executeTime" width="150" />
|
|
|
- <el-table-column label="完成时间" align="center" prop="finishTime" width="150" />
|
|
|
+ <el-table-column label="执行时间" align="center" prop="executeTime" width="150">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ formatShortTime(scope.row.executeTime) }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column label="完成时间" align="center" prop="finishTime" width="150">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ formatShortTime(scope.row.finishTime) }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="mini" type="text" icon="el-icon-view" @click="handleView(scope.row)">
|
|
|
@@ -245,7 +254,16 @@ export default {
|
|
|
params.endTime = this.dateRange[1]
|
|
|
}
|
|
|
this.download('/ems/inspection/report/export', params, `inspection_report_${new Date().getTime()}.xlsx`)
|
|
|
- }
|
|
|
+ },
|
|
|
+
|
|
|
+ formatShortTime(time) {
|
|
|
+ if (!time) return '';
|
|
|
+ // 如果是标准的 yyyy-MM-dd HH:mm:ss 格式,直接截取前16位即可
|
|
|
+ if (typeof time === 'string' && time.length >= 16) {
|
|
|
+ return time.substring(0, 16);
|
|
|
+ }
|
|
|
+ return time;
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|