From fa0fc3195858a592d2ad1bdad0fa6126602ebf55 Mon Sep 17 00:00:00 2001
From: zrj <646384940@qq.com>
Date: Fri, 07 Jun 2024 14:17:10 +0800
Subject: [PATCH] 路径配置修改
---
src/views/cGovernance/punchCard.vue | 31 ++++++++++++++++++++++---------
1 files changed, 22 insertions(+), 9 deletions(-)
diff --git a/src/views/cGovernance/punchCard.vue b/src/views/cGovernance/punchCard.vue
index 46d0315..ad4c1a0 100644
--- a/src/views/cGovernance/punchCard.vue
+++ b/src/views/cGovernance/punchCard.vue
@@ -10,7 +10,7 @@
</template>
<script>
-import { getList } from "@/api/punch_card"
+import { getList } from "@/ssoapi/punch_card"
import { mapGetters } from "vuex"
import website from '@/config/website'
@@ -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,25 +96,28 @@
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",
+ action: "/ssoapi/blade-resource/oss/endpoint/put-file",
propsHttp: {
res: "data",
name: 'name',
@@ -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