|
@@ -102,19 +102,17 @@ export default {
|
|
panelData = panel2
|
|
panelData = panel2
|
|
this.dataLength = 4
|
|
this.dataLength = 4
|
|
}
|
|
}
|
|
-
|
|
|
|
- // eslint-disable-next-line no-undef
|
|
|
|
- hiprint.PrintElementTypeManager.buildByHtml($('.ep-draggable-item'))
|
|
|
|
- this.hiprintTemplate = new hiprint.PrintTemplate({
|
|
|
|
- template: panelData,
|
|
|
|
- settingContainer: '#PrintElementOptionSetting',
|
|
|
|
- paginationContainer: '.hiprint-printPagination'
|
|
|
|
- })
|
|
|
|
- // this.hiprintTemplate.design('#hiprint-printTemplate')
|
|
|
|
- // 获取当前放大比例, 当zoom时传true 才会有
|
|
|
|
- // this.scaleValue = hiprintTemplate.editingPanel.scale || 1;
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ // eslint-disable-next-line no-undef
|
|
|
|
+ hiprint.PrintElementTypeManager.buildByHtml($('.ep-draggable-item'))
|
|
|
|
+ this.hiprintTemplate = new hiprint.PrintTemplate({
|
|
|
|
+ template: panelData,
|
|
|
|
+ settingContainer: '#PrintElementOptionSetting',
|
|
|
|
+ paginationContainer: '.hiprint-printPagination'
|
|
|
|
+ })
|
|
|
|
+ // this.hiprintTemplate.design('#hiprint-printTemplate')
|
|
|
|
+ // 获取当前放大比例, 当zoom时传true 才会有
|
|
|
|
+ // this.scaleValue = hiprintTemplate.editingPanel.scale || 1;
|
|
},
|
|
},
|
|
/**
|
|
/**
|
|
* 获取需要打印数据详情
|
|
* 获取需要打印数据详情
|
|
@@ -247,12 +245,13 @@ export default {
|
|
funcType(requestParams)
|
|
funcType(requestParams)
|
|
// 清空当前克隆数据,避免重复添加次数
|
|
// 清空当前克隆数据,避免重复添加次数
|
|
this.clonelData = []
|
|
this.clonelData = []
|
|
|
|
+ return Promise.resolve()
|
|
} catch (error) {
|
|
} catch (error) {
|
|
// console.error('添加打印次数失败')
|
|
// console.error('添加打印次数失败')
|
|
this.clonelData = []
|
|
this.clonelData = []
|
|
this.$errorMsg('添加打印次数失败' + JSON.stringify(requestParams))
|
|
this.$errorMsg('添加打印次数失败' + JSON.stringify(requestParams))
|
|
|
|
+ return Promise.reject()
|
|
}
|
|
}
|
|
- return Promise.resolve()
|
|
|
|
},
|
|
},
|
|
/**
|
|
/**
|
|
* 设置纸张大小
|
|
* 设置纸张大小
|