|
|
@@ -45,7 +45,7 @@ class SystemList extends \common\libs\dataList\DataList implements DataListInter
|
|
|
if(!$this->columns){
|
|
|
$this->columns = [
|
|
|
'opt_type' => [
|
|
|
- 'header' => '操作类型',
|
|
|
+ 'header' => \Yii::t('ctx', 'operatioType'),
|
|
|
'headerOther' => [
|
|
|
'width' => '120',
|
|
|
],
|
|
|
@@ -59,39 +59,39 @@ class SystemList extends \common\libs\dataList\DataList implements DataListInter
|
|
|
},
|
|
|
],
|
|
|
'opt_target_name' => [
|
|
|
- 'header' => '操作对象',
|
|
|
+ 'header' => \Yii::t('ctx', 'operatioObject'),
|
|
|
'headerOther' => [
|
|
|
'width' => '120',
|
|
|
],
|
|
|
],
|
|
|
'opt_obj_name' => [
|
|
|
- 'header' => '对象编号',
|
|
|
+ 'header' => \Yii::t('ctx', 'objectNumber'),
|
|
|
'headerOther' => [
|
|
|
'width' => '110',
|
|
|
],
|
|
|
],
|
|
|
'request_content' => [
|
|
|
- 'header' => '请求内容',
|
|
|
+ 'header' => \Yii::t('ctx', 'requestContent'),
|
|
|
'headerOther' => [
|
|
|
'show-overflow-tooltip'=>true,
|
|
|
'min-width'=>'250',
|
|
|
],
|
|
|
],
|
|
|
'response_content' => [
|
|
|
- 'header' => '返回内容',
|
|
|
+ 'header' => \Yii::t('ctx', 'requestContent'),
|
|
|
'headerOther' => [
|
|
|
'show-overflow-tooltip'=>true,
|
|
|
'min-width'=>'250',
|
|
|
],
|
|
|
],
|
|
|
'opt_user' => [
|
|
|
- 'header' => '操作人',
|
|
|
+ 'header' => \Yii::t('ctx', 'operator'),
|
|
|
'headerOther' => [
|
|
|
'width' => '130',
|
|
|
],
|
|
|
],
|
|
|
'created_at' => [
|
|
|
- 'header' => '操作时间',
|
|
|
+ 'header' => \Yii::t('ctx', 'operatingTime'),
|
|
|
'value' => function($row) {
|
|
|
return (new DateTime([
|
|
|
'value' => $row['created_at'],
|
|
|
@@ -99,27 +99,27 @@ class SystemList extends \common\libs\dataList\DataList implements DataListInter
|
|
|
},
|
|
|
'headerOther' => ['width' => '180'],
|
|
|
],
|
|
|
- 'period_num' => '期数',
|
|
|
+ 'period_num' => \Yii::t('ctx', 'numberOfPhases'),
|
|
|
'ip' => [
|
|
|
- 'header' => 'IP地址',
|
|
|
+ 'header' => \Yii::t('ctx', 'IPAddress'),
|
|
|
'headerOther' => [
|
|
|
'width' => '150',
|
|
|
],
|
|
|
],
|
|
|
'device' => [
|
|
|
- 'header' => '客户端',
|
|
|
+ 'header' => \Yii::t('ctx', 'IPAddress'),
|
|
|
'headerOther' => [
|
|
|
'width' => '150',
|
|
|
],
|
|
|
],
|
|
|
'user_agent' => [
|
|
|
- 'header' => '操作系统',
|
|
|
+ 'header' => \Yii::t('ctx', 'operatingSystem'),
|
|
|
'headerOther' => [
|
|
|
'width' => '350',
|
|
|
],
|
|
|
],
|
|
|
'request_route' => [
|
|
|
- 'header' => '请求路径',
|
|
|
+ 'header' => \Yii::t('ctx', 'requestPath'),
|
|
|
'headerOther' => [
|
|
|
'width' => '250',
|
|
|
],
|
|
|
@@ -137,18 +137,18 @@ class SystemList extends \common\libs\dataList\DataList implements DataListInter
|
|
|
{
|
|
|
if(!$this->filterTypes){
|
|
|
$this->filterTypes = [
|
|
|
- 'opt_type' => ['isUserTable'=>false, 'name'=>'操作类型', 'other'=> 'select', 'selectData'=> [['id'=> 'call', 'name'=> '调用'], ['id'=> 'called', 'name'=> '被调用']]],
|
|
|
- 'opt_target_name' => ['isUserTable'=>false, 'name'=>'操作对象'],
|
|
|
- 'opt_obj_name' => ['isUserTable'=>false, 'name'=>'对象编号'],
|
|
|
- 'opt_user' => ['isUserTable'=>false, 'name'=>'操作人'],
|
|
|
- 'created_at' => ['isUserTable'=>false, 'name'=>'操作时间', 'other'=> 'date'],
|
|
|
- 'period_num' => ['isUserTable'=>false, 'name'=>'期数'],
|
|
|
- 'ip' => ['isUserTable'=>false, 'name'=>'IP地址'],
|
|
|
- 'device' => ['isUserTable'=>false, 'name'=>'客户端'],
|
|
|
- 'user_agent' => ['isUserTable'=>false, 'name'=>'操作系统'],
|
|
|
- 'request_route' => ['isUserTable'=>false, 'name'=>'请求路径'],
|
|
|
+ 'opt_type' => ['isUserTable'=>false, 'name'=>\Yii::t('ctx', 'operatioType'), 'other'=> 'select', 'selectData'=> [['id'=> 'call', 'name'=> '调用'], ['id'=> 'called', 'name'=> '被调用']]],
|
|
|
+ 'opt_target_name' => ['isUserTable'=>false, 'name'=>\Yii::t('ctx', 'operatingObject')],
|
|
|
+ 'opt_obj_name' => ['isUserTable'=>false, 'name'=>\Yii::t('ctx', 'objectNumber')],
|
|
|
+ 'opt_user' => ['isUserTable'=>false, 'name'=>\Yii::t('ctx', 'operator')],
|
|
|
+ 'created_at' => ['isUserTable'=>false, 'name'=>\Yii::t('ctx', 'operatingTime'), 'other'=> 'date'],
|
|
|
+ 'period_num' => ['isUserTable'=>false, 'name'=>\Yii::t('ctx', 'numberOfPhases')],
|
|
|
+ 'ip' => ['isUserTable'=>false, 'name'=>\Yii::t('ctx', 'IPAddress')],
|
|
|
+ 'device' => ['isUserTable'=>false, 'name'=>\Yii::t('ctx', 'client')],
|
|
|
+ 'user_agent' => ['isUserTable'=>false, 'name'=>\Yii::t('ctx', 'operatingSystem')],
|
|
|
+ 'request_route' => ['isUserTable'=>false, 'name'=>\Yii::t('ctx', 'requestPath')],
|
|
|
];
|
|
|
}
|
|
|
return $this->filterTypes;
|
|
|
}
|
|
|
-}
|
|
|
+}
|