diff --git a/application/admin/controller/Estimate.php b/application/admin/controller/Estimate.php new file mode 100644 index 0000000..5ef2dbb --- /dev/null +++ b/application/admin/controller/Estimate.php @@ -0,0 +1,96 @@ +=',$data['s_time']]; + // } + // if($data['e_time']){ + // $parameter['create_time'] = ['<=',$data['e_time']]; + // } + } + $num = Db::table('admin_estimate')->where($parameter)->count(); + $result = Db::table('admin_estimate')->where($parameter)->order('is_del,id desc')->page($page,$this->page_num)->select(); + if(!$pd){ + $result['num'] = $num; + $result['data'] = $result; + return $this->msg(0,'success',$result); + } + $this->assign([ + 'result' => $result, + 'num' => $num, + ]); + return $this->fetch(); + } + + public function estimate_add(){ + return $this->fetch(); + } + + ################################################################业务接口################################################################ + ################################################################业务接口################################################################ + + ################################################device_data_list + public function device_data_list_action($data){ + $result = Db::table('app_device_data')->where(['is_del'=>0])->field('id,name,pic,content,page_measure,bluetooth_type,device_model')->select(); + foreach ($result as $key => $value) { + unset($result[$key]['ROW_NUMBER']); + } + if(empty($result)){ + return $this->msg(10004); + }else{ + return $this->msg(['list'=>$result]); + } + } + + + + + ################################################################其他接口################################################################ + ################################################################其他接口################################################################ + + + + + + + + + + + + + +} \ No newline at end of file diff --git a/application/admin/view/estimate/device_edit.html b/application/admin/view/estimate/device_edit.html new file mode 100644 index 0000000..d80b175 --- /dev/null +++ b/application/admin/view/estimate/device_edit.html @@ -0,0 +1,238 @@ + + + +
+ +| ID | +区域 | +类别 | +子分类 | +分值 | +项目名称 | +单位 | +性别 | +|
|---|---|---|---|---|---|---|---|---|
| {$vo.id} | +{$vo.address} | +{$vo.type} | +{$vo.category_name} | +{$vo.project_name} | +{$vo.unit_data} | +{$vo.gender} | ++ {if condition="$vo.is_del == 1"} + 已停用 + {else /} + 已启用 + {/if} + + | ++ + | +