更新密码找回uniapp

This commit is contained in:
hero920103 committed 2026-11-16 17:22:50 +08:00
1 parent 7f9a66da0f
commit 3fdda89833
1304 files changed
+3503 -26132

No files matched your search

-1
View File
@@ -191,7 +191,6 @@ function openEdit() {
})
}
// 撤销提交:退回草稿并留存修改痕迹,改完需重新提交
function handleWithdraw() {
uni.showModal({
title: '撤销提交',
-4
View File
@@ -128,7 +128,6 @@ async function loadProfile() {
const data = await fetchDailyReportProfile()
if (data) profile.value = { ...profile.value, ...data }
} catch (e) {
// 窗口信息失败时仍允许按今日编辑
}
}
@@ -147,7 +146,6 @@ async function loadDetail(id) {
function applyDetail(data) {
const report = data?.report
if (!report) return
// 已提交的日报已锁定:不进入编辑,引导到详情中撤销提交
if (report.status === 1) {
uni.showModal({
title: '日报已提交',
@@ -169,7 +167,6 @@ function applyDetail(data) {
: []
}
/** 按日期查找已有日报;载入后可直接编辑 */
async function loadByDate(date, notify = true) {
const data = await fetchMyDailyReports({ page: 1, pageSize: 1, startDate: date, endDate: date })
const item = data?.list?.[0]
@@ -255,7 +252,6 @@ async function chooseImages() {
size: files[i]?.size || 0
})
} catch (e) {
// 上传失败已提示,继续处理其余文件
}
}
uploading.value = false
-11
View File
@@ -30,7 +30,6 @@
</view>
</view>
<!-- ==================== 我的日报 ==================== -->
<view v-if="activeTab === 'mine'" class="content">
<view class="summary-row">
<view class="summary-item">
@@ -160,7 +159,6 @@
</view>
</view>
<!-- ==================== 团队日报 ==================== -->
<view v-else class="content">
<view class="team-filter">
<picker mode="date" :value="teamDate" :end="today" @change="onTeamDateChange">
@@ -268,7 +266,6 @@ const mineList = ref([])
const minePage = ref(1)
const hasMore = ref(false)
// 近期热力图(近三个月)
const calendarDays = ref([])
const calendarRange = ref({ start: '', end: '' })
const calendarTotal = ref(0)
@@ -303,7 +300,6 @@ const todayStatusClass = computed(() => {
const calendarMap = computed(() => {
const map = new Map()
calendarDays.value.forEach((day) => {
// 后端 DATE 字段可能带出时间,统一截到 YYYY-MM-DD 再建索引
const key = String(day?.date || '').slice(0, 10)
if (key) map.set(key, day)
})
@@ -315,7 +311,6 @@ const calendarRangeText = computed(() => {
return start && end ? `${start} 至 ${end}` : ''
})
// 按区间生成热力图:每列一周(周一在上、周日在下),月内补空格,每月固定 6 周
const calendarMonths = computed(() => {
const map = calendarMap.value
const { start, end } = calendarRange.value
@@ -373,7 +368,6 @@ async function loadCalendar() {
calendarTotal.value = data?.total || 0
calendarSubmitted.value = data?.submitted || 0
} catch (e) {
// 热力图加载失败不阻断列表展示
}
}
@@ -391,8 +385,6 @@ function cellClass(cell) {
return cell.isFuture ? 'is-future' : 'is-none'
}
// 补写窗口内、往日尚未写日报的日期标注「补」,点击直接进入补写
// 今天属于正常填写,未写时不标「补」
function cellBackfill(cell) {
if (!cell || cell.isFuture || cell.record) return false
if (cell.date === today) return false
@@ -497,7 +489,6 @@ function openBackfill() {
function writeToday() {
const id = summary.value.today_report_id
if (id) {
// 已提交的日报已锁定,直接进详情,可在详情中撤销提交
if (summary.value.today_status === 1) {
uni.showToast({ title: '今日日报已提交并锁定,可先在详情中撤销提交', icon: 'none' })
openDetail(id)
@@ -518,13 +509,11 @@ function previewText(item) {
return text || '暂无内容'
}
// ---------------- 团队 ----------------
async function loadTeamOrgs() {
try {
const data = await fetchTeamDailyReportOrgs()
orgOptions.value = data?.list || []
} catch (e) {
// 部门列表失败不阻断团队汇总主流程
}
}