|
|
@ -6,7 +6,7 @@ import { getSimpleAccounts } from '@/api/mp/account' |
|
|
|
import { deleteFreePublish, getFreePublishPage } from '@/api/mp/freePublish' |
|
|
|
import { deleteFreePublish, getFreePublishPage } from '@/api/mp/freePublish' |
|
|
|
import type { FormSchema } from '@/components/Form' |
|
|
|
import type { FormSchema } from '@/components/Form' |
|
|
|
|
|
|
|
|
|
|
|
const simpleAccountsOptinos = await getSimpleAccounts() |
|
|
|
const simpleAccountsOptions = await getSimpleAccounts() |
|
|
|
|
|
|
|
|
|
|
|
const searchSchema: FormSchema[] = [ |
|
|
|
const searchSchema: FormSchema[] = [ |
|
|
|
{ |
|
|
|
{ |
|
|
@ -14,9 +14,9 @@ const searchSchema: FormSchema[] = [ |
|
|
|
field: 'accountId', |
|
|
|
field: 'accountId', |
|
|
|
component: 'Select', |
|
|
|
component: 'Select', |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
defaultValue: simpleAccountsOptinos[0].id, |
|
|
|
defaultValue: simpleAccountsOptions[0].id, |
|
|
|
componentProps: { |
|
|
|
componentProps: { |
|
|
|
options: simpleAccountsOptinos, |
|
|
|
options: simpleAccountsOptions, |
|
|
|
fieldNames: { |
|
|
|
fieldNames: { |
|
|
|
label: 'name', |
|
|
|
label: 'name', |
|
|
|
value: 'id', |
|
|
|
value: 'id', |
|
|
|