diff --git a/src/api/admin.js b/src/api/admin.js index 9b177ab..fd9b2ab 100644 --- a/src/api/admin.js +++ b/src/api/admin.js @@ -147,6 +147,112 @@ const admin = { data: data }); }, + getInterventionList: async (data) => { + return request({ + url: '/admin/intervention/getInterventionList', + method: Method.POST, + data: data + }); + }, + getBusinessmoneylogPlatform: async () => { + return request({ + url: '/admin/businessmoneylog/getPlatform', + method: Method.POST, + }); + }, + getBusinessmoneylogPurpose: async () => { + return request({ + url: '/admin/businessmoneylog/getPurpose', + method: Method.POST, + }); + }, + getBusinessmoneylogList: async (data) => { + return request({ + url: '/admin/businessmoneylog/getList', + method: Method.POST, + data: data + }); + }, + getUsermoneylogPlatform: async () => { + return request({ + url: '/admin/usermoneylog/getPlatform', + method: Method.POST, + }); + }, + getUsermoneylogPurpose: async () => { + return request({ + url: '/admin/usermoneylog/getPurpose', + method: Method.POST, + }); + }, + getUsermoneylogList: async (data) => { + return request({ + url: '/admin/usermoneylog/getList', + method: Method.POST, + data: data + }); + }, + getWithdrawalPerson: async () => { + return request({ + url: '/admin/withdrawal/getPerson', + method: Method.POST, + }); + }, + getWithdrawalPlatform: async () => { + return request({ + url: '/admin/withdrawal/getPlatform', + method: Method.POST, + }); + }, + getWithdrawalList: async (data) => { + return request({ + url: '/admin/withdrawal/getList', + method: Method.POST, + data: data + }); + }, + getWithdrawllogStatus: async (data) => { + return request({ + url: '/admin/withdrawallog/getStatus', + method: Method.POST, + data: data + }); + }, + getWithdrawllogList: async (data) => { + return request({ + url: '/admin/withdrawallog/getList', + method: Method.POST, + data: data + }); + }, + getBusinessList: async (data) => { + return request({ + url: '/admin/business/getList', + method: Method.POST, + data: data + }); + }, + getUserList: async (data) => { + return request({ + url: '/admin/user/getList', + method: Method.POST, + data: data + }); + }, + getAccountList: async (data) => { + return request({ + url: '/admin/account/getList', + method: Method.POST, + data: data + }); + }, + getTaskblockList: async (data) => { + return request({ + url: '/admin/taskblock/getList', + method: Method.POST, + data: data + }); + }, } export default admin; diff --git a/src/pages/manage/pages/account-management/blackout-records.vue b/src/pages/manage/pages/account-management/blackout-records.vue index 500430c..6569a31 100644 --- a/src/pages/manage/pages/account-management/blackout-records.vue +++ b/src/pages/manage/pages/account-management/blackout-records.vue @@ -60,33 +60,33 @@ const columns = [ ]; const FilterConfig = [ { - key: 'wd', + key: 'b_uid', + type: 'input', + label: '商家ID', + placeholder: '请输入商家ID', + }, + { + key: 'u_uid', type: 'input', label: '达人ID', placeholder: '请输入达人ID', }, { - key: 'wd', - type: 'input', - label: '账号', - placeholder: '请输入账号', - }, - { - key: 'wd', + key: 'account', type: 'input', label: '推广账号', placeholder: '请输入推广账号', }, { - key: 'wd', + key: 'rangeTime', + start: 'start_time', + end: 'end_time', type: 'datetime', label: '推广日期', }, ]; -const po = reactive({ - wd: null, -}); +const po = reactive({}); const vo = reactive({ page: '', rows: [], @@ -95,7 +95,7 @@ const vo = reactive({ const {loading, pagination, initFetchData} = useTableQuery({ parameter: po, - api: Api.system.getData, + api: Api.admin.getTaskblockList, callback: (data) => { Object.assign(vo, data); } @@ -106,6 +106,7 @@ const {loading, pagination, initFetchData} = useTableQuery({ diff --git a/src/pages/manage/pages/account-management/expert-account.vue b/src/pages/manage/pages/account-management/expert-account.vue index d5b57e3..5354a93 100644 --- a/src/pages/manage/pages/account-management/expert-account.vue +++ b/src/pages/manage/pages/account-management/expert-account.vue @@ -69,47 +69,45 @@ const columns = [ ]; const FilterConfig = [ { - key: 'wd', + key: 'uid', type: 'input', label: '达人ID', placeholder: '请输入达人ID', }, { - key: 'wd', + key: 'puid', type: 'input', label: '邀请人', placeholder: '请输入邀请人', }, { - key: 'wd', + key: 'mobile', type: 'input', label: '手机号', placeholder: '请输入手机号', }, { - key: 'wd', + key: 'status', type: 'select', label: '状态', placeholder: '请选择状态', api: async () => ({ data: [ { - name: '选项一', + name: '禁用', + id: 0, + }, + { + name: '可用', id: 1, }, - { - name: '选项二', - id: 2, - }, - { - name: '选项三', - id: 3, - }, ] }), }, { - key: 'wd', + key: 'rangTime', + start: 'start_time', + end: 'end_time', type: 'datetime', label: '入驻时间', }, @@ -131,7 +129,7 @@ const vo = reactive({ const {loading, pagination, initFetchData} = useTableQuery({ parameter: po, - api: Api.system.getData, + api: Api.admin.getUserList, callback: (data) => { Object.assign(vo, data); } @@ -142,6 +140,7 @@ const {loading, pagination, initFetchData} = useTableQuery({ diff --git a/src/pages/manage/pages/account-management/merchant-account.vue b/src/pages/manage/pages/account-management/merchant-account.vue index 5414b05..ecf0928 100644 --- a/src/pages/manage/pages/account-management/merchant-account.vue +++ b/src/pages/manage/pages/account-management/merchant-account.vue @@ -8,37 +8,37 @@ import EditInfoModal from "./components/EditInfoModal.vue"; const columns = [ { title: '商家ID', - dataIndex: 'key', + dataIndex: 'uid', }, { title: '昵称', - dataIndex: 'key', + dataIndex: 'nickname', }, { title: '头像', - dataIndex: 'key', + dataIndex: 'avatar', }, { title: '手机号', - dataIndex: 'key', + dataIndex: 'mobile', }, { title: '微信号', - dataIndex: 'image', + dataIndex: 'wechat', slotName: 'image', }, { title: '状态', - dataIndex: 'status', - slotName: 'status', + dataIndex: 'status_text', + slotName: 'status_text', }, { title: '邀请人', - dataIndex: 'key', + dataIndex: 'puid', }, { title: '入驻日期', - dataIndex: 'key', + dataIndex: 'createtime', }, { title: '操作', @@ -49,47 +49,45 @@ const columns = [ ]; const FilterConfig = [ { - key: 'wd', + key: 'uid', type: 'input', label: '商家ID', placeholder: '请输入商家ID', }, { - key: 'wd', + key: 'puid', type: 'input', label: '邀请人', placeholder: '请输入邀请人', }, { - key: 'wd', + key: 'mobile', type: 'input', label: '手机号', placeholder: '请输入手机号', }, { - key: 'wd', + key: 'status', type: 'select', label: '状态', placeholder: '请选择状态', api: async () => ({ data: [ { - name: '选项一', + name: '禁用', + id: 0, + }, + { + name: '可用', id: 1, }, - { - name: '选项二', - id: 2, - }, - { - name: '选项三', - id: 3, - }, ] }), }, { - key: 'wd', + key: 'rangeTime', + start: 'start_time', + end: 'end_time', type: 'datetime', label: '入驻时间', }, @@ -111,7 +109,7 @@ const vo = reactive({ const {loading, pagination, initFetchData} = useTableQuery({ parameter: po, - api: Api.system.getData, + api: Api.admin.getBusinessList, callback: (data) => { Object.assign(vo, data); } @@ -122,6 +120,7 @@ const {loading, pagination, initFetchData} = useTableQuery({ @@ -133,7 +132,7 @@ const {loading, pagination, initFetchData} = useTableQuery({ :loading="loading" :columns="columns" class="flex-grow"> -