af-mobile-client-vue3 1.2.59 → 1.3.2-2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +5 -34
- package/.env +1 -1
- package/.env.development +0 -3
- package/.env.production +1 -7
- package/CLAUDE.md +5 -0
- package/README.md +2 -1
- package/build/vite/index.ts +2 -12
- package/build/vite/optimize.ts +2 -2
- package/compress.js +36 -0
- package/package.json +37 -37
- package/postcss.config.ts +1 -1
- package/src/App.vue +4 -6
- package/src/assets/img/banner/appraise-banner-1.png +0 -0
- package/src/assets/img/banner/appraise-banner-2.png +0 -0
- package/src/components/core/BeautifulLoading/index.vue +1 -2
- package/src/components/core/ImageUploader/index.vue +3 -2
- package/src/components/core/NavBar/index.vue +24 -14
- package/src/components/core/Tabbar/index.vue +5 -3
- package/src/components/core/XGridDropOption/index.vue +7 -9
- package/src/components/core/XMultiSelect/index.vue +1 -1
- package/src/components/data/CardContainer/CardContainer.vue +118 -0
- package/src/components/data/CardContainer/CardHeader.vue +99 -0
- package/src/components/data/InfoDisplay/index.vue +132 -0
- package/src/components/data/UserDetail/api.ts +24 -0
- package/src/components/data/UserDetail/index.vue +620 -0
- package/src/components/data/UserDetail/recordEntries.ts +159 -0
- package/src/components/data/UserDetail/types.ts +26 -0
- package/src/components/data/XBadge/index.vue +2 -2
- package/src/components/data/XCellList/index.vue +76 -30
- package/src/components/data/XForm/index.vue +1 -1
- package/src/components/data/XFormGroup/doc/FormGroupDemo.vue +4 -4
- package/src/components/data/XFormGroup/doc/README.md +33 -20
- package/src/components/data/XFormGroup/index.vue +51 -35
- package/src/components/data/XFormItem/index.vue +13 -33
- package/src/components/data/XOlMap/README.md +61 -61
- package/src/components/data/XOlMap/XLocationPicker/index.vue +2 -1
- package/src/components/data/XReportForm/XReportFormJsonRender.vue +22 -22
- package/src/components/data/XReportForm/index.vue +23 -14
- package/src/components/data/XReportGrid/XAddReport/XAddReport.vue +1 -2
- package/src/components/data/XReportGrid/XAddReport/index.md +17 -16
- package/src/components/data/XReportGrid/XReport.vue +3 -3
- package/src/components/data/XReportGrid/XReportDesign.vue +13 -13
- package/src/components/data/XReportGrid/XReportDrawer/XReportDrawer.vue +1 -1
- package/src/components/data/XReportGrid/XReportJsonRender.vue +11 -11
- package/src/components/data/XReportGrid/XReportTrGroup.vue +3 -3
- package/src/components/data/XReportGrid/index.md +14 -10
- package/src/components/data/XSignature/index.vue +1 -2
- package/src/components/layout/NormalDataLayout/index.vue +2 -3
- package/src/config/routes.ts +6 -2
- package/src/constants/index.ts +2 -0
- package/src/font-style/font.css +1 -1
- package/src/hooks/useBoolean.ts +26 -0
- package/src/hooks/useLoading.ts +16 -0
- package/src/locales/en-US.json +52 -28
- package/src/locales/zh-CN.json +57 -33
- package/src/main.ts +0 -2
- package/src/plugins/collectIcons.ts +10 -0
- package/src/router/README.md +1 -1
- package/src/router/guards.ts +1 -1
- package/src/router/index.ts +1 -1
- package/src/router/routes.ts +176 -6
- package/src/router/types.ts +0 -2
- package/src/services/api/user.ts +17 -0
- package/src/stores/modules/setting.ts +2 -1
- package/src/styles/var.less +9 -0
- package/src/types/vue-router.d.ts +0 -2
- package/src/utils/mobileUtil.ts +2 -2
- package/src/utils/queryFormDefaultRangePicker.ts +57 -57
- package/src/utils/set-page-title.ts +3 -5
- package/src/views/common/LoadError.vue +1 -2
- package/src/views/common/NotFound.vue +2 -3
- package/src/views/component/IconifyView/index.vue +0 -3
- package/src/views/component/UserDetailView/UserDetailPage.vue +77 -0
- package/src/views/component/UserDetailView/index.vue +234 -0
- package/src/views/component/XCellListView/index.vue +24 -73
- package/src/views/component/XFormGroupView/index.vue +7 -11
- package/src/views/component/XFormView/index.vue +2 -2
- package/src/views/component/XOlMapView/testData.ts +1 -1
- package/src/views/component/index.vue +4 -0
- package/src/views/component/menu.vue +1 -1
- package/src/views/user/login/ForgetPasswordForm.vue +1 -1
- package/src/views/user/login/LoginForm.vue +4 -3
- package/src/views/user/login/LoginWave.vue +1 -1
- package/src/views/user/my/comm/ModifyPassword.vue +346 -0
- package/src/views/user/my/index.vue +440 -183
- package/src/views/user/register/index.vue +952 -0
- package/src/views/userRecords/AbnormalAlarmRecords.vue +21 -0
- package/src/views/userRecords/CardReplacementRecords.vue +21 -0
- package/src/views/userRecords/ChangeRecords.vue +19 -0
- package/src/views/userRecords/CommandViewRecords.vue +20 -0
- package/src/views/userRecords/GasCompensationRecords.vue +20 -0
- package/src/views/userRecords/InstrumentCollectionRecords.vue +21 -0
- package/src/views/userRecords/MeterRecords.vue +20 -0
- package/src/views/userRecords/OperateRecords.vue +51 -0
- package/src/views/userRecords/OtherChargeRecords.vue +19 -0
- package/src/views/userRecords/PaymentRecords.vue +28 -0
- package/src/views/userRecords/PriceAdjustmentRecords.vue +19 -0
- package/src/views/userRecords/ReplacementRecords.vue +19 -0
- package/src/views/userRecords/SafetyRecords.vue +19 -0
- package/src/views/userRecords/TransactionRecords.vue +21 -0
- package/src/views/userRecords/TransferRecords.vue +19 -0
- package/src/views/userRecords/operateRecordDetail/index.vue +316 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/AddUserDetail.vue +124 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/AdvanceDeliveryDetail.vue +88 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/AutoAccountsCancelDetail.vue +205 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/AutoAccountsDetail.vue +192 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/BankDkDetail.vue +192 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/BankPayDetail.vue +192 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/BlacklistDetail.vue +153 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/CancellationDetail.vue +101 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/CardMeterCenterCancelDetail.vue +127 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/CardMeterCenterDetail.vue +153 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/CardOverUserDetail.vue +153 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/ChangeMeterCancelDetail.vue +166 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/ChangeMeterDetail.vue +205 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/DisableManageDetail.vue +127 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/EnableManageDetail.vue +114 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/FaZheChangeDetail.vue +124 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/FeeDeductionDetail.vue +153 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/GasPriceChangeDetail.vue +126 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/InputtorChangeDetail.vue +126 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/IotMeterCenterCancelDetail.vue +114 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/IotMeterCenterDetail.vue +127 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/IotOpenDetail.vue +88 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/MachineCardDetail.vue +101 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/MachineMeterCenterCancelDetail.vue +218 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/MachineMeterCenterDetail.vue +153 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/OffGasAddGasDetail.vue +140 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/OtherChargeCancelDetail.vue +127 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/OtherChargeDetail.vue +114 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/OverUserChangeDetail.vue +127 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/ReBillDetail.vue +127 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/RefundDetail.vue +114 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/ReplaceCardManageCancelDetail.vue +127 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/ReplaceCardManageDetail.vue +114 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/SaleCardGasDetail.vue +140 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/TransferManageCancelDetail.vue +152 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/TransferManageDetail.vue +178 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/UserChangeDetail.vue +123 -0
- package/src/views/userRecords/operateRecordDetail/operateRecordDetails/WechatPayDetail.vue +192 -0
- package/src/views/userRecords/types.ts +66 -0
- package/tsconfig.json +5 -8
- package/uno.config.ts +36 -1
- package/vite.config.ts +10 -3
- package/.env.envoiceShow +0 -7
- package/src/components/core/App/MicroAppView.vue +0 -59
- package/src/components/core/SvgIcon/index.vue +0 -61
- package/src/utils/local-storage.ts +0 -9
- package/src/views/component/XFormGroupView/xformgroup222.vue +0 -97
|
@@ -1,232 +1,489 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type { PhoneLocationStatus } from '@af-mobile-client-vue3/components/data/XOlMap/types'
|
|
3
|
+
import useSettingStore from '@af-mobile-client-vue3/stores/modules/setting'
|
|
2
4
|
import useUserStore from '@af-mobile-client-vue3/stores/modules/user'
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from 'vant/es'
|
|
5
|
+
import { mobileUtil } from '@af-mobile-client-vue3/utils/mobileUtil'
|
|
6
|
+
import { Dialog as vanDialog, Icon as vanIcon } from 'vant'
|
|
7
|
+
import { computed, onMounted, onUnmounted, ref } from 'vue'
|
|
8
|
+
import { useRouter } from 'vue-router'
|
|
9
|
+
import ModifyPassword from './comm/ModifyPassword.vue'
|
|
9
10
|
|
|
11
|
+
const router = useRouter()
|
|
10
12
|
const username = useUserStore().getUserInfo().name
|
|
11
|
-
const fullnames = useUserStore().getLogin().f.resources.
|
|
13
|
+
const fullnames = useUserStore().getLogin().f.resources.fullnames
|
|
14
|
+
const roleName = useUserStore().getLogin().f.resources.f_role_name
|
|
12
15
|
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
// 修改密码弹窗显示状态
|
|
17
|
+
const showModifyPassword = ref(false)
|
|
18
|
+
// 退出登录确认弹窗显示状态
|
|
19
|
+
const showLogoutConfirm = ref(false)
|
|
20
|
+
// 在setup函数中
|
|
21
|
+
let intervalId = null
|
|
22
|
+
|
|
23
|
+
// 定义一个变量来存储上一次的上传结果
|
|
24
|
+
const lastUploadResult = ref(null)
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* 上次上传结果类型定义
|
|
28
|
+
*/
|
|
29
|
+
interface LocationInfo {
|
|
30
|
+
uploadTime: string
|
|
31
|
+
f_realtime: string
|
|
32
|
+
f_latitude: number
|
|
33
|
+
f_longitude: number
|
|
34
|
+
f_address?: string
|
|
35
|
+
f_speed?: number
|
|
36
|
+
f_bearing?: number
|
|
37
|
+
f_altitude?: number
|
|
38
|
+
isError: boolean
|
|
39
|
+
errorCode?: string
|
|
40
|
+
// ... 其他字段
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface UploadResult {
|
|
44
|
+
uploadTime: string
|
|
45
|
+
location: LocationInfo
|
|
46
|
+
response: {
|
|
47
|
+
code: number
|
|
48
|
+
msg?: string
|
|
49
|
+
[key: string]: any
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// 兼容 lastUploadResult 可能为字符串或对象
|
|
54
|
+
const lastUploadResultObj = computed<UploadResult | null>(() => {
|
|
55
|
+
if (!lastUploadResult.value)
|
|
56
|
+
return null
|
|
57
|
+
if (typeof lastUploadResult.value === 'string') {
|
|
58
|
+
try {
|
|
59
|
+
return JSON.parse(lastUploadResult.value)
|
|
60
|
+
}
|
|
61
|
+
catch {
|
|
62
|
+
return null
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return lastUploadResult.value
|
|
66
|
+
})
|
|
67
|
+
|
|
68
|
+
const uploadDisplayInfo = computed(() => {
|
|
69
|
+
const result = lastUploadResultObj.value
|
|
70
|
+
if (!result)
|
|
71
|
+
return { error: null, info: null }
|
|
72
|
+
// response.code 不为 200
|
|
73
|
+
if (result.response && result.response.code !== 200) {
|
|
74
|
+
return { error: result.response.msg || '未知错误', info: null }
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// location.errorCode 存在且 isError 为 true
|
|
78
|
+
if (result.location && result.location.isError && result.location.errorCode) {
|
|
79
|
+
return { error: result.location.errorCode, info: null }
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// 正常展示
|
|
83
|
+
if (result.location) {
|
|
84
|
+
return {
|
|
85
|
+
error: null,
|
|
86
|
+
info: {
|
|
87
|
+
uploadTime: result.uploadTime,
|
|
88
|
+
latitude: result.location.f_latitude,
|
|
89
|
+
longitude: result.location.f_longitude,
|
|
90
|
+
},
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return { error: null, info: null }
|
|
95
|
+
})
|
|
96
|
+
|
|
97
|
+
const uploadStatusTag = computed(() => {
|
|
98
|
+
const result = uploadDisplayInfo.value
|
|
99
|
+
if (result.error) {
|
|
100
|
+
return { text: '上传定位失败', color: 'red' }
|
|
101
|
+
}
|
|
102
|
+
if (result.info) {
|
|
103
|
+
return { text: '正在上传定位', color: 'green' }
|
|
104
|
+
}
|
|
105
|
+
return null
|
|
106
|
+
})
|
|
107
|
+
|
|
108
|
+
onMounted(() => {
|
|
109
|
+
if (roleName.includes('需要定位人员')) {
|
|
110
|
+
// 立即执行一次
|
|
111
|
+
mobileUtil.execute({
|
|
112
|
+
param: {},
|
|
113
|
+
funcName: 'getLastRealtimeUploadResult',
|
|
114
|
+
callbackFunc: (result: PhoneLocationStatus) => {
|
|
115
|
+
if (result.status === 'success') {
|
|
116
|
+
lastUploadResult.value = result.data
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
})
|
|
120
|
+
|
|
121
|
+
// 设置每5秒执行一次的定时器
|
|
122
|
+
intervalId = setInterval(() => {
|
|
123
|
+
mobileUtil.execute({
|
|
124
|
+
param: {},
|
|
125
|
+
funcName: 'getLastRealtimeUploadResult',
|
|
126
|
+
callbackFunc: (result: PhoneLocationStatus) => {
|
|
127
|
+
if (result.status === 'success') {
|
|
128
|
+
lastUploadResult.value = result.data
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
})
|
|
132
|
+
}, 5000) // 5000毫秒 = 5秒
|
|
133
|
+
}
|
|
134
|
+
})
|
|
135
|
+
|
|
136
|
+
onUnmounted(() => {
|
|
137
|
+
// 组件卸载时清除定时器
|
|
138
|
+
if (intervalId) {
|
|
139
|
+
clearInterval(intervalId)
|
|
140
|
+
intervalId = null
|
|
141
|
+
}
|
|
142
|
+
})
|
|
143
|
+
function exit_login() {
|
|
144
|
+
showLogoutConfirm.value = true
|
|
15
145
|
}
|
|
146
|
+
|
|
147
|
+
function confirmLogout() {
|
|
148
|
+
useUserStore().logout()
|
|
149
|
+
showLogoutConfirm.value = false
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
function cancelLogout() {
|
|
153
|
+
showLogoutConfirm.value = false
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
function goToAttendance() {
|
|
157
|
+
router.push('/user/attendance')
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
function openModifyPassword() {
|
|
161
|
+
showModifyPassword.value = true
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
const webMobileConfig = useSettingStore().getSetting()
|
|
16
165
|
</script>
|
|
17
166
|
|
|
18
167
|
<template>
|
|
19
|
-
<main class="my_main
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<
|
|
168
|
+
<main class="my_main">
|
|
169
|
+
<!-- 顶部导航栏 -->
|
|
170
|
+
<nav class="header_nav">
|
|
171
|
+
<div class="header_content">
|
|
172
|
+
<h1 class="main_title">
|
|
173
|
+
我的
|
|
174
|
+
</h1>
|
|
175
|
+
<!-- <div class="setting_section"> -->
|
|
176
|
+
<!-- <van-icon name="setting-o" class="setting-icon" /> -->
|
|
177
|
+
<!-- </div> -->
|
|
24
178
|
</div>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
</div>
|
|
29
|
-
<div class="user_content">
|
|
30
|
-
<VanRow :gutter="18">
|
|
31
|
-
<VanCol>
|
|
32
|
-
<img alt="default-user-profile" class="default_user_profile" src="../../../assets/common/default-user-profile.png">
|
|
33
|
-
</VanCol>
|
|
34
|
-
<VanCol class="user_info_col">
|
|
35
|
-
<p class="user_nickname">
|
|
36
|
-
{{ username }}
|
|
37
|
-
</p>
|
|
38
|
-
<p class="user_remark">
|
|
39
|
-
{{ fullnames }}
|
|
40
|
-
</p>
|
|
41
|
-
</VanCol>
|
|
42
|
-
</VanRow>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
179
|
+
</nav>
|
|
180
|
+
|
|
181
|
+
<!-- 主要内容区域 -->
|
|
46
182
|
<div class="content">
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
183
|
+
<!-- 用户信息卡片 -->
|
|
184
|
+
<div class="user-card">
|
|
185
|
+
<div class="user-info">
|
|
186
|
+
<div class="avatar-wrap">
|
|
187
|
+
<img alt="default-user-profile" class="avatar" src="../../../assets/common/default-user-profile.png">
|
|
188
|
+
<div class="status-dot" />
|
|
189
|
+
</div>
|
|
190
|
+
<div class="user-detail">
|
|
191
|
+
<h2 class="username">
|
|
192
|
+
{{ username }}
|
|
193
|
+
<span
|
|
194
|
+
v-if="uploadStatusTag"
|
|
195
|
+
class="upload-status-tag" :class="[uploadStatusTag.color]"
|
|
196
|
+
>
|
|
197
|
+
{{ uploadStatusTag.text }}
|
|
198
|
+
</span>
|
|
199
|
+
</h2>
|
|
200
|
+
<p class="user-role">
|
|
201
|
+
{{ fullnames }}
|
|
52
202
|
</p>
|
|
53
|
-
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
</div>
|
|
206
|
+
|
|
207
|
+
<!-- 工作统计 -->
|
|
208
|
+
<div class="stats-card">
|
|
209
|
+
<div class="stats-grid">
|
|
210
|
+
<div class="stat-item">
|
|
211
|
+
<div class="stat-value">
|
|
212
|
+
0
|
|
213
|
+
</div>
|
|
214
|
+
<div class="stat-label">
|
|
54
215
|
待办任务
|
|
55
|
-
</
|
|
56
|
-
</
|
|
57
|
-
<
|
|
58
|
-
<
|
|
59
|
-
|
|
60
|
-
</
|
|
61
|
-
<
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
<div class="stat-item">
|
|
219
|
+
<div class="stat-value">
|
|
220
|
+
0
|
|
221
|
+
</div>
|
|
222
|
+
<div class="stat-label">
|
|
62
223
|
待办流程
|
|
63
|
-
</
|
|
64
|
-
</
|
|
65
|
-
<
|
|
66
|
-
<
|
|
67
|
-
|
|
68
|
-
</
|
|
69
|
-
<
|
|
224
|
+
</div>
|
|
225
|
+
</div>
|
|
226
|
+
<div class="stat-item">
|
|
227
|
+
<div class="stat-value">
|
|
228
|
+
0
|
|
229
|
+
</div>
|
|
230
|
+
<div class="stat-label">
|
|
70
231
|
新消息
|
|
71
|
-
</
|
|
72
|
-
</
|
|
73
|
-
</
|
|
232
|
+
</div>
|
|
233
|
+
</div>
|
|
234
|
+
</div>
|
|
74
235
|
</div>
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
236
|
+
|
|
237
|
+
<!-- 功能列表 -->
|
|
238
|
+
<div class="menu-card">
|
|
239
|
+
<div class="menu-section">
|
|
240
|
+
<h3 class="menu-title">
|
|
241
|
+
系统功能
|
|
242
|
+
</h3>
|
|
243
|
+
<div class="menu-list">
|
|
244
|
+
<div v-if="webMobileConfig?.isAttendance" class="menu-item" @click="goToAttendance">
|
|
245
|
+
<div class="menu-item-content">
|
|
246
|
+
<van-icon name="user-o" class="menu-icon" />
|
|
247
|
+
<span class="menu-text">考勤管理</span>
|
|
248
|
+
</div>
|
|
249
|
+
<van-icon name="arrow" class="menu-arrow" />
|
|
250
|
+
</div>
|
|
251
|
+
<div class="menu-item" @click="openModifyPassword">
|
|
252
|
+
<div class="menu-item-content">
|
|
253
|
+
<van-icon name="lock" class="menu-icon" />
|
|
254
|
+
<span class="menu-text">修改密码</span>
|
|
255
|
+
</div>
|
|
256
|
+
<van-icon name="arrow" class="menu-arrow" />
|
|
257
|
+
</div>
|
|
258
|
+
<div class="menu-item" @click="exit_login">
|
|
259
|
+
<div class="menu-item-content">
|
|
260
|
+
<van-icon name="sign" class="menu-icon logout-icon" />
|
|
261
|
+
<span class="menu-text">退出登录</span>
|
|
262
|
+
</div>
|
|
263
|
+
<van-icon name="arrow" class="menu-arrow" />
|
|
264
|
+
</div>
|
|
265
|
+
</div>
|
|
266
|
+
</div>
|
|
93
267
|
</div>
|
|
94
268
|
</div>
|
|
269
|
+
|
|
270
|
+
<!-- 修改密码弹窗 -->
|
|
271
|
+
<ModifyPassword
|
|
272
|
+
v-model:visible="showModifyPassword"
|
|
273
|
+
/>
|
|
274
|
+
|
|
275
|
+
<!-- 退出登录确认弹窗 -->
|
|
276
|
+
<van-dialog
|
|
277
|
+
v-model:show="showLogoutConfirm"
|
|
278
|
+
title="确认退出"
|
|
279
|
+
message="确定要退出登录吗?"
|
|
280
|
+
show-cancel-button
|
|
281
|
+
confirm-button-text="确认退出"
|
|
282
|
+
cancel-button-text="取消"
|
|
283
|
+
@confirm="confirmLogout"
|
|
284
|
+
@cancel="cancelLogout"
|
|
285
|
+
/>
|
|
95
286
|
</main>
|
|
96
287
|
</template>
|
|
97
288
|
|
|
98
289
|
<style scoped lang="less">
|
|
99
290
|
.my_main {
|
|
100
|
-
|
|
291
|
+
min-height: 100vh;
|
|
292
|
+
background-color: #f7f8fa;
|
|
293
|
+
|
|
294
|
+
// 顶部导航栏
|
|
295
|
+
.header_nav {
|
|
296
|
+
background-color: #fff;
|
|
297
|
+
padding: 0 16px;
|
|
298
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
101
299
|
position: relative;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
.
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
left: -50px;
|
|
116
|
-
z-index: 3;
|
|
117
|
-
}
|
|
118
|
-
.circle2 {
|
|
119
|
-
background-color: #3c75f9;
|
|
120
|
-
width: 300px;
|
|
121
|
-
height: 300px;
|
|
122
|
-
top: -80px;
|
|
123
|
-
left: 10px;
|
|
124
|
-
z-index: 2;
|
|
300
|
+
z-index: 50;
|
|
301
|
+
|
|
302
|
+
.header_content {
|
|
303
|
+
display: flex;
|
|
304
|
+
justify-content: space-between;
|
|
305
|
+
align-items: center;
|
|
306
|
+
height: 56px;
|
|
307
|
+
|
|
308
|
+
.main_title {
|
|
309
|
+
font-size: 1.25rem;
|
|
310
|
+
font-weight: 600;
|
|
311
|
+
color: #333;
|
|
312
|
+
margin: 0;
|
|
125
313
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
font-size: 26px;
|
|
135
|
-
text-align: right;
|
|
136
|
-
.user_setting_icon {
|
|
137
|
-
width: 26px;
|
|
138
|
-
height: 26px;
|
|
314
|
+
|
|
315
|
+
.setting_section {
|
|
316
|
+
padding: 8px;
|
|
317
|
+
cursor: pointer;
|
|
318
|
+
|
|
319
|
+
.setting-icon {
|
|
320
|
+
font-size: 20px;
|
|
321
|
+
color: #666;
|
|
139
322
|
}
|
|
140
323
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.content {
|
|
328
|
+
padding: 16px;
|
|
329
|
+
|
|
330
|
+
// 用户信息卡片
|
|
331
|
+
.user-card {
|
|
332
|
+
background-color: #fff;
|
|
333
|
+
border-radius: 8px;
|
|
334
|
+
padding: 16px;
|
|
335
|
+
margin-bottom: 16px;
|
|
336
|
+
|
|
337
|
+
.user-info {
|
|
338
|
+
display: flex;
|
|
339
|
+
align-items: center;
|
|
340
|
+
|
|
341
|
+
.avatar-wrap {
|
|
342
|
+
position: relative;
|
|
343
|
+
margin-right: 16px;
|
|
344
|
+
|
|
345
|
+
.avatar {
|
|
346
|
+
width: 80px;
|
|
347
|
+
height: 80px;
|
|
348
|
+
border-radius: 50%;
|
|
349
|
+
object-fit: cover;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.status-dot {
|
|
353
|
+
position: absolute;
|
|
354
|
+
bottom: 2px;
|
|
355
|
+
right: 2px;
|
|
356
|
+
width: 16px;
|
|
357
|
+
height: 16px;
|
|
358
|
+
border-radius: 50%;
|
|
359
|
+
background-color: #10b981;
|
|
360
|
+
border: 2px solid #fff;
|
|
361
|
+
}
|
|
153
362
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
363
|
+
|
|
364
|
+
.user-detail {
|
|
365
|
+
.username {
|
|
366
|
+
font-size: 20px;
|
|
367
|
+
font-weight: 600;
|
|
368
|
+
color: #333;
|
|
369
|
+
margin: 0 0 4px 0;
|
|
370
|
+
}
|
|
371
|
+
.upload-status-tag {
|
|
372
|
+
display: inline-block;
|
|
373
|
+
margin-left: 8px;
|
|
374
|
+
padding: 2px 8px;
|
|
375
|
+
border-radius: 8px;
|
|
376
|
+
font-size: 12px;
|
|
377
|
+
font-weight: 400;
|
|
378
|
+
background: #f0f0f0;
|
|
379
|
+
&.green {
|
|
380
|
+
color: #10b981;
|
|
381
|
+
background: #e6f9f0;
|
|
382
|
+
border: 1px solid #10b981;
|
|
166
383
|
}
|
|
167
|
-
|
|
168
|
-
|
|
384
|
+
&.red {
|
|
385
|
+
color: #ef4444;
|
|
386
|
+
background: #fdeaea;
|
|
387
|
+
border: 1px solid #ef4444;
|
|
169
388
|
}
|
|
170
389
|
}
|
|
390
|
+
|
|
391
|
+
.user-role {
|
|
392
|
+
font-size: 14px;
|
|
393
|
+
color: #666;
|
|
394
|
+
margin: 0;
|
|
395
|
+
}
|
|
171
396
|
}
|
|
172
397
|
}
|
|
173
398
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
.core {
|
|
178
|
-
position: relative;
|
|
179
|
-
bottom: 50px;
|
|
180
|
-
padding: 16px 0;
|
|
399
|
+
|
|
400
|
+
// 工作统计卡片
|
|
401
|
+
.stats-card {
|
|
181
402
|
background-color: #fff;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
403
|
+
border-radius: 8px;
|
|
404
|
+
padding: 16px;
|
|
405
|
+
margin-bottom: 16px;
|
|
406
|
+
|
|
407
|
+
.stats-grid {
|
|
408
|
+
display: grid;
|
|
409
|
+
grid-template-columns: repeat(3, 1fr);
|
|
410
|
+
gap: 16px;
|
|
189
411
|
text-align: center;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
font-weight: bold;
|
|
412
|
+
|
|
413
|
+
.stat-item {
|
|
414
|
+
.stat-value {
|
|
415
|
+
font-size: 24px;
|
|
416
|
+
font-weight: 600;
|
|
417
|
+
color: #3b82f6;
|
|
418
|
+
margin-bottom: 4px;
|
|
198
419
|
}
|
|
199
|
-
|
|
420
|
+
|
|
421
|
+
.stat-label {
|
|
200
422
|
font-size: 14px;
|
|
201
|
-
color: #
|
|
423
|
+
color: #666;
|
|
202
424
|
}
|
|
203
425
|
}
|
|
204
426
|
}
|
|
205
427
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
428
|
+
|
|
429
|
+
// 功能列表卡片
|
|
430
|
+
.menu-card {
|
|
431
|
+
background-color: #fff;
|
|
432
|
+
border-radius: 8px;
|
|
433
|
+
overflow: hidden;
|
|
434
|
+
|
|
435
|
+
.menu-section {
|
|
436
|
+
padding: 16px;
|
|
437
|
+
|
|
438
|
+
.menu-title {
|
|
439
|
+
font-size: 14px;
|
|
440
|
+
font-weight: 500;
|
|
441
|
+
color: #666;
|
|
442
|
+
margin-bottom: 12px;
|
|
213
443
|
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
.
|
|
217
|
-
|
|
218
|
-
|
|
444
|
+
|
|
445
|
+
.menu-list {
|
|
446
|
+
.menu-item {
|
|
447
|
+
display: flex;
|
|
448
|
+
align-items: center;
|
|
449
|
+
justify-content: space-between;
|
|
450
|
+
padding: 12px;
|
|
451
|
+
background-color: #f7f8fa;
|
|
452
|
+
border-radius: 8px;
|
|
453
|
+
margin-bottom: 8px;
|
|
454
|
+
cursor: pointer;
|
|
455
|
+
|
|
456
|
+
&:last-child {
|
|
457
|
+
margin-bottom: 0;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.menu-item-content {
|
|
461
|
+
display: flex;
|
|
462
|
+
align-items: center;
|
|
463
|
+
gap: 12px;
|
|
464
|
+
|
|
465
|
+
.menu-icon {
|
|
466
|
+
font-size: 24px;
|
|
467
|
+
color: #3b82f6;
|
|
468
|
+
|
|
469
|
+
&.logout-icon {
|
|
470
|
+
color: #ef4444;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.menu-text {
|
|
475
|
+
font-size: 16px;
|
|
476
|
+
color: #333;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.menu-arrow {
|
|
481
|
+
color: #999;
|
|
482
|
+
font-size: 16px;
|
|
483
|
+
}
|
|
219
484
|
}
|
|
220
485
|
}
|
|
221
486
|
}
|
|
222
|
-
.van-cell {
|
|
223
|
-
align-items: center;
|
|
224
|
-
.setting_arrow_icon {
|
|
225
|
-
width: 12px;
|
|
226
|
-
height: 12px;
|
|
227
|
-
vertical-align: middle;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
487
|
}
|
|
231
488
|
}
|
|
232
489
|
}
|