調整牌位排版,增加疏文列印
This commit is contained in:
@@ -276,7 +276,9 @@
|
||||
{ name: "超薦1", path: "../../admin/print/html/tablet-1_new.svg" },
|
||||
{ name: "超薦2", path: "../../admin/print/html/tablet-1B_new.svg" },
|
||||
{ name: "消災1", path: "../../admin/print/html/tablet-2.svg" },
|
||||
{ name: "消災2", path: "../../admin/print/html/tablet-2B.svg" }
|
||||
{ name: "消災2", path: "../../admin/print/html/tablet-2B.svg" },
|
||||
{ name: "消災3", path: "../../admin/print/html/tablet-2C.svg" },
|
||||
{ name: "消災4", path: "../../admin/print/html/tablet-2D.svg" }
|
||||
],
|
||||
allStyle: [
|
||||
],
|
||||
@@ -503,9 +505,11 @@
|
||||
await axios
|
||||
.post(HTTP_HOST + 'api/tablet/GetTabletElement', {})
|
||||
.then(response => {
|
||||
console.log(response)
|
||||
//if (response.result=="Y") {
|
||||
if (response.status == "200") {
|
||||
let data = response.data;
|
||||
console.log("data:",data)
|
||||
if (data.result == "Y") {
|
||||
data.data.forEach(x => {
|
||||
self.tabletElements.push(x);
|
||||
@@ -1085,6 +1089,7 @@
|
||||
//this.render();
|
||||
},
|
||||
displayItem(id) {
|
||||
console.log("displayItem:", this.elements, id);
|
||||
let el = this.elements.find(x => x.id === id);
|
||||
el.style.visibility = el.style.visibility === "hidden" ? "" : "hidden";
|
||||
//要判斷如果所在位置超出範圍,要拉回來放
|
||||
|
||||
Reference in New Issue
Block a user