From 3398aca0f3b5ac513a5fc34146ac9d382dce723b Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 14 六月 2024 17:40:24 +0800
Subject: [PATCH] 原型制作
---
src/views/management/EvaluateSummary.vue | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++-
src/components.d.ts | 5 +++++
2 files changed, 55 insertions(+), 1 deletions(-)
diff --git a/src/components.d.ts b/src/components.d.ts
index 0baba56..6f28edd 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -24,6 +24,8 @@
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElStatistic: typeof import('element-plus/es')['ElStatistic']
+ ElTable: typeof import('element-plus/es')['ElTable']
+ ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
ElTag: typeof import('element-plus/es')['ElTag']
ElText: typeof import('element-plus/es')['ElText']
ElTimeline: typeof import('element-plus/es')['ElTimeline']
@@ -40,4 +42,7 @@
TaskNode: typeof import('./components/inspection/TaskNode.vue')['default']
TaskSummaryItem: typeof import('./components/inspection/TaskSummaryItem.vue')['default']
}
+ export interface ComponentCustomProperties {
+ vLoading: typeof import('element-plus/es')['ElLoadingDirective']
+ }
}
diff --git a/src/views/management/EvaluateSummary.vue b/src/views/management/EvaluateSummary.vue
index 4c75e2d..2ad888e 100644
--- a/src/views/management/EvaluateSummary.vue
+++ b/src/views/management/EvaluateSummary.vue
@@ -6,13 +6,62 @@
<el-statistic title="涓闄�" :value="10"> </el-statistic>
<el-statistic title="浣庨闄�" :value="10"> </el-statistic>
</el-row>
+ <el-table
+ :data="tableData"
+ v-loading="loading"
+ table-layout="fixed"
+ :row-class-name="tableRowClassName"
+ :height="tableHeight"
+ size="small"
+ >
+ <el-table-column
+ fixed="left"
+ prop="name"
+ :show-overflow-tooltip="true"
+ label="鍚嶇О"
+ width="200"
+ >
+ </el-table-column>
+ <el-table-column prop="planTime" :show-overflow-tooltip="true" label="鏃堕棿">
+ </el-table-column>
+ <el-table-column prop="score" :show-overflow-tooltip="true" label="璇勫垎" width="60">
+ </el-table-column>
+ <el-table-column prop="score" :show-overflow-tooltip="true" label="椋庨櫓" width="60">
+ </el-table-column>
+ </el-table>
</div>
</template>
-<script setup>
+<script>
/**
* 瀵瑰畬鎴愮殑浠诲姟杩涜璇勪及椋庨櫓锛屾樉绀洪珮椋庨櫓鍦烘櫙锛屾樉绀哄鏍哥殑鍦烘櫙鐨勬儏鍐�
*/
+export default {
+ data() {
+ return {
+ tableData: []
+ }
+ },
+ mounted() {
+ let i = 0
+ while (i < 20) {
+ this.tableData.push({
+ guid: 'SMuheEkjswioSn7A',
+ name: '涓鐢熸�佹暟瀛楁腐椤圭洰宸℃煡涓鐢熸�佹暟瀛楁腐椤圭洰宸℃煡',
+ district: '閲戝北鍖�',
+ planTime: '2024-06-04',
+ startTime: '2024-06-04 13:31:26',
+ endTime: '2024-06-04 13:33:37',
+ userName: '鏈辨寮�',
+ status: '宸茬粨鏉�',
+ total: 4,
+ checked: 2,
+ score: 90
+ })
+ i++
+ }
+ }
+}
</script>
<style scoped></style>
--
Gitblit v1.9.3