style(MarketItem): 调整市场项目组件样式

- 修改 MarketItem 组件中的标题和描述文本样式
- 优化标题和描述之间的间距
- 调整描述文本的字体大小和颜色

feat(Survey): 改进问卷标题处理和显示

- 在创建问卷时,将富文本标题转换为纯文本保存为项目名称
- 在问卷列表中显示问卷所有者名称,而不是场景名称
This commit is contained in:
陈昱达
2025-03-25 15:44:15 +08:00
parent bd544d704e
commit 1cc54c68c2
3 changed files with 13 additions and 4 deletions

View File

@@ -203,9 +203,15 @@ onMounted(() => {
background: #979797;
opacity: 0.1;
}
div p:first-child {
font-size: 11px;
color: #828282;
//color: #000;
}
div p:last-child {
color: #000;
margin-top:13px;
font-size: 13px;
//color: #000;
}
}
}

View File

@@ -36,7 +36,7 @@
alt="Content Icon"
style="width: 15px; height: 15px"
/>
<el-text size="small">{{ item.scene_name }}</el-text>
<el-text size="small">{{ item.owner }}</el-text>
</div>
<!-- 问卷来源 -->
<div class="flex align-center">

View File

@@ -462,7 +462,10 @@ const saveTitle = () => {
introduction: questionInfo.value.survey.introduction
}).then((res) => {
if (res.data) {
saveProjectName(route.query.sn, { project_name: questionInfo.value.survey.title });
// questionInfo.value.survey.title 富文本转为html获取innertext
let title = questionInfo.value.survey.title.replace(/<[^>]*>/g, '');
saveProjectName(route.query.sn, { project_name: title });
}
});
};