From 7ec9dc76c7cd6d5b7720092a7cda87fa1d92915d Mon Sep 17 00:00:00 2001 From: zhuxiao Date: Wed, 16 Jun 2021 19:19:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=95=86=E6=88=B7=E7=A7=81?= =?UTF-8?q?=E9=92=A5=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jeepay-ui-manager/src/views/mch/AddOrEdit.vue | 28 +- jeepay-ui-manager/src/views/mch/Detail.vue | 12 - jeepay-ui-merchant/src/config/appConfig.js | 4 +- .../src/views/pay/MchPayPassageAddOrEdit.vue | 194 ----------- .../src/views/pay/PayConfigList.vue | 301 ------------------ .../src/views/pay/PayPassageList.vue | 95 ------ 6 files changed, 2 insertions(+), 632 deletions(-) delete mode 100644 jeepay-ui-merchant/src/views/pay/MchPayPassageAddOrEdit.vue delete mode 100644 jeepay-ui-merchant/src/views/pay/PayConfigList.vue delete mode 100644 jeepay-ui-merchant/src/views/pay/PayPassageList.vue diff --git a/jeepay-ui-manager/src/views/mch/AddOrEdit.vue b/jeepay-ui-manager/src/views/mch/AddOrEdit.vue index 15bb73e..24869ec 100644 --- a/jeepay-ui-manager/src/views/mch/AddOrEdit.vue +++ b/jeepay-ui-manager/src/views/mch/AddOrEdit.vue @@ -122,14 +122,6 @@ - - - - - 随机生成私钥 - - - @@ -233,7 +225,6 @@ export default { isvNo: [{ validator: checkIsvNo, trigger: 'blur' }], contactEmail: [{ required: false, pattern: /^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/, message: '请输入正确的邮箱地址', trigger: 'blur' }], contactTel: [{ required: true, pattern: /^1\d{10}$/, message: '请输入正确的手机号', trigger: 'blur' }], - privateKey: [{ required: true, message: '请输入私钥或点击随机生成私钥' }], newPwd: [{ required: false, trigger: 'blur' }, { validator: (rule, value, callBack) => { if (!this.sysPassword.defaultPass) { @@ -261,7 +252,7 @@ export default { methods: { show: function (recordId) { // 弹层打开事件 this.isAdd = !recordId - this.saveObject = { 'state': 1, 'type': 1, 'privateKey': '' } // 数据清空 + this.saveObject = { 'state': 1, 'type': 1 } // 数据清空 if (this.$refs.infoFormModel !== undefined) { this.$refs.infoFormModel.resetFields() } @@ -275,9 +266,6 @@ export default { that.recordId = recordId req.getById(API_URL_MCH_LIST, recordId).then(res => { that.saveObject = res - if (!that.saveObject.privateKey) { // 解决商户私钥为空无法写入的问题 - that.saveObject.privateKey = '' - } }) this.visible = true } else { @@ -334,20 +322,6 @@ export default { searchFunc: function () { // 点击【查询】按钮点击事件 this.$refs.infoTable.refTable(true) }, - randomKey: function (randomFlag, min, max) { // 生成随机128位私钥 - let str = '' - let range = min - const arr = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'] - // 随机产生 - if (randomFlag) { - range = Math.round(Math.random() * (max - min)) + min - } - for (var i = 0; i < range; i++) { - var pos = Math.round(Math.random() * (arr.length - 1)) - str += arr[ pos ] - } - this.saveObject.privateKey = str - }, // 使用默认密码重置是否为true isResetPass () { if (!this.sysPassword.defaultPass) { diff --git a/jeepay-ui-manager/src/views/mch/Detail.vue b/jeepay-ui-manager/src/views/mch/Detail.vue index ab2f6d5..af776cc 100644 --- a/jeepay-ui-manager/src/views/mch/Detail.vue +++ b/jeepay-ui-manager/src/views/mch/Detail.vue @@ -87,18 +87,6 @@ - - - - - - - diff --git a/jeepay-ui-merchant/src/config/appConfig.js b/jeepay-ui-merchant/src/config/appConfig.js index 05c804e..1a9cc22 100644 --- a/jeepay-ui-merchant/src/config/appConfig.js +++ b/jeepay-ui-merchant/src/config/appConfig.js @@ -27,7 +27,5 @@ export const asyncRouteDefine = { 'MchAppPage': { defaultPath: '/apps', component: () => import ('@/views/mchApp/List') }, // 商户应用列表 'PayOrderListPage': { defaultPath: '/payOrder', component: () => import('@/views/order/pay/PayOrderList') }, // 支付订单列表 - 'RefundOrderListPage': { defaultPath: '/refundOrder', component: () => import('@/views/order/refund/RefundOrderList') }, // 退款订单列表 - 'PayConfigPage': { defaultPath: '/pay/config', component: () => import('@/views/pay/PayConfigList') }, // 支付参数配置 - 'PayPassagePage': { defaultPath: '/pay/passage', component: () => import('@/views/pay/PayPassageList') } // 支付通道配置 + 'RefundOrderListPage': { defaultPath: '/refundOrder', component: () => import('@/views/order/refund/RefundOrderList') } // 退款订单列表 } diff --git a/jeepay-ui-merchant/src/views/pay/MchPayPassageAddOrEdit.vue b/jeepay-ui-merchant/src/views/pay/MchPayPassageAddOrEdit.vue deleted file mode 100644 index 2410773..0000000 --- a/jeepay-ui-merchant/src/views/pay/MchPayPassageAddOrEdit.vue +++ /dev/null @@ -1,194 +0,0 @@ - - - - diff --git a/jeepay-ui-merchant/src/views/pay/PayConfigList.vue b/jeepay-ui-merchant/src/views/pay/PayConfigList.vue deleted file mode 100644 index 44ad50d..0000000 --- a/jeepay-ui-merchant/src/views/pay/PayConfigList.vue +++ /dev/null @@ -1,301 +0,0 @@ - - - - - diff --git a/jeepay-ui-merchant/src/views/pay/PayPassageList.vue b/jeepay-ui-merchant/src/views/pay/PayPassageList.vue deleted file mode 100644 index b9b3924..0000000 --- a/jeepay-ui-merchant/src/views/pay/PayPassageList.vue +++ /dev/null @@ -1,95 +0,0 @@ - - -- GitLab