fix: word warn
parent
84a4db58a9
commit
d8905ec774
|
@ -200,11 +200,6 @@ export const formSchema: FormSchema[] = [
|
||||||
component: 'ApiTreeSelect',
|
component: 'ApiTreeSelect',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
api: () => getAreaTree(),
|
api: () => getAreaTree(),
|
||||||
fieldNames: {
|
|
||||||
label: 'name',
|
|
||||||
key: 'id',
|
|
||||||
value: 'id',
|
|
||||||
},
|
|
||||||
handleTree: 'id',
|
handleTree: 'id',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -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',
|
||||||
|
|
|
@ -122,7 +122,7 @@ export const columns: BasicColumn[] = [
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
const simpleAccountsOptinos = await getSimpleAccounts()
|
const simpleAccountsOptions = await getSimpleAccounts()
|
||||||
|
|
||||||
export const searchFormSchema: FormSchema[] = [
|
export const searchFormSchema: FormSchema[] = [
|
||||||
{
|
{
|
||||||
|
@ -130,9 +130,9 @@ export const searchFormSchema: 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',
|
||||||
|
|
|
@ -28,7 +28,7 @@ export const columns: BasicColumn[] = [
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
const simpleAccountsOptinos = await getSimpleAccounts()
|
const simpleAccountsOptions = await getSimpleAccounts()
|
||||||
|
|
||||||
export const searchFormSchema: FormSchema[] = [
|
export const searchFormSchema: FormSchema[] = [
|
||||||
{
|
{
|
||||||
|
@ -36,9 +36,9 @@ export const searchFormSchema: 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',
|
||||||
|
|
|
@ -50,7 +50,7 @@ export const columns: BasicColumn[] = [
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
const simpleAccountsOptinos = await getSimpleAccounts()
|
const simpleAccountsOptions = await getSimpleAccounts()
|
||||||
|
|
||||||
export const searchFormSchema: FormSchema[] = [
|
export const searchFormSchema: FormSchema[] = [
|
||||||
{
|
{
|
||||||
|
@ -58,9 +58,9 @@ export const searchFormSchema: 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',
|
||||||
|
|
|
@ -90,11 +90,6 @@ export const formSchema: FormSchema[] = [
|
||||||
componentProps: {
|
componentProps: {
|
||||||
api: () => listSimpleDept(),
|
api: () => listSimpleDept(),
|
||||||
parentLabel: '主类目',
|
parentLabel: '主类目',
|
||||||
fieldNames: {
|
|
||||||
label: 'name',
|
|
||||||
key: 'id',
|
|
||||||
value: 'id',
|
|
||||||
},
|
|
||||||
handleTree: 'id',
|
handleTree: 'id',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -85,11 +85,6 @@ export const formSchema: FormSchema[] = [
|
||||||
componentProps: {
|
componentProps: {
|
||||||
api: () => listSimpleMenus(),
|
api: () => listSimpleMenus(),
|
||||||
parentLabel: '主类目',
|
parentLabel: '主类目',
|
||||||
fieldNames: {
|
|
||||||
label: 'name',
|
|
||||||
key: 'id',
|
|
||||||
value: 'id',
|
|
||||||
},
|
|
||||||
handleTree: 'id',
|
handleTree: 'id',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -149,11 +149,6 @@ export const formSchema: FormSchema[] = [
|
||||||
component: 'ApiTreeSelect',
|
component: 'ApiTreeSelect',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
api: () => listSimpleDept(),
|
api: () => listSimpleDept(),
|
||||||
fieldNames: {
|
|
||||||
label: 'name',
|
|
||||||
key: 'id',
|
|
||||||
value: 'id',
|
|
||||||
},
|
|
||||||
handleTree: 'id',
|
handleTree: 'id',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue