guanqb
2024-01-29 bf45ce8559383eb2c940affc6296c4c156ecf5e2
src/views/cGovernance/punchCard.vue
@@ -28,28 +28,33 @@
            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,
                column: [
                    {
                        width: 96,
                        width: 110,
                        label: "打卡人员",
                        prop: "name",
                        search: true,
                        searchSpan: 4
                        searchSpan: 4,
                        searchLabelWidth: 76,
                    },
                    {
                        label: "打卡时间",
@@ -66,11 +71,12 @@
                        search: true,
                        rules: [{
                            required: true,
                            message: "请选择发布时间",
                            message: "请选择打卡时间",
                            trigger: "blur",
                        },],
                    },
                    {
                        width: 144,
                        label: "打卡时间",
                        prop: "createTime",
                        type: "date",
@@ -89,23 +95,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 +203,9 @@
                        item.img = urls.join(",")
                    }
                    item.lat = Number(item.lat).toFixed(6)
                    item.lng = Number(item.lng).toFixed(6)
                    return item
                })