排版
This commit is contained in:
@@ -80,7 +80,7 @@
|
||||
top: -2px;
|
||||
}
|
||||
.equal-card {
|
||||
min-height: 260px;
|
||||
min-height: 280px;
|
||||
}
|
||||
.checkbox-narrow {
|
||||
min-width: 32px;
|
||||
@@ -402,6 +402,8 @@
|
||||
selected: {
|
||||
style:""
|
||||
},
|
||||
actitem: "",
|
||||
pageSize:"",
|
||||
isAllSelected: false,
|
||||
dialog: false,
|
||||
addDialog: false, // 新增項目對話框
|
||||
@@ -440,6 +442,12 @@
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
actitem: {
|
||||
handler() {
|
||||
this.getActItem();
|
||||
},
|
||||
deep: true
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -524,6 +532,9 @@
|
||||
} else {
|
||||
this.selected.style = "";
|
||||
}
|
||||
|
||||
this.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 {
|
||||
@@ -570,11 +581,26 @@
|
||||
|
||||
}
|
||||
}
|
||||
//this.getActItem();
|
||||
|
||||
});
|
||||
|
||||
this.getStyle();
|
||||
|
||||
},
|
||||
methods: {
|
||||
getActItem() {
|
||||
axios
|
||||
.post('/api/tablet/GetActItem', { itemNum: this.actitem })
|
||||
.then(response => {
|
||||
console.log(response);
|
||||
if (response.data.result == "Y" && response.data.data) {
|
||||
this.pageSize = response.data.data.pageSize;
|
||||
this.getStyle();
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
},
|
||||
getStyle() {
|
||||
axios
|
||||
.post('/api/tablet/GetStyleData', {}, {})
|
||||
@@ -583,14 +609,13 @@
|
||||
if (response.data.data) {
|
||||
response.data.data.forEach(x => {
|
||||
if (x.styleID != "000001") {
|
||||
this.code.style.push(x)
|
||||
console.log(this.pageSize, x.paperSize);
|
||||
if (this.pageSize&&this.pageSize==x.paperSize) {
|
||||
this.code.style.push(x)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
//this.code.style = response.data.data;
|
||||
//this.detail_table.list = response.data.list
|
||||
//this.detail_table.count = response.data.count;
|
||||
//this.detail_table.loading = false
|
||||
})
|
||||
.catch(error => console.log(error))
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user