提交格式验证修改

This commit is contained in:
2026-08-13 13:34:14 +08:00
parent 3e5157909c
commit 181b8902e1
27 changed files with 220 additions and 579 deletions
+2 -3
View File
@@ -1,8 +1,7 @@
<script setup lang="ts">
import type { ChangeStatus } from "../demo/model";
const props = defineProps<{ status: ChangeStatus }>();
const props = defineProps<{ status: any }>();
const BIG_STAGES = ["申请审批", "实施与关闭", "变更关闭"];
const bigStageOf = (s: ChangeStatus) => (s === "审批中" ? 0 : s === "已关闭" ? 2 : 1);
const bigStageOf = (s: any) => (s === "审批中" ? 0 : s === "已关闭" ? 2 : 1);
const cur = bigStageOf(props.status);
const pct = ((cur + 1) / BIG_STAGES.length) * 100;
const size = 34, stroke = 4, r = (size - stroke) / 2, c = 2 * Math.PI * r;