| | |
| | | import com.javaweb.geo.domain.Hole; |
| | | import com.javaweb.geo.domain.HoleMedia; |
| | | import com.javaweb.geo.domain.Project; |
| | | import com.javaweb.geo.domain.TubLog; |
| | | import com.javaweb.geo.enums.RecordType; |
| | | import com.javaweb.geo.mapper.HoleMapper; |
| | | import com.javaweb.geo.mapper.TubLogMapper; |
| | | import com.javaweb.geo.service.IHoleMediaService; |
| | | import com.javaweb.geo.service.IHoleService; |
| | | import com.javaweb.geo.service.IProjectService; |
| | |
| | | |
| | | @Autowired |
| | | private IHoleMediaService holeMediaService; |
| | | |
| | | @Autowired |
| | | private TubLogMapper tubLogMapper; |
| | | |
| | | |
| | | private String getAdminIndex() { |
| | | return configService.selectConfigByKey(CmsConstants.KEY_ADMIN_INDEX); |
| | |
| | | return AjaxResult.success("查询成功",result); |
| | | } |
| | | |
| | | /** |
| | | * 统计材料的消耗 |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @GetMapping("/system/tubLogData") |
| | | public AjaxResult tubLogData() { |
| | | AjaxResult ajaxResult = new AjaxResult(); |
| | | List<TubLog> tubLogs = tubLogMapper.countTubLogDate(); |
| | | ajaxResult.put("tubLogs",tubLogs); |
| | | return ajaxResult; |
| | | } |
| | | |
| | | } |
| | |
| | | background-color: rgba(0,0,0,0.01) !important; |
| | | padding:10px; |
| | | } |
| | | body{ |
| | | padding: 10px; |
| | | } |
| | | [v-cloak]{ |
| | | display: none; |
| | | } |
| | |
| | | <el-row> |
| | | <el-col :span="16"> |
| | | <el-card class="box-card"> |
| | | <div style="height: 200px;"> |
| | | <div> |
| | | <h3>材料统计</h3> |
| | | |
| | | <el-col :span="10" style="height: 200px;"> |
| | | </el-col> |
| | | <el-col :span="14" style="height: 200px;"> |
| | | </el-col> |
| | | </div> |
| | | |
| | | </el-card> |
| | | |
| | | <el-card class="box-card" style="margin-top: 4px;"> |
| | |
| | | totalProcess(); |
| | | stationProcess(); |
| | | indexCount(); |
| | | tubLogs(); |
| | | }) |
| | | function viewStation(station) { |
| | | var lng = station.lng; |
| | | var lat = station.lat; |
| | | map.centerAndZoom(new T.LngLat(lng, lat), 13); |
| | | // $.modal.openTab("场地导航",ctx+"/geo/project/navigate?ids="+id); |
| | | } |
| | | |
| | | function tubLogs() { |
| | | let url = ctx + "/system/tubLogData"; |
| | | $.ajaxSettings.async = false; |
| | | $.get(url,{},function(res){ |
| | | vm.tubLogData = res.tubLogData; |
| | | }) |
| | | $.ajaxSettings.async = false; |
| | | } |
| | | |
| | | function indexCount() { |
| | |
| | | return { |
| | | stationProcessData: [], |
| | | indexDataCount :"", |
| | | tubLogData:[], |
| | | }; |
| | | }, |
| | | methods: { |