From 19d23fd81d28169e9201a33a1e77d5b75660f31d Mon Sep 17 00:00:00 2001 From: chutingting Date: Mon, 13 Nov 2023 16:36:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E8=81=94=E6=A8=A1=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 2 +- src/types/components.d.ts | 2 + src/views/apiManage/businessCheck.vue | 5 +- src/views/apiManage/model.vue | 136 +++++++------------------- 4 files changed, 43 insertions(+), 102 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 7ed83b7..4190f98 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -103,7 +103,7 @@ export const constantRoutes: RouteRecordRaw[] = [ children: [ { path: "businessCheck", - component: () => import("@/views/business/businessCheck.vue"), + component: () => import("@/views/apiManage/businessCheck.vue"), name: "businessCheck", meta: { title: "businessCheck", diff --git a/src/types/components.d.ts b/src/types/components.d.ts index 869d3c2..e940785 100644 --- a/src/types/components.d.ts +++ b/src/types/components.d.ts @@ -15,6 +15,8 @@ declare module '@vue/runtime-core' { 'EditPosition copy': typeof import('./../components/EditPosition copy.vue')['default'] ElButton: typeof import('element-plus/es')['ElButton'] ElCard: typeof import('element-plus/es')['ElCard'] + ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] + ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup'] ElDialog: typeof import('element-plus/es')['ElDialog'] ElDropdown: typeof import('element-plus/es')['ElDropdown'] ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem'] diff --git a/src/views/apiManage/businessCheck.vue b/src/views/apiManage/businessCheck.vue index f4479b2..32f6325 100644 --- a/src/views/apiManage/businessCheck.vue +++ b/src/views/apiManage/businessCheck.vue @@ -74,6 +74,8 @@ const appId = ref(""); const hideCode = ref(""); const showCode = ref(""); const showText = ref("查看"); +const detailId = ref(""); + const showHideCode = () => { if (showText.value == "查看") { @@ -120,6 +122,7 @@ const getKeyFunc = async () => { try { const res = await getKeyByIdApi(id); console.log(res, "res"); + detailId.value = res.data.id appId.value = res.data.appId; appKey.value = res.data.appKey; signKey.value = res.data.signKey; @@ -171,7 +174,7 @@ const copyKey = (text) => { const keyStatus = ref(""); const changeStatus = async (status) => { - const id = keyId.value; + const id = detailId.value; if (status) { ElMessageBox.confirm("此操作将作废密钥,确定?", "Warning", { confirmButtonText: "确定", diff --git a/src/views/apiManage/model.vue b/src/views/apiManage/model.vue index 556f43d..a675852 100644 --- a/src/views/apiManage/model.vue +++ b/src/views/apiManage/model.vue @@ -1,48 +1,18 @@ + + \ No newline at end of file