|
@@ -258,9 +258,7 @@
|
|
>新增小题</el-button
|
|
>新增小题</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
- :disabled="
|
|
|
|
- tableData.length <= 1 || checkSubQuestionHasMarker(scope.row)
|
|
|
|
- "
|
|
|
|
|
|
+ :disabled="checkSubQuestionHasMarker(scope.row)"
|
|
class="btn-danger"
|
|
class="btn-danger"
|
|
type="text"
|
|
type="text"
|
|
@click="toDeleteSub(scope.row)"
|
|
@click="toDeleteSub(scope.row)"
|
|
@@ -622,6 +620,10 @@ export default {
|
|
row.intervalScore = Math.min(row.totalScore, row.intervalScore);
|
|
row.intervalScore = Math.min(row.totalScore, row.intervalScore);
|
|
},
|
|
},
|
|
checkData() {
|
|
checkData() {
|
|
|
|
+ if (!this.tableData.length) {
|
|
|
|
+ this.$message.error("请添加大题");
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
let errorMessages = [];
|
|
let errorMessages = [];
|
|
this.tableData.forEach((item) => {
|
|
this.tableData.forEach((item) => {
|
|
let errorMsg = ``;
|
|
let errorMsg = ``;
|