Commit 9f49d289f5e3330faab003004719218d438245e1

Authored by youxiw2000
2 parents fde1575a 01d717cc

Merge branch 'dev' of http://101.95.0.106:8888/youxiw20000/trash into dev

trash-ui/src/api/vio_casefile.js
1   -
2   -import { listViolationCaseFile, getViolationCaseFile,
3   - delViolationCaseFile, addViolationCaseFile,
4   - updateViolationCaseFile, exportViolationCaseFile } from "@/api/casefile/violationCaseFile";
  1 +import {
  2 + addViolationCaseFile,
  3 + delViolationCaseFile,
  4 + exportViolationCaseFile,
  5 + getViolationCaseFile,
  6 + listViolationCaseFile,
  7 + updateViolationCaseFile
  8 +} from "@/api/casefile/violationCaseFile";
5 9 import violationCaseFileInfo from "@/views/casefile/violationCaseFile/violationCaseFileInfo";
6 10  
7 11 import h5Info from "@/views/h5/task/violationCaseFileInfo";
8 12 import h5Page from "@/views/h5/Pagination";
9 13  
10   - import {
11   - earthsitesList,
12   - constructionsitesList,
13   - getDict,
14   - getArea,
15   - companyList,
16   - truckList,
17   - } from "@/api/dict";
  14 +import {companyList, constructionsitesList, earthsitesList, getArea,} from "@/api/dict";
