|
@@ -16,7 +16,7 @@
|
|
|
}"
|
|
}"
|
|
|
>
|
|
>
|
|
|
<colgroup>
|
|
<colgroup>
|
|
|
- <col v-for="(item, i) in data.col_width" :key="`col-${i}`" :style="{ width: `${item.value}px` }" />
|
|
|
|
|
|
|
+ <col v-for="(item, i) in data.col_width" :key="`col-${i}`" :style="{ width: `${item.value}%` }" />
|
|
|
</colgroup>
|
|
</colgroup>
|
|
|
<tr v-for="(row, i) in data.option_list" :key="`tr-${i}`" :style="{ height: data.property.height + 'px' }">
|
|
<tr v-for="(row, i) in data.option_list" :key="`tr-${i}`" :style="{ height: data.property.height + 'px' }">
|
|
|
<template v-for="(col, j) in row">
|
|
<template v-for="(col, j) in row">
|
|
@@ -243,14 +243,12 @@
|
|
|
<table
|
|
<table
|
|
|
:style="{
|
|
:style="{
|
|
|
width: '100%',
|
|
width: '100%',
|
|
|
-
|
|
|
|
|
- height: data.property.height + 'px',
|
|
|
|
|
}"
|
|
}"
|
|
|
>
|
|
>
|
|
|
<colgroup>
|
|
<colgroup>
|
|
|
<col v-for="(item, i) in data.col_width" :key="`col-${i}`" :style="{ width: `${item.value}%` }" />
|
|
<col v-for="(item, i) in data.col_width" :key="`col-${i}`" :style="{ width: `${item.value}%` }" />
|
|
|
</colgroup>
|
|
</colgroup>
|
|
|
- <tr v-for="(row, i) in data.option_list" :key="`tr-${i}`">
|
|
|
|
|
|
|
+ <tr v-for="(row, i) in data.option_list" :key="`tr-${i}`" :style="{ height: data.property.height + 'px' }">
|
|
|
<template v-for="(col, j) in row">
|
|
<template v-for="(col, j) in row">
|
|
|
<td
|
|
<td
|
|
|
:key="col.mark"
|
|
:key="col.mark"
|
|
@@ -285,6 +283,7 @@
|
|
|
: data.styles.bgColor
|
|
: data.styles.bgColor
|
|
|
? data.styles.bgColor
|
|
? data.styles.bgColor
|
|
|
: '',
|
|
: '',
|
|
|
|
|
+ height: data.property.height + 'px',
|
|
|
}"
|
|
}"
|
|
|
>
|
|
>
|
|
|
<div :style="[tdStyle, computedRichStyle(col.content)]" class="cell-wrap">
|
|
<div :style="[tdStyle, computedRichStyle(col.content)]" class="cell-wrap">
|
|
@@ -694,6 +693,44 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 获取无文本内容的数据结构,用于保存为个人模板时的样式模板
|
|
|
|
|
+ */
|
|
|
|
|
+ getNoTextContentData() {
|
|
|
|
|
+ let noTextContentData = JSON.parse(JSON.stringify(this.data));
|
|
|
|
|
+ const resetFieldMap = {
|
|
|
|
|
+ record_list: [],
|
|
|
|
|
+ vocabulary: '', // 用于选词的词汇
|
|
|
|
|
+ word_list: [], // 选词列表
|
|
|
|
|
+ has_identify: 'false', // 是否已识别
|
|
|
|
|
+ paragraph_list: [],
|
|
|
|
|
+ paragraph_list_parameter: {
|
|
|
|
|
+ text: '',
|
|
|
|
|
+ is_first_sentence_first_hz_pinyin_first_char_upper_case: 'true',
|
|
|
|
|
+ pinyin_proofread_word_list: [],
|
|
|
|
|
+ },
|
|
|
|
|
+ analysis_list: [],
|
|
|
|
|
+ answer_list: [],
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ Object.assign(noTextContentData, resetFieldMap);
|
|
|
|
|
+
|
|
|
|
|
+ noTextContentData.answer_lists.forEach((item) => {
|
|
|
|
|
+ item.answer = '';
|
|
|
|
|
+ item.answer_list = [];
|
|
|
|
|
+ });
|
|
|
|
|
+ noTextContentData.option_list.forEach((item) => {
|
|
|
|
|
+ item.content = '';
|
|
|
|
|
+ item.model_essay = [];
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ if (noTextContentData.answer) {
|
|
|
|
|
+ noTextContentData.answer.answer_list = [];
|
|
|
|
|
+ noTextContentData.answer.reference_answer = '';
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return noTextContentData;
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|