From ec99b9d383184d7030b1f96de9d6a496819f2417 Mon Sep 17 00:00:00 2001 From: "du.meimei" Date: Thu, 6 Mar 2025 17:46:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=89=93=E5=88=86=E9=A2=98=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 4 +- src/layouts/index.vue | 2 +- src/stores/modules/common.ts | 21 ++- src/views/Design/Index.vue | 53 ++++-- .../ActionCompoents/OptionAction.vue | 34 ++-- .../ActionCompoents/QuestionAction.vue | 26 ++- .../ActionCompoents/components/RateAction.vue | 158 ++++++++++++++++++ .../components/Questions/MartrixQuestion.vue | 39 +++-- .../Design/components/Questions/Rate.vue | 13 +- .../components/Questions/RateCharacter.vue | 59 ++++--- .../components/Questions/paging/Paging.vue | 3 +- .../components/Questions/types/martrix.d.ts | 2 +- src/views/Home/Index.vue | 8 +- .../CreateSurvey/Hooks/useRequestHooks.ts | 11 +- .../Home/components/CreateSurvey/Index.vue | 7 +- .../Home/components/LastSurvey/Index.vue | 26 +-- .../LastSurvey/hooks/useLastSurveyHooks.ts | 9 +- src/views/Home/components/Market/Index.vue | 11 +- .../Market/components/TestComponent.vue | 21 ++- .../components/Market/hooks/useMarketHooks.ts | 17 +- src/views/Market/Index.vue | 4 +- 21 files changed, 389 insertions(+), 139 deletions(-) create mode 100644 src/views/Design/components/ActionCompoents/components/RateAction.vue diff --git a/components.d.ts b/components.d.ts index 9be9cdb..8888e8a 100644 --- a/components.d.ts +++ b/components.d.ts @@ -14,12 +14,9 @@ declare module 'vue' { VanButton: typeof import('vant/es')['Button'] VanCell: typeof import('vant/es')['Cell'] VanCellGroup: typeof import('vant/es')['CellGroup'] - VanCheck: typeof import('vant/es')['Check'] - VanCheckbo: typeof import('vant/es')['Checkbo'] VanCheckbox: typeof import('vant/es')['Checkbox'] VanCheckboxGroup: typeof import('vant/es')['CheckboxGroup'] VanCol: typeof import('vant/es')['Col'] - VanDialog: typeof import('vant/es')['Dialog'] VanDivider: typeof import('vant/es')['Divider'] VanField: typeof import('vant/es')['Field'] VanIcon: typeof import('vant/es')['Icon'] @@ -28,6 +25,7 @@ declare module 'vue' { VanRadioGroup: typeof import('vant/es')['RadioGroup'] VanRow: typeof import('vant/es')['Row'] VanSearch: typeof import('vant/es')['Search'] + VanStepper: typeof import('vant/es')['Stepper'] VanSwitch: typeof import('vant/es')['Switch'] VanTabbar: typeof import('vant/es')['Tabbar'] VanTabbarItem: typeof import('vant/es')['TabbarItem'] diff --git a/src/layouts/index.vue b/src/layouts/index.vue index 9d3e3ba..7c0d3a6 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -61,7 +61,7 @@ const table = [ position: sticky; top: 0; z-index: 1000; - background-color: #A5D380; + background-color: #a5d380; .title { display: flex; diff --git a/src/stores/modules/common.ts b/src/stores/modules/common.ts index f0d947b..3be7fe4 100644 --- a/src/stores/modules/common.ts +++ b/src/stores/modules/common.ts @@ -701,9 +701,9 @@ export const useCommonStore = defineStore('common', { score_interval: 1.0, prompt_score: 2, prompt_array: null, - prompt_left: '', - prompt_right: '', - prompt_center: '', + prompt_left: 'left', + prompt_right: 'right', + prompt_center: 'center', select_random: 0, float_window: 0, float_window_content: '', @@ -5751,7 +5751,8 @@ export const useCommonStore = defineStore('common', { is_repeat: 0, allow_repeat_num: 2, repeat_type: 0, - alert_text: '您在每一题的态度与观点均对我们有非常重要的意义,请您务必仔细阅读题目后回答,连续一致的答案可能会导致整个问卷的作废,谢谢您的配合。', + alert_text: + '您在每一题的态度与观点均对我们有非常重要的意义,请您务必仔细阅读题目后回答,连续一致的答案可能会导致整个问卷的作废,谢谢您的配合。', is_required: 1, is_change_row_cell: 0, select_random: 0, @@ -5943,7 +5944,8 @@ export const useCommonStore = defineStore('common', { question_tag: '', planet_id: '', permissions: null - }, { + }, + { id: '17852528', title: 'Q2', stem: '

这是多选矩阵内容

', @@ -5961,7 +5963,8 @@ export const useCommonStore = defineStore('common', { is_repeat: 0, allow_repeat_num: 2, repeat_type: 0, - alert_text: '您在每一题的态度与观点均对我们有非常重要的意义,请您务必仔细阅读题目后回答,连续一致的答案可能会导致整个问卷的作废,谢谢您的配合。', + alert_text: + '您在每一题的态度与观点均对我们有非常重要的意义,请您务必仔细阅读题目后回答,连续一致的答案可能会导致整个问卷的作废,谢谢您的配合。', is_required: 1, is_change_row_cell: 0, row_random: 0, @@ -6156,7 +6159,8 @@ export const useCommonStore = defineStore('common', { question_tag: '', planet_id: '', permissions: null - }, { + }, + { id: '17852530', title: 'Q3', stem: '

这个是多选填空内容

', @@ -6177,7 +6181,8 @@ export const useCommonStore = defineStore('common', { is_repeat: 0, allow_repeat_num: 2, repeat_type: 0, - alert_text: '您在每一题的态度与观点均对我们有非常重要的意义,请您务必仔细阅读题目后回答,连续一致的答案可能会导致整个问卷的作废,谢谢您的配合。', + alert_text: + '您在每一题的态度与观点均对我们有非常重要的意义,请您务必仔细阅读题目后回答,连续一致的答案可能会导致整个问卷的作废,谢谢您的配合。', is_required: 1, is_change_row_cell: 0, row_random: 0, diff --git a/src/views/Design/Index.vue b/src/views/Design/Index.vue index bb030c6..b1ffbe7 100644 --- a/src/views/Design/Index.vue +++ b/src/views/Design/Index.vue @@ -1,33 +1,50 @@