diff --git a/src/api/admin.js b/src/api/admin.js index 53e1278..9b177ab 100644 --- a/src/api/admin.js +++ b/src/api/admin.js @@ -122,6 +122,31 @@ const admin = { data: data }); }, + getStatusAttr: async () => { + return request({ + url: '/admin/exchangelog/getStatusAttr', + method: Method.POST + }); + }, + getPattenAttr: async () => { + return request({ + url: '/admin/exchangelog/getPattenAttr', + method: Method.POST + }); + }, + getTypeAttr: async () => { + return request({ + url: '/admin/exchangelog/getTypeAttr', + method: Method.POST + }); + }, + getExchangeLog: async (data) => { + return request({ + url: '/admin/exchangelog/getExchangeLog', + method: Method.POST, + data: data + }); + }, } export default admin; diff --git a/src/pages/manage/pages/manage-reward-mission/subtask-review.vue b/src/pages/manage/pages/manage-reward-mission/subtask-review.vue index 4b2dad9..17a96fa 100644 --- a/src/pages/manage/pages/manage-reward-mission/subtask-review.vue +++ b/src/pages/manage/pages/manage-reward-mission/subtask-review.vue @@ -34,19 +34,19 @@ const columns = [ ]; const FilterConfig = [ { - key: 'wd', + key: 'code', type: 'input', label: '任务编号', placeholder: '任务编号', }, { - key: 'wd', + key: 'uid', type: 'input', label: '子任务编号', placeholder: '子任务编号', }, { - key: 'wd', + key: 'check_status', type: 'select', label: '平台审核状态', placeholder: '请选择平台审核状态', @@ -55,7 +55,7 @@ const FilterConfig = [ }, }, { - key: 'wd', + key: 'status', type: 'select', label: '子任务状态', placeholder: '请选择子任务状态', @@ -71,9 +71,7 @@ const FilterConfig = [ }, ]; -const po = reactive({ - wd: null, -}); +const po = reactive({}); const vo = reactive({ page: '', rows: [], diff --git a/src/pages/manage/pages/message-center/message-review.vue b/src/pages/manage/pages/message-center/message-review.vue index 1e5041e..0010c10 100644 --- a/src/pages/manage/pages/message-center/message-review.vue +++ b/src/pages/manage/pages/message-center/message-review.vue @@ -53,87 +53,48 @@ const columns = [ ]; const FilterConfig = [ { - key: 'wd', + key: 'm_code', type: 'input', label: '任务编号', placeholder: '请输入任务编号', }, { - key: 'wd', + key: 'uid', type: 'input', label: '子任务编号', placeholder: '请输入子任务编号', }, { - key: 'wd', + key: 'status', type: 'select', label: '审核状态', placeholder: '请选择审核状态', - api: async () => ({ - data: [ - { - name: '选项一', - id: 1, - }, - { - name: '选项二', - id: 2, - }, - { - name: '选项三', - id: 3, - }, - ] - }), + api: async () => { + return await Api.admin.getStatusAttr(); + }, }, { - key: 'wd', + key: 'pattern', type: 'select', label: '类型', placeholder: '请选择类型', span: 6, - api: async () => ({ - data: [ - { - name: '选项一', - id: 1, - }, - { - name: '选项二', - id: 2, - }, - { - name: '选项三', - id: 3, - }, - ] - }), + api: async () => { + return await Api.admin.getPattenAttr(); + }, }, { - key: 'wd', + key: 'type', type: 'select', label: '来源', placeholder: '请选择来源', span: 6, - api: async () => ({ - data: [ - { - name: '选项一', - id: 1, - }, - { - name: '选项二', - id: 2, - }, - { - name: '选项三', - id: 3, - }, - ] - }), + api: async () => { + return await Api.admin.getTypeAttr(); + }, }, { - key: 'wd', + key: 'code', type: 'input', label: 'ID', placeholder: '请输入ID', @@ -141,6 +102,8 @@ const FilterConfig = [ }, { key: 'wd', + start: 'start_time', + end: 'end_time', type: 'datetime', label: '创建日期', span: 6, @@ -152,9 +115,7 @@ const rowSelection = reactive({ showCheckedAll: true, onlyCurrent: false, }); -const po = reactive({ - wd: null, -}); +const po = reactive({}); const vo = reactive({ page: '', rows: [], @@ -163,7 +124,7 @@ const vo = reactive({ const {loading, pagination, initFetchData} = useTableQuery({ parameter: po, - api: Api.system.getData, + api: Api.admin.getExchangeLog, callback: (data) => { Object.assign(vo, data); } @@ -174,6 +135,7 @@ const {loading, pagination, initFetchData} = useTableQuery({