feat: mp
parent
9638599a1e
commit
2d09a7850d
|
@ -36,7 +36,6 @@ export function useTableForm(
|
||||||
if (handleSearchInfoFn && isFunction(handleSearchInfoFn)) {
|
if (handleSearchInfoFn && isFunction(handleSearchInfoFn)) {
|
||||||
info = handleSearchInfoFn(info) || info
|
info = handleSearchInfoFn(info) || info
|
||||||
}
|
}
|
||||||
console.info(info)
|
|
||||||
fetch({ searchInfo: info, page: 1 })
|
fetch({ searchInfo: info, page: 1 })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,9 @@ import { BasicColumn, FormSchema, useRender } from '@/components/Table'
|
||||||
|
|
||||||
export const columns: BasicColumn[] = [
|
export const columns: BasicColumn[] = [
|
||||||
{
|
{
|
||||||
title: '岗位编号',
|
title: '编号',
|
||||||
dataIndex: 'id',
|
dataIndex: 'id',
|
||||||
|
defaultHidden: true,
|
||||||
width: 100
|
width: 100
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
{{ t('action.sync') }}
|
{{ t('action.sync') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
</template>
|
</template>
|
||||||
<template #bodyCell="{ column }">
|
<template #bodyCell="{ column, record }">
|
||||||
<template v-if="column.key === 'action'">
|
<template v-if="column.key === 'action'">
|
||||||
<TableAction
|
<TableAction
|
||||||
:actions="[{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'mp:user:update', onClick: handleEdit.bind(null) }]"
|
:actions="[{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'mp:user:update', onClick: handleEdit.bind(null, record) }]"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { BasicColumn, FormSchema, useRender } from '@/components/Table'
|
||||||
|
|
||||||
export const columns: BasicColumn[] = [
|
export const columns: BasicColumn[] = [
|
||||||
{
|
{
|
||||||
title: '岗位编号',
|
title: '编号',
|
||||||
dataIndex: 'id',
|
dataIndex: 'id',
|
||||||
width: 100
|
width: 100
|
||||||
},
|
},
|
||||||
|
@ -54,6 +54,7 @@ export const searchFormSchema: FormSchema[] = [
|
||||||
label: '公众号',
|
label: '公众号',
|
||||||
field: 'accountId',
|
field: 'accountId',
|
||||||
component: 'ApiSelect',
|
component: 'ApiSelect',
|
||||||
|
defaultValue: 0,
|
||||||
componentProps: {
|
componentProps: {
|
||||||
api: () => getSimpleAccounts(),
|
api: () => getSimpleAccounts(),
|
||||||
labelField: 'name',
|
labelField: 'name',
|
||||||
|
@ -99,6 +100,7 @@ export const formSchema: FormSchema[] = [
|
||||||
field: 'tagIds',
|
field: 'tagIds',
|
||||||
helpMessage: '在微信公众平台(mp.weixin.qq.com)的菜单 [设置与开发 - 公众号设置 - 基本设置] 中能找到「开发者ID(AppID)」',
|
helpMessage: '在微信公众平台(mp.weixin.qq.com)的菜单 [设置与开发 - 公众号设置 - 基本设置] 中能找到「开发者ID(AppID)」',
|
||||||
required: true,
|
required: true,
|
||||||
|
defaultValue: [],
|
||||||
component: 'ApiSelect',
|
component: 'ApiSelect',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
api: () => getSimpleTags(),
|
api: () => getSimpleTags(),
|
||||||
|
|
Loading…
Reference in New Issue