diff --git a/src/views/mp/tag/TagModal.vue b/src/views/mp/tag/TagModal.vue new file mode 100644 index 00000000..b379678f --- /dev/null +++ b/src/views/mp/tag/TagModal.vue @@ -0,0 +1,49 @@ + + diff --git a/src/views/mp/tag/index.vue b/src/views/mp/tag/index.vue index 3b64cfc4..3306a701 100644 --- a/src/views/mp/tag/index.vue +++ b/src/views/mp/tag/index.vue @@ -1,3 +1,90 @@ + diff --git a/src/views/mp/tag/tag.data.ts b/src/views/mp/tag/tag.data.ts new file mode 100644 index 00000000..74bcad83 --- /dev/null +++ b/src/views/mp/tag/tag.data.ts @@ -0,0 +1,63 @@ +import { getSimpleAccounts } from '@/api/mp/account' +import { BasicColumn, FormSchema, useRender } from '@/components/Table' + +export const columns: BasicColumn[] = [ + { + title: '编号', + dataIndex: 'id', + width: 100 + }, + { + title: '标签名称', + dataIndex: 'name', + width: 180 + }, + { + title: '粉丝数', + dataIndex: 'count', + width: 100 + }, + { + title: '创建时间', + dataIndex: 'createTime', + width: 180, + customRender: ({ text }) => { + return useRender.renderDate(text) + } + } +] + +export const searchFormSchema: FormSchema[] = [ + { + label: '公众号', + field: 'accountId', + component: 'ApiSelect', + componentProps: { + api: () => getSimpleAccounts(), + labelField: 'name', + valueField: 'id' + }, + colProps: { span: 8 } + }, + { + label: '标签名称', + field: 'name', + component: 'Input', + colProps: { span: 8 } + } +] + +export const formSchema: FormSchema[] = [ + { + label: '编号', + field: 'id', + show: false, + component: 'Input' + }, + { + label: '标签名称', + field: 'name', + required: true, + component: 'Input' + } +]