feature: 面板
This commit is contained in:
parent
8fb4af1b47
commit
73700581bf
|
|
@ -13,6 +13,8 @@ return [
|
||||||
'Unit 1' => '%',
|
'Unit 1' => '%',
|
||||||
'Unit 2' => '元',
|
'Unit 2' => '元',
|
||||||
'Unit 3' => '单',
|
'Unit 3' => '单',
|
||||||
|
'Unit 4' => '个',
|
||||||
|
'Unit 5' => '小时',
|
||||||
'Create_time' => '创建时间',
|
'Create_time' => '创建时间',
|
||||||
'Update_time' => '编辑时间'
|
'Update_time' => '编辑时间'
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ class Item extends Model
|
||||||
|
|
||||||
public function getUnitList()
|
public function getUnitList()
|
||||||
{
|
{
|
||||||
return ['1' => __('Unit 1'), '2' => __('Unit 2'), '3' => __('Unit 3')];
|
return ['1' => __('Unit 1'), '2' => __('Unit 2'), '3' => __('Unit 3'), '4' => __('Unit 4'), '5' => __('Unit 5')];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
||||||
{field: 'name', title: __('Name'), operate: 'LIKE'},
|
{field: 'name', title: __('Name'), operate: 'LIKE'},
|
||||||
{field: 'desc', title: __('Desc'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
{field: 'desc', title: __('Desc'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||||
{field: 'target_value', title: __('Target_value')},
|
{field: 'target_value', title: __('Target_value')},
|
||||||
{field: 'unit', title: __('Unit'), searchList: {"1":__('Unit 1'),"2":__('Unit 2'),"3":__('Unit 3')}, formatter: Table.api.formatter.normal},
|
{field: 'unit', title: __('Unit'), searchList: {"1":__('Unit 1'),"2":__('Unit 2'),"3":__('Unit 3'),"4":__('Unit 4'),"5":__('Unit 5')}, formatter: Table.api.formatter.normal},
|
||||||
{field: 'score', title: __('Score')},
|
{field: 'score', title: __('Score')},
|
||||||
{field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},
|
{field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},
|
||||||
{field: 'update_time', title: __('Update_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},
|
{field: 'update_time', title: __('Update_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user