变更申请表板块修改

This commit is contained in:
2026-09-01 17:30:13 +08:00
parent 378829da21
commit 09dbd8ba2d
2 changed files with 121 additions and 96 deletions
+13 -19
View File
@@ -62,25 +62,19 @@ const progressPct = (p: string) => {
</div>
<div class="space-y-2 scroll">
<div v-for="d in drafts" :key="d.id" class="rounded-lg border px-4 py-3">
<div class="flex flex-wrap items-start gap-3">
<div class="min-w-0 flex-1">
<div class="text-sm font-semibold text-slate-800 dark:text-white">{{ d.name }}</div>
<div class="mt-1 flex flex-wrap items-center gap-2 text-[11px] text-slate-400">
<span class="font-mono">{{ d.id }}</span>
<span>保存于 {{ d.time }}</span>
<NTag type="primary" size="small" class="text-11px">{{ d.step }}</NTag>
</div>
<div class="mt-2 flex items-center gap-2">
<div class="h-1.5 w-40 overflow-hidden rounded-full bg-slate-100">
<div class="h-full rounded-full bg-[#6E93C6]" :style="{ width: progressPct(d.progress) + '%' }" />
</div>
<span class="text-[11px] text-slate-400">编辑进度 {{ d.progress }}</span>
</div>
</div>
<div class="flex shrink-0 items-center gap-2 pt-2px">
<NButton class="text-xs" text type="error" @click="remove(d)">删除</NButton>
<NButton class="text-xs" text type="primary" @click="continueEdit(d)">继续编辑</NButton>
</div>
<div class="flex flex-wrap items-center gap-3">
<div class="min-w-0 flex-1">
<div class="text-sm font-semibold text-slate-800 dark:text-white">{{ d.name }}</div>
<div class="mt-1 flex flex-wrap items-center gap-2 text-[11px] text-slate-400">
<span class="font-mono">{{ d.id }}</span>
<span>保存于 {{ d.time }}</span>
<NTag type="primary" size="small" class="text-11px">{{ d.step }}</NTag>
</div>
</div>
<div class="flex shrink-0 items-center gap-2 pt-2px">
<NButton class="text-xs" text type="error" @click="remove(d)">删除</NButton>
<NButton class="text-xs" text type="primary" @click="continueEdit(d)">继续编辑</NButton>
</div>
</div>
</div>
<div v-if="drafts.length === 0" class="rounded-lg border border-dashed bg-white py-12 text-center">