feat 授权激活
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user