Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
CI / CI OK (push) Has been cancelled
Deploy Website on push / Rerun on failure (push) Has been cancelled
Lock Threads / action (push) Has been cancelled
Issue Close Require / close-issues (push) Has been cancelled
Close stale issues / stale (push) Has been cancelled
44 lines
1.3 KiB
TypeScript
44 lines
1.3 KiB
TypeScript
import { actionColumn, createGridOptions } from '#/components/crud';
|
|
|
|
import { wxAppApi } from '../api';
|
|
|
|
/**
|
|
* 应用配置列表的表格列定义。
|
|
* 后端 WxAppConfigService::list 返回:
|
|
* id, code, name, app_id, mch_id, mch_serial_no, notify_url, template_code,
|
|
* status, remark, created_at, updated_at
|
|
* 外加 *_set 三个布尔(密钥是否已配置)
|
|
* 密钥本身绝不展示。
|
|
*/
|
|
export const gridOptions = createGridOptions({
|
|
columns: [
|
|
{ field: 'id', align: 'left', title: 'ID', width: 80 },
|
|
{ field: 'code', title: '应用 code', width: 140 },
|
|
{ field: 'name', align: 'left', title: '应用名称', minWidth: 160 },
|
|
{ field: 'app_id', title: '小程序 AppID', width: 200 },
|
|
{ field: 'mch_id', title: '商户号', width: 140 },
|
|
{ field: 'template_code', title: '默认模板', width: 140 },
|
|
{
|
|
field: 'package_enabled',
|
|
title: '套餐',
|
|
width: 90,
|
|
slots: { default: 'package' },
|
|
},
|
|
{
|
|
field: 'secrets',
|
|
title: '密钥配置',
|
|
width: 180,
|
|
slots: { default: 'secrets' },
|
|
},
|
|
{
|
|
field: 'status',
|
|
title: '状态',
|
|
width: 100,
|
|
slots: { default: 'status' },
|
|
},
|
|
{ field: 'created_at', title: '创建时间', width: 180 },
|
|
actionColumn(200),
|
|
],
|
|
query: (params) => wxAppApi.list(params),
|
|
});
|