|
|
@@ -508,7 +508,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
async handleViewPinyin(isPrompt = false) {
|
|
|
- this.data.has_identify = 'true';
|
|
|
+ this.data.has_identify = 'false';
|
|
|
if (isPrompt) {
|
|
|
try {
|
|
|
await this.$confirm('刷新将会重置分词和拼音,是否刷新?', '提示', {
|
|
|
@@ -556,6 +556,7 @@ export default {
|
|
|
});
|
|
|
inputIndex += 1;
|
|
|
this.$set(item, 'hasInput', true);
|
|
|
+ this.data.has_identify = 'true';
|
|
|
}
|
|
|
});
|
|
|
// // 去除所有的 font-size 样式
|
|
|
@@ -574,18 +575,18 @@ export default {
|
|
|
|
|
|
const tasks = [];
|
|
|
this.data.option_list.forEach((row, i) => {
|
|
|
- row.forEach((item, j) => {
|
|
|
- const text = item.content;
|
|
|
+ row.forEach((col, j) => {
|
|
|
+ const text = col.content;
|
|
|
if (!text) return;
|
|
|
let obj = {
|
|
|
text: text,
|
|
|
pinyin_proofread_word_list: [],
|
|
|
};
|
|
|
- this.$set(item, 'paragraph_list_parameter', obj);
|
|
|
+ this.$set(col, 'paragraph_list_parameter', obj);
|
|
|
tasks.push(
|
|
|
this.createParsedTextInfoPinyin(text, i, j).then(({ parsed_text, rich_text }) => {
|
|
|
- this.$set(this.optionWordDataMap, item.mark, buildWordProofreadData(parsed_text?.paragraph_list || []));
|
|
|
- this.$set(this.optionWordDataSourceMap, item.mark, text);
|
|
|
+ this.$set(this.optionWordDataMap, col.mark, buildWordProofreadData(parsed_text?.paragraph_list || []));
|
|
|
+ this.$set(this.optionWordDataSourceMap, col.mark, text);
|
|
|
let list = rich_text.text_list;
|
|
|
list.forEach((item) => {
|
|
|
let inputIndex = 0;
|
|
|
@@ -603,6 +604,8 @@ export default {
|
|
|
};
|
|
|
inputIndex++;
|
|
|
item.word_list[index] = { ...items, ...obj };
|
|
|
+ this.$set(col, 'hasInput', true);
|
|
|
+ this.data.has_identify = 'true';
|
|
|
} else {
|
|
|
items.type = 'text';
|
|
|
}
|
|
|
@@ -611,7 +614,7 @@ export default {
|
|
|
item.type = 'text';
|
|
|
}
|
|
|
});
|
|
|
- this.$set(item, 'rich_text_list', list);
|
|
|
+ this.$set(col, 'rich_text_list', list);
|
|
|
}),
|
|
|
);
|
|
|
});
|