|
@@ -547,6 +547,19 @@ export default {
|
|
|
},
|
|
|
toSubmit() {
|
|
|
if (this.isSubmit) return;
|
|
|
+
|
|
|
+ if (!this.cardConfig.cardName) {
|
|
|
+ this.$message.error("题卡标题不能为空!");
|
|
|
+ this.setCurPageNo(0);
|
|
|
+ setTimeout(() => {
|
|
|
+ document.getElementById("cardNameInput").focus();
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (this.checkElementCovered()) {
|
|
|
+ this.$message.error("题卡中存在被遮挡的元件,请注意调整!");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
this.$confirm("确定要提交当前题卡吗?", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|