feat 授权激活

This commit is contained in:
Ironsp
2026-09-24 11:17:39 +08:00
parent 4ff3e92049
commit 5ab82d4571
12 changed files with 406 additions and 23 deletions

View File

@@ -1,11 +1,13 @@
<script setup lang="ts">
import { computed, onMounted } from 'vue'
import { useCurrentProject } from '@/composables/useCurrentProject'
import { useDeviceAuth } from '@/composables/useDeviceAuth'
import { calcUncompactedArea } from '@/service/project'
import { useDbStore } from '@/store/modules/db'
const db = useDbStore()
const { hasCurrentProject, currentProjectId } = useCurrentProject()
const { isActivated } = useDeviceAuth()
const currentProject = computed(() => {
if (!hasCurrentProject.value || currentProjectId.value == null)
@@ -92,12 +94,13 @@ onMounted(async () => {
<text class="card-title">
项目作业进度
</text>
<text class="card-sub">
<text v-if="isActivated" class="card-sub">
{{ currentProject?.stake_range || currentProject?.project_name || '暂无施工段' }}
</text>
</view>
<view class="card-body">
<view class="progress-content">
<unauthorized v-if="!isActivated" />
<view v-else class="progress-content">
<view class="progress-circle">
<wd-circle :model-value="progressPercent ?? 0" :size="120">
<view class="progress-circle-text">