U web update

pull/22/head
vapao 2020-01-13 22:33:31 +08:00
parent ca63dcb62e
commit 2b83006f17
2 changed files with 4 additions and 1 deletions

View File

@ -98,6 +98,8 @@ class ComTable extends React.Component {
<span> <span>
<LinkButton auth="deploy.app.edit" onClick={() => store.showExtForm(record.id, info)}>编辑</LinkButton> <LinkButton auth="deploy.app.edit" onClick={() => store.showExtForm(record.id, info)}>编辑</LinkButton>
<Divider type="vertical"/> <Divider type="vertical"/>
<LinkButton auth="deploy.app.edit" onClick={() => store.showExtForm(record.id, info, true)}>克隆配置</LinkButton>
<Divider type="vertical"/>
<LinkButton auth="deploy.app.edit" onClick={() => this.handleDeployDelete(info)}>删除</LinkButton> <LinkButton auth="deploy.app.edit" onClick={() => this.handleDeployDelete(info)}>删除</LinkButton>
</span> </span>
) )

View File

@ -38,7 +38,7 @@ class Store {
this.formVisible = true; this.formVisible = true;
}; };
showExtForm = (app_id, info) => { showExtForm = (app_id, info, isClone) => {
this.page = 0; this.page = 0;
this.app_id = app_id; this.app_id = app_id;
if (info) { if (info) {
@ -47,6 +47,7 @@ class Store {
} else { } else {
this.ext2Visible = true this.ext2Visible = true
} }
isClone && delete info.id;
this.deploy = info this.deploy = info
} else { } else {
this.addVisible = true; this.addVisible = true;