diff --git a/src/api/design/index.js b/src/api/design/index.js index 11acd83..6e23209 100644 --- a/src/api/design/index.js +++ b/src/api/design/index.js @@ -19,7 +19,7 @@ export function sync(params) { method: 'get' }); } -export function questionDetails(params) { +export function saveQuestions(params) { // let sn = params.sn; // delete params.sn; return request({ diff --git a/src/assets/js/common.js b/src/assets/js/common.js index fbcd1c1..da29192 100644 --- a/src/assets/js/common.js +++ b/src/assets/js/common.js @@ -17,7 +17,9 @@ export default { _string2json(value) { try { value = JSON.parse(value); - } catch (e) {} + } catch (e) { + // 以后再说 + } return value; }, diff --git a/src/stores/modules/common.ts b/src/stores/modules/common.ts index 4f214ff..f0bfeb1 100644 --- a/src/stores/modules/common.ts +++ b/src/stores/modules/common.ts @@ -9,19 +9,20 @@ export const useCommonStore = defineStore('common', { state: () => ({ questionsInfo: { survey: { - id: 9577, - introduction: '
123
', - pages: [[]], - sn: 'oxywX8W6', + id: 9616, + introduction: + '为优化活动服务品质,烦请完成问卷,感谢配合!您的反馈至关重要!(此提示语为默认提示语,您可选择自行输入本问卷的提示语)
', + pages: [[7], [23], [24], [25], [26], [9], [13], [12], [11], [10]], + sn: 'qxj894Ww', status: 0, - title: '报名签到问卷 ', - detail_pages: [], + title: '报名签到问卷 ', + detail_pages: [[7], [23], [24], [25], [26], [9], [13], [12], [11], [10]], group_pages: [], - is_one_page_one_question: 0, - last_question_index: 0, + is_one_page_one_question: 1, + last_question_index: 26, is_three_d_permissions: 0, is_dept: 1, - last_title: 'Q0', + last_title: 'Q4', project_name: '报名签到问卷 ', quota_end_content: '
很抱歉,本次调研不太适合您的情况,感谢您的参与!
', @@ -37,15 +38,1942 @@ export const useCommonStore = defineStore('common', { end_jump_status: 0, end_jump_standing_time: 0, success_end_content: - '
您已完成本次调研,感谢您的参与!
\n【成功完成】
', + '
您已完成本次调研,感谢您的参与!
\n【成功完成】
', success_end_url: '', success_end_url_select: 0, success_standing_time: 0, template_type: 0, - local_pages: [] + local_pages: [ + { + pages: [], + is_short_time: 0, + short_time: '', + is_show: 0, + use_type: 0 + }, + { + pages: [], + is_short_time: 0, + short_time: '', + is_show: 0, + use_type: 0 + }, + { + pages: [], + is_short_time: 0, + short_time: '', + is_show: 0, + use_type: 0 + }, + { + pages: [], + is_short_time: 0, + short_time: '', + is_show: 0, + use_type: 0 + }, + { + pages: [], + is_short_time: 0, + short_time: '', + is_show: 0, + use_type: 0 + }, + { + pages: [], + is_short_time: 0, + short_time: '', + is_show: 0, + use_type: 0 + }, + { + pages: [], + is_short_time: 0, + short_time: '', + is_show: 0, + use_type: 0 + }, + { + pages: [], + is_short_time: 0, + short_time: '', + is_show: 0, + use_type: 0 + }, + { + pages: [], + is_short_time: 0, + short_time: '', + is_show: 0, + use_type: 0 + }, + { + pages: [], + is_short_time: 0, + short_time: '', + is_show: 0, + use_type: 0 + }, + { + pages: [], + is_short_time: 0, + short_time: '', + is_show: 0, + use_type: 0 + }, + { + pages: [], + is_short_time: 0, + short_time: '', + is_show: 0, + use_type: 0 + }, + { + pages: [], + is_short_time: 0, + short_time: '', + is_show: 0, + use_type: 0 + }, + { + pages: [], + is_short_time: 0, + short_time: '', + is_show: 0, + use_type: 0 + }, + { + pages: [], + is_short_time: 0, + short_time: '', + is_show: 0, + use_type: 0 + }, + { + pages: [], + is_short_time: 0, + short_time: '', + is_show: 0, + use_type: 0 + }, + { + pages: [], + is_short_time: 0, + short_time: '', + is_show: 0, + use_type: 0 + }, + { + pages: [], + is_short_time: 0, + short_time: '', + is_show: 0, + use_type: 0 + }, + { + pages: [], + is_short_time: 0, + short_time: '', + is_show: 0, + use_type: 0 + } + ] }, - logics: [], - questions: [], + logics: [ + { + id: 472233, + question_index: 10, + sample_number: 0, + skip_question_index: -1, + skip_type: 0, + question_id: '17853822', + logic: [ + { + value: '', + location: 0, + date: '', + time: '', + type: 0, + row_type: 0, + cell_type: 0, + logic: 'if', + operator: '=', + is_answer: 1, + is_select: 0, + row_index: 0, + cell_index: 0, + question_type: 1, + question_index: 7, + relation_question_index: 0, + relation_question_row_index: 0, + relation_question_cell_index: 0, + is_option_group: 0, + option_index: 1, + skip_type: null, + question_id: null + } + ], + autofill: { + value: '', + date: '', + time: '', + question_type: 1, + option_indexs: [], + row_indexs: [], + cell_indexs: [] + }, + hide_option_index: [] + }, + { + id: 472236, + question_index: 10, + sample_number: 0, + skip_question_index: 7, + skip_type: 0, + question_id: '17853822', + logic: [ + { + value: '', + location: 0, + date: '', + time: '', + type: 0, + row_type: 0, + cell_type: 0, + logic: 'if', + operator: '=', + is_answer: 1, + is_select: 1, + row_index: 0, + cell_index: 0, + question_type: 2, + question_index: 7, + relation_question_index: 0, + relation_question_row_index: 0, + relation_question_cell_index: 0, + is_option_group: 0, + option_index: 1, + skip_type: null, + question_id: null + } + ], + autofill: { + value: '', + date: '', + time: '', + question_type: 1, + option_indexs: [], + row_indexs: [], + cell_indexs: [] + }, + hide_option_index: [] + }, + { + id: 472237, + question_index: 10, + sample_number: 0, + skip_question_index: 13, + skip_type: 0, + question_id: '17853822', + logic: [ + { + value: '', + location: 0, + date: '', + time: '', + type: 0, + row_type: 1, + cell_type: 2, + logic: 'if', + operator: '=', + is_answer: 1, + is_select: 0, + row_index: 2, + cell_index: 3, + question_type: 9, + question_index: 24, + relation_question_index: 0, + relation_question_row_index: 0, + relation_question_cell_index: 0, + is_option_group: 0, + option_index: 0, + skip_type: null, + question_id: null + } + ], + autofill: { + value: '', + date: '', + time: '', + question_type: 1, + option_indexs: [], + row_indexs: [], + cell_indexs: [] + }, + hide_option_index: [] + }, + { + id: 472240, + question_index: 10, + sample_number: 0, + skip_question_index: 0, + skip_type: 0, + question_id: '17853822', + logic: [ + { + value: '8', + location: 0, + date: '', + time: '', + type: 0, + row_type: 0, + cell_type: 0, + logic: 'if', + operator: '=', + is_answer: 1, + is_select: 0, + row_index: 0, + cell_index: 0, + question_type: 106, + question_index: 26, + relation_question_index: 0, + relation_question_row_index: 0, + relation_question_cell_index: 0, + is_option_group: 0, + option_index: 1, + skip_type: null, + question_id: null + } + ], + autofill: { + value: '', + date: '', + time: '', + question_type: 1, + option_indexs: [], + row_indexs: [], + cell_indexs: [] + }, + hide_option_index: [] + }, + { + id: 472241, + question_index: 10, + sample_number: 0, + skip_question_index: 0, + skip_type: 0, + question_id: '17853822', + logic: [ + { + value: '213', + location: 0, + date: '', + time: '', + type: 0, + row_type: 0, + cell_type: 0, + logic: 'if', + operator: '=', + is_answer: 1, + is_select: 0, + row_index: 0, + cell_index: 0, + question_type: 5, + question_index: 25, + relation_question_index: 0, + relation_question_row_index: 0, + relation_question_cell_index: 0, + is_option_group: 0, + option_index: 1, + skip_type: null, + question_id: null + } + ], + autofill: { + value: '', + date: '', + time: '', + question_type: 1, + option_indexs: [], + row_indexs: [], + cell_indexs: [] + }, + hide_option_index: [] + } + ], + questions: [ + { + id: '17853803', + title: '', + stem: '请输入题目(多选)
', + other: '', + question_index: 7, + question_type: 2, + config: { + version: '', + scene: null, + shelf: null, + ware: null, + option_groups: null, + is_required: 0, + select_random: 1, + min_select: '1211122312323', + max_select: '545454545454545', + 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: '2025-03-11T17:22:11', + created_user_id: 1180, + updated_user_id: null, + survey_id: 9616, + logic_config: { + expect: '', + order: 0, + type: 0, + stay_time: '' + }, + options: [ + [ + { + option: '选项1', + id: '1053071', + 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, + list_id: 75400, + 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: null, + cascade: [] + }, + { + option: '选项2', + id: '1053072', + 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, + list_id: 75400, + 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: null, + cascade: [] + }, + { + option: '选项3', + id: '1053073', + 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, + list_id: 75400, + 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: null, + cascade: [] + }, + { + option: '选项4', + id: '1053074', + 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, + list_id: 75400, + 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: null, + cascade: [] + }, + { + option: '选项5', + id: '1053882', + type: 0, + is_other: 0, + is_fixed: 0, + is_remove_other: 0, + created_at: null, + created_user_id: null, + parent_id: null, + option_index: 5, + list_id: 75400, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 0, + gradient: '', + image_url: [], + option_type: 0, + type: 0, + limit_right_content: '', + child_area: null, + binding_goods_id: '' + }, + disable_option_update: null, + cascade: [] + }, + { + option: '选项6
', + id: '1053885', + type: 0, + is_other: 0, + is_fixed: 0, + is_remove_other: 0, + created_at: null, + created_user_id: null, + parent_id: null, + option_index: 6, + list_id: 75400, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 0, + gradient: '', + image_url: [], + option_type: 0, + type: 0, + limit_right_content: '', + child_area: null, + binding_goods_id: '' + }, + disable_option_update: null, + cascade: [] + } + ] + ], + associate: [], + logics_has: null, + last_option_index: 6, + question_code: '', + question_value: '', + question_tag: '', + planet_id: '', + permissions: null + }, + { + id: '17854102', + title: 'Q1', + stem: '请填写答案', + other: '', + question_index: 23, + question_type: 4, + config: { + min: '', + max: '', + version: '', + scene: null, + shelf: null, + ware: null, + placeholder: '', + is_required: 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, + left_prompt: '', + right_prompt: '', + text_type: 0, + include_mark: 0, + line_type: 0, + line_height: 1, + decimal_few: 1, + type_name: '', + float_window: 0, + float_window_content: '', + popup_window: 0, + popup_window_content: '', + is_show: [], + quick_type: 0 + }, + created_at: '2025-03-12T11:46:58', + created_user_id: 1285, + updated_user_id: null, + survey_id: 9616, + logic_config: { + expect: '', + order: 0, + type: 0, + stay_time: '' + }, + options: [], + associate: [], + logics_has: null, + last_option_index: 0, + question_code: '', + question_value: '', + question_tag: '', + planet_id: '', + permissions: null + }, + { + id: '17854103', + title: 'Q2', + stem: '请每行选择1个选项', + other: '', + question_index: 24, + question_type: 9, + config: { + disabled: [], + version: '', + scene: null, + shelf: null, + ware: null, + row_option_groups: null, + cell_option_groups: null, + is_repeat: 0, + allow_repeat_num: 2, + repeat_type: 0, + alert_text: + '您在每一题的态度与观点均对我们有非常重要的意义,请您务必仔细阅读题目后回答,连续一致的答案可能会导致整个问卷的作废,谢谢您的配合。', + is_required: 1, + is_change_row_cell: 0, + select_random: 0, + row_random: 0, + cell_random: 0, + 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_disable_lines_same: 0, + disable_lines_same: 1, + float_window: 0, + is_disable: 0, + float_window_content: '', + popup_window: 0, + popup_window_content: '', + is_show: [], + quick_type: 0, + is_limit_right_content: 0, + option_group_random_inside: null, + option_group_random_outside: null + }, + created_at: '2025-03-12T11:47:33', + created_user_id: 1285, + updated_user_id: null, + survey_id: 9616, + logic_config: { + expect: '', + order: 0, + type: 0, + stay_time: '' + }, + options: [ + [ + { + option: '行标签1
', + id: '1054034', + type: 1, + is_other: 0, + is_fixed: 0, + is_remove_other: 0, + created_at: null, + created_user_id: null, + parent_id: null, + option_index: 1, + list_id: 75611, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 0, + gradient: '', + image_url: [], + option_type: 0, + type: 0, + limit_right_content: '右极文字1
', + child_area: null, + binding_goods_id: '' + }, + disable_option_update: null, + cascade: [] + }, + { + option: '行标签2
', + id: '1054035', + type: 1, + is_other: 0, + is_fixed: 0, + is_remove_other: 0, + created_at: null, + created_user_id: null, + parent_id: null, + option_index: 2, + list_id: 75611, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 0, + gradient: '', + image_url: [], + option_type: 0, + type: 0, + limit_right_content: '右极文字2
', + child_area: null, + binding_goods_id: '' + }, + disable_option_update: null, + cascade: [] + } + ], + [ + { + option: '列标签1
', + id: '1054036', + type: 2, + is_other: 0, + is_fixed: 0, + is_remove_other: 0, + created_at: null, + created_user_id: null, + parent_id: null, + option_index: 3, + list_id: 75612, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 0, + gradient: '', + image_url: [], + option_type: 0, + type: 0, + limit_right_content: '', + child_area: null, + binding_goods_id: '' + }, + disable_option_update: null, + cascade: [] + }, + { + option: '列标签2
', + id: '1054037', + type: 2, + is_other: 0, + is_fixed: 0, + is_remove_other: 0, + created_at: null, + created_user_id: null, + parent_id: null, + option_index: 4, + list_id: 75612, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 0, + gradient: '', + image_url: [], + option_type: 0, + type: 0, + limit_right_content: '', + child_area: null, + binding_goods_id: '' + }, + disable_option_update: null, + cascade: [] + } + ] + ], + associate: [], + logics_has: null, + last_option_index: 4, + question_code: '', + question_value: '', + question_tag: '', + planet_id: '', + permissions: null + }, + { + id: '17854104', + title: 'Q3', + stem: '请完成打分', + other: '', + question_index: 25, + question_type: 5, + config: { + min: 1, + max: 5, + is_required: 1, + score_type: 0, + score_way: 0, + score_interval: 1, + prompt_score: 2, + prompt_array: null, + prompt_left: '', + prompt_right: '', + prompt_center: '', + select_random: 0, + float_window: 0, + float_window_content: '', + popup_window: 0, + popup_window_content: '', + is_show: [], + quick_type: 0 + }, + created_at: '2025-03-12T11:47:34', + created_user_id: 1285, + updated_user_id: null, + survey_id: 9616, + logic_config: { + expect: '', + order: 0, + type: 0, + stay_time: '' + }, + options: [ + [ + { + option: '选项1
', + id: '1054038', + 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, + list_id: 75613, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 0, + gradient: '', + image_url: [], + option_type: 0, + type: 0, + limit_right_content: '', + child_area: null, + binding_goods_id: '' + }, + disable_option_update: null, + cascade: [] + } + ] + ], + associate: [], + logics_has: null, + last_option_index: 1, + question_code: '', + question_value: '', + question_tag: '', + planet_id: '', + permissions: null + }, + { + id: '17854105', + title: 'Q4', + stem: '您向朋友或同事推荐我们的可能性多大?', + other: '', + question_index: 26, + question_type: 106, + config: { + is_required: 1, + is_behavior: 0, + max: 10, + is_price_tag: 0, + is_brand: 0, + is_initialize: 0, + is_binding_goods: 0, + min: 0, + score_interval: 1, + float_window: 0, + float_window_content: '', + popup_window: 0, + popup_window_content: '', + is_show: [], + quick_type: 0, + prompt_score: 2, + prompt_array: null, + prompt_left: '不可能', + prompt_right: '极有可能', + prompt_center: '', + score_way: 1, + score_type: 0 + }, + created_at: '2025-03-12T11:47:36', + created_user_id: 1285, + updated_user_id: null, + survey_id: 9616, + logic_config: { + expect: '', + order: 0, + type: 0, + stay_time: '' + }, + options: [ + [ + { + option: '选项1
', + id: '1054039', + 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, + list_id: 75614, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 0, + gradient: '', + image_url: [], + option_type: 0, + type: 0, + limit_right_content: '', + child_area: null, + binding_goods_id: '' + }, + disable_option_update: null, + cascade: [] + } + ] + ], + associate: [], + logics_has: null, + last_option_index: 1, + question_code: '', + question_value: '', + question_tag: '', + planet_id: '', + permissions: null + }, + { + id: '17853821', + title: '', + stem: '请输入题目(单选)
', + other: '', + question_index: 9, + question_type: 1, + 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: '2025-03-11T17:32:41', + created_user_id: 1180, + updated_user_id: null, + survey_id: 9616, + logic_config: { + expect: '', + order: 0, + type: 0, + stay_time: '' + }, + options: [ + [ + { + option: '选项1', + id: '1053150', + 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, + list_id: 75414, + 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: null, + cascade: [] + }, + { + option: '选项2', + id: '1053151', + 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, + list_id: 75414, + 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: null, + cascade: [] + }, + { + option: '选项3', + id: '1053152', + 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, + list_id: 75414, + 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: null, + cascade: [] + }, + { + option: '选项4', + id: '1053153', + 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, + list_id: 75414, + 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: null, + cascade: [] + } + ] + ], + associate: [], + logics_has: null, + last_option_index: 4, + question_code: '', + question_value: '', + question_tag: '', + planet_id: '', + permissions: null + }, + { + id: '17853956', + title: '', + stem: '请输入题目(单选)
', + other: '', + question_index: 13, + question_type: 1, + 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: '2025-03-11T20:49:27', + created_user_id: 1180, + updated_user_id: null, + survey_id: 9616, + logic_config: { + expect: '', + order: 0, + type: 0, + stay_time: '' + }, + options: [ + [ + { + option: '选项1', + id: '1053742', + 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, + list_id: 75512, + 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: null, + cascade: [] + }, + { + option: '选项2', + id: '1053743', + 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, + list_id: 75512, + 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: null, + cascade: [] + }, + { + option: '选项3', + id: '1053744', + 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, + list_id: 75512, + 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: null, + cascade: [] + }, + { + option: '选项4', + id: '1053745', + 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, + list_id: 75512, + 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: null, + cascade: [] + } + ] + ], + associate: [], + logics_has: null, + last_option_index: 4, + question_code: '', + question_value: '', + question_tag: '', + planet_id: '', + permissions: null + }, + { + id: '17853955', + title: '', + stem: '请输入题目(单选)
', + other: '', + question_index: 12, + question_type: 1, + 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: '2025-03-11T20:49:05', + created_user_id: 1285, + updated_user_id: null, + survey_id: 9616, + logic_config: { + expect: '', + order: 0, + type: 0, + stay_time: '' + }, + options: [ + [ + { + option: '选项1', + id: '1053738', + 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, + list_id: 75511, + 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: null, + cascade: [] + }, + { + option: '选项2', + id: '1053739', + 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, + list_id: 75511, + 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: null, + cascade: [] + }, + { + option: '选项3', + id: '1053740', + 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, + list_id: 75511, + 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: null, + cascade: [] + }, + { + option: '选项4', + id: '1053741', + 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, + list_id: 75511, + 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: null, + cascade: [] + }, + { + option: '选项5
', + id: '1053861', + type: 0, + is_other: 0, + is_fixed: 0, + is_remove_other: 0, + created_at: null, + created_user_id: null, + parent_id: null, + option_index: 5, + list_id: 75511, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 0, + gradient: '', + image_url: [], + option_type: 0, + type: 0, + limit_right_content: '', + child_area: null, + binding_goods_id: '' + }, + disable_option_update: null, + cascade: [] + } + ] + ], + associate: [], + logics_has: null, + last_option_index: 5, + question_code: '', + question_value: '', + question_tag: '', + planet_id: '', + permissions: null + }, + { + id: '17853941', + title: '', + stem: '请输入题目(单选)
', + other: '', + question_index: 11, + question_type: 1, + 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: '2025-03-11T19:08:10', + created_user_id: 1180, + updated_user_id: null, + survey_id: 9616, + logic_config: { + expect: '', + order: 0, + type: 0, + stay_time: '' + }, + options: [ + [ + { + option: '选项1', + id: '1053728', + 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, + list_id: 75508, + 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: null, + cascade: [] + }, + { + option: '选项2', + id: '1053729', + 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, + list_id: 75508, + 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: null, + cascade: [] + }, + { + option: '选项3', + id: '1053730', + 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, + list_id: 75508, + 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: null, + cascade: [] + }, + { + option: '选项4', + id: '1053731', + 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, + list_id: 75508, + 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: null, + cascade: [] + } + ] + ], + associate: [], + logics_has: null, + last_option_index: 4, + question_code: '', + question_value: '', + question_tag: '', + planet_id: '', + permissions: null + }, + { + id: '17853822', + title: '', + stem: '请输入题目(单选)
', + other: '', + question_index: 10, + question_type: 1, + 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: '2025-03-11T17:32:42', + created_user_id: 1285, + updated_user_id: null, + survey_id: 9616, + logic_config: { + expect: '', + order: 0, + type: 0, + stay_time: '' + }, + options: [ + [ + { + option: '选项1', + id: '1053154', + 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, + list_id: 75415, + 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: null, + cascade: [] + }, + { + option: '选项2', + id: '1053155', + 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, + list_id: 75415, + 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: null, + cascade: [] + }, + { + option: '选项3', + id: '1053156', + 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, + list_id: 75415, + 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: null, + cascade: [] + }, + { + option: '选项4', + id: '1053157', + 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, + list_id: 75415, + 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: null, + cascade: [] + }, + { + option: '选项5', + id: '1053883', + type: 0, + is_other: 0, + is_fixed: 0, + is_remove_other: 0, + created_at: null, + created_user_id: null, + parent_id: null, + option_index: 5, + list_id: 75415, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 0, + gradient: '', + image_url: [], + option_type: 0, + type: 0, + limit_right_content: '', + child_area: null, + binding_goods_id: '' + }, + disable_option_update: null, + cascade: [] + }, + { + option: '选项6', + id: '1053884', + type: 0, + is_other: 0, + is_fixed: 0, + is_remove_other: 0, + created_at: null, + created_user_id: null, + parent_id: null, + option_index: 6, + list_id: 75415, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 0, + gradient: '', + image_url: [], + option_type: 0, + type: 0, + limit_right_content: '', + child_area: null, + binding_goods_id: '' + }, + disable_option_update: null, + cascade: [] + } + ] + ], + associate: [], + logics_has: null, + last_option_index: 6, + question_code: '', + question_value: '', + question_tag: '', + planet_id: '', + permissions: null + } + ], cycle_pages: null } }), diff --git a/src/views/Design/Index.vue b/src/views/Design/Index.vue index d0e7121..a3844c7 100644 --- a/src/views/Design/Index.vue +++ b/src/views/Design/Index.vue @@ -15,6 +15,11 @@ :index="index" :chooseQuestionId="chooseQuestionId" @get-choose-question-id="getChooseQuestionId" + @move="emitFun.move" + @copy="emitFun.copy" + @delete="emitFun.delete" + @setting="emitFun.setting" + @logics="emitFun.logics" >