This commit is contained in:
2025-04-21 11:47:50 +08:00
parent e89510d7c0
commit 03190e0662
3 changed files with 50 additions and 65 deletions

View File

@@ -122,6 +122,31 @@ const admin = {
data: data 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; export default admin;

View File

@@ -34,19 +34,19 @@ const columns = [
]; ];
const FilterConfig = [ const FilterConfig = [
{ {
key: 'wd', key: 'code',
type: 'input', type: 'input',
label: '任务编号', label: '任务编号',
placeholder: '任务编号', placeholder: '任务编号',
}, },
{ {
key: 'wd', key: 'uid',
type: 'input', type: 'input',
label: '子任务编号', label: '子任务编号',
placeholder: '子任务编号', placeholder: '子任务编号',
}, },
{ {
key: 'wd', key: 'check_status',
type: 'select', type: 'select',
label: '平台审核状态', label: '平台审核状态',
placeholder: '请选择平台审核状态', placeholder: '请选择平台审核状态',
@@ -55,7 +55,7 @@ const FilterConfig = [
}, },
}, },
{ {
key: 'wd', key: 'status',
type: 'select', type: 'select',
label: '子任务状态', label: '子任务状态',
placeholder: '请选择子任务状态', placeholder: '请选择子任务状态',
@@ -71,9 +71,7 @@ const FilterConfig = [
}, },
]; ];
const po = reactive({ const po = reactive({});
wd: null,
});
const vo = reactive({ const vo = reactive({
page: '', page: '',
rows: [], rows: [],

View File

@@ -53,87 +53,48 @@ const columns = [
]; ];
const FilterConfig = [ const FilterConfig = [
{ {
key: 'wd', key: 'm_code',
type: 'input', type: 'input',
label: '任务编号', label: '任务编号',
placeholder: '请输入任务编号', placeholder: '请输入任务编号',
}, },
{ {
key: 'wd', key: 'uid',
type: 'input', type: 'input',
label: '子任务编号', label: '子任务编号',
placeholder: '请输入子任务编号', placeholder: '请输入子任务编号',
}, },
{ {
key: 'wd', key: 'status',
type: 'select', type: 'select',
label: '审核状态', label: '审核状态',
placeholder: '请选择审核状态', placeholder: '请选择审核状态',
api: async () => ({ api: async () => {
data: [ return await Api.admin.getStatusAttr();
{ },
name: '选项一',
id: 1,
}, },
{ {
name: '选项二', key: 'pattern',
id: 2,
},
{
name: '选项三',
id: 3,
},
]
}),
},
{
key: 'wd',
type: 'select', type: 'select',
label: '类型', label: '类型',
placeholder: '请选择类型', placeholder: '请选择类型',
span: 6, span: 6,
api: async () => ({ api: async () => {
data: [ return await Api.admin.getPattenAttr();
{ },
name: '选项一',
id: 1,
}, },
{ {
name: '选项二', key: 'type',
id: 2,
},
{
name: '选项三',
id: 3,
},
]
}),
},
{
key: 'wd',
type: 'select', type: 'select',
label: '来源', label: '来源',
placeholder: '请选择来源', placeholder: '请选择来源',
span: 6, span: 6,
api: async () => ({ api: async () => {
data: [ return await Api.admin.getTypeAttr();
{ },
name: '选项一',
id: 1,
}, },
{ {
name: '选项二', key: 'code',
id: 2,
},
{
name: '选项三',
id: 3,
},
]
}),
},
{
key: 'wd',
type: 'input', type: 'input',
label: 'ID', label: 'ID',
placeholder: '请输入ID', placeholder: '请输入ID',
@@ -141,6 +102,8 @@ const FilterConfig = [
}, },
{ {
key: 'wd', key: 'wd',
start: 'start_time',
end: 'end_time',
type: 'datetime', type: 'datetime',
label: '创建日期', label: '创建日期',
span: 6, span: 6,
@@ -152,9 +115,7 @@ const rowSelection = reactive({
showCheckedAll: true, showCheckedAll: true,
onlyCurrent: false, onlyCurrent: false,
}); });
const po = reactive({ const po = reactive({});
wd: null,
});
const vo = reactive({ const vo = reactive({
page: '', page: '',
rows: [], rows: [],
@@ -163,7 +124,7 @@ const vo = reactive({
const {loading, pagination, initFetchData} = useTableQuery({ const {loading, pagination, initFetchData} = useTableQuery({
parameter: po, parameter: po,
api: Api.system.getData, api: Api.admin.getExchangeLog,
callback: (data) => { callback: (data) => {
Object.assign(vo, data); Object.assign(vo, data);
} }
@@ -174,6 +135,7 @@ const {loading, pagination, initFetchData} = useTableQuery({
<!-- 消息审核 --> <!-- 消息审核 -->
<a-card> <a-card>
<Filter <Filter
@search="initFetchData"
v-model:from="po" v-model:from="po"
:config="FilterConfig"> :config="FilterConfig">
</Filter> </Filter>