作者 jinglong
1 个管道 的构建 通过 耗费 3 秒

修改首页消防日检

... ... @@ -45,11 +45,6 @@ class CommonController extends RestBaseController
$result['run_time'] = $this->getRunTime($res['create_time']);
}else{
//乙方企业
foreach($result['service'] as &$value){
if($value['id'] == 1){
$value['name'] = '日检';
}
}
$result['identity'] = config('site.b_staff');
//当前时间
$result['run_time'] = $this->getRunTime($res['create_time']);
... ... @@ -82,9 +77,6 @@ class CommonController extends RestBaseController
foreach($result['service'] as &$value){
if($value['id'] != 101 && $value['id'] != 102){
$value['name'] = $value['name'].'报表';
if($value['id'] == 1){
$value['name'] = '日检报表';
}
if($value['id'] == 4){
$value['name'] = '维修报表';
}
... ...
... ... @@ -75,7 +75,7 @@ class IndexController extends RestBaseController
*
* @return data: @
* @data id:公司id company_name:甲方公司名称 logo:公司logo company_name_head:甲方总公司名称 address:地区 run_time:运行时间 service:服务列表@
* @service id:服务id(1:日常巡检,2:月检,3:改造,4:报修,5:培训,6:演习,7:年检,101:消息审批) name:服务名称 icon:图标路径 english_name:英文名称
* @service id:服务id(1:消防日检,2:月检,3:改造,4:报修,5:培训,6:演习,7:年检,101:消息审批) name:服务名称 icon:图标路径 english_name:英文名称
* @return address: @
* @address id:地区id(和公司id对应) address:地区
* @return tips:提示语
... ... @@ -99,9 +99,6 @@ class IndexController extends RestBaseController
foreach($value['service'] as &$value1){
if($value1['id'] != 101 && $value1['id'] != 102){
$value1['name'] = $value1['name'].'报表';
if($value1['id'] == 1){
$value1['name'] = '日检/巡检报表';
}
if($value['id'] == 4){
$value['name'] = '维修报表';
}
... ...