style(MarketItem): 调整市场项目组件样式
- 修改 MarketItem 组件中的标题和描述文本样式 - 优化标题和描述之间的间距 - 调整描述文本的字体大小和颜色 feat(Survey): 改进问卷标题处理和显示 - 在创建问卷时,将富文本标题转换为纯文本保存为项目名称 - 在问卷列表中显示问卷所有者名称,而不是场景名称
This commit is contained in:
@@ -203,9 +203,15 @@ onMounted(() => {
|
|||||||
background: #979797;
|
background: #979797;
|
||||||
opacity: 0.1;
|
opacity: 0.1;
|
||||||
}
|
}
|
||||||
|
div p:first-child {
|
||||||
|
font-size: 11px;
|
||||||
|
color: #828282;
|
||||||
|
//color: #000;
|
||||||
|
}
|
||||||
div p:last-child {
|
div p:last-child {
|
||||||
color: #000;
|
margin-top:13px;
|
||||||
|
font-size: 13px;
|
||||||
|
//color: #000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
alt="Content Icon"
|
alt="Content Icon"
|
||||||
style="width: 15px; height: 15px"
|
style="width: 15px; height: 15px"
|
||||||
/>
|
/>
|
||||||
<el-text size="small">{{ item.scene_name }}</el-text>
|
<el-text size="small">{{ item.owner }}</el-text>
|
||||||
</div>
|
</div>
|
||||||
<!-- 问卷来源 -->
|
<!-- 问卷来源 -->
|
||||||
<div class="flex align-center">
|
<div class="flex align-center">
|
||||||
|
|||||||
@@ -462,7 +462,10 @@ const saveTitle = () => {
|
|||||||
introduction: questionInfo.value.survey.introduction
|
introduction: questionInfo.value.survey.introduction
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.data) {
|
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 });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user