提交 166c4d66 authored 作者: chengye's avatar chengye

test upload file

上级 65a22400
......@@ -22,63 +22,6 @@ use app\station\model\Station as StationModel;
*/
class Em extends Base
{
// public function index(){
// $em = new ElectricMeter;
// //分页
// $pageCount = (new Request)->get('pages');
// $map = [];
// $user = Session::get('user');
// //如果不是系管理员则检查用户查阅范围
// $identity = (new Staff)->getIdentity();
// if(!$user['is_admin'] && $identity !=5){
// if(config('admin.search_area') == 1){
// $staff = StaffModel::get($user['user_id']);
// //通过员工的部门id查询 员工所在部门以及下属部门的所有基站数据
// // $dids = (new DepartmentModel)->getNodeIds($staff->d_id);
// $permissionData=check_data();
// if($permissionData){
// $map[]=$permissionData;
// }
// $stations = StationModel::field('station_id')
// ->where($map)
// ->select()
// ->toArray();
// $stationArr = [];
// foreach ($stations as $station){
// $stationArr[]= $station['station_id'];
// }
// $map[] = ['em.station_id','in',$stationArr];
// }
// }
// //分页配置
// $list = $em->list($map,[
// 'list_rows'=>20,
// 'page'=> $pageCount,
// 'type' => '\app\extend\PageLayUi',
// 'var_page' => 'page'
// ]);
// //分页
// $page = $list->render();
// //运营商
// $operators = OperatorModel::field('operator_id,operator_name')->where('operator_state','=',1)->select()->toArray();
// $this->assign('identity',$identity);
// $this->assign('condition','默认条件');
// $this->assign('data',$list);
// $this->assign('page',$page);
// $this->assign('regions',getTree($em->regions()));
// $this->assign('operators',$operators);
// return $this->fetch();
// }
public function index(Request $request)
{
$map=[];
......@@ -567,7 +510,7 @@ class Em extends Base
if(!empty($result)){
return jsonSuc('电表附件上传成功',$result);
} else {
return jsonErr($result);
return jsonErr("aaa");
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论