|
@@ -3,12 +3,22 @@
|
|
class="header-separate"
|
|
class="header-separate"
|
|
v-if="judgeAnswer == 'standardAnswer' ? (userError ? true : false) : true"
|
|
v-if="judgeAnswer == 'standardAnswer' ? (userError ? true : false) : true"
|
|
>
|
|
>
|
|
- <table>
|
|
|
|
|
|
+ <table
|
|
|
|
+ :style="{
|
|
|
|
+ width:
|
|
|
|
+ curQue.tableData.colsConfig.width.length > 5
|
|
|
|
+ ? width_total + 'px'
|
|
|
|
+ : '',
|
|
|
|
+ fontSize: baseSizePhone + 2 + 'px'
|
|
|
|
+ }"
|
|
|
|
+ >
|
|
<colgroup>
|
|
<colgroup>
|
|
<col
|
|
<col
|
|
v-for="(item, i) in curQue.tableData.colsConfig.width"
|
|
v-for="(item, i) in curQue.tableData.colsConfig.width"
|
|
:key="`col-${i}`"
|
|
:key="`col-${i}`"
|
|
- :style="{ width: `${item.val}px` }"
|
|
|
|
|
|
+ :style="{
|
|
|
|
+ width: `${item.val}px`
|
|
|
|
+ }"
|
|
/>
|
|
/>
|
|
</colgroup>
|
|
</colgroup>
|
|
|
|
|
|
@@ -54,7 +64,11 @@
|
|
: ''
|
|
: ''
|
|
]"
|
|
]"
|
|
:style="{
|
|
:style="{
|
|
- 'background-color': `${col.background}`,
|
|
|
|
|
|
+ 'background-color':
|
|
|
|
+ `${col.background}` === '#fff' ||
|
|
|
|
+ `${col.background}` === '#ffffff'
|
|
|
|
+ ? 'transparent'
|
|
|
|
+ : `${col.background}`,
|
|
display: tdHeaderIsNone(i, j)
|
|
display: tdHeaderIsNone(i, j)
|
|
}"
|
|
}"
|
|
>
|
|
>
|
|
@@ -91,6 +105,7 @@
|
|
:disabled="isAnswerMode"
|
|
:disabled="isAnswerMode"
|
|
:autosize="{ minRows: 1, maxRows: 6 }"
|
|
:autosize="{ minRows: 1, maxRows: 6 }"
|
|
@input="enterAnswer(i, j, 'input')"
|
|
@input="enterAnswer(i, j, 'input')"
|
|
|
|
+ :style="{ fontSize: baseSizePhone + 2 + 'px' }"
|
|
/>
|
|
/>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
@@ -226,7 +241,7 @@
|
|
:fn_check_list="[]"
|
|
:fn_check_list="[]"
|
|
:pyNumber="col.pyNumber && col.pyNumber[sdIndex]"
|
|
:pyNumber="col.pyNumber && col.pyNumber[sdIndex]"
|
|
:hengLeg="sdItem.hengLeg"
|
|
:hengLeg="sdItem.hengLeg"
|
|
- :maxFontsize="sdItem.maxFontsize"
|
|
|
|
|
|
+ :maxFontsize="baseSizePhone"
|
|
/>
|
|
/>
|
|
<template
|
|
<template
|
|
v-if="
|
|
v-if="
|
|
@@ -268,7 +283,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import CrossTick from "./CrossTick.vue";
|
|
import CrossTick from "./CrossTick.vue";
|
|
-import AnswerTitle from "../../preview/components/AnswerTitle.vue";
|
|
|
|
|
|
+import AnswerTitle from "../../phonePreview/components/AnswerTitle.vue";
|
|
import OneSentenceTemp from "../components/OneSentenceTemp.vue";
|
|
import OneSentenceTemp from "../components/OneSentenceTemp.vue";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -287,6 +302,9 @@ export default {
|
|
},
|
|
},
|
|
TaskModel: {
|
|
TaskModel: {
|
|
type: String
|
|
type: String
|
|
|
|
+ },
|
|
|
|
+ baseSizePhone: {
|
|
|
|
+ type: Number
|
|
}
|
|
}
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
@@ -297,7 +315,8 @@ export default {
|
|
completeInput: []
|
|
completeInput: []
|
|
},
|
|
},
|
|
userBookanswer: [],
|
|
userBookanswer: [],
|
|
- chsFhList: [",", "。", "”", ":", "》", "?", "!", ";"]
|
|
|
|
|
|
+ chsFhList: [",", "。", "”", ":", "》", "?", "!", ";"],
|
|
|
|
+ width_total: 0 //总宽度
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -360,6 +379,7 @@ export default {
|
|
if (!this.curQue.Bookanswer) {
|
|
if (!this.curQue.Bookanswer) {
|
|
let arr = [];
|
|
let arr = [];
|
|
let flag = false; // 是否含有多个句子类型
|
|
let flag = false; // 是否含有多个句子类型
|
|
|
|
+ this.width_total = 0;
|
|
this.curQue.tableData.body.forEach((item, i) => {
|
|
this.curQue.tableData.body.forEach((item, i) => {
|
|
arr.push({
|
|
arr.push({
|
|
content: []
|
|
content: []
|
|
@@ -384,6 +404,9 @@ export default {
|
|
if (!flag) {
|
|
if (!flag) {
|
|
this.$set(this.curQue, "Bookanswer", arr);
|
|
this.$set(this.curQue, "Bookanswer", arr);
|
|
}
|
|
}
|
|
|
|
+ this.curQue.tableData.colsConfig.width.forEach(width => {
|
|
|
|
+ this.width_total += width.val;
|
|
|
|
+ });
|
|
} else {
|
|
} else {
|
|
this.curQue.Bookanswer.forEach(item => {
|
|
this.curQue.Bookanswer.forEach(item => {
|
|
item.content.forEach(item => {
|
|
item.content.forEach(item => {
|
|
@@ -697,7 +720,7 @@ export default {
|
|
.header-separate {
|
|
.header-separate {
|
|
width: 100%;
|
|
width: 100%;
|
|
margin-bottom: 16px;
|
|
margin-bottom: 16px;
|
|
-
|
|
|
|
|
|
+ overflow: auto;
|
|
table {
|
|
table {
|
|
table-layout: fixed;
|
|
table-layout: fixed;
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
@@ -749,6 +772,7 @@ export default {
|
|
.text-#{$type} {
|
|
.text-#{$type} {
|
|
::v-deep .el-textarea__inner {
|
|
::v-deep .el-textarea__inner {
|
|
text-align: $type;
|
|
text-align: $type;
|
|
|
|
+ background-color: transparent;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|