|
@@ -186,7 +186,8 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
getCustom(arr) { // 自定义确认
|
|
getCustom(arr) { // 自定义确认
|
|
- console.log(arr, this.temporary.name, '结果')
|
|
|
|
|
|
+ console.log(arr, this.temporary, '结果')
|
|
|
|
+ this.templateId = { 'from': this.temporary.from, 'name': this.temporary.name === '创建提测报告模版' ? '新建模版' : '编辑模版' }
|
|
this.customList = [...arr]
|
|
this.customList = [...arr]
|
|
this.reportHome = this.temporary.name
|
|
this.reportHome = this.temporary.name
|
|
},
|
|
},
|
|
@@ -230,7 +231,7 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
open_new_template(val, show) { // 点击新建模版
|
|
open_new_template(val, show) { // 点击新建模版
|
|
- !val ? this.templateId = { 'name': '新建模版', from: this.customList.length === 0 ? this.temporary.from : [] } : this.templateId = { 'name': '编辑模版', 'repot_up': val.id }
|
|
|
|
|
|
+ !val ? this.templateId = { 'name': '新建模版', from: this.customList.length === 0 ? {} : this.temporary.from } : this.templateId = { 'name': '编辑模版', 'repot_up': val.id }
|
|
this.tits = this.reportHome
|
|
this.tits = this.reportHome
|
|
if (this.templateId.name === '新建模版') {
|
|
if (this.templateId.name === '新建模版') {
|
|
this.reportHome = `创建提测报告模版` // 步骤条
|
|
this.reportHome = `创建提测报告模版` // 步骤条
|