浏览代码

upload

release
HolyKnightIX 11 个月前
父节点
当前提交
a0ecc32ab2
共有 1 个文件被更改,包括 11 次插入7 次删除
  1. +11
    -7
      example/page/designer.vue

+ 11
- 7
example/page/designer.vue 查看文件

@@ -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) {


正在加载...
取消
保存