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({ 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 = { isvId: row.id }; api.viewKeys(params).then(resp => { showKeysFormData.value = resp.data; dlgKeysShow.value = true; }); };