|
@@ -836,13 +836,14 @@ export default {
|
|
|
async saveOptionWord(saveArr, rowIndex, colIndex) {
|
|
async saveOptionWord(saveArr, rowIndex, colIndex) {
|
|
|
const option = this.data.option_list[rowIndex]?.[colIndex];
|
|
const option = this.data.option_list[rowIndex]?.[colIndex];
|
|
|
if (!option) return;
|
|
if (!option) return;
|
|
|
- const { parsed_text } = await this.createParsedTextInfoPinyin(
|
|
|
|
|
|
|
+ const { parsed_text, rich_text } = await this.createParsedTextInfoPinyin(
|
|
|
option.content,
|
|
option.content,
|
|
|
rowIndex,
|
|
rowIndex,
|
|
|
colIndex,
|
|
colIndex,
|
|
|
'option_list',
|
|
'option_list',
|
|
|
saveArr,
|
|
saveArr,
|
|
|
- ).then(({ rich_text }) => {
|
|
|
|
|
|
|
+ );
|
|
|
|
|
+ if (rich_text) {
|
|
|
let list = rich_text.text_list;
|
|
let list = rich_text.text_list;
|
|
|
list.forEach((item) => {
|
|
list.forEach((item) => {
|
|
|
let inputIndex = 0;
|
|
let inputIndex = 0;
|
|
@@ -869,7 +870,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
this.$set(this.data.option_list[rowIndex][colIndex], 'rich_text_list', list);
|
|
this.$set(this.data.option_list[rowIndex][colIndex], 'rich_text_list', list);
|
|
|
- });
|
|
|
|
|
|
|
+ }
|
|
|
this.$set(this.optionWordDataMap, option.mark, buildWordProofreadData(parsed_text?.paragraph_list || []));
|
|
this.$set(this.optionWordDataMap, option.mark, buildWordProofreadData(parsed_text?.paragraph_list || []));
|
|
|
this.$set(this.optionWordDataSourceMap, option.mark, option.content || '');
|
|
this.$set(this.optionWordDataSourceMap, option.mark, option.content || '');
|
|
|
},
|
|
},
|