mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
5.0
This commit is contained in:
86
sop-admin/sop-admin-frontend/src/views/isv/list/showKeys.ts
Normal file
86
sop-admin/sop-admin-frontend/src/views/isv/list/showKeys.ts
Normal file
@@ -0,0 +1,86 @@
|
||||
import { ref } from "vue";
|
||||
import type { PlusFormGroupRow } from "plus-pro-components";
|
||||
import { CreditCard } from "@element-plus/icons-vue";
|
||||
import { api } from "@/api/isvList";
|
||||
|
||||
// 弹窗显示
|
||||
export const dlgKeysShow = ref(false);
|
||||
export const showKeysFormData = ref<object>({
|
||||
publicKeyIsv: "",
|
||||
privateKeyIsv: "",
|
||||
publicKeyPlatform: "",
|
||||
privateKeyPlatform: ""
|
||||
});
|
||||
// 表单内容
|
||||
export const showKeysFormColumns: PlusFormGroupRow[] = [
|
||||
{
|
||||
title: "ISV公私钥 - 标识☆分配给开发者",
|
||||
icon: CreditCard,
|
||||
columns: [
|
||||
{
|
||||
label: "ISV公钥",
|
||||
prop: "publicKeyIsv",
|
||||
valueType: "textarea",
|
||||
labelWidth: 100,
|
||||
fieldProps: {
|
||||
showWordLimit: false,
|
||||
placeholder: "",
|
||||
readonly: true,
|
||||
autosize: { minRows: 2, maxRows: 4 }
|
||||
}
|
||||
},
|
||||
{
|
||||
label: "☆ISV私钥",
|
||||
prop: "privateKeyIsv",
|
||||
valueType: "textarea",
|
||||
labelWidth: 100,
|
||||
fieldProps: {
|
||||
showWordLimit: false,
|
||||
placeholder: "",
|
||||
readonly: true,
|
||||
autosize: { minRows: 2, maxRows: 4 }
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "平台公私钥 - 标识☆分配给开发者",
|
||||
icon: CreditCard,
|
||||
columns: [
|
||||
{
|
||||
label: "☆平台公钥",
|
||||
prop: "publicKeyPlatform",
|
||||
valueType: "textarea",
|
||||
labelWidth: 100,
|
||||
fieldProps: {
|
||||
showWordLimit: false,
|
||||
placeholder: "",
|
||||
readonly: true,
|
||||
autosize: { minRows: 2, maxRows: 4 }
|
||||
}
|
||||
},
|
||||
{
|
||||
label: "平台私钥",
|
||||
prop: "privateKeyPlatform",
|
||||
valueType: "textarea",
|
||||
labelWidth: 100,
|
||||
fieldProps: {
|
||||
showWordLimit: false,
|
||||
placeholder: "",
|
||||
readonly: true,
|
||||
autosize: { minRows: 2, maxRows: 4 }
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
export const viewKeys = (row: any) => {
|
||||
const params = {
|
||||
appId: row.appId
|
||||
};
|
||||
api.viewKeys(params).then(resp => {
|
||||
showKeysFormData.value = resp.data;
|
||||
dlgKeysShow.value = true;
|
||||
});
|
||||
};
|
Reference in New Issue
Block a user