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 | 92 | let id = this.businessKey.split(":"); |
| 93 | 93 | |
| 94 | 94 | if (id.length == 2) { |
| 95 | - this.businessKey = id[1]; | |
| 96 | - } else { | |
| 97 | - this.businessKey = id; | |
| 95 | + id = id[1]; | |
| 98 | 96 | } |
| 97 | + | |
| 99 | 98 | getArea().then(res => { |
| 100 | 99 | this.areas = res.result; |
| 101 | 100 | this.handleUpdate(); |
| 102 | 101 | }); |
| 103 | - listReplyApprovalProcess({tableName: "workflow_caseoffline:"+this.businessKey}).then(response => { | |
| 102 | + listReplyApprovalProcess({tableName: "workflow_caseoffline:"+id}).then(response => { | |
| 104 | 103 | this.replyApprovalProcessList = response.rows; |
| 105 | 104 | }); |
| 106 | 105 | }, |
| ... | ... | @@ -148,11 +147,9 @@ export default { |
| 148 | 147 | let id = this.businessKey.split(":"); |
| 149 | 148 | |
| 150 | 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 | 153 | this.form = response.data; |
| 157 | 154 | if (this.form.attach && this.form.attach != "") |
| 158 | 155 | this.form.attach = this.form.attach.split(","); |
| ... | ... | @@ -161,7 +158,7 @@ export default { |
| 161 | 158 | this.form.type = this.getCaseType(this.form.type); |
| 162 | 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 | 162 | if (res.data) { |
| 166 | 163 | if (res.data.advice1) { |
| 167 | 164 | this.adviceList.push({ | ... | ... |
trash-ui/src/api/vio_casefile.js
| ... | ... | @@ -153,7 +153,6 @@ export default { |
| 153 | 153 | }, |
| 154 | 154 | created() { |
| 155 | 155 | getArea().then(res => { |
| 156 | - | |
| 157 | 156 | this.areas = res.result; |
| 158 | 157 | }); |
| 159 | 158 | |
| ... | ... | @@ -171,6 +170,39 @@ export default { |
| 171 | 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 | 207 | this.getList(); |
| 176 | 208 | }, |
| ... | ... | @@ -241,7 +273,11 @@ export default { |
| 241 | 273 | }, |
| 242 | 274 | /** 重置按钮操作 */ |
| 243 | 275 | resetQuery() { |
| 276 | + | |
| 244 | 277 | this.resetForm("queryForm"); |
| 278 | + this.queryParams.violationObjectType =null; | |
| 279 | + this.queryParams.projectName = null; | |
| 280 | + this.queryParams.companyName = null; | |
| 245 | 281 | this.handleQuery(); |
| 246 | 282 | }, |
| 247 | 283 | // 多选框选中数据 |
| ... | ... | @@ -486,10 +522,10 @@ export default { |
| 486 | 522 | const minute = now.getMinutes() < 10 ? `0${now.getMinutes()}` : now.getMinutes(); |
| 487 | 523 | const second = now.getSeconds() < 10 ? `0${now.getSeconds()}` : now.getSeconds(); |
| 488 | 524 | const code = `${year}/${month}/${day} ${hour}:${minute}:${second}`; |
| 489 | - | |
| 525 | + | |
| 490 | 526 | let companyName = formData.companyName ? formData.companyName : ""; |
| 491 | 527 | let projectName = formData.projectName ? formData.projectName : ""; |
| 492 | - | |
| 528 | + | |
| 493 | 529 | this.form.describe = code + companyName + "在" + projectName + "出现" + formData.violationType; |
| 494 | 530 | this.rules.companyName = null; |
| 495 | 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 | 139 | |
| 140 | 140 | @PostMapping("/getByObjects") |
| 141 | 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 | 154 | String[] outside = {"长沙县", "望城区", "浏阳市", "宁乡市", "株洲市", "湘潭市", "汩罗市", "湘阴县"}; | ... | ... |
trash-workFlow/src/main/java/com/trash/business/controller/TruckActivateController.java
| ... | ... | @@ -177,7 +177,6 @@ public class TruckActivateController extends BaseController |
| 177 | 177 | List<TruckActivate> list = truckActivateService.selectTruckActivateList(truckActivate); |
| 178 | 178 | List<TruckActivateInfo> outList = new ArrayList<>(); |
| 179 | 179 | |
| 180 | - | |
| 181 | 180 | for(int i = 0;i<list.size();i++){ |
| 182 | 181 | |
| 183 | 182 | TruckActivate turck = list.get(i); |
| ... | ... | @@ -199,7 +198,6 @@ public class TruckActivateController extends BaseController |
| 199 | 198 | info.setEffectiveFrom(object.getString("effectiveFrom")); |
| 200 | 199 | info.setEffectiveEnd(object.getString("effectiveEnd")); |
| 201 | 200 | |
| 202 | - | |
| 203 | 201 | outList.add(info); |
| 204 | 202 | |
| 205 | 203 | } |
| ... | ... | @@ -259,10 +257,17 @@ public class TruckActivateController extends BaseController |
| 259 | 257 | |
| 260 | 258 | @PostMapping(value="/getTruckListByObjects") |
| 261 | 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 | ... | ... |