18 15  
19 16  
20 17 export default {
21 18 name: "ViolationCaseFile",
22   - components: { violationCaseFileInfo,
23   - h5Page,
24   - h5Info},
  19 + components: {
  20 + violationCaseFileInfo,
  21 + h5Page,
  22 + h5Info
  23 + },
25 24 data() {
26 25 return {
27 26 // 遮罩层
... ... @@ -62,73 +61,68 @@ export default {
62 61 readTime: null
63 62 },
64 63 // 表单参数
65   - form: {
66   -
67   - },
68   - place:null,
  64 + form: {},
  65 + place: null,
69 66 // 表单校验
70 67 rules: {
71   - number :[
72   - { required: true, message: "必填", trigger: "blur" }
  68 + number: [
  69 + {required: true, message: "必填", trigger: "blur"}
73 70 ],
74   - violationObjectType :[
75   - { required: true, message: "必填", trigger: "blur" }
  71 + violationObjectType: [
  72 + {required: true, message: "必填", trigger: "blur"}
76 73 ],
77   - owningRegion :[
78   - { required: true, message: "必填", trigger: "blur" }
  74 + owningRegion: [
  75 + {required: true, message: "必填", trigger: "blur"}
79 76 ],
80   - violationType :[
81   - { required: true, message: "必填", trigger: "blur" }
  77 + violationType: [
  78 + {required: true, message: "必填", trigger: "blur"}
82 79 ],
83 80 },
84   - caseType:[{code:0,name:"进入非专用车辆"},
85   - {code:1,name:"无许可手续(工)"},
86   - {code:2,name:"无许可手续(消)"},
87   - {code:3,name:"黄土覆盖情况"},
88   - {code:4,name:"出入口路面污染"},
89   - {code:5,name:"出入口道路硬化"},
90   - {code:6,name:"车辆冲洗是否到位"},
91   - {code:7,name:"雾炮机是否正常开启"},
92   - {code:8,name:"使用费专用车运输"},
93   - {code:9,name:"监控点位未对准"},
94   - {code:10,name:"未报开工作业"},
95   - {code:11,name:"视频设备离线超时报警"},
96   - {code:12,name:"三无车辆进入工地"},
97   - {code:13,name:"未按时间作业"},
98   - {code:14,name:"未报开工作业"},
99   - {code:15,name:"视频设备离线超时报警"},
100   - {code:16,name:"三无车辆进入处理场所"},
101   - {code:17,name:"未到指定的处理场所作业"},
102   - {code:18,name:"离线运输报警(工)"},
103   - {code:19,name:"离线运输报警(消)"},
104   - {code:20,name:"未激活车辆作业"},
105   - {code:21,name:"未核准作业车辆作业"},
106   - {code:22,name:"未按线路行驶"},
107   - {code:23,name:"闯禁行驶"},
108   - {code:24,name:"失信车辆作业"},
109   - {code:25,name:"其他1"},
110   - {code:26,name:"其他2"},
111   - {code:27,name:"其他3"},
112   - {code:28,name:"其他4"},
113   - {code:29,name:"其他5"}],
  81 + caseType: [{code: 0, name: "进入非专用车辆"},
  82 + {code: 1, name: "三无车辆运输"},
  83 + {code: 3, name: "黄土覆盖情况"},
  84 + {code: 4, name: "出入口路面污染"},
  85 + {code: 5, name: "出入口道路硬化"},
  86 + {code: 6, name: "车辆冲洗是否到位"},
  87 + {code: 7, name: "雾炮机是否正常开启"},
  88 + {code: 8, name: "使用费专用车运输"},
  89 + {code: 9, name: "监控点位未对准"},
  90 + {code: 10, name: "未报开工作业"},
  91 + {code: 11, name: "视频设备离线超时报警"},
  92 + {code: 12, name: "三无车辆进入工地"},
  93 + {code: 13, name: "未按时间作业"},
  94 + {code: 14, name: "未报开工作业"},
  95 + {code: 15, name: "视频设备离线超时报警"},
  96 + {code: 16, name: "三无车辆进入处理场所"},
  97 + {code: 17, name: "未到指定的处理场所作业"},
  98 + {code: 18, name: "离线运输报警(工)"},
  99 + {code: 19, name: "离线运输报警(消)"},
  100 + {code: 20, name: "未激活车辆作业"},
  101 + {code: 21, name: "未核准作业车辆作业"},
  102 + {code: 22, name: "未按线路行驶"},
  103 + {code: 23, name: "闯禁行驶"},
  104 + {code: 24, name: "失信车辆作业"},
  105 + {code: 25, name: "其他1"},
  106 + {code: 26, name: "其他2"},
  107 + {code: 27, name: "其他3"},
  108 + {code: 28, name: "其他4"},
  109 + {code: 29, name: "其他5"}],
114 110  
115   - projectNameList:[
116   - ],
  111 + projectNameList: [],
117 112 isLoading: false,
118   - fileEntityList:[],
119   - companyList:[
120   - ],
  113 + fileEntityList: [],
  114 + companyList: [],
121 115 remoteQueryData: {
122 116 "page": 1,
123 117 "size": 9999
124 118 },
125   - areas:[],
126   - data:{},
  119 + areas: [],
  120 + data: {},
127 121 isLoadingCompany: false,
128   - idInfo:null,
129   - openInfo:false,
  122 + idInfo: null,
  123 + openInfo: false,
130 124 slide1: [],
131   - videoSrc:[]
  125 + videoSrc: []
132 126 };
133 127 },
134 128 watch: {
... ... @@ -144,7 +138,7 @@ export default {
144 138 this.slide1.push(process.env.VUE_APP_BASE_API + item.url);
145 139 }
146 140 }
147   - if(item.name.indexOf(".mp4") > -1 || item.name.indexOf(".avi") > -1){
  141 + if (item.name.indexOf(".mp4") > -1 || item.name.indexOf(".avi") > -1) {
148 142 if (item.raw != null) {
149 143 this.videoSrc.push(URL.createObjectURL(item.raw));
150 144 } else {
... ... @@ -157,7 +151,7 @@ export default {
157 151 }
158 152 },
159 153 created() {
160   - getArea().then(res=>{
  154 + getArea().then(res => {
161 155  
162 156 this.areas = res.result;
163 157 });
... ... @@ -166,23 +160,22 @@ export default {
166 160 constructionsitesList(this.remoteQueryData).then(res => {
167 161 this.projectNameList = res.result.list;
168 162 earthsitesList(this.remoteQueryData).then(res => {
169   - for(var i in res.result.list){
170   - this.projectNameList.push(res.result.list[i]);
171   - }
  163 + for (var i in res.result.list) {
  164 + this.projectNameList.push(res.result.list[i]);
  165 + }
172 166 });
173 167 });
174 168  
175 169  
176 170 companyList(this.remoteQueryData).then(res => {
177   - this.companyList = res.result.list;
  171 + this.companyList = res.result.list;
178 172 });
179 173  
180 174  
181   -
182 175 this.getList();
183 176 },
184 177 methods: {
185   - selectArea(item){
  178 + selectArea(item) {
186 179  
187 180 this.form.owningRegion = item.name;
188 181 this.form.projectName = null;
... ... @@ -242,10 +235,10 @@ export default {
242 235 // 多选框选中数据
243 236 handleSelectionChange(selection) {
244 237 this.ids = selection.map(item => item.id)
245   - this.single = selection.length!==1
  238 + this.single = selection.length !== 1
246 239 this.multiple = !selection.length
247 240 },
248   - handleInfo(row){
  241 + handleInfo(row) {
249 242 this.idInfo = row.id + "";
250 243 this.openInfo = true;
251 244 this.title = "平台违规案卷详情";
... ... @@ -276,7 +269,7 @@ export default {
276 269 this.$refs["form"].validate(valid => {
277 270 if (valid) {
278 271  
279   - if(this.form.sendObject == "运输企业" && this.form.companyName == null){
  272 + if (this.form.sendObject == "运输企业" && this.form.companyName == null) {
280 273  
281 274 this.$message("请选择相关企业");
282 275  
... ... @@ -291,7 +284,7 @@ export default {
291 284 formData.append('fileList', null);
292 285 //将新增的文件放入formData
293 286 this.fileEntityList.forEach(item => {
294   - if(item.id==null){
  287 + if (item.id == null) {
295 288 formData.append('fileList', item.raw)
296 289 }
297 290 })
... ... @@ -300,7 +293,7 @@ export default {
300 293 formData.append("uploadFilesList", null);
301 294 this.fileEntityList.forEach(item => {
302 295 delete item.params;
303   - if(item != "null" && item != null){
  296 + if (item != "null" && item != null) {
304 297 formData.append('uploadFilesList', JSON.stringify(item).replaceAll("url", "filePath").replaceAll("name", "fileName"));
305 298 }
306 299 })
... ... @@ -326,31 +319,31 @@ export default {
326 319 handleDelete(row) {
327 320 const ids = row.id || this.ids;
328 321 this.$confirm('是否确认删除平台违规案卷编号为"' + ids + '"的数据项?', "警告", {
329   - confirmButtonText: "确定",
330   - cancelButtonText: "取消",
331   - type: "warning"
332   - }).then(function() {
333   - return delViolationCaseFile(ids);
334   - }).then(() => {
335   - this.getList();
336   - this.msgSuccess("删除成功");
337   - })
  322 + confirmButtonText: "确定",
  323 + cancelButtonText: "取消",
  324 + type: "warning"
  325 + }).then(function () {
  326 + return delViolationCaseFile(ids);
  327 + }).then(() => {
  328 + this.getList();
  329 + this.msgSuccess("删除成功");
  330 + })
338 331 },
339 332 /** 导出按钮操作 */
340 333 handleExport() {
341 334 const queryParams = this.queryParams;
342 335 this.$confirm('是否确认导出所有平台违规案卷数据项?', "警告", {
343   - confirmButtonText: "确定",
344   - cancelButtonText: "取消",
345   - type: "warning"
346   - }).then(function() {
347   - return exportViolationCaseFile(queryParams);
348   - }).then(response => {
349   - this.download(response.message);
350   - })
  336 + confirmButtonText: "确定",
  337 + cancelButtonText: "取消",
  338 + type: "warning"
  339 + }).then(function () {
  340 + return exportViolationCaseFile(queryParams);
  341 + }).then(response => {
  342 + this.download(response.message);
  343 + })
351 344 },
352 345 /** 生成案卷编号 */
353   - getNumber(){
  346 + getNumber() {
354 347 const now = new Date();
355 348 const year = now.getFullYear().toString().slice(-2); // 提取后两位数
356 349 const month = now.getMonth() + 1 < 10 ? `0${now.getMonth() + 1}` : now.getMonth() + 1;
... ... @@ -368,9 +361,9 @@ export default {
368 361 setTimeout(() => {
369 362 // 模拟异步加载数据
370 363 const data = [
371   - { name:'项目1' },
372   - { name:'项目2' },
373   - { name:'项目3' }
  364 + {name: '项目1'},
  365 + {name: '项目2'},
  366 + {name: '项目3'}
374 367 ].filter(item => item.name.includes(query))
375 368 this.projectNameList = data
376 369 this.isLoading = false
... ... @@ -382,9 +375,9 @@ export default {
382 375 setTimeout(() => {
383 376 // 模拟异步加载数据
384 377 const data = [
385   - { name:'公司1' },
386   - { name:'公司2' },
387   - { name:'公司3' }
  378 + {name: '公司1'},
  379 + {name: '公司2'},
  380 + {name: '公司3'}
388 381 ].filter(item => item.name.includes(query))
389 382 this.companyList = data
390 383 this.isLoadingCompany = false
... ... @@ -457,9 +450,9 @@ export default {
457 450 a.click()
458 451 },
459 452 /** 生成违规描述 */
460   - createDescribe(){
461   - this.rules.companyName = [{ required: true, message: "必填", trigger: "blur" }]
462   - this.rules.projectName = [{ required: true, message: "必填", trigger: "blur" }]
  453 + createDescribe() {
  454 + this.rules.companyName = [{required: true, message: "必填", trigger: "blur"}]
  455 + this.rules.projectName = [{required: true, message: "必填", trigger: "blur"}]
463 456 this.$refs["form"].validate(valid => {
464 457 if (valid) {
465 458 let formData = this.form;
... ... @@ -471,7 +464,7 @@ export default {
471 464 const minute = now.getMinutes() < 10 ? `0${now.getMinutes()}` : now.getMinutes();
472 465 const second = now.getSeconds() < 10 ? `0${now.getSeconds()}` : now.getSeconds();
473 466 const code = `${year}/${month}/${day} ${hour}:${minute}:${second}`;
474   - this.form.describe =code + formData.companyName + "在" + formData.projectName + "出现" + formData.violationType;
  467 + this.form.describe = code + formData.companyName + "在" + formData.projectName + "出现" + formData.violationType;
475 468 this.rules.companyName = null;
476 469 this.rules.projectName = null;
477 470 }
... ...
trash-ui/src/views/casefile/violationCaseFile/violationCaseFileInfo.vue
... ... @@ -113,11 +113,11 @@
113 113 type="text"
114 114 icon="el-icon-view"
115 115 @click="openImage(scope.row.replyImg)"
116   - v-if="scope.row.replyImg!=null"
  116 + v-if="scope.row.replyImg!=null && scope.row.replyImg!='undefined'"
117 117 v-hasPermi="['casefile:violationWarningInformation:view']"
118 118 >查看
119 119 </el-button>
120   - <span v-if="scope.row.replyImg==null">暂无</span>
  120 + <span v-if="scope.row.replyImg==null || scope.row.replyImg=='undefined'">暂无</span>
121 121 </template>
122 122 </el-table-column>
123 123 </el-table>
... ...
trash-ui/src/views/casefile/violationWarningInformation/violationWarningInformationInfo.vue
... ... @@ -111,11 +111,11 @@
111 111 type="text"
112 112 icon="el-icon-view"
113 113 @click="openImage(scope.row.replyImg)"
114   - v-if="scope.row.replyImg!=null"
  114 + v-if="scope.row.replyImg!=null && scope.row.replyImg!='undefined'"
115 115 v-hasPermi="['casefile:violationWarningInformation:edit']"
116 116 >查看
117 117 </el-button>
118   - <span v-if="scope.row.replyImg==null">暂无</span>
  118 + <span v-if="scope.row.replyImg==null || scope.row.replyImg=='undefined'">暂无</span>
119 119 </template>
120 120 </el-table-column>
121 121 </el-table>
... ...
trash-ui/src/views/h5/violationCaseFile/index.vue
... ... @@ -238,7 +238,7 @@
238 238 </div>
239 239 </template>
240 240  
241   -<script src="../../../api/vio_casefile">
  241 +<script src="@/api/vio_casefile">
242 242 </script>
243 243 <style scope>
244 244 .el-select-dropdown__item{
... ...
trash-workFlow/src/main/java/com/trash/casefile/service/impl/ViolationCaseFileServiceImpl.java
... ... @@ -128,7 +128,7 @@ public class ViolationCaseFileServiceImpl implements IViolationCaseFileService
128 128 i = 2;
129 129 }
130 130 }
131   - if(violationCaseFile.getViolationType().equals("三无车辆进入工地")||violationCaseFile.getViolationType().equals("三无车辆进入消纳场")){
  131 + if(violationCaseFile.getViolationType().equals("三无车辆进入工地")||violationCaseFile.getViolationType().equals("三无车辆进入消纳场")||violationCaseFile.getViolationType().equals("三无车辆运输")){
132 132 i = 2;
133 133 }
134 134  
... ...