This commit is contained in:
六如
2024-10-19 20:27:16 +08:00
parent 17bc2d5ca8
commit 0cbadbeda8
25 changed files with 487 additions and 118 deletions

View File

@@ -25,8 +25,14 @@ import {
} from "./showKeys";
import {
dlgKeysSetting,
handleUpdateKeys,
resetIsvKeys,
resetPlatformKeys,
restIsvKeysLoading,
resetPlatformKeysLoading,
settingKeysFormColumns,
settingKeysFormData
settingKeysFormData,
settingKeysFormRules
} from "@/views/isv/list/isvKeys";
</script>
<template>
@@ -84,17 +90,9 @@ import {
<PlusDialogForm
v-model:visible="dlgKeysShow"
v-model="showKeysFormData"
:dialog="{ title: '秘钥' }"
:dialog="{ title: '秘钥 - 标识☆分配给开发者' }"
:form="{ group: showKeysFormColumns, labelPosition: 'right' }"
>
<template #plus-field-privateKeyIsv>
<el-input
v-model="showKeysFormData.privateKeyIsv"
readonly
placeholder=""
/>
<el-button style="margin-top: 20px">重置ISV秘钥</el-button>
</template>
<template #dialog-footer="{ handleCancel }">
<el-button type="primary" @click="handleCancel">关闭</el-button>
</template>
@@ -103,19 +101,32 @@ import {
<PlusDialogForm
v-model:visible="dlgKeysSetting"
v-model="settingKeysFormData"
:dialog="{ title: '秘钥' }"
:form="{ group: settingKeysFormColumns, labelPosition: 'right' }"
:dialog="{ title: '秘钥 - 标识☆分配给开发者' }"
:form="{
group: settingKeysFormColumns,
rules: settingKeysFormRules,
labelPosition: 'right'
}"
:hasErrorTip="false"
@confirm="handleUpdateKeys"
>
<template #plus-field-privateKeyIsv>
<el-input
v-model="showKeysFormData.privateKeyIsv"
readonly
placeholder=""
/>
<el-button style="margin-top: 20px">重置ISV秘钥</el-button>
<template #plus-field-restIsvKeys>
<el-button
type="primary"
:loading="restIsvKeysLoading"
@click="resetIsvKeys"
>
重置ISV秘钥
</el-button>
</template>
<template #dialog-footer="{ handleCancel }">
<el-button type="primary" @click="handleCancel">关闭</el-button>
<template #plus-field-restPlatformKeys>
<el-button
type="primary"
:loading="resetPlatformKeysLoading"
@click="resetPlatformKeys"
>
重置平台秘钥
</el-button>
</template>
</PlusDialogForm>
</el-card>