Browse Source

fix: word warn

main
xingyu 2 years ago
parent
commit
d8905ec774
  1. 5
      src/views/member/user/user.data.ts
  2. 6
      src/views/mp/freePublish/index.vue
  3. 6
      src/views/mp/message/message.data.ts
  4. 6
      src/views/mp/tag/tag.data.ts
  5. 6
      src/views/mp/user/mpuser.data.ts
  6. 5
      src/views/system/dept/dept.data.ts
  7. 5
      src/views/system/menu/menu.data.ts
  8. 5
      src/views/system/user/user.data.ts

5
src/views/member/user/user.data.ts

@ -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
src/views/mp/freePublish/index.vue

@ -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',

6
src/views/mp/message/message.data.ts

@ -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',

6
src/views/mp/tag/tag.data.ts

@ -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',

6
src/views/mp/user/mpuser.data.ts

@ -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',

5
src/views/system/dept/dept.data.ts

@ -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',
}, },
}, },

5
src/views/system/menu/menu.data.ts

@ -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',
}, },
}, },

5
src/views/system/user/user.data.ts

@ -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',
}, },
}, },