|
|
@@ -24,15 +24,19 @@ export default { |
|
|
|
methods: { |
|
|
|
handleSave(data) { |
|
|
|
const obj = { |
|
|
|
contentJson: { |
|
|
|
id: data.id, |
|
|
|
type: data.type, |
|
|
|
title: data.title, |
|
|
|
width: data.width, |
|
|
|
height: data.height, |
|
|
|
pageWidth: data.pageWidth, |
|
|
|
pageHeight: data.pageHeight, |
|
|
|
tempItems: data.tempItems, |
|
|
|
}, |
|
|
|
id: data.id, |
|
|
|
tenantId: this.tenantId, |
|
|
|
type: data.type, |
|
|
|
title: data.title, |
|
|
|
width: data.width, |
|
|
|
height: data.height, |
|
|
|
pageWidth: data.pageWidth, |
|
|
|
pageHeight: data.pageHeight, |
|
|
|
tempItems: data.tempItems, |
|
|
|
} |
|
|
|
console.log(obj, 'handleSave') |
|
|
|
this.addNewModel(obj) |
|
|
@@ -44,7 +48,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
addNewModel(data) { |
|
|
|
this.$axios.post(baseUrl + "/print/saveTemplates", data) |
|
|
|
this.$axios.post(baseUrl + "/print/updateTemplates", data) |
|
|
|
.then(res => { |
|
|
|
console.log(res, 'res') |
|
|
|
if (res.data.code == 200) { |
|
|
|