修改在线录入

This commit is contained in:
巴掌 committed 2021-12-29 11:04:30 +08:00
1 parent dd37b5ee44
commit 8bb1a5a15d
2 files changed
+7 -3

No files matched your search

+3 -2
View File
@@ -261,8 +261,9 @@ class SearchMore extends BaseModel
,'subject_id' => array()
,'field' => 'student_xingming'
,'order' => 'desc'
,'page'
,'limit'
,'page' => 1
,'limit' => 50
,'all' => false
);
// 用新值替换初始值
$src = array_cover($srcfrom, $src);
+4 -1
View File
@@ -801,12 +801,15 @@ class Index extends AdminBase
,'kaoshi_id'
,'banji_id' => array()
,'subject_id' => array()
,'all' => false
], 'POST');
// 实例化并查询成绩
$cj = new \app\kaohao\model\SearchMore;
$data = $cj->srcOnlineEdit($src);
$data = reset_data($data, $src);
$src['all'] = true;
$cnt = count($cj->srcOnlineEdit($src));
$data = reset_data($data, $cnt);
return json($data);
}