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>
<LinkButton auth="deploy.app.edit" onClick={() => store.showExtForm(record.id, info)}>编辑</LinkButton>
<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>
</span>
)

View File

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