From d5ca194063ce93bf6226687ecbbd5ded435b9820 Mon Sep 17 00:00:00 2001
From: Jack <1638169491@qq.com>
Date: Mon, 29 Aug 2022 10:25:21 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E5=BB=BA=E5=9B=9B=E5=B1=80(=E5=AE=89?=
=?UTF-8?q?=E5=85=A8=E7=AE=A1=E7=90=86)=EF=BC=9A=E5=AE=8C=E6=88=90?=
=?UTF-8?q?=E5=AE=89=E5=85=A8=E5=B7=A1=E6=A3=80=E5=88=97=E8=A1=A8=E5=B8=83?=
=?UTF-8?q?=E5=B1=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../projectAdmin/zjsj/security/leftTop.vue | 94 ++++++++++++++++++-
1 file changed, 91 insertions(+), 3 deletions(-)
diff --git a/src/views/projectAdmin/zjsj/security/leftTop.vue b/src/views/projectAdmin/zjsj/security/leftTop.vue
index 654faa31..0dadd4e2 100644
--- a/src/views/projectAdmin/zjsj/security/leftTop.vue
+++ b/src/views/projectAdmin/zjsj/security/leftTop.vue
@@ -62,6 +62,24 @@
+
+
+
+
+
+
{{ fmtType(item.type) }}
+
{{ item.datetime }}
+
{{ fmtStatus(item.status) }}
+
+
+
+
@@ -69,18 +87,41 @@
import Card from '../components/Card.vue'
import JRingChart from '../../common/jChart/pie/JRingChart.vue'
export default {
- components: { Card, JRingChart }
+ components: { Card, JRingChart },
+ data() {
+ return {
+ list: [
+ { type: 1, datetime: '2022-02-02 13:39:09', status: 1 },
+ { type: 2, datetime: '2022-02-02 13:39:09', status: 2 },
+ { type: 3, datetime: '2022-02-02 13:39:09', status: 3 },
+ { type: 1, datetime: '2022-02-02 13:39:09', status: 1 },
+ { type: 2, datetime: '2022-02-02 13:39:09', status: 2 },
+ { type: 3, datetime: '2022-02-02 13:39:09', status: 3 }
+ ]
+ }
+ },
+ methods: {
+ fmtType(type) {
+ return type === 1 ? '物料堆放' : type === 2 ? '未戴安全帽' : type === 3 ? '未穿反光衣' : '--'
+ },
+ fmtStatus(status) {
+ return status === 1 ? '未处理' : status === 2 ? '已处理' : status === 3 ? '整改中' : '--'
+ },
+ fmtStatusColor(status) {
+ return status === 1 ? 'orange' : status === 2 ? 'green' : status === 3 ? 'blue' : ''
+ }
+ }
}