diff --git a/src/api/xq/sysPush.js b/src/api/xq/sysPush.js index 24ff36a..2079ce8 100644 --- a/src/api/xq/sysPush.js +++ b/src/api/xq/sysPush.js @@ -42,3 +42,23 @@ export function delSysPush(id) { method: 'delete' }) } + +export function runSysPush(id) { + return request({ + url: '/xq/sysPush/run', + method: 'post', + data: { + id + } + }) +} + +export function closeSysPush(id) { + return request({ + url: '/xq/sysPush/close', + method: 'post', + data: { + id + } + }) +} diff --git a/src/api/xq/userExtend.js b/src/api/xq/userExtend.js index 8e3f8b5..73c0f04 100644 --- a/src/api/xq/userExtend.js +++ b/src/api/xq/userExtend.js @@ -1,6 +1,5 @@ import request from '@/utils/request' -// 查询用户邀请列表 export function listUserExtend(query) { return request({ url: '/xq/userExtend/list', @@ -9,7 +8,6 @@ export function listUserExtend(query) { }) } -// 查询用户邀请详细 export function getUserExtend(id) { return request({ url: '/xq/userExtend/' + id, @@ -17,7 +15,6 @@ export function getUserExtend(id) { }) } -// 修改用户邀请 export function updateIncomeCoin(data) { return request({ url: '/xq/userExtend/updateIncomeCoin', @@ -26,3 +23,10 @@ export function updateIncomeCoin(data) { }) } +export function updateWxTransNum(data) { + return request({ + url: '/xq/userExtend/updateWxTransNum', + method: 'post', + data: data + }) +} diff --git a/src/constant/statusMap.js b/src/constant/statusMap.js index 808fb84..c76c901 100644 --- a/src/constant/statusMap.js +++ b/src/constant/statusMap.js @@ -142,12 +142,6 @@ export const reportTypeList = [ { value: 4, label: 'IM页面'}, ] -export const platformTypeList = [ - { value: '1', label: '支付宝',listClass: listClass.primary}, - { value: '2', label: '微信',listClass: listClass.danger}, - { value: 'ADMIN', label: '后台操作',listClass: listClass.info}, -] - export const ipMicList = [ { value: 1, label: 'IP'}, { value: 2, label: 'MIC'}, @@ -228,40 +222,6 @@ export const userErrorLogHomeIndexList = [ { value: 'other', label: '其他',listClass: listClass.success}, ] -export const systemPushGroupIdList = [ - { value: 0, label: '单个用户'}, - { value: 1, label: '全部用户'}, - { value: 2, label: '男用户'}, - { value: 3, label: '女用户'}, - { value: 4, label: '认证女神'}, -] - -export const systemPushLogStatus = [ - { value: 0, label: '未推送',listClass: listClass.info}, - { value: 1, label: '推送中',listClass: listClass.primary}, - { value: 2, label: '推送失败',listClass: listClass.danger}, - { value: 3, label: '推送成功',listClass: listClass.success}, -] - -export const systemPushSendTimeTypeList = [ - { value: 0, label: '手动发送',listClass: listClass.primary}, - { value: 1, label: '定时发送',listClass: listClass.danger}, -] -export const systemPushStatusList = [ - { value: 0, label: '未执行',listClass: listClass.info}, - { value: 1, label: '执行中',listClass: listClass.warning}, - { value: 2, label: '队列执行中',listClass: listClass.primary}, - { value: 3, label: '已完成',listClass: listClass.success}, - { value: 4, label: '已取消',listClass: listClass.info}, - { value: 10, label: '执行失败',listClass: listClass.danger} -] -export const systemPushTypeList = [ - { value: 0, label: '纯文字消息',listClass: listClass.info}, - { value: 1, label: '文本消息',listClass: listClass.primary}, - { value: 2, label: '单图文消息',listClass: listClass.success}, - { value: 3, label: '多图文消息',listClass: listClass.warning}, - { value: 4, label: '纯图文消息',listClass: listClass.warning}, -] export const versionPlatformList = [ { value: 1, label: '安卓'}, { value: 2, label: 'IOS'}, @@ -358,6 +318,41 @@ export const userCompanyNatureList = [ /** 用户 - 为谁征婚 */ + +export const systemPushGroupIdList = [ + { value: 0, label: '单个用户'}, + { value: 1, label: '全部用户'}, + { value: 2, label: '男用户'}, + { value: 3, label: '女用户'}, +] + +export const systemPushLogStatus = [ + { value: 0, label: '未推送',listClass: listClass.info}, + { value: 1, label: '推送中',listClass: listClass.primary}, + { value: 2, label: '推送失败',listClass: listClass.danger}, + { value: 3, label: '推送成功',listClass: listClass.success}, +] + +export const systemPushSendTimeTypeList = [ + { value: 0, label: '手动发送',listClass: listClass.primary}, + { value: 1, label: '定时发送',listClass: listClass.danger}, +] +export const systemPushStatusList = [ + { value: 0, label: '未执行',listClass: listClass.info}, + { value: 1, label: '执行中',listClass: listClass.warning}, + { value: 2, label: '队列执行中',listClass: listClass.primary}, + { value: 3, label: '已完成',listClass: listClass.success}, + { value: 4, label: '已取消',listClass: listClass.info}, + { value: 10, label: '执行失败',listClass: listClass.danger} +] +export const systemPushTypeList = [ + { value: 0, label: '纯文字消息',listClass: listClass.info}, + { value: 1, label: '文本消息',listClass: listClass.primary}, + { value: 2, label: '单图文消息',listClass: listClass.success}, + { value: 3, label: '多图文消息',listClass: listClass.warning}, + { value: 4, label: '纯图文消息',listClass: listClass.warning}, +] + export const userForPersonalsList = [ { value: 1, label: '为自己征婚'}, { value: 2, label: '为子女征婚' }, @@ -506,6 +501,13 @@ export const payStatusList = [ { value: 10, label: '无需支付',listClass: listClass.info}, ] +export const platformTypeList = [ + { value: "ADMIN", label: '后台管理操作',listClass: listClass.danger}, + { value: "WX", label: '微信',listClass: listClass.success}, + { value: "ALI", label: '支付宝',listClass: listClass.primary}, + { value: "SYS", label: '系统操作',listClass: listClass.info}, +] + export const booleanList = [ { value: true, label: '是',listClass: listClass.danger}, { value: false, label: '否',listClass: listClass.info}, @@ -551,3 +553,9 @@ export const reportStatusList = [ { value: 0, label: '未处理',listClass: listClass.danger}, { value: 1, label: '已处理',listClass: listClass.primary}, ] + +export const wxTransOrderSourceList = [ + { value: 1, label: '订单',listClass: listClass.primary}, + { value: 2, label: 'VIP赠送',listClass: listClass.warning}, + { value: 3, label: '后台管理新增',listClass: listClass.danger}, +] diff --git a/src/views/xq/sysPush/add-sys-push-dialog.vue b/src/views/xq/sysPush/add-sys-push-dialog.vue new file mode 100644 index 0000000..18d6455 --- /dev/null +++ b/src/views/xq/sysPush/add-sys-push-dialog.vue @@ -0,0 +1,508 @@ + + + diff --git a/src/views/xq/sysPush/index.vue b/src/views/xq/sysPush/index.vue index a15bfcd..76a5f68 100644 --- a/src/views/xq/sysPush/index.vue +++ b/src/views/xq/sysPush/index.vue @@ -1,29 +1,27 @@