12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <?php
- return [
- 'list' => [
- 'field' => [
- 'name',
- 'key',
- 'type',
- 'method',
- 'cdate',
- 'status' => [
- 'type' => 'switch',
- 'show' => '{status}',
- 'active_value' => 1,
- 'inactive_value' => 2,
- ],
- ],
- 'button' => [
- '新增' => 'add',
- ],
- 'data_button' => [
- '设置' => 'edit',
- ],
- 'search' => [
- 'name',
- 'key',
- 'status',
- ]
- ],
- 'update' => [
- 'tab' => [
- '基本设置' => 'name,key,content,type,msg/template_code',
- '功能设置' => 'method,msg/template_sms,msg/template_email',
- ],
- 'field' => [
- 'name',
- 'key',
- 'content' => [
- 'type' => 'textarea',
- 'autosize' => ['minRows' => 2],
- 'desc' => '变量用大括号包含即可,如:{name}',
- ],
- 'type' => 'radio',
- 'msg/template_code' => [
- 'name' => '验证码设置',
- 'where' => ['template_id' => 'id'],
- 'default' => [[]],
- # 默认使用表格形式展示,可以改成每行展示
- 'type' => 'line',
- ],
-
- 'method' => 'checkbox',
- 'msg/template_sms' => [
- 'name' => '短信设置',
- 'where' => ['template_id' => 'id'],
- 'default' => [[]],
- # 默认使用表格形式展示,可以改成每行展示
- 'type' => 'line',
- ],
- 'msg/template_email' => [
- 'name' => '邮件设置',
- 'where' => ['template_id' => 'id'],
- 'default' => [[]],
- # 默认使用表格形式展示,可以改成每行展示
- 'type' => 'line',
- ],
- ],
- 'control' => [
- 'msg/template_code' => [
- 'type' => 2,
- ],
- 'msg/template_sms' => [
- 'method' => ['sms'],
- ],
- 'msg/template_email' => [
- 'method' => ['email'],
- ],
- ],
- ],
- ];
|