牌位排版

This commit is contained in:
2026-04-06 19:06:22 +08:00
parent f087e4aa61
commit 36174834a8
5 changed files with 533 additions and 245 deletions
+13 -7
View File
@@ -403,7 +403,8 @@
style:""
},
actitem: "",
pageSize:"",
pageSize: "",
defaultStyle:"",
isAllSelected: false,
dialog: false,
addDialog: false, // 新增項目對話框
@@ -506,12 +507,12 @@
window.addEventListener('message', (event) => {
this.isAllSelected = false;
console.log('editor.html - received message event');
console.log('editor.html - event origin:', event.origin);
console.log('editor.html - parent origin:', window.parent.location.origin);
//console.log('editor.html - event origin:', event.origin);
//console.log('editor.html - parent origin:', window.parent.location.origin);
if (event.origin === window.parent.location.origin) {
console.log('editor.html - origin check passed');
console.log('editor.html - received data:', event.data);
//console.log('editor.html - origin check passed');
//console.log('editor.html - received data:', event.data);
const receivedData = event.data;
this.family_deceased_Y_selected = [];
this.family_deceased_N_selected = [];
@@ -526,15 +527,16 @@
if (receivedData.tabletItem) {
this.tabletItem = receivedData.tabletItem;
}
//console.log("actitem:", receivedData.tabletItem.actitem_num_selected.val);
console.log("receivedData::",receivedData);
if (receivedData.tabletItem.style) {
this.selected.style = receivedData.tabletItem.style;
} else {
this.selected.style = "";
}
//console.log("actitem:", receivedData.tabletItem.actitem_num_selected.val);
this.actitem = receivedData.tabletItem.actitem_num_selected.val;
console.log("actitem:",receivedData.tabletItem.actitem_num_selected.val);
//console.log("actitem:",receivedData.tabletItem.actitem_num_selected.val);
// 處理 f_num_tablet 資料
if (this.tabletItem.f_num_tablet) {
try {
@@ -595,6 +597,9 @@
console.log(response);
if (response.data.result == "Y" && response.data.data) {
this.pageSize = response.data.data.pageSize;
this.defaultStyle = response.data.data.defaultStyle;
this.selected.style = response.data.data.defaultStyle;
console.log("shit:",this.selected.style);
this.getStyle();
}
}
@@ -615,6 +620,7 @@
}
}
})
}
})
.catch(error => console.log(error))