Commit 4673ae9a1b8a4bcc88bcacd47274cdeda86e31a5

Authored by youxiw2000
1 parent ac914c25

m

trash-admin/src/main/resources/application-dev.yml
@@ -16,10 +16,10 @@ trash: @@ -16,10 +16,10 @@ trash:
16 # 验证码类型 math 数组计算 char 字符验证 16 # 验证码类型 math 数组计算 char 字符验证
17 captchaType: math 17 captchaType: math
18 # 远程服务器地址 18 # 远程服务器地址
19 - remotePath: http://175.6.47.84:8008  
20 - token: durable:auth:token:eyJhbGciOiJIUzUxMiJ9.eyJ5ZWEiOiJkdXJhYmxlIiwiZXhwIjo0MTAyNDE1OTk5LCJjcmVhdGVkIjoxNjg1NDE2NjEzMzU1fQ.58-J0KKfsK2pQhDQAzaBaUj-oFWMbYF1YzMAcshmcfidIkW16TZWIVhAVKPvCJvWfG54x7xB-ETxKCDLFnSctQ  
21 - #remotePath: http://183.66.242.6:14601  
22 - #token: durable:auth:token:eyJhbGciOiJIUzUxMiJ9.eyJ5ZWEiOiJjc3poIiwiZXhwIjo0MTAyNDE1OTk5LCJjcmVhdGVkIjoxNjg0NDU5MjEzNzQ2fQ.85oIrOnU7cz7L_-IGt4Bt1LXDTkFtyrdqNt05K0v9-4nsrrzzpbjbemK-yMlbnUpe4Fx2FFES-Wbw8Yr8ML69w 19 + #remotePath: http://175.6.47.84:8008
  20 + #token: durable:auth:token:eyJhbGciOiJIUzUxMiJ9.eyJ5ZWEiOiJkdXJhYmxlIiwiZXhwIjo0MTAyNDE1OTk5LCJjcmVhdGVkIjoxNjg1NDE2NjEzMzU1fQ.58-J0KKfsK2pQhDQAzaBaUj-oFWMbYF1YzMAcshmcfidIkW16TZWIVhAVKPvCJvWfG54x7xB-ETxKCDLFnSctQ
  21 + remotePath: http://183.66.242.6:14601
  22 + token: durable:auth:token:eyJhbGciOiJIUzUxMiJ9.eyJ5ZWEiOiJjc3poIiwiZXhwIjo0MTAyNDE1OTk5LCJjcmVhdGVkIjoxNjg0NDU5MjEzNzQ2fQ.85oIrOnU7cz7L_-IGt4Bt1LXDTkFtyrdqNt05K0v9-4nsrrzzpbjbemK-yMlbnUpe4Fx2FFES-Wbw8Yr8ML69w
23 23
24 24
25 25
trash-ui/dist.zip
No preview for this file type
trash-ui/src/api/three_step.js
@@ -217,15 +217,15 @@ export default { @@ -217,15 +217,15 @@ export default {
217 this.authCon = this.$store.getters.user.conList; 217 this.authCon = this.$store.getters.user.conList;
218 this.authConArea = this.$store.getters.user.conAreas; 218 this.authConArea = this.$store.getters.user.conAreas;
219 219
220 - if(this.authEarth.length == 0 && authCon.length > 0){ 220 + if(this.authEarth.length == 0 && this.authCon.length > 0){
221 this.form.type = "0"; 221 this.form.type = "0";
222 this.typeLock = true; 222 this.typeLock = true;
223 - if(authCon.length == 1){ 223 + if(this.authCon.length == 1){
224 this.nameLock = true; 224 this.nameLock = true;
225 this.areaLock = true; 225 this.areaLock = true;
226 - this.getRemoteDataById(authCon[0]); 226 + this.getRemoteDataById(this.authCon[0]);
227 } 227 }
228 - }else if(this.authEarth.length > 0 && authCon.length == 0){ 228 + }else if(this.authEarth.length > 0 && this.authCon.length == 0){
229 this.form.type = "1"; 229 this.form.type = "1";
230 this.typeLock = true; 230 this.typeLock = true;
231 if(this.authEarth.length == 1){ 231 if(this.authEarth.length == 1){
@@ -350,7 +350,7 @@ export default { @@ -350,7 +350,7 @@ export default {
350 this.remoteData.push(res.result.list[i]); 350 this.remoteData.push(res.result.list[i]);
351 351
352 if(res.result.list[i].name == this.form.name){ 352 if(res.result.list[i].name == this.form.name){
353 - let item = this.remoteData[0]; 353 + let item = res.result.list[i];
354 this.form.objectId = item.id; 354 this.form.objectId = item.id;
355 this.form.place = Number(item.areaCode); 355 this.form.place = Number(item.areaCode);
356 this.getCompanyTrucks(item.id); 356 this.getCompanyTrucks(item.id);
@@ -365,16 +365,15 @@ export default { @@ -365,16 +365,15 @@ export default {
365 365
366 }); 366 });
367 } else { 367 } else {
  368 + debugger;
368 if(this.remoteQueryData.areaCode) 369 if(this.remoteQueryData.areaCode)
369 this.remoteQueryData.areaCode = [this.remoteQueryData.areaCode+""]; 370 this.remoteQueryData.areaCode = [this.remoteQueryData.areaCode+""];
370 -  
371 -  
372 this.remoteQueryData.overdue = 0; 371 this.remoteQueryData.overdue = 0;
373 earthsitesLedgerList(this.remoteQueryData).then(res => { 372 earthsitesLedgerList(this.remoteQueryData).then(res => {
374 for(let i in res.result.list){ 373 for(let i in res.result.list){
375 this.remoteData.push(res.result.list[i]); 374 this.remoteData.push(res.result.list[i]);
376 if(res.result.list[i].name == this.form.name){ 375 if(res.result.list[i].name == this.form.name){
377 - let item = this.remoteData[0]; 376 + let item = res.result.list[i];
378 this.form.objectId = item.id; 377 this.form.objectId = item.id;
379 this.form.place = Number(item.areaCode) ; 378 this.form.place = Number(item.areaCode) ;
380 break; 379 break;
trash-ui/src/api/vio_casefile.js
@@ -93,10 +93,10 @@ export default { @@ -93,10 +93,10 @@ export default {
93 {code: 11, name: "工地预警-视频设备离线超时报警"}, 93 {code: 11, name: "工地预警-视频设备离线超时报警"},
94 {code: 12, name: "工地预警-三无车辆进入工地"}, 94 {code: 12, name: "工地预警-三无车辆进入工地"},
95 {code: 13, name: "工地预警-未按时间作业"}, 95 {code: 13, name: "工地预警-未按时间作业"},
96 - {code: 14, name: "未报开工作业"},  
97 - {code: 15, name: "视频设备离线超时报警"},  
98 - {code: 16, name: "三无车辆进入处理场所"},  
99 - {code: 17, name: "未到指定的处理场所作业"}, 96 + {code: 14, name: "处理场所预警-未报开工作业"},
  97 + {code: 15, name: "处理场所预警-视频设备离线超时报警"},
  98 + {code: 16, name: "处理场所预警-三无车辆进入处理场所"},
  99 + {code: 17, name: "处理场所预警-未到指定的处理场所作业"},
100 {code: 18, name: "离线运输报警(工)"}, 100 {code: 18, name: "离线运输报警(工)"},
101 {code: 19, name: "离线运输报警(消)"}, 101 {code: 19, name: "离线运输报警(消)"},
102 {code: 20, name: "未激活车辆作业"}, 102 {code: 20, name: "未激活车辆作业"},
@@ -404,15 +404,15 @@ export default { @@ -404,15 +404,15 @@ export default {
404 this.queryParams.startTime = this.queryParams.createTime[0]; 404 this.queryParams.startTime = this.queryParams.createTime[0];
405 this.queryParams.endTime = this.queryParams.createTime[1]; 405 this.queryParams.endTime = this.queryParams.createTime[1];
406 } 406 }
407 - 407 +
408 const query = {}; 408 const query = {};
409 - 409 +
410 for(var i in this.queryParams){ 410 for(var i in this.queryParams){
411 query[i] = this.queryParams[i]; 411 query[i] = this.queryParams[i];
412 } 412 }
413 - 413 +
414 query.createTime = null; 414 query.createTime = null;
415 - 415 +
416 this.$confirm('是否确认导出所有平台违规案卷数据项?', "警告", { 416 this.$confirm('是否确认导出所有平台违规案卷数据项?', "警告", {
417 confirmButtonText: "确定", 417 confirmButtonText: "确定",
418 cancelButtonText: "取消", 418 cancelButtonText: "取消",
trash-ui/src/layout/index.vue
1 <template> 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 </template> 3 </template>
11 4
12 <script> 5 <script>
13 import RightPanel from '@/components/RightPanel' 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 import ResizeMixin from './mixin/ResizeHandler' 8 import ResizeMixin from './mixin/ResizeHandler'
16 -import {mapState} from 'vuex' 9 +import { mapState } from 'vuex'
17 10
18 export default { 11 export default {
19 name: 'Layout', 12 name: 'Layout',
@@ -45,63 +38,52 @@ export default { @@ -45,63 +38,52 @@ export default {
45 }, 38 },
46 methods: { 39 methods: {
47 handleClickOutside() { 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 </script> 45 </script>
53 46
54 <style lang="scss" scoped> 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 </style> 89 </style>
trash-ui/src/layout/index3.vue renamed to trash-ui/src/layout/index44.vue
1 <template> 1 <template>
2 - <app-main /> 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>
3 </template> 10 </template>
4 11
5 <script> 12 <script>
6 import RightPanel from '@/components/RightPanel' 13 import RightPanel from '@/components/RightPanel'
7 -import { AppMain, Navbar, Settings, Sidebar, TagsView } from './components' 14 +import {AppMain, Navbar, Settings, Sidebar, TagsView} from './components'
8 import ResizeMixin from './mixin/ResizeHandler' 15 import ResizeMixin from './mixin/ResizeHandler'
9 -import { mapState } from 'vuex' 16 +import {mapState} from 'vuex'
10 17
11 export default { 18 export default {
12 name: 'Layout', 19 name: 'Layout',
@@ -38,52 +45,63 @@ export default { @@ -38,52 +45,63 @@ export default {
38 }, 45 },
39 methods: { 46 methods: {
40 handleClickOutside() { 47 handleClickOutside() {
41 - this.$store.dispatch('app/closeSideBar', { withoutAnimation: false }) 48 + this.$store.dispatch('app/closeSideBar', {withoutAnimation: false})
42 } 49 }
43 } 50 }
44 } 51 }
45 </script> 52 </script>
46 53
47 <style lang="scss" scoped> 54 <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 - } 55 +@import "~@/assets/styles/mixin.scss";
  56 +@import "~@/assets/styles/variables.scss";
62 57
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 - } 58 +.app-wrapper {
  59 + @include clearfix;
  60 + position: relative;
  61 + height: 100%;
  62 + width: 100%;
72 63
73 - .fixed-header { 64 + &.mobile.openSidebar {
74 position: fixed; 65 position: fixed;
75 top: 0; 66 top: 0;
76 - right: 0;  
77 - z-index: 9;  
78 - width: calc(100% - #{$sideBarWidth});  
79 - transition: width 0.28s;  
80 } 67 }
  68 +}
81 69
82 - .hideSidebar .fixed-header {  
83 - width: calc(100% - 54px)  
84 - } 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 +}
85 79
86 - .mobile .fixed-header {  
87 - width: 100%;  
88 - } 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 +}
  92 +
  93 +.mobile .fixed-header {
  94 + width: 100%;
  95 +}
  96 +
  97 +.preview figure {
  98 + float: left;
  99 + width: 30%;
  100 + height:calc(30vw - 0px);
  101 + margin: 1.5%;
  102 +}
  103 +
  104 +.preview figure img {
  105 + width: 400px;
  106 +}
89 </style> 107 </style>
trash-ui/src/views/business/threestep/index.vue
@@ -147,7 +147,6 @@ @@ -147,7 +147,6 @@
147 </el-form-item> 147 </el-form-item>
148 </el-col> 148 </el-col>
149 </el-row> 149 </el-row>
150 -  
151 <el-row type="flex" justify="center" v-if="form.type == 0" > 150 <el-row type="flex" justify="center" v-if="form.type == 0" >
152 <el-col :span="24" > 151 <el-col :span="24" >
153 <el-form-item label="运输车辆" prop="trucks" > 152 <el-form-item label="运输车辆" prop="trucks" >
@@ -391,7 +390,7 @@ @@ -391,7 +390,7 @@
391 </el-row> 390 </el-row>
392 391
393 <el-input v-model="form.earthsitesId" type="hidden" /> 392 <el-input v-model="form.earthsitesId" type="hidden" />
394 - <el-input v-model="form.objectId" type="hidden" /> 393 + <el-input v-model="form.name" type="hidden" />
395 </el-form> 394 </el-form>
396 395
397 <div slot="footer" class="dialog-footer"> 396 <div slot="footer" class="dialog-footer">
trash-ui/vue.config.js
@@ -41,15 +41,10 @@ module.exports = { @@ -41,15 +41,10 @@ module.exports = {
41 } 41 }
42 }, 42 },
43 ['/api']: { 43 ['/api']: {
44 - // target: `http://183.66.242.6:14601`,  
45 - target: `http://175.6.47.84:8008`, 44 + target: `http://183.66.242.6:14601`,
  45 + // target: `http://175.6.47.84:8008`,
46 changeOrigin: true, 46 changeOrigin: true,
47 - },  
48 - ['^/remotedown']: {  
49 - // target: `http://183.66.242.6:14601/upload_files`,  
50 - target: `http://175.6.47.84:8008/upload_files`,  
51 - changeOrigin: true,  
52 - }, 47 + }
53 48
54 }, 49 },
55 disableHostCheck: true 50 disableHostCheck: true