Commit 4abf4eeab78cbc1175496dd5d4cfc9366655a7da
1 parent
019be050
m
Showing
4 changed files
with
67 additions
and
22 deletions
trash-ui/src/api/caseOfflineInfo.js
| @@ -92,15 +92,14 @@ export default { | @@ -92,15 +92,14 @@ export default { | ||
| 92 | let id = this.businessKey.split(":"); | 92 | let id = this.businessKey.split(":"); |
| 93 | 93 | ||
| 94 | if (id.length == 2) { | 94 | if (id.length == 2) { |
| 95 | - this.businessKey = id[1]; | ||
| 96 | - } else { | ||
| 97 | - this.businessKey = id; | 95 | + id = id[1]; |
| 98 | } | 96 | } |
| 97 | + | ||
| 99 | getArea().then(res => { | 98 | getArea().then(res => { |
| 100 | this.areas = res.result; | 99 | this.areas = res.result; |
| 101 | this.handleUpdate(); | 100 | this.handleUpdate(); |
| 102 | }); | 101 | }); |
| 103 | - listReplyApprovalProcess({tableName: "workflow_caseoffline:"+this.businessKey}).then(response => { | 102 | + listReplyApprovalProcess({tableName: "workflow_caseoffline:"+id}).then(response => { |
| 104 | this.replyApprovalProcessList = response.rows; | 103 | this.replyApprovalProcessList = response.rows; |
| 105 | }); | 104 | }); |
| 106 | }, | 105 | }, |
| @@ -148,11 +147,9 @@ export default { | @@ -148,11 +147,9 @@ export default { | ||
| 148 | let id = this.businessKey.split(":"); | 147 | let id = this.businessKey.split(":"); |
| 149 | 148 | ||
| 150 | if (id.length == 2) { | 149 | if (id.length == 2) { |
| 151 | - this.businessKey = id[1]; | ||
| 152 | - } else { | ||
| 153 | - this.businessKey = id; | ||
| 154 | - } | ||
| 155 | - getCaseOffline(this.businessKey).then(response => { | 150 | + id = id[1]; |
| 151 | + } | ||
| 152 | + getCaseOffline(id).then(response => { | ||
| 156 | this.form = response.data; | 153 | this.form = response.data; |
| 157 | if (this.form.attach && this.form.attach != "") | 154 | if (this.form.attach && this.form.attach != "") |
| 158 | this.form.attach = this.form.attach.split(","); | 155 | this.form.attach = this.form.attach.split(","); |
| @@ -161,7 +158,7 @@ export default { | @@ -161,7 +158,7 @@ export default { | ||
| 161 | this.form.type = this.getCaseType(this.form.type); | 158 | this.form.type = this.getCaseType(this.form.type); |
| 162 | this.form.place = this.getAreaName(this.form.place); | 159 | this.form.place = this.getAreaName(this.form.place); |
| 163 | 160 | ||
| 164 | - getAdviceList(this.workflow + ":" + this.businessKey).then(res => { | 161 | + getAdviceList(this.workflow + ":" + id).then(res => { |
| 165 | if (res.data) { | 162 | if (res.data) { |
| 166 | if (res.data.advice1) { | 163 | if (res.data.advice1) { |
| 167 | this.adviceList.push({ | 164 | this.adviceList.push({ |
trash-ui/src/api/vio_casefile.js
| @@ -153,7 +153,6 @@ export default { | @@ -153,7 +153,6 @@ export default { | ||
| 153 | }, | 153 | }, |
| 154 | created() { | 154 | created() { |
| 155 | getArea().then(res => { | 155 | getArea().then(res => { |
| 156 | - | ||
| 157 | this.areas = res.result; | 156 | this.areas = res.result; |
| 158 | }); | 157 | }); |
| 159 | 158 | ||
| @@ -171,6 +170,39 @@ export default { | @@ -171,6 +170,39 @@ export default { | ||
| 171 | this.companyList = res.result.list; | 170 | this.companyList = res.result.list; |
| 172 | }); | 171 | }); |
| 173 | 172 | ||
| 173 | + if(window.location.search){ | ||
| 174 | + let params = window.location.search.replace("?",""); | ||
| 175 | + let arr = params.split("&"); | ||
| 176 | + let type = -1; | ||
| 177 | + let name = null; | ||
| 178 | + for(let j in arr){ | ||
| 179 | + if(arr[j].split("=")[0] == "objType"){ | ||
| 180 | + if(arr[j].split("=")[1] == "company"){ | ||
| 181 | + type = 1; | ||
| 182 | + this.queryParams.violationObjectType = "2"; | ||
| 183 | + }else if(arr[j].split("=")[1] == "construction"){ | ||
| 184 | + type = 0; | ||
| 185 | + this.queryParams.violationObjectType = "0"; | ||
| 186 | + }else if(arr[j].split("=")[1] == "earthSite"){ | ||
| 187 | + type = 0; | ||
| 188 | + this.queryParams.violationObjectType = "1"; | ||
| 189 | + } | ||
| 190 | + } | ||
| 191 | + if(arr[j].split("=")[0] == "objValue"){ | ||
| 192 | + name = arr[j].split("=")[1]; | ||
| 193 | + } | ||
| 194 | + } | ||
| 195 | + | ||
| 196 | + if(type == 0){ | ||
| 197 | + this.queryParams.projectName = decodeURIComponent(name); | ||
| 198 | + } | ||
| 199 | + if(type == 1){ | ||
| 200 | + this.queryParams.companyName = decodeURIComponent(name); | ||
| 201 | + } | ||
| 202 | + | ||
| 203 | + | ||
| 204 | + } | ||
| 205 | + | ||
| 174 | 206 | ||
| 175 | this.getList(); | 207 | this.getList(); |
| 176 | }, | 208 | }, |
| @@ -241,7 +273,11 @@ export default { | @@ -241,7 +273,11 @@ export default { | ||
| 241 | }, | 273 | }, |
| 242 | /** 重置按钮操作 */ | 274 | /** 重置按钮操作 */ |
| 243 | resetQuery() { | 275 | resetQuery() { |
| 276 | + | ||
| 244 | this.resetForm("queryForm"); | 277 | this.resetForm("queryForm"); |
| 278 | + this.queryParams.violationObjectType =null; | ||
| 279 | + this.queryParams.projectName = null; | ||
| 280 | + this.queryParams.companyName = null; | ||
| 245 | this.handleQuery(); | 281 | this.handleQuery(); |
| 246 | }, | 282 | }, |
| 247 | // 多选框选中数据 | 283 | // 多选框选中数据 |
| @@ -486,10 +522,10 @@ export default { | @@ -486,10 +522,10 @@ export default { | ||
| 486 | const minute = now.getMinutes() < 10 ? `0${now.getMinutes()}` : now.getMinutes(); | 522 | const minute = now.getMinutes() < 10 ? `0${now.getMinutes()}` : now.getMinutes(); |
| 487 | const second = now.getSeconds() < 10 ? `0${now.getSeconds()}` : now.getSeconds(); | 523 | const second = now.getSeconds() < 10 ? `0${now.getSeconds()}` : now.getSeconds(); |
| 488 | const code = `${year}/${month}/${day} ${hour}:${minute}:${second}`; | 524 | const code = `${year}/${month}/${day} ${hour}:${minute}:${second}`; |
| 489 | - | 525 | + |
| 490 | let companyName = formData.companyName ? formData.companyName : ""; | 526 | let companyName = formData.companyName ? formData.companyName : ""; |
| 491 | let projectName = formData.projectName ? formData.projectName : ""; | 527 | let projectName = formData.projectName ? formData.projectName : ""; |
| 492 | - | 528 | + |
| 493 | this.form.describe = code + companyName + "在" + projectName + "出现" + formData.violationType; | 529 | this.form.describe = code + companyName + "在" + projectName + "出现" + formData.violationType; |
| 494 | this.rules.companyName = null; | 530 | this.rules.companyName = null; |
| 495 | this.rules.projectName = null; | 531 | this.rules.projectName = null; |
trash-workFlow/src/main/java/com/trash/business/controller/SupervisionThreestepController.java
| @@ -139,9 +139,16 @@ public class SupervisionThreestepController extends BaseController | @@ -139,9 +139,16 @@ public class SupervisionThreestepController extends BaseController | ||
| 139 | 139 | ||
| 140 | @PostMapping("/getByObjects") | 140 | @PostMapping("/getByObjects") |
| 141 | public AjaxResult getLists(@RequestBody SupervisionThreestep supervisionThreestep) | 141 | public AjaxResult getLists(@RequestBody SupervisionThreestep supervisionThreestep) |
| 142 | - { | ||
| 143 | - List<SupervisionThreestep> list = supervisionThreestepService.selectSupervisionThreestepList(supervisionThreestep); | ||
| 144 | - return AjaxResult.success(list); | 142 | + { |
| 143 | + AjaxResult ajaxResult = AjaxResult.success(); | ||
| 144 | + try { | ||
| 145 | + ajaxResult.put("result", supervisionThreestepService.selectSupervisionThreestepList(supervisionThreestep)); | ||
| 146 | + } catch (Exception e) { | ||
| 147 | + e.printStackTrace(); | ||
| 148 | + } | ||
| 149 | + | ||
| 150 | + return ajaxResult; | ||
| 151 | + | ||
| 145 | } | 152 | } |
| 146 | 153 | ||
| 147 | String[] outside = {"长沙县", "望城区", "浏阳市", "宁乡市", "株洲市", "湘潭市", "汩罗市", "湘阴县"}; | 154 | String[] outside = {"长沙县", "望城区", "浏阳市", "宁乡市", "株洲市", "湘潭市", "汩罗市", "湘阴县"}; |
trash-workFlow/src/main/java/com/trash/business/controller/TruckActivateController.java
| @@ -177,7 +177,6 @@ public class TruckActivateController extends BaseController | @@ -177,7 +177,6 @@ public class TruckActivateController extends BaseController | ||
| 177 | List<TruckActivate> list = truckActivateService.selectTruckActivateList(truckActivate); | 177 | List<TruckActivate> list = truckActivateService.selectTruckActivateList(truckActivate); |
| 178 | List<TruckActivateInfo> outList = new ArrayList<>(); | 178 | List<TruckActivateInfo> outList = new ArrayList<>(); |
| 179 | 179 | ||
| 180 | - | ||
| 181 | for(int i = 0;i<list.size();i++){ | 180 | for(int i = 0;i<list.size();i++){ |
| 182 | 181 | ||
| 183 | TruckActivate turck = list.get(i); | 182 | TruckActivate turck = list.get(i); |
| @@ -199,7 +198,6 @@ public class TruckActivateController extends BaseController | @@ -199,7 +198,6 @@ public class TruckActivateController extends BaseController | ||
| 199 | info.setEffectiveFrom(object.getString("effectiveFrom")); | 198 | info.setEffectiveFrom(object.getString("effectiveFrom")); |
| 200 | info.setEffectiveEnd(object.getString("effectiveEnd")); | 199 | info.setEffectiveEnd(object.getString("effectiveEnd")); |
| 201 | 200 | ||
| 202 | - | ||
| 203 | outList.add(info); | 201 | outList.add(info); |
| 204 | 202 | ||
| 205 | } | 203 | } |
| @@ -259,10 +257,17 @@ public class TruckActivateController extends BaseController | @@ -259,10 +257,17 @@ public class TruckActivateController extends BaseController | ||
| 259 | 257 | ||
| 260 | @PostMapping(value="/getTruckListByObjects") | 258 | @PostMapping(value="/getTruckListByObjects") |
| 261 | public AjaxResult getTruckListByObjects(@RequestBody TruckActivate truckActivate) | 259 | public AjaxResult getTruckListByObjects(@RequestBody TruckActivate truckActivate) |
| 262 | - { | ||
| 263 | - List<TruckActivate> list = truckActivateService.getTruckListByObjects(truckActivate); | ||
| 264 | - | ||
| 265 | - return AjaxResult.success(list); | 260 | + { |
| 261 | + | ||
| 262 | + AjaxResult ajaxResult = AjaxResult.success(); | ||
| 263 | + try { | ||
| 264 | + ajaxResult.put("result", truckActivateService.getTruckListByObjects(truckActivate)); | ||
| 265 | + } catch (Exception e) { | ||
| 266 | + e.printStackTrace(); | ||
| 267 | + } | ||
| 268 | + | ||
| 269 | + return ajaxResult; | ||
| 270 | + | ||
| 266 | } | 271 | } |
| 267 | 272 | ||
| 268 | 273 |