You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
2.2 KiB

{
"type": "page",
"title": "列表管理",
"body": [
{
"type": "crud",
"api": "${ls:backend_url}/account/list?creator=${ls:openId}",
"bodyClassName": "panel-default",
"name": "sample",
"columns": [
{
"name": "id",
"label": "ID",
"width": 20,
"sortable": true
},
{
"name": "name",
"label": "账号名称"
},
{
"name": "accountConfig",
"label": "账号配置信息"
},
{
"name": "sendChannel",
"label": "发送渠道",
"type": "mapping",
"map": {
"20": "PUSH通知栏",
"30": "短信",
"40": "邮箱",
"50": "微信服务号(模板消息)",
"60": "微信小程序(订阅消息)",
"70": "企业微信应用消息",
"80": "钉钉群机器人",
"90": "钉钉工作消息",
"100": "企业微信机器人",
"110": "飞书机器人"
}
},
{
"type": "operation",
"label": "操作",
"width": "",
"buttons": [
{
"type": "button-group",
"buttons": [
{
"type": "button",
"label": "删除",
"level": "danger",
"actionType": "ajax",
"confirmText": "您确认要删除?",
"api": "delete:${ls:backend_url}/account/delete/$id"
}
]
}
],
"placeholder": "-",
"fixed": "right"
}
],
"affixHeader": true,
"columnsTogglable": "auto",
"placeholder": "暂无数据",
"tableClassName": "table-db table-striped",
"headerClassName": "crud-table-header",
"footerClassName": "crud-table-footer",
"toolbarClassName": "crud-table-toolbar",
"combineNum": 0
}
],
"toolbar": [
{
"type": "button",
"actionType": "link",
"link": "/account/new",
"label": "新增",
"icon": "fa fa-plus",
"primary": true
}
],
"remark": null,
"name": "page-demo"
}