From 0c391f326aebfa9b38b1b745b01a07e5e8afe896 Mon Sep 17 00:00:00 2001 From: Jeffrey Hsu Date: Sat, 22 Mar 2025 18:34:20 +0800 Subject: [PATCH] fix --- .../components/assessment/AssessmentStage.vue | 40 +++--- src/renderer/src/views/panel/PanelIndex.vue | 120 +++++++++--------- 2 files changed, 80 insertions(+), 80 deletions(-) diff --git a/src/renderer/src/components/assessment/AssessmentStage.vue b/src/renderer/src/components/assessment/AssessmentStage.vue index 7363b6e..68ed2b2 100644 --- a/src/renderer/src/components/assessment/AssessmentStage.vue +++ b/src/renderer/src/components/assessment/AssessmentStage.vue @@ -29,11 +29,11 @@ type Parent = 'n' | 'p' | 'f' type MethodStatus = 'ok' | 'weight-fail' -const props = defineProps<{ - assessment: IAssessment - parent: Parent - title: string -}>() +// const props = defineProps<{ +// assessment: IAssessment +// parent: Parent +// title: string +// }>() const emits = defineEmits<{ (e: 'edit', parent: Parent): void @@ -58,11 +58,11 @@ const stage = ref<{ title: string; assessment: IAssessment }[]>([ } ]) -const isShowStageEditor = ref(false) -const isShowMethodEditor = ref(false) +// const isShowStageEditor = ref(false) +// const isShowMethodEditor = ref(false) -const tempAssessmentMethod = ref(AssessmentMethod.factoryToImpl()) -const tempStage = ref(AssessmentData.factoryToImpl()) +// const tempAssessmentMethod = ref(AssessmentMethod.factoryToImpl()) +// const tempStage = ref(AssessmentData.factoryToImpl()) const status = computed((): MethodStatus => { let total = 0 @@ -76,22 +76,22 @@ const status = computed((): MethodStatus => { return 'ok' }) -const addAssessmentMethodSubmit = computed( - () => !Object.values(tempAssessmentMethod.value).every((v) => v) -) +// const addAssessmentMethodSubmit = computed( +// () => !Object.values(tempAssessmentMethod.value).every((v) => v) +// ) -const checkAllStageWeightSum = computed(() => { - return normalStage.value.weight + processStage.value.weight + finalStage.value.weight === 100 -}) +// const checkAllStageWeightSum = computed(() => { +// return normalStage.value.weight + processStage.value.weight + finalStage.value.weight === 100 +// }) -const handleShow +// const handleShow - + --> diff --git a/src/renderer/src/views/panel/PanelIndex.vue b/src/renderer/src/views/panel/PanelIndex.vue index 129c459..c2ba9ba 100644 --- a/src/renderer/src/views/panel/PanelIndex.vue +++ b/src/renderer/src/views/panel/PanelIndex.vue @@ -19,9 +19,9 @@