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