Commit e1f09b97 by zhangquan

单个模板初始化

1 parent 9a44c900
...@@ -92,6 +92,18 @@ ...@@ -92,6 +92,18 @@
listeners: { listeners: {
click: row => this.changeContractTMPL(row.scope) click: row => this.changeContractTMPL(row.scope)
} }
},
{
type: 'el-button',
name: row => {
return '模板初始化'
},
attrs: {
type: 'text'
},
listeners: {
click: row => this.initTmpl(row.scope)
}
} }
], ],
searchForm: { searchForm: {
...@@ -203,6 +215,12 @@ ...@@ -203,6 +215,12 @@
ids ids
} }
}, },
initTmpl(row) {
this.tipObj = {
visible: true,
ids: [row.id]
}
},
toInitTmpl(){ toInitTmpl(){
const params = { const params = {
templateIds: this.tipObj.ids templateIds: this.tipObj.ids
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!