Merge branch 'feature-creative-center' into sit
src/views/planetDesign/Design/questions/choice/ChoiceConfig.vue
This commit is contained in:
@@ -176,6 +176,7 @@
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
<div v-else class="config-item-last"></div>
|
||||
<a-modal
|
||||
v-model:visible="glbViewer.visible"
|
||||
title="商品截图"
|
||||
|
||||
@@ -6,6 +6,9 @@ export const QUESTION_TYPE = {
|
||||
// 多选
|
||||
CHOICE_MULT: 2,
|
||||
|
||||
// 输入
|
||||
INPUT_MULT: 4,
|
||||
|
||||
// 图文说明
|
||||
IMG_TEXT_EXPLAIN: 6,
|
||||
|
||||
|
||||
@@ -69,12 +69,6 @@
|
||||
:disable="disableUpdateBtn"
|
||||
@update:checked="update('is_required', $event)"
|
||||
/>
|
||||
<ConfigRequire
|
||||
title="选项随机"
|
||||
:checked="copyConfig.config.select_random"
|
||||
:disable="disableUpdateBtn"
|
||||
@update:checked="update('select_random', $event)"
|
||||
/>
|
||||
<ConfigBaseItem class="block">
|
||||
<div class="title" :class="{ 'disable-btn': disableUpdateBtn }">
|
||||
选择题型
|
||||
@@ -129,6 +123,12 @@
|
||||
</ConfigBaseItem>
|
||||
<!-- 3D 相关配置 -->
|
||||
<Config3D :key="copyConfig.question_index&©Config.question_type" v-model:config="copyConfig.config" @changeConfig="() => updateConfig(copyConfig)" :questionType="copyConfig.question_type" :question="copyConfig"/>
|
||||
|
||||
<ConfigRequire
|
||||
title="选项随机"
|
||||
:checked="copyConfig.config.select_random"
|
||||
@update:checked="update('select_random', $event)"
|
||||
/>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -88,6 +88,9 @@
|
||||
@update:value="update('text_type', $event)"
|
||||
/>
|
||||
|
||||
<!-- 3D 相关配置 -->
|
||||
<Config3D :key="copyConfig.question_index" v-model:config="copyConfig.config" @changeConfig="() => updateConfig(copyConfig)" :questionType="copyConfig.question_type"/>
|
||||
|
||||
<ConfigTextCount
|
||||
v-if="![5, 6, 7].includes(text_type)"
|
||||
:min="min"
|
||||
@@ -177,8 +180,6 @@
|
||||
/>
|
||||
</template>
|
||||
|
||||
<!-- 3D 相关配置 -->
|
||||
<Config3D :key="copyConfig.question_index" v-model:config="copyConfig.config" @changeConfig="() => updateConfig(copyConfig)" :questionType="copyConfig.question_type"/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -10,6 +10,10 @@
|
||||
}
|
||||
"
|
||||
/>
|
||||
|
||||
<!-- 3D 相关配置 -->
|
||||
<Config3D :key="copyConfig.question_index" v-model:config="copyConfig.config" @changeConfig="() => updateConfig(copyConfig)" :questionType="copyConfig.question_type"/>
|
||||
|
||||
<ConfigBaseItem class="block">
|
||||
<div>
|
||||
<div class="title">互动方式</div>
|
||||
@@ -117,8 +121,6 @@
|
||||
</a-radio-group>
|
||||
</ConfigBaseItem>
|
||||
|
||||
<!-- 3D 相关配置 -->
|
||||
<Config3D :key="copyConfig.question_index" v-model:config="copyConfig.config" @changeConfig="() => updateConfig(copyConfig)" :questionType="copyConfig.question_type"/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -6,11 +6,6 @@
|
||||
:checked="copyConfig.config.is_required"
|
||||
@update:checked="update('is_required', $event)"
|
||||
/>
|
||||
<ConfigRequire
|
||||
title="选项随机"
|
||||
:checked="copyConfig.config.select_random"
|
||||
@update:checked="update('select_random', $event)"
|
||||
/>
|
||||
<ConfigBaseItem class="block">
|
||||
<div class="right-limit">
|
||||
<span>右极文字</span>
|
||||
@@ -52,6 +47,12 @@
|
||||
<!-- 3D 相关配置 -->
|
||||
<Config3D :key="copyConfig.question_index" v-model:config="copyConfig.config" @changeConfig="() => updateConfig(copyConfig)" :questionType="copyConfig.question_type"/>
|
||||
|
||||
<ConfigRequire
|
||||
title="选项随机"
|
||||
:checked="copyConfig.config.select_random"
|
||||
@update:checked="update('select_random', $event)"
|
||||
/>
|
||||
|
||||
<template v-if="copyConfig.question_type === 10">
|
||||
<ConfigBaseItem class="block">
|
||||
<ConfigOptionCount
|
||||
|
||||
Reference in New Issue
Block a user