|
|
@@ -17,7 +17,7 @@
|
|
|
<div class="item-header">
|
|
|
<div class="header-wrapper">
|
|
|
<div class="title title-block">{{ item.varietyName }}</div>
|
|
|
- <div class="title title-block">{{ item.interactionTypeName }}</div>
|
|
|
+ <div class="title title-block">{{ item.interactionThemeText }}</div>
|
|
|
</div>
|
|
|
<div class="status title-block" :class="['urgent-' + item.urgent]" v-if="item.questionStatus === 3">
|
|
|
{{
|
|
|
@@ -509,8 +509,16 @@ const loadData = async () => {
|
|
|
while (item.answerValues.length < item.questionList.length) {
|
|
|
item.answerValues.push('');
|
|
|
}
|
|
|
+ // interactionTypeName 按 : 分割,取第 0 项 + reproductiveName 生成互动主题文案
|
|
|
+ const interactionTypeNameStr = item.interactionTypeName != null ? String(item.interactionTypeName) : '';
|
|
|
+ const interactionTypeNameList = interactionTypeNameStr
|
|
|
+ ? interactionTypeNameStr.split(':').map(s => s.trim()).filter(Boolean)
|
|
|
+ : [];
|
|
|
+ const interactionThemeText = `${interactionTypeNameList[0]}:${item.reproductiveName}`;
|
|
|
return {
|
|
|
- ...item
|
|
|
+ ...item,
|
|
|
+ interactionTypeNameList,
|
|
|
+ interactionThemeText,
|
|
|
};
|
|
|
});
|
|
|
} catch (error) {
|