From d2ea8f3dfdf33eb6fb5ed53b0180ba5986e66cc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=B1=E5=86=A0=E5=AD=A6?= <1109935898@qq.com> Date: Tue, 19 Nov 2024 16:26:53 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=A6=82=E5=BF=B5=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E3=80=81=E5=8F=A3=E5=91=B3=E6=B5=8B=E8=AF=95=E6=94=B9?= =?UTF-8?q?=E7=89=88=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../create/presets/components/Steps.vue | 10 ++++- .../create/presets/concept/ConceptTest.vue | 37 +++++++++++-------- .../create/presets/taste/TasteTest.vue | 37 +++++++++++-------- 3 files changed, 50 insertions(+), 34 deletions(-) diff --git a/src/views/ProjectManage/create/presets/components/Steps.vue b/src/views/ProjectManage/create/presets/components/Steps.vue index 497d9da4..f7e26496 100644 --- a/src/views/ProjectManage/create/presets/components/Steps.vue +++ b/src/views/ProjectManage/create/presets/components/Steps.vue @@ -28,7 +28,8 @@ async function onActive(item) { @@ -51,7 +53,11 @@ async function onActive(item) { width: 100%; height: 64px; //margin-bottom: 25px; - padding: 0 40px; + //padding: 0 40px; + + .placeholder { + flex: auto; + } .line { align-self: flex-start; diff --git a/src/views/ProjectManage/create/presets/concept/ConceptTest.vue b/src/views/ProjectManage/create/presets/concept/ConceptTest.vue index 61cde9e2..3d7f4c30 100644 --- a/src/views/ProjectManage/create/presets/concept/ConceptTest.vue +++ b/src/views/ProjectManage/create/presets/concept/ConceptTest.vue @@ -78,6 +78,8 @@ const templateSnList = ref([]); function onReset() { stepId.value = conceptTypeEnum.basic; + expandNewest.value = true; + expandStandard.value = true; // 标准版 newList1.value = [getNewItem(standardNewestEnum.newest), getNewItem(standardNewestEnum.newest)]; @@ -128,6 +130,9 @@ function getSnByTestType(type) { function onTestTypeChange(evt) { testType.value = evt.id; templateSn.value = getSnByTestType(evt.id); + + expandNewest.value = true; + expandStandard.value = true; } function getNewItem(type) { @@ -137,7 +142,7 @@ function getNewItem(type) { key: uuid(), data: { concept_type: type, // 概念类型 0标杆概念 1新品概念 - // concept_encode: '', // 概念编号 + concept_encode: '', // 概念编号 concept_name: '', concept_url: '' } @@ -193,21 +198,21 @@ function scrollTo(idSelector) { } function updateEncode() { - // [newList1.value, standardList1.value] = updateEncodeForGroup( - // newList1.value, - // standardList1.value, - // '概念' - // ); - // [newList2.value, standardList2.value] = updateEncodeForGroup( - // newList2.value, - // standardList2.value, - // '概念' - // ); - // [newList3.value, standardList3.value] = updateEncodeForGroup( - // newList3.value, - // standardList3.value, - // '概念' - // ); + [newList1.value, standardList1.value] = updateEncodeForGroup( + newList1.value, + standardList1.value, + '概念' + ); + [newList2.value, standardList2.value] = updateEncodeForGroup( + newList2.value, + standardList2.value, + '概念' + ); + [newList3.value, standardList3.value] = updateEncodeForGroup( + newList3.value, + standardList3.value, + '概念' + ); } function updateEncodeForGroup(list1, list2, prefix = '') { diff --git a/src/views/ProjectManage/create/presets/taste/TasteTest.vue b/src/views/ProjectManage/create/presets/taste/TasteTest.vue index 0fe34fe8..45373bf8 100644 --- a/src/views/ProjectManage/create/presets/taste/TasteTest.vue +++ b/src/views/ProjectManage/create/presets/taste/TasteTest.vue @@ -72,6 +72,8 @@ const templateSnList = ref([]); function onReset() { stepId.value = tasteTypeEnum.basic; + expandNewest.value = true; + expandStandard.value = true; // 标准版 newList1.value = [getNewItem(standardNewestEnum.newest), getNewItem(standardNewestEnum.newest)]; @@ -122,6 +124,9 @@ function getSnByTestType(type) { function onTestTypeChange(evt) { testType.value = evt.id; templateSn.value = getSnByTestType(evt.id); + + expandNewest.value = true; + expandStandard.value = true; } function getNewItem(type) { @@ -131,7 +136,7 @@ function getNewItem(type) { key: uuid(), data: { taste_type: type, // 口味类型 0标杆口味 1新品口味 - // taste_encode: '', // 口味编号 + taste_encode: '', // 口味编号 taste_name: '', // 口味名称 taste_attr_indicator: ['', ''] // 关键属性指标(字符串列表) } @@ -187,21 +192,21 @@ function scrollTo(idSelector) { } function updateEncode() { - // [newList1.value, standardList1.value] = updateEncodeForGroup( - // newList1.value, - // standardList1.value, - // '口味' - // ); - // [newList2.value, standardList2.value] = updateEncodeForGroup( - // newList2.value, - // standardList2.value, - // '口味' - // ); - // [newList3.value, standardList3.value] = updateEncodeForGroup( - // newList3.value, - // standardList3.value, - // '口味' - // ); + [newList1.value, standardList1.value] = updateEncodeForGroup( + newList1.value, + standardList1.value, + '口味' + ); + [newList2.value, standardList2.value] = updateEncodeForGroup( + newList2.value, + standardList2.value, + '口味' + ); + [newList3.value, standardList3.value] = updateEncodeForGroup( + newList3.value, + standardList3.value, + '口味' + ); } function updateEncodeForGroup(list1, list2, prefix = '') {