|
@@ -500,6 +500,7 @@ export default {
|
|
|
commTemplateList: [],
|
|
|
templateName: '',
|
|
|
templateId: '',
|
|
|
+ templateVersion: '',
|
|
|
reportTemplateItem: 'REPORT_TEMPLATE_ITEM',
|
|
|
reportInterval: null,
|
|
|
toolChart: [],
|
|
@@ -681,6 +682,7 @@ export default {
|
|
|
}
|
|
|
if (this.templateId) {
|
|
|
data.id = this.templateId
|
|
|
+ data.version = this.templateVersion
|
|
|
updateReportTemplate(data).then(res => {
|
|
|
loading.close()
|
|
|
let msg = res.data ? '修改成功!' : '修改失败!'
|
|
@@ -717,6 +719,7 @@ export default {
|
|
|
/** 新建报表内容 */
|
|
|
newReportTemplate(type) {
|
|
|
this.templateId = null
|
|
|
+ this.templateVersion = null
|
|
|
this.templateName = ''
|
|
|
this.clearReportTemplate(type)
|
|
|
// this.$emit('refreshReportTemplateData', true)
|
|
@@ -1488,6 +1491,7 @@ export default {
|
|
|
luckysheet.destroy()
|
|
|
this.templateName = res.data.templateName
|
|
|
this.templateId = res.data.id
|
|
|
+ this.templateVersion = res.data.version
|
|
|
let templateData = res.data.templateData
|
|
|
let option = JSON.parse(JSON.stringify(this.luckysheetOption))
|
|
|
option.data = JSON.parse(templateData).data
|