style(DataStatistics): 更新模型类型
- 修改 DataStatistics 页面的样式,调整内容区域的内边距 - 更新 Home 组件中模型类型的数值,优化模型展示顺序 -调整模型创建逻辑,对不同类型的模型进行差异化处理
This commit is contained in:
@@ -620,7 +620,7 @@ const back = () =>{
|
||||
max-width: 100vw;
|
||||
min-height: calc(100vh - 100px);
|
||||
height: auto;
|
||||
padding: 24px;
|
||||
padding: 0 24px;
|
||||
border-radius: 6px;
|
||||
//border: 1px #e0e0e0 solid;
|
||||
background-color: rgb(255, 255, 255);
|
||||
|
||||
@@ -29,48 +29,46 @@ const modelsList = ref([
|
||||
icon: require('@/assets/img/home/kanoicon.png'),
|
||||
bg: require('@/assets/img/home/kanobg.png'),
|
||||
title: 'KANO 模型',
|
||||
type: '1',
|
||||
type: '2',
|
||||
desc: '通过对用户需求分类和优先排序,明确细分市场对不同配置的需求划分,指导产品功能优化和迭代。',
|
||||
},
|
||||
{
|
||||
icon: require('@/assets/img/home/maxicon.png'),
|
||||
bg: require('@/assets/img/home/maxbg.png'),
|
||||
title: 'Maxdiff 模型',
|
||||
type: '2',
|
||||
type: '3',
|
||||
desc: '通过了解消费者对一组选项的偏好程度,批量评估多个属性或功能的重要性排序,帮助确定产品开发的优先级。',
|
||||
},
|
||||
{
|
||||
icon: require('@/assets/img/home/pkicon.png'),
|
||||
bg: require('@/assets/img/home/pkbg.png'),
|
||||
title: 'PK 模型',
|
||||
type: '3',
|
||||
type: '4',
|
||||
desc: '通过一对一PK互动的方式对少量包装、海报等素材进行智能测款,科学筛选最优设计。',
|
||||
},
|
||||
{
|
||||
icon: require('@/assets/img/home/psmicon.png'),
|
||||
bg: require('@/assets/img/home/psmbg.png'),
|
||||
title: 'PSM 模型',
|
||||
type: '4',
|
||||
type: '1',
|
||||
desc: '通过了解消费者对产品不同价格的容忍度,评估未上市新品的合理价格感知、价格容忍度极限并分析最佳价格点。',
|
||||
},
|
||||
])
|
||||
|
||||
const handleCreateModule = async (item) => {
|
||||
if (loading.value) return
|
||||
loading.value = true
|
||||
|
||||
try {
|
||||
const res = await addSpecSurvey({ type: item.type })
|
||||
await router.push({
|
||||
path: '/survey/planet/design',
|
||||
query: { sn: res.data.sn },
|
||||
})
|
||||
} catch (error) {
|
||||
console.error('创建调研失败:', error)
|
||||
alert('创建调研失败,请稍后再试')
|
||||
} finally {
|
||||
loading.value = false
|
||||
console.log('handleCreateModule');
|
||||
console.log(item.type);
|
||||
// if (loading.value) return
|
||||
// loading.value = true
|
||||
if (item.type === '4'){
|
||||
return
|
||||
}
|
||||
const res = await addSpecSurvey({ type: item.type })
|
||||
await router.push({
|
||||
path: '/survey/planet/design',
|
||||
query: { sn: res.data.sn },
|
||||
})
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user