diff --git a/src/api/app/access.js b/src/api/app/access.js
index 5843188..a460f8f 100644
--- a/src/api/app/access.js
+++ b/src/api/app/access.js
@@ -24,3 +24,11 @@ export function appResetAccess(accessId) {
method: 'put'
})
}
+
+// 删除密钥对
+export function mchDelAccess(accessId) {
+ return request({
+ url: `/app/access/${accessId}`,
+ method: 'delete'
+ })
+}
diff --git a/src/assets/icons/svg/bank.svg b/src/assets/icons/svg/bank.svg
index 151ffa8..96e5b15 100644
--- a/src/assets/icons/svg/bank.svg
+++ b/src/assets/icons/svg/bank.svg
@@ -1 +1 @@
-
+
diff --git a/src/assets/styles/ruoyi.scss b/src/assets/styles/ruoyi.scss
index acb2d0e..88410cd 100644
--- a/src/assets/styles/ruoyi.scss
+++ b/src/assets/styles/ruoyi.scss
@@ -302,3 +302,14 @@
background: linear-gradient(180deg, #e2f3ff -3%, #b8e1ff 100%);
}
}
+
+.el-scrollbar {
+ width: 100%; // 宽度可以设置也可以不设置 因为宽度默认就是填充满父级元素的内容区
+ height: 100%; // 必须设置el-scrollbar的高度
+ .el-scrollbar__wrap { // 实际上我们的内容是放在这个div下面的
+ // height: 100%; // 渲染出来的div.el-scrollbar__wrap默认会添加height:100%的属性。我们可以设置为105%来隐藏元素水平滚动条
+ height: 100%;
+ overflow: scroll;
+ overflow-x:auto;
+ }
+}
diff --git a/src/utils/constants.js b/src/utils/constants.js
index 37811bf..536cc19 100644
--- a/src/utils/constants.js
+++ b/src/utils/constants.js
@@ -34,3 +34,21 @@ export const StoreApplyStatus = {
AUDIT_PASS: "2", // 审核通过
AUDIT_FAIL: "3" // 审核不通过
}
+
+/**
+ * API收费标准类型
+ */
+export const ApiPriceType = {
+ YEAR: {
+ type: "1",
+ unit: "年"
+ },
+ MONTH: {
+ type: "2",
+ unit: "月"
+ },
+ COUNT: {
+ type: "3",
+ unit: "次"
+ },
+}
diff --git a/src/utils/mixins.js b/src/utils/mixins.js
index e68a313..57bd4bc 100644
--- a/src/utils/mixins.js
+++ b/src/utils/mixins.js
@@ -1,4 +1,4 @@
-import { views } from '@/utils/constants'
+import { ApiPriceType, views } from '@/utils/constants'
export const $view = {
props: {
@@ -88,3 +88,19 @@ export const $withdrawServiceType = {
}
}
}
+
+// API收费标准
+export const $apiPriceType = {
+ computed: {
+ // 单位
+ apiPriceTypeUnit() {
+ return (type) => {
+ let key = Object.keys(ApiPriceType).find(key => ApiPriceType[key].type === type);
+ if (key) {
+ return ApiPriceType[key].unit;
+ }
+ return "";
+ }
+ }
+ }
+}
diff --git a/src/views/mch/access/index.vue b/src/views/mch/access/index.vue
index 4425e08..1ab7a37 100644
--- a/src/views/mch/access/index.vue
+++ b/src/views/mch/access/index.vue
@@ -25,38 +25,6 @@
@click="handleAdd"
>申请秘钥
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -65,6 +33,10 @@
******
+
+ {{d.row.surplusCount}} 次
+
+
重置秘钥
-
-
-
-
-
-
-
+ 删除
@@ -110,13 +81,15 @@
取 消
+
+