|
@@ -23,7 +23,7 @@
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
<template #footer>
|
|
<template #footer>
|
|
- <el-button type="primary" class="full-w m-t-base" @click="onSubmit">确定</el-button>
|
|
|
|
|
|
+ <el-button type="primary" class="full-w m-t-base" :disabled="!allowSubmit" @click="onSubmit">确定</el-button>
|
|
</template>
|
|
</template>
|
|
</scoring-panel-container>
|
|
</scoring-panel-container>
|
|
</template>
|
|
</template>
|
|
@@ -116,6 +116,10 @@ const questionList = computed(() => {
|
|
return questionList.map((q) => ({ ...q, mainNumber, mainTitle }))
|
|
return questionList.map((q) => ({ ...q, mainNumber, mainTitle }))
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+const allowSubmit = computed(() => {
|
|
|
|
+ return scoreValues.value?.length === questionList.value?.length
|
|
|
|
+})
|
|
|
|
+
|
|
const onSubmit = () => {
|
|
const onSubmit = () => {
|
|
emits('submit', questionStruct.value)
|
|
emits('submit', questionStruct.value)
|
|
}
|
|
}
|