Commit 0ca2eb74a718a3f3d5d2e81b0541ac0a16969f70

Authored by youxiw2000
1 parent a137c291

m

trash-admin/src/main/resources/application-dev.yml
... ... @@ -22,8 +22,6 @@ trash:
22 22 token: durable:auth:token:eyJhbGciOiJIUzUxMiJ9.eyJ5ZWEiOiJjc3poIiwiZXhwIjo0MTAyNDE1OTk5LCJjcmVhdGVkIjoxNjg0NDU5MjEzNzQ2fQ.85oIrOnU7cz7L_-IGt4Bt1LXDTkFtyrdqNt05K0v9-4nsrrzzpbjbemK-yMlbnUpe4Fx2FFES-Wbw8Yr8ML69w
23 23  
24 24  
25   -
26   -
27 25 # 数据源配置
28 26 spring:
29 27 datasource:
... ...
trash-quartz/src/main/java/com/trash/quartz/task/GpsTask.java
1 1 package com.trash.quartz.task;
2 2  
  3 +import java.util.Collection;
  4 +import java.util.Date;
  5 +
  6 +import org.springframework.beans.factory.annotation.Autowired;
  7 +import org.springframework.stereotype.Component;
  8 +
3 9 import com.alibaba.fastjson.JSONObject;
4 10 import com.trash.common.core.redis.RedisCache;
5 11 import com.trash.common.utils.DateUtils;
6 12 import com.trash.gps.domain.GpsOrientation;
7 13 import com.trash.gps.mapper.GpsOrientationMapper;
8   -import org.springframework.beans.factory.annotation.Autowired;
9   -import org.springframework.stereotype.Component;
10   -
11   -import java.util.ArrayList;
12   -import java.util.Collection;
13   -import java.util.Date;
14   -import java.util.List;
15 14  
16 15 @Component("GpsTask")
17 16 public class GpsTask {
... ...
trash-ui/dist.zip
No preview for this file type
trash-ui/src/api/truck_active.js
... ... @@ -221,7 +221,6 @@ export default {
221 221  
222 222  
223 223 constructionById(item.objectId).then(res => {
224   - debugger;
225 224 for(let i in this.remoteCompanys){
226 225 if(this.remoteCompanys[i].id == res.result.transportCompanyId){
227 226 if(this.remoteCompanys[i].auditStatus != 1){
... ... @@ -291,7 +290,6 @@ export default {
291 290 let list = tres.result.list;
292 291  
293 292 let qr = {
294   - company:value,
295 293 status:0
296 294 }
297 295  
... ... @@ -445,15 +443,15 @@ export default {
445 443 this.queryParams.startTime = this.queryParams.createTime[0];
446 444 this.queryParams.endTime = this.queryParams.createTime[1];
447 445 }
448   -
  446 +
449 447 const query = {};
450   -
  448 +
451 449 for(var i in this.queryParams){
452 450 query[i] = this.queryParams[i];
453 451 }
454   -
  452 +
455 453 query.createTime = null;
456   -
  454 +
457 455 this.$confirm('是否确认导出所有车辆激活数据项?', "警告", {
458 456 confirmButtonText: "确定",
459 457 cancelButtonText: "取消",
... ...
trash-ui/src/layout/index.vue
1 1 <template>
2   - <div :class="classObj" class="app-wrapper">
3   - <sidebar class="sidebar-container"/>
4   - <div :class="{hasTagsView:needTagsView}" class="main-container">
5   - <tags-view v-if="needTagsView"/>
6   - <app-main/>
7   -
8   - </div>
9   - </div>
  2 + <app-main />
10 3 </template>
11 4  
12 5 <script>
13 6 import RightPanel from '@/components/RightPanel'
14   -import {AppMain, Navbar, Settings, Sidebar, TagsView} from './components'
  7 +import { AppMain, Navbar, Settings, Sidebar, TagsView } from './components'
15 8 import ResizeMixin from './mixin/ResizeHandler'
16   -import {mapState} from 'vuex'
  9 +import { mapState } from 'vuex'
17 10  
18 11 export default {
19 12 name: 'Layout',
... ... @@ -45,63 +38,52 @@ export default {
45 38 },
46 39 methods: {
47 40 handleClickOutside() {
48   - this.$store.dispatch('app/closeSideBar', {withoutAnimation: false})
  41 + this.$store.dispatch('app/closeSideBar', { withoutAnimation: false })
49 42 }
50 43 }
51 44 }
52 45 </script>
53 46  
54 47 <style lang="scss" scoped>
55   -@import "~@/assets/styles/mixin.scss";
56   -@import "~@/assets/styles/variables.scss";
  48 + @import "~@/assets/styles/mixin.scss";
  49 + @import "~@/assets/styles/variables.scss";
57 50  
58   -.app-wrapper {
59   - @include clearfix;
60   - position: relative;
61   - height: 100%;
62   - width: 100%;
  51 + .app-wrapper {
  52 + @include clearfix;
  53 + position: relative;
  54 + height: 100%;
  55 + width: 100%;
63 56  
64   - &.mobile.openSidebar {
65   - position: fixed;
66   - top: 0;
  57 + &.mobile.openSidebar {
  58 + position: fixed;
  59 + top: 0;
  60 + }
67 61 }
68   -}
69 62  
70   -.drawer-bg {
71   - background: #000;
72   - opacity: 0.3;
73   - width: 100%;
74   - top: 0;
75   - height: 100%;
76   - position: absolute;
77   - z-index: 999;
78   -}
79   -
80   -.fixed-header {
81   - position: fixed;
82   - top: 0;
83   - right: 0;
84   - z-index: 9;
85   - width: calc(100% - #{$sideBarWidth});
86   - transition: width 0.28s;
87   -}
88   -
89   -.hideSidebar .fixed-header {
90   - width: calc(100% - 54px)
91   -}
  63 + .drawer-bg {
  64 + background: #000;
  65 + opacity: 0.3;
  66 + width: 100%;
  67 + top: 0;
  68 + height: 100%;
  69 + position: absolute;
  70 + z-index: 999;
  71 + }
92 72  
93   -.mobile .fixed-header {
94   - width: 100%;
95   -}
  73 + .fixed-header {
  74 + position: fixed;
  75 + top: 0;
  76 + right: 0;
  77 + z-index: 9;
  78 + width: calc(100% - #{$sideBarWidth});
  79 + transition: width 0.28s;
  80 + }
96 81  
97   -.preview figure {
98   - float: left;
99   - width: 30%;
100   - height:calc(30vw - 0px);
101   - margin: 1.5%;
102   -}
  82 + .hideSidebar .fixed-header {
  83 + width: calc(100% - 54px)
  84 + }
103 85  
104   -.preview figure img {
105   - width: 400px;
106   -}
  86 + .mobile .fixed-header {
  87 + width: 100%;
  88 + }
107 89 </style>
... ...
trash-ui/src/layout/index3.vue deleted 100644 → 0
1   -<template>
2   - <app-main />
3   -</template>
4   -
5   -<script>
6   -import RightPanel from '@/components/RightPanel'
7   -import { AppMain, Navbar, Settings, Sidebar, TagsView } from './components'
8   -import ResizeMixin from './mixin/ResizeHandler'
9   -import { mapState } from 'vuex'
10   -
11   -export default {
12   - name: 'Layout',
13   - components: {
14   - AppMain,
15   - Navbar,
16   - RightPanel,
17   - Settings,
18   - Sidebar,
19   - TagsView
20   - },
21   - mixins: [ResizeMixin],
22   - computed: {
23   - ...mapState({
24   - sidebar: state => state.app.sidebar,
25   - device: state => state.app.device,
26   - showSettings: state => state.settings.showSettings,
27   - needTagsView: state => state.settings.tagsView,
28   - fixedHeader: state => state.settings.fixedHeader
29   - }),
30   - classObj() {
31   - return {
32   - hideSidebar: !this.sidebar.opened,
33   - openSidebar: this.sidebar.opened,
34   - withoutAnimation: this.sidebar.withoutAnimation,
35   - mobile: this.device === 'mobile'
36   - }
37   - }
38   - },
39   - methods: {
40   - handleClickOutside() {
41   - this.$store.dispatch('app/closeSideBar', { withoutAnimation: false })
42   - }
43   - }
44   -}
45   -</script>
46   -
47   -<style lang="scss" scoped>
48   - @import "~@/assets/styles/mixin.scss";
49   - @import "~@/assets/styles/variables.scss";
50   -
51   - .app-wrapper {
52   - @include clearfix;
53   - position: relative;
54   - height: 100%;
55   - width: 100%;
56   -
57   - &.mobile.openSidebar {
58   - position: fixed;
59   - top: 0;
60   - }
61   - }
62   -
63   - .drawer-bg {
64   - background: #000;
65   - opacity: 0.3;
66   - width: 100%;
67   - top: 0;
68   - height: 100%;
69   - position: absolute;
70   - z-index: 999;
71   - }
72   -
73   - .fixed-header {
74   - position: fixed;
75   - top: 0;
76   - right: 0;
77   - z-index: 9;
78   - width: calc(100% - #{$sideBarWidth});
79   - transition: width 0.28s;
80   - }
81   -
82   - .hideSidebar .fixed-header {
83   - width: calc(100% - 54px)
84   - }
85   -
86   - .mobile .fixed-header {
87   - width: 100%;
88   - }
89   -</style>
trash-ui/src/main.js
... ... @@ -42,8 +42,8 @@ Vue.use(plugins)
42 42 Vue.prototype.$aMapKey = "902732b0ff4758e4b39f0f34f0cb1cb0";// 高德地图key
43 43  
44 44  
45   -// Vue.prototype.remoteFrame = "http://183.66.242.6:14601"
46   -Vue.prototype.remoteFrame = "http://175.6.47.84:8008"
  45 +Vue.prototype.remoteFrame = "http://183.66.242.6:14601"
  46 +// Vue.prototype.remoteFrame = "http://175.6.47.84:8008"
47 47  
48 48 Vue.prototype.msgSuccess = function (msg) {
49 49 this.$message({ showClose: true, message: msg, type: "success" });
... ...
trash-ui/src/views/h5/task/companyInfo.vue
... ... @@ -92,6 +92,8 @@ import store from &quot;@/store&quot;;
92 92 this.src = http + "/h5/#/driverDetail?id=" + id + "&isThird=1";
93 93 }
94 94 },
  95 +
  96 +
95 97  
96 98 }
97 99 </script>
... ...
trash-unit/src/main/java/com/trash/gps/mapper/GpsOrientationMapper.java
... ... @@ -76,4 +76,6 @@ public interface GpsOrientationMapper {
76 76 * @return 结果
77 77 */
78 78 int createGpsTable(String yearMonth);
  79 +
  80 +
79 81 }
... ...
trash-workFlow/src/main/java/com/trash/business/controller/TruckActivateController.java
... ... @@ -64,10 +64,15 @@ public class TruckActivateController extends BaseController
64 64 @GetMapping("/list")
65 65 public TableDataInfo list(TruckActivate truckActivate)
66 66 {
67   -
68   - List<String> tables = truckActivateMapper.getTables("truck_activate%");
69   -
70   - truckActivate.setMyTables(tables);
  67 +
  68 + if(truckActivate.getStatus() == 0){
  69 + truckActivate.setMyTables(new ArrayList<>());
  70 + truckActivate.getMyTables().add("truck_activate");
  71 + }else{
  72 + List<String> tables = truckActivateMapper.getTables("truck_activate%");
  73 + truckActivate.setMyTables(tables);
  74 + }
  75 +
71 76  
72 77 startPage();
73 78  
... ...