pull/12/head
xingyu 2023-05-11 15:34:13 +08:00
parent 9638599a1e
commit 2d09a7850d
4 changed files with 7 additions and 5 deletions

View File

@ -36,7 +36,6 @@ export function useTableForm(
if (handleSearchInfoFn && isFunction(handleSearchInfoFn)) {
info = handleSearchInfoFn(info) || info
}
console.info(info)
fetch({ searchInfo: info, page: 1 })
}

View File

@ -2,8 +2,9 @@ import { BasicColumn, FormSchema, useRender } from '@/components/Table'
export const columns: BasicColumn[] = [
{
title: '岗位编号',
title: '编号',
dataIndex: 'id',
defaultHidden: true,
width: 100
},
{

View File

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

View File

@ -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(),