- 添加 showAction 控制编辑按钮显示 - 实现文本域聚焦和失焦时的编辑按钮显示和隐藏 -优化键盘弹出和收起时的编辑按钮显示逻辑 -修复文档中描述的产品问卷配置- 优化问卷设计页面的题目编辑功能
167 lines
3.6 KiB
JavaScript
167 lines
3.6 KiB
JavaScript
export default {
|
|
title: '',
|
|
stem: '<p>请输入题目(多选)</p>',
|
|
other: '',
|
|
question_index: '',
|
|
question_type: 2,
|
|
config: {
|
|
placeholder: '',
|
|
version: '',
|
|
scene: null,
|
|
shelf: null,
|
|
ware: null,
|
|
option_groups: null,
|
|
is_required: 1,
|
|
select_random: 0,
|
|
each_number: 1,
|
|
is_three_dimensions: 0,
|
|
material_sn: '',
|
|
scene_information: null,
|
|
simple_scene_information: null,
|
|
is_behavior: 0,
|
|
is_price_tag: 0,
|
|
is_brand: 0,
|
|
is_initialize: 0,
|
|
is_default_perspective: 0,
|
|
is_binding_goods: 0,
|
|
float_window: 0,
|
|
float_window_content: '',
|
|
popup_window: 0,
|
|
popup_window_content: '',
|
|
is_show: [],
|
|
quick_type: 0,
|
|
option_group_random_inside: null,
|
|
option_group_random_outside: null
|
|
},
|
|
created_at: '',
|
|
created_user_id: '',
|
|
updated_user_id: null,
|
|
survey_id: '',
|
|
logic_config: {
|
|
expect: '',
|
|
order: 0,
|
|
type: 0,
|
|
stay_time: ''
|
|
},
|
|
options: [
|
|
[
|
|
{
|
|
option: '<span >选项1</span>',
|
|
id: '',
|
|
type: 0,
|
|
is_other: 0,
|
|
is_fixed: 0,
|
|
is_remove_other: 0,
|
|
created_at: null,
|
|
created_user_id: null,
|
|
parent_id: null,
|
|
option_index: 1,
|
|
option_code: '',
|
|
option_config: {
|
|
title: '',
|
|
instructions: [],
|
|
price: 0,
|
|
gradient: '',
|
|
image_url: null,
|
|
option_type: 0,
|
|
type: 0,
|
|
limit_right_content: '',
|
|
child_area: null,
|
|
binding_goods_id: ''
|
|
},
|
|
disable_option_update: 1,
|
|
cascade: []
|
|
},
|
|
{
|
|
option: '<span >选项2</span>',
|
|
id: '',
|
|
type: 0,
|
|
is_other: 0,
|
|
is_fixed: 0,
|
|
is_remove_other: 0,
|
|
created_at: null,
|
|
created_user_id: null,
|
|
parent_id: null,
|
|
option_index: 2,
|
|
option_code: '',
|
|
option_config: {
|
|
title: '',
|
|
instructions: [],
|
|
price: 0,
|
|
gradient: '',
|
|
image_url: null,
|
|
option_type: 0,
|
|
type: 0,
|
|
limit_right_content: '',
|
|
child_area: null,
|
|
binding_goods_id: ''
|
|
},
|
|
disable_option_update: 1,
|
|
cascade: []
|
|
},
|
|
{
|
|
option: '<span >选项3</span>',
|
|
id: '',
|
|
type: 0,
|
|
is_other: 0,
|
|
is_fixed: 0,
|
|
is_remove_other: 0,
|
|
created_at: null,
|
|
created_user_id: null,
|
|
parent_id: null,
|
|
option_index: 3,
|
|
option_code: '',
|
|
option_config: {
|
|
title: '',
|
|
instructions: [],
|
|
price: 0,
|
|
gradient: '',
|
|
image_url: null,
|
|
option_type: 0,
|
|
type: 0,
|
|
limit_right_content: '',
|
|
child_area: null,
|
|
binding_goods_id: ''
|
|
},
|
|
disable_option_update: 1,
|
|
cascade: []
|
|
},
|
|
{
|
|
option: '<span >选项4</span>',
|
|
id: '',
|
|
type: 0,
|
|
is_other: 0,
|
|
is_fixed: 0,
|
|
is_remove_other: 0,
|
|
created_at: null,
|
|
created_user_id: null,
|
|
parent_id: null,
|
|
option_index: 4,
|
|
option_code: '',
|
|
option_config: {
|
|
title: '',
|
|
instructions: [],
|
|
price: 0,
|
|
gradient: '',
|
|
image_url: null,
|
|
option_type: 0,
|
|
type: 0,
|
|
limit_right_content: '',
|
|
child_area: null,
|
|
binding_goods_id: ''
|
|
},
|
|
disable_option_update: 1,
|
|
cascade: []
|
|
}
|
|
]
|
|
],
|
|
associate: [],
|
|
logics_has: false,
|
|
last_option_index: 4,
|
|
question_code: '',
|
|
question_value: '',
|
|
question_tag: '',
|
|
planet_id: '',
|
|
permissions: {}
|
|
};
|