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

@@ -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: [],

View File

@@ -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({
<!-- 消息审核 -->
<a-card>
<Filter
@search="initFetchData"
v-model:from="po"
:config="FilterConfig">
</Filter>