From 79432e9f3dc405522429d293c1626adf1fb26513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=98=B1=E8=BE=BE?= Date: Wed, 12 Mar 2025 15:51:49 +0800 Subject: [PATCH 1/5] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D=E5=A4=A7=E5=B0=8F=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/modules/common.ts | 1574 +---------------- src/views/Design/Index.vue | 74 +- .../Design/components/ChooseQuestion.vue | 2 +- .../Design/components/Questions/Choice.vue | 26 +- .../components/Questions/Completion.vue | 24 +- .../Design/components/Questions/Rate.vue | 42 +- 6 files changed, 97 insertions(+), 1645 deletions(-) diff --git a/src/stores/modules/common.ts b/src/stores/modules/common.ts index f0bfeb1..298dc9d 100644 --- a/src/stores/modules/common.ts +++ b/src/stores/modules/common.ts @@ -401,1579 +401,7 @@ export const useCommonStore = defineStore('common', { 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 - } - ], + questions: [], cycle_pages: null } }), diff --git a/src/views/Design/Index.vue b/src/views/Design/Index.vue index a3844c7..4aa3f98 100644 --- a/src/views/Design/Index.vue +++ b/src/views/Design/Index.vue @@ -21,20 +21,29 @@ @setting="emitFun.setting" @logics="emitFun.logics" > + + @@ -44,49 +53,45 @@ element.question_type === 9 || element.question_type === 10 " - :element="element" + :element="computedElement(element)" :index="index" :active="chooseQuestionId === element.id" + @update:element="updateElement" /> - - -