update
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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: [],
|
||||
|
||||
@@ -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,
|
||||
api: async () => {
|
||||
return await Api.admin.getStatusAttr();
|
||||
},
|
||||
},
|
||||
{
|
||||
name: '选项二',
|
||||
id: 2,
|
||||
},
|
||||
{
|
||||
name: '选项三',
|
||||
id: 3,
|
||||
},
|
||||
]
|
||||
}),
|
||||
},
|
||||
{
|
||||
key: 'wd',
|
||||
key: 'pattern',
|
||||
type: 'select',
|
||||
label: '类型',
|
||||
placeholder: '请选择类型',
|
||||
span: 6,
|
||||
api: async () => ({
|
||||
data: [
|
||||
{
|
||||
name: '选项一',
|
||||
id: 1,
|
||||
api: async () => {
|
||||
return await Api.admin.getPattenAttr();
|
||||
},
|
||||
},
|
||||
{
|
||||
name: '选项二',
|
||||
id: 2,
|
||||
},
|
||||
{
|
||||
name: '选项三',
|
||||
id: 3,
|
||||
},
|
||||
]
|
||||
}),
|
||||
},
|
||||
{
|
||||
key: 'wd',
|
||||
key: 'type',
|
||||
type: 'select',
|
||||
label: '来源',
|
||||
placeholder: '请选择来源',
|
||||
span: 6,
|
||||
api: async () => ({
|
||||
data: [
|
||||
{
|
||||
name: '选项一',
|
||||
id: 1,
|
||||
api: async () => {
|
||||
return await Api.admin.getTypeAttr();
|
||||
},
|
||||
},
|
||||
{
|
||||
name: '选项二',
|
||||
id: 2,
|
||||
},
|
||||
{
|
||||
name: '选项三',
|
||||
id: 3,
|
||||
},
|
||||
]
|
||||
}),
|
||||
},
|
||||
{
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user