fix: bug 打分控制

This commit is contained in:
wanganmao
2023-02-01 16:00:41 +08:00
parent 6d0764fcbb
commit 77976b88e5

View File

@@ -74,7 +74,7 @@
:max="max"
:min="min"
@blur="gradeBlur"
:disabled="true"
:disabled="!!template_type"
>
</ConfigGrade>
<ConfigBaseItem type="block">
@@ -145,6 +145,10 @@ export default defineComponent({
return store.state?.common?.activeQuestion?.title || "";
});
const template_type = computed(() => {
return store.state?.common?.questionInfo?.survey?.template_type;
});
const is_required = computed(
() => !!store.state?.common?.activeQuestion?.config?.is_required || 0
);
@@ -303,6 +307,7 @@ export default defineComponent({
styleCount: 5,
gradeBlur,
update,
template_type,
};
},
});