fix: bug 打分控制
This commit is contained in:
@@ -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,
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user