diff --git a/web/admin/activity/index.aspx b/web/admin/activity/index.aspx
index 7921a68..50b67b9 100644
--- a/web/admin/activity/index.aspx
+++ b/web/admin/activity/index.aspx
@@ -126,7 +126,7 @@
},
deleteItem(item) {
- if (confirm('是否確定刪除此筆資料?')) {
+ if (confirm('是否確定刪除此筆資料,如有報名資料將一併刪除?')) {
const index = this.data_table.list.indexOf(item)
if (index != -1) {
axios
diff --git a/web/admin/activity/item_reg.aspx b/web/admin/activity/item_reg.aspx
index 4a648fe..1b506e6 100644
--- a/web/admin/activity/item_reg.aspx
+++ b/web/admin/activity/item_reg.aspx
@@ -645,9 +645,11 @@
-
+
diff --git a/web/admin/print/print_multi_new.aspx b/web/admin/print/print_multi_new.aspx
index 15ff2a3..f7ca1f9 100644
--- a/web/admin/print/print_multi_new.aspx
+++ b/web/admin/print/print_multi_new.aspx
@@ -57,7 +57,7 @@
- --%>
@@ -433,9 +433,17 @@
yang = "";
bi = "";
}
-
+
})
+ let content = $(``)
+ .css({
+ position: "absolute", left: "4mm", top: "2mm", fontSize: '12px',
+ "z-index": 9999,
+ "align-items": "center"
+ })
+ .html(x.print_id);
+ tabletpaper.append(content);
//console.log("xCount:", Math.floor( xCount));
let xFloor = Math.floor(xCount);
@@ -688,13 +696,16 @@
$(".tablet-element span").on("click", function (e) {
e.preventDefault();
+ console.log(self);
self.selected = $(this);
let fontSize = $(this).css("font-size");
let fontFamily = $(this).css("font-family");
let textWidth = $(this).css("max-width");
let textHeight = $(this).css("min-height");
- if ($(this).hasClass("liveSpan")) {
+ if ($(this).hasClass("liveSpan") || $(this).hasClass("nameSpan") || $(this).hasClass("rosterSpan")) {
textWidth = $(this).css("width");
+ textHeight = $(this).css("height");
+ fontSize = $(this).css("font-size");
} else if ($(this).hasClass("main-name") || $(this).hasClass("sub-text")) {
textWidth = "";
textHeight = "";
@@ -710,24 +721,31 @@
$("#textWidth").val(textWidth);
$("#textHeight").val(textHeight);
let parentElement = this.parentElement;
- if ($(parentElement).hasClass("nameList") || $(parentElement).hasClass("liveList") || $(parentElement).hasClass("rosterList")) {
+ if ($(parentElement).hasClass("nameList") || $(parentElement).hasClass("liveList") ||
+ $(parentElement).hasClass("rosterList")) {
$("#textX").prop("readonly", true);
$("#textY").prop("readonly", true);
$("#fontSize").prop("readonly", true);
- $("#textBreakCount").prop("readonly", false);
- $("#textBreakWord").prop("readonly", false);
+ //$("#textBreakCount").prop("readonly", false);
+ //$("#textBreakWord").prop("readonly", false);
} else if ($(this).hasClass("main-name") || $(this).hasClass("sub-text")) {
$("#textX").prop("readonly", true);
$("#textY").prop("readonly", true);
$("#fontSize").prop("readonly", true);
- $("#textBreakCount").prop("readonly", true);
- $("#textBreakWord").prop("readonly", true);
+ //$("#textBreakCount").prop("readonly", true);
+ //$("#textBreakWord").prop("readonly", true);
$("#textWidth").prop("readonly", true);
$("#textHeight").prop("readonly", true);
}
});
+ $(".tablet-element .rosterspan").on("click", function (e) {
+ $("#toast_body").html("此格式不提供單項物件修改");
+ self.toast.show();
+ });
+
+
},
fix2(val) {
@@ -904,8 +922,28 @@
if ($("#indivualSetup").prop("checked")) {
$(this.selected).css("font-size", $("#fontSize").val())
} else if ($("#allSetup").prop("checked")) {
- $("#toast_body").html("字體大小不可在全域中修改");
- this.toast.show();
+ if (this.selected.find(".liveList").length >= 1 || this.selected.find(".nameList").length >= 1 ||
+ this.selected.find(".rosterList").length >= 1) {
+ classList.forEach(w => {
+ if ($(this.selected.children()).first().hasClass(w)) {
+ $(`.${w}`).parent().each((index, y) => {
+ $(y).css("font-size", $("#fontSize").val())
+ })
+ }
+ });
+ } else if (this.selected.hasClass("nameSpan")) {
+ $(".nameSpan").css("font-size", $("#fontSize").val())
+
+ } else if (this.selected.hasClass("liveSpan")) {
+ $(".liveSpan").css("font-size", $("#fontSize").val())
+ } else if (this.selected.hasClass("rosterSpan")) {
+ $(".rosterSpan").css("font-size", $("#fontSize").val())
+ } else {
+ $("#toast_body").html("字體大小不可在全域中修改");
+ this.toast.show();
+ }
+ //$("#toast_body").html("字體大小不可在全域中修改");
+ //this.toast.show();
}
break;
case "width":
@@ -920,7 +958,7 @@
} else if (this.selected.hasClass("nameSpan")) {
let spans = $(this.selected.parent().first()).find(".nameSpan");
spans.each(function (index, x) {
- $(x).css("max-width", $("#textWidth").val());
+ $(x).css("width", $("#textWidth").val());
});
} else if (this.selected.hasClass("liveSpan")) {
let spans = $(this.selected.parent().first()).find(".liveSpan");
@@ -930,13 +968,31 @@
} else if (this.selected.hasClass("rosterSpan")) {
let spans = $(this.selected.parent().first()).find(".rosterSpan");
spans.each(function (index, x) {
- $(x).css("max-width", $("#textWidth").val());
+ $(x).css("width", $("#textWidth").val());
});
}
} else if ($("#allSetup").prop("checked")) {
- $("#toast_body").html("寬度不可在全域中修改");
- this.toast.show();
+ if (this.selected.find(".liveList").length >= 1 || this.selected.find(".nameList").length >= 1 ||
+ this.selected.find(".rosterList").length >= 1) {
+ classList.forEach(w => {
+ if ($(this.selected.children()).first().hasClass(w)) {
+ $(`.${w}`).parent().each((index, y) => {
+ $(y).css("width", $("#textWidth").val())
+ })
+ }
+ });
+ } else if (this.selected.hasClass("nameSpan")) {
+ $(".nameSpan").css("width", $("#textWidth").val());
+
+ } else if (this.selected.hasClass("liveSpan")) {
+ $(".liveSpan").css("width", $("#textWidth").val());
+ } else if (this.selected.hasClass("rosterSpan")) {
+ $(".rosterSpan").css("width", $("#textWidth").val());
+ } else {
+ $("#toast_body").html("寬度不可在全域中修改");
+ this.toast.show();
+ }
}
break;
case "height":
@@ -950,7 +1006,7 @@
} else if (this.selected.hasClass("nameSpan")) {
let spans = $(this.selected.parent().first()).find(".nameSpan");
spans.each(function (index, x) {
- $(x).css("min-height", $("#textHeight").val());
+ $(x).css("height", $("#textHeight").val());
});
} else if (this.selected.hasClass("liveSpan")) {
let spans = $(this.selected.parent().first()).find(".liveSpan");
@@ -961,13 +1017,31 @@
} else if (this.selected.hasClass("rosterSpan")) {
let spans = $(this.selected.parent().first()).find(".rosterSpan");
spans.each(function (index, x) {
- $(x).css("min-height", $("#textHeight").val());
+ $(x).css("height", $("#textHeight").val());
});
}
} else if ($("#allSetup").prop("checked")) {
- $("#toast_body").html("高度不可在全域中修改");
- this.toast.show();
+ if (this.selected.find(".liveList").length >= 1 || this.selected.find(".nameList").length >= 1 ||
+ this.selected.find(".rosterList").length >= 1) {
+ classList.forEach(w => {
+ if ($(this.selected.children()).first().hasClass(w)) {
+ $(`.${w}`).parent().each((index, y) => {
+ $(y).css("height", $("#textHeight").val())
+ })
+ }
+ });
+ } else if (this.selected.hasClass("nameSpan")) {
+ $(".nameSpan").css("min-height", $("#textHeight").val());
+
+ } else if (this.selected.hasClass("liveSpan")) {
+ $(".liveSpan").css("height", $("#textHeight").val());
+ } else if (this.selected.hasClass("rosterSpan")) {
+ $(".rosterSpan").css("min-height", $("#textHeight").val());
+ } else {
+ $("#toast_body").html("高度不可在全域中修改");
+ this.toast.show();
+ }
}
break;
case "breakCount":