From b73b5e52b238a934c5cada6e43a3f9f1b33fe963 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=B1=B3=E5=AD=90=E8=B1=AA?= <1012743329@qq.com>
Date: Mon, 6 Jan 2025 10:19:07 +0800
Subject: [PATCH] =?UTF-8?q?feat:=201.=E8=80=83=E5=8B=A4=E8=A7=84=E5=88=99?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/BottomPop/BottomPop.vue | 1 +
src/components/CommonItemItem/CommonItem.vue | 8 ++-
.../attendance-add-group.vue | 38 +++++++++++--
.../attendance-add-group/outside-rules.vue | 56 +++++++++++++++++++
src/typings.ts | 6 ++
5 files changed, 100 insertions(+), 9 deletions(-)
create mode 100644 src/pages/attendance/attendance-add-group/outside-rules.vue
diff --git a/src/components/BottomPop/BottomPop.vue b/src/components/BottomPop/BottomPop.vue
index 3dee1c8..bbe5990 100644
--- a/src/components/BottomPop/BottomPop.vue
+++ b/src/components/BottomPop/BottomPop.vue
@@ -32,6 +32,7 @@
>
确定
+
diff --git a/src/components/CommonItemItem/CommonItem.vue b/src/components/CommonItemItem/CommonItem.vue
index 40bcf32..7f4bad4 100644
--- a/src/components/CommonItemItem/CommonItem.vue
+++ b/src/components/CommonItemItem/CommonItem.vue
@@ -1,9 +1,11 @@
- *
+ *
{{ text }}
-
+
+
+
{{ hint }}
{{ value }}
@@ -15,7 +17,7 @@
>
-
+
diff --git a/src/pages/attendance/attendance-add-group/attendance-add-group.vue b/src/pages/attendance/attendance-add-group/attendance-add-group.vue
index af27917..30da208 100644
--- a/src/pages/attendance/attendance-add-group/attendance-add-group.vue
+++ b/src/pages/attendance/attendance-add-group/attendance-add-group.vue
@@ -55,7 +55,6 @@
showWay = false
}
"
- :onSure="() => {}"
noSure
>
@@ -63,7 +62,12 @@
{
+ wayIndex = index
+ showWay = false
+ }
+ "
v-for="(item, index) in wayList"
:key="index"
>
@@ -85,7 +89,7 @@
-
+
+
+
+
+
+
-
+
保存
@@ -169,6 +184,17 @@
desc: '选择后可开启外勤打卡'
}
]
+ const outsideRule = {
+ allow: false,
+ takePhoto: false,
+ remark: false,
+ selectPhoto: false
+ }
+ const goOtsideRule = () => {
+ uni.navigateTo({
+ url: '/pages/attendance/attendance-add-group/outside-rules'
+ })
+ }
diff --git a/src/typings.ts b/src/typings.ts
index b52c6dd..910d108 100644
--- a/src/typings.ts
+++ b/src/typings.ts
@@ -47,3 +47,9 @@ export enum PlatId {
miniProgram = 3,
pc = 4
}
+export type OutsideRules = {
+ allow: boolean
+ takePhoto: boolean
+ remark: boolean
+ selectPhoto: boolean
+}