修改已知错误
This commit is contained in:
1 parent
fc01b59a46
commit
58098436b9
4 files changed
+33
-18
No files matched your search
@@ -72,6 +72,7 @@ class JsRongyuInfo extends Base
|
||||
'hjschool'=>array(),
|
||||
'category'=>array(),
|
||||
'rongyuce'=>'',
|
||||
'subject'=>array(),
|
||||
'searchval'=>''
|
||||
],'POST');
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ class JsRongyuInfo extends Base
|
||||
$category = $src['category'];
|
||||
$rongyuce = $src['rongyuce'];
|
||||
$searchval = $src['searchval'];
|
||||
$subject = $src['subject'];
|
||||
|
||||
|
||||
$data = $this
|
||||
@@ -34,6 +35,11 @@ class JsRongyuInfo extends Base
|
||||
$q->name('JsRongyu')->where('category','in',$category)->field('id');
|
||||
});
|
||||
})
|
||||
->when(count($subject)>0,function($query) use($subject){
|
||||
$query->where('rongyuce','in',function($q) use($subject){
|
||||
$q->name('JsRongyu')->where('subject','in',$subject)->field('id');
|
||||
});
|
||||
})
|
||||
->when(strlen($rongyuce)>0,function($query) use($rongyuce){
|
||||
$query->where('rongyuce',$rongyuce);
|
||||
})
|
||||
@@ -52,7 +58,12 @@ class JsRongyuInfo extends Base
|
||||
$query->field('id,title');
|
||||
},
|
||||
'ryTuce'=>function($query){
|
||||
$query->field('id,title');
|
||||
$query->field('id,title,fzschool')
|
||||
->with([
|
||||
'fzSchool'=>function($q){
|
||||
$q->field('id,title');
|
||||
}
|
||||
]);
|
||||
},
|
||||
'hjJsry'=>function($query){
|
||||
$query->field('rongyuid,teacherid')
|
||||
|
||||
@@ -79,7 +79,8 @@
|
||||
return str;
|
||||
}},
|
||||
{field: 'bianhao', title: '获奖编号 ',sort: true},
|
||||
{title: '获奖人',templet:function(d){
|
||||
{field: 'title', title: '荣誉名称',minWidth:180,sort: true},
|
||||
{title: '获奖人',minWidth:100,templet:function(d){
|
||||
var str='';
|
||||
if(d.hj_jsry)
|
||||
{
|
||||
@@ -93,7 +94,7 @@
|
||||
}
|
||||
return str;
|
||||
}},
|
||||
{field: "jiangxiang",title: '奖项',sort: true,templet:function(d){
|
||||
{field: "jiangxiang",title: '奖项',minWidth:100,sort: true,templet:function(d){
|
||||
var str='';
|
||||
if(d.jx_category)
|
||||
{
|
||||
@@ -101,8 +102,16 @@
|
||||
}
|
||||
return str;
|
||||
}},
|
||||
{field: 'hjshijian', title: '获奖时间', sort: true},
|
||||
{field: 'status', title: '状态',templet:'#status', sort: true},
|
||||
{title: '颁奖单位项',minWidth:260,sort: true,templet:function(d){
|
||||
var str='';
|
||||
if(d.ry_tuce)
|
||||
{
|
||||
str = d.ry_tuce.fz_school.title;
|
||||
}
|
||||
return str;
|
||||
}},
|
||||
{field: 'hjshijian', title: '获奖时间',minWidth:80, sort: true},
|
||||
{field: 'status', title: '状态',minWidth:80,templet:'#status', sort: true},
|
||||
{field: 'id', title: '操作',toolbar: '#barDemo',minWidth:140}
|
||||
]];
|
||||
|
||||
|
||||
Loaded 3 of 4 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user