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