|
|
|
@ -89,10 +89,7 @@ export default { |
|
|
|
...item, |
|
|
|
...item, |
|
|
|
_select: false, |
|
|
|
_select: false, |
|
|
|
})); |
|
|
|
})); |
|
|
|
// 如果没有总分行,添加一个 |
|
|
|
this.form.tableData.push({ _select: false, paramName: '总分' }); |
|
|
|
if (!hasTotalRow) { |
|
|
|
|
|
|
|
this.form.tableData.push({ _select: false, paramName: '总分' }); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.form.tableData = [{ _select: false, paramName: '总分' }]; |
|
|
|
this.form.tableData = [{ _select: false, paramName: '总分' }]; |
|
|
|
this.addTable(); |
|
|
|
this.addTable(); |
|
|
|
@ -188,7 +185,7 @@ export default { |
|
|
|
this.$message.success('保存成功'); |
|
|
|
this.$message.success('保存成功'); |
|
|
|
this.closeDialog(true); // 成功后刷新父页面 |
|
|
|
this.closeDialog(true); // 成功后刷新父页面 |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|