Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
Jz-Php
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
PHP
Jz-Php
Commits
166c4d66
提交
166c4d66
authored
1月 03, 2020
作者:
chengye
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test upload file
上级
65a22400
全部展开
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
1 行增加
和
58 行删除
+1
-58
Em.php
application/admin/controller/Em.php
+1
-58
Excel(1).php
application/admin/controller/Excel(1).php
+0
-0
没有找到文件。
application/admin/controller/Em.php
浏览文件 @
166c4d66
...
...
@@ -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"
);
}
}
...
...
application/admin/controller/Excel(1).php
deleted
100755 → 0
浏览文件 @
65a22400
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论