This commit is contained in:
2024-08-06 15:23:18 +08:00
parent f7a88b9f36
commit b286bf195f
6 changed files with 150 additions and 22 deletions

View File

@@ -27,9 +27,12 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'question', title: __('Question'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'fit_sex', title: __('Fit_sex'), searchList: {"all":__('Fit_sex all'),"gg":__('Fit_sex gg'),"mm":__('Fit_sex mm')}, formatter: Table.api.formatter.normal},
{field: 'hdrdepartment.name', title: __('Hdrdepartment.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'is_common', title: __('Is_common'), searchList: {"yes":__('Is_common yes'),"no":__('Is_common no')}, formatter: Table.api.formatter.normal},
{field: 'is_only_boy', title: __('Is_only_boy'), searchList: {"yes":__('Is_only_boy yes'),"no":__('Is_only_boy no')}, formatter: Table.api.formatter.normal},
{field: 'is_only_girl', title: __('Is_only_girl'), searchList: {"yes":__('Is_only_girl yes'),"no":__('Is_only_girl no')}, formatter: Table.api.formatter.normal},
{field: 'type', title: __('Type'), searchList: {"one":__('Type one'),"more":__('Type more')}, formatter: Table.api.formatter.normal},
{field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
{field: 'hdrdepartment.name', title: __('Hdrdepartment.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate,
buttons: [