|
@@ -14,8 +14,8 @@
|
|
|
border-bottom: 30px solid #dee2ea;
|
|
|
.table_top_box {
|
|
|
display: flex;
|
|
|
- // align-items: center;
|
|
|
- // justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
padding: 0 37px;
|
|
|
.table_top_box_left {
|
|
|
display: flex;
|
|
@@ -239,6 +239,7 @@ it .ql-editor,
|
|
|
:tableResultType="table.resultType"
|
|
|
@CHANGE_FORM_DATA="CHANGE_FORM_DATA"
|
|
|
@CHANGE_TABLE_ROW="CHANGE_TABLE_ROW"
|
|
|
+ ref="ScaleTable"
|
|
|
/>
|
|
|
<div class="rich_text" v-if="table.textType === 12">
|
|
|
<el-form-item
|
|
@@ -280,6 +281,7 @@ it .ql-editor,
|
|
|
ref="ScoreResultsRef"
|
|
|
>
|
|
|
<ScoreResultsTable
|
|
|
+ ref="ScoreResultsTable"
|
|
|
v-if="ScoreResultsShow"
|
|
|
:list="scoreresults.scoreresultsdatas"
|
|
|
@CHANEG_SCORE_RESULT="CHANEG_SCORE_RESULT"
|
|
@@ -520,7 +522,7 @@ export default {
|
|
|
console.dir(this.formtParams());
|
|
|
},
|
|
|
formtParams() {
|
|
|
- console.log('this.scaleData.klScaleParent');
|
|
|
+ console.log("this.scaleData.klScaleParent");
|
|
|
console.dir(this.scaleData.klScaleParent);
|
|
|
// 提交数据的处理 start....
|
|
|
// 1. 新建一个整体对象
|
|
@@ -545,7 +547,7 @@ export default {
|
|
|
console.log(item.groupNum, group.groupId);
|
|
|
return item.groupNum === group.groupId;
|
|
|
});
|
|
|
- console.log('groupFindIndex',groupFindIndex);
|
|
|
+ console.log("groupFindIndex", groupFindIndex);
|
|
|
// 6. 查看数组中有没有同组的,如果没有同组的,直接push
|
|
|
if (groupFindIndex === -1) {
|
|
|
groupArr.push({
|
|
@@ -948,6 +950,14 @@ export default {
|
|
|
this.$set(this.scaleData.klScaleParent[tableIndex], "klScaleSaveGroup", [
|
|
|
{ ...defaultDate }
|
|
|
]);
|
|
|
+ },
|
|
|
+ resizeTable() {
|
|
|
+ console.log("this.$refs.ScaleTable", this.$refs.ScaleTable);
|
|
|
+ this.$refs.ScaleTable.forEach((item) => {
|
|
|
+ item.resizeTable();
|
|
|
+ });
|
|
|
+ this.$refs.ScoreResultsTable.resizeTable();
|
|
|
+ // this.$refs.ScaleTable.resizeTable();
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -1078,7 +1088,7 @@ export default {
|
|
|
// 判断是否需要得分结果
|
|
|
ScoreResultsShow() {
|
|
|
const index = this.scaleData.klScaleParent.findIndex(
|
|
|
- (item) => item.resultType === 1
|
|
|
+ (item) => item.resultType === 2
|
|
|
);
|
|
|
if (index === -1) {
|
|
|
return false;
|