mirror of https://github.com/openspug/spug
U web update
parent
ca63dcb62e
commit
2b83006f17
|
@ -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>
|
||||||
)
|
)
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue