diff --git a/src/api/agent/device.js b/src/api/agent/device.js index ad0c365..ec54f6b 100644 --- a/src/api/agent/device.js +++ b/src/api/agent/device.js @@ -24,3 +24,16 @@ export function agentUnbindDeviceMch(deviceId) { } }) } + +/** + * 代理商更新设备信息 + * @param data + * @returns {AxiosPromise} + */ +export function agentUpdateDevice(data) { + return request({ + url: "/agent/device", + method: "put", + data + }) +} diff --git a/src/utils/constants.js b/src/utils/constants.js index 98169d9..c06ed34 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -173,6 +173,7 @@ export const ConfigKey = { RISK_WITHDRAW_ENABLED: "risk.withdraw.enabled", // 是否开启提现风控 RISK_WITHDRAW_TIME: "risk.withdraw.time", // 风控订单和提现相隔时长(分钟) RISK_WITHDRAW_COUNT: "risk.withdraw.count", // 提现风控累计风险次数 + LOGIN_WITH_PHONE: "login.with.phone", // 登录获取手机号 } // 用户类型 diff --git a/src/views/agent/device/index.vue b/src/views/agent/device/index.vue index 91f8ec2..9be7dca 100644 --- a/src/views/agent/device/index.vue +++ b/src/views/agent/device/index.vue @@ -151,7 +151,7 @@ import DeviceLink from '@/components/Business/Device/DeviceLink.vue' import { $serviceType } from '@/utils/mixins' import { mchGetDevice, mchUpdateDevice } from '@/api/mch/device' import DeviceTable from '@/views/system/device/components/DeviceTable.vue' -import { agentListDevice, agentUnbindDeviceMch } from '@/api/agent/device' +import { agentListDevice, agentUnbindDeviceMch, agentUpdateDevice } from '@/api/agent/device' import { agentViews, views } from '@/utils/constants' export default { @@ -378,7 +378,7 @@ export default { this.$refs["form"].validate(valid => { if (valid) { if (this.form.deviceId != null) { - mchUpdateDevice(this.form).then(response => { + agentUpdateDevice(this.form).then(response => { this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); diff --git a/src/views/system/config/group.vue b/src/views/system/config/group.vue index bd33e52..3f9785e 100644 --- a/src/views/system/config/group.vue +++ b/src/views/system/config/group.vue @@ -35,6 +35,7 @@ + diff --git a/src/views/system/recharge/detail.vue b/src/views/system/recharge/detail.vue index c50c780..4ee6f1a 100644 --- a/src/views/system/recharge/detail.vue +++ b/src/views/system/recharge/detail.vue @@ -48,27 +48,30 @@ - - {{detail.deviceProductId | defaultValue}} - - - - 使用中 已结束 未开始 + + + + + + + + {{detail.openMsg | defaultValue}} +