|
|
@ -1,14 +1,16 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<el-card shadow="never" class="aui-card--fill"> |
|
|
|
<el-form :inline="true" :model="tableParams"> |
|
|
|
<el-card shadow="never" |
|
|
|
class="aui-card--fill"> |
|
|
|
<el-form :inline="true" |
|
|
|
:model="tableParams"> |
|
|
|
<el-form-item> |
|
|
|
<el-button type="primary" @click="addShow">新增</el-button> |
|
|
|
<el-button type="primary" |
|
|
|
@click="addShow">新增</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
|
|
|
|
<c-table |
|
|
|
column-type="" |
|
|
|
<c-table column-type="" |
|
|
|
ref="table" |
|
|
|
keyword="partnerApp" |
|
|
|
:url="tableUrl" |
|
|
@ -17,12 +19,13 @@ |
|
|
|
:operations="operations" |
|
|
|
@editShow="editShow" |
|
|
|
@copySecret="copySecret" |
|
|
|
@del="del" |
|
|
|
> |
|
|
|
@resetSecret="resetSecret" |
|
|
|
@del="del"> |
|
|
|
</c-table> |
|
|
|
</el-card> |
|
|
|
|
|
|
|
<edit ref="edit" @editDiaOK="editDiaOK"></edit> |
|
|
|
<edit ref="edit" |
|
|
|
@editDiaOK="editDiaOK"></edit> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -76,6 +79,18 @@ export default { |
|
|
|
return true; |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
lable: "重置秘钥", // 按钮显示名称 |
|
|
|
size: "mini", |
|
|
|
style: "margin: 0 6px;", |
|
|
|
type: "text", |
|
|
|
slot: "", |
|
|
|
plain: false, |
|
|
|
methodName: "resetSecret", // 回调方法名称 |
|
|
|
isShow: (row) => { |
|
|
|
return true; |
|
|
|
}, |
|
|
|
}, |
|
|
|
// { |
|
|
|
// lable: "删除", // 按钮显示名称 |
|
|
|
// size: "mini", |
|
|
@ -133,6 +148,29 @@ export default { |
|
|
|
message: "复制成功", |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 重置秘钥 |
|
|
|
resetSecret (row) { |
|
|
|
this.$confirm('重置之后不可恢复,并且需要使用新的秘钥重新部署外部应用,确认重置?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
const url = '/commonservice/externalapp/resetsecret' |
|
|
|
const param = { |
|
|
|
appId: row.appId |
|
|
|
} |
|
|
|
window.app.ajax.post(url, param, |
|
|
|
(data, rspMsg) => { |
|
|
|
this.$message.success('重置成功') |
|
|
|
this.refresh() |
|
|
|
}, |
|
|
|
(rspMsg, data) => { |
|
|
|
this.$message.error(rspMsg) |
|
|
|
}) |
|
|
|
}).catch(() => { |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
// 编辑 |
|
|
|
editShow (row) { |
|
|
|
this.$refs["edit"].init(row, "U"); |
|
|
|