From ebfc739bdbbc0dd0fccd0bf47b7d2d5397c3c511 Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Fri, 22 Mar 2024 12:44:21 +0800
Subject: [PATCH] 轮播图片
---
src/views/cGovernance/punchCard.vue | 27 ++++++++++++++++++++-------
1 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/src/views/cGovernance/punchCard.vue b/src/views/cGovernance/punchCard.vue
index 46d0315..1471279 100644
--- a/src/views/cGovernance/punchCard.vue
+++ b/src/views/cGovernance/punchCard.vue
@@ -28,28 +28,34 @@
datetime: "",
selectionList: [],
option: {
+ labelWidth: 120,
+ searchLabelWidth: 96,
+ searchShow: true,
+ searchMenuSpan: 3,
+ menuWidth: 280,
+
menu: false,
addBtn: false,
border: true,
- index: false,
+ index: true,
selection: false,
height: "auto",
calcHeight: 54,
dialogWidth: 950,
tip: false,
- searchShow: true,
- searchMenuSpan: 3,
//stripe:true,
viewBtn: true,
excelBtn: true,
dialogClickModal: false,
+ header:false,
column: [
{
- width: 96,
+ width: 110,
label: "打卡人员",
prop: "name",
search: true,
- searchSpan: 4
+ searchSpan: 4,
+ searchLabelWidth: 76,
},
{
label: "打卡时间",
@@ -66,11 +72,12 @@
search: true,
rules: [{
required: true,
- message: "请选择发布时间",
+ message: "请选择打卡时间",
trigger: "blur",
},],
},
{
+ width: 144,
label: "打卡时间",
prop: "createTime",
type: "date",
@@ -89,23 +96,26 @@
prop: "workContent",
},
{
+ width: 96,
label: "经度",
prop: "lng",
},
{
+ width: 96,
label: "纬度",
prop: "lat",
},
{
+ overHidden: true,
label: "打卡地址",
prop: "address",
},
{
+ width: 110,
label: "打卡图片",
prop: "img",
type: "upload",
labelWidth: 120,
- width: 80,
listType: "picture-img",
action: "/api/blade-resource/oss/endpoint/put-file",
propsHttp: {
@@ -194,6 +204,9 @@
item.img = urls.join(",")
}
+ item.lat = Number(item.lat).toFixed(6)
+ item.lng = Number(item.lng).toFixed(6)
+
return item
})
--
Gitblit v1.9.3