Commit dc74ac7033d18366b1539f4ac032dcf346afae7d
Merge branch 'dev' of http://101.95.0.106:8888/youxiw20000/trash into dev
Showing
7 changed files
with
40 additions
and
26 deletions
trash-ui/src/api/dayWorkReport.js
| 1 | - | |
| 2 | 1 | import h5Page from '@/views/h5/Pagination'; |
| 3 | 2 | |
| 4 | 3 | |
| ... | ... | @@ -105,7 +104,7 @@ export default { |
| 105 | 104 | created() { |
| 106 | 105 | this.getList(0); |
| 107 | 106 | |
| 108 | - getArea().then(res=>{ | |
| 107 | + getArea().then(res => { | |
| 109 | 108 | this.areas = res.result; |
| 110 | 109 | }); |
| 111 | 110 | |
| ... | ... | @@ -146,9 +145,9 @@ export default { |
| 146 | 145 | this.queryParams.page = 1; |
| 147 | 146 | this.queryParams.pageSize = 9999; |
| 148 | 147 | |
| 149 | - if(this.queryParams.timeRange){ | |
| 148 | + if (this.queryParams.timeRange) { | |
| 150 | 149 | this.queryParams.workStartTime = this.queryParams.timeRange[0]; |
| 151 | - this.queryParams.workEndTime = this.queryParams.timeRange[1]; | |
| 150 | + this.queryParams.workEndTime = this.queryParams.timeRange[1]; | |
| 152 | 151 | this.queryParams.timeRange = null; |
| 153 | 152 | } |
| 154 | 153 | |
| ... | ... | @@ -211,7 +210,6 @@ export default { |
| 211 | 210 | } |
| 212 | 211 | |
| 213 | 212 | |
| 214 | - | |
| 215 | 213 | }); |
| 216 | 214 | |
| 217 | 215 | }, |
| ... | ... | @@ -226,28 +224,29 @@ export default { |
| 226 | 224 | // let query = this.queryParams; |
| 227 | 225 | |
| 228 | 226 | if (tabIdx == 1) { |
| 229 | - this.queryParams.pageNum = 1; | |
| 227 | + this.queryParams.pageNum = 1; | |
| 230 | 228 | this.resetQuery(); |
| 231 | 229 | this.queryParams.his = tabIdx; |
| 232 | 230 | } else if (tabIdx == 0) { |
| 233 | - this.queryParams.pageNum = 1; | |
| 231 | + this.queryParams.pageNum = 1; | |
| 234 | 232 | this.resetQuery(); |
| 235 | 233 | this.queryParams.his = tabIdx; |
| 236 | 234 | } |
| 237 | 235 | |
| 238 | - if(this.queryParams.timeRange){ | |
| 236 | + const timeRange = this.queryParams.timeRange; | |
| 237 | + if (this.queryParams.timeRange) { | |
| 239 | 238 | this.queryParams.workStartTime = this.queryParams.timeRange[0]; |
| 240 | - this.queryParams.workEndTime = this.queryParams.timeRange[1]; | |
| 239 | + this.queryParams.workEndTime = this.queryParams.timeRange[1]; | |
| 241 | 240 | this.queryParams.timeRange = null; |
| 242 | 241 | } |
| 243 | 242 | |
| 244 | 243 | dayWorkList(this.queryParams).then(response => { |
| 245 | - this.threestepList = response.rows; | |
| 246 | - | |
| 247 | - this.loading.close(); | |
| 244 | + this.threestepList = response.rows; | |
| 245 | + this.queryParams.timeRange = timeRange; | |
| 246 | + this.loading.close(); | |
| 248 | 247 | |
| 249 | - this.dayWorkCount = response.msg; | |
| 250 | - this.total = response.total; | |
| 248 | + this.dayWorkCount = response.msg; | |
| 249 | + this.total = response.total; | |
| 251 | 250 | }); |
| 252 | 251 | |
| 253 | 252 | |
| ... | ... | @@ -357,7 +356,6 @@ export default { |
| 357 | 356 | }); |
| 358 | 357 | |
| 359 | 358 | |
| 360 | - | |
| 361 | 359 | }, |
| 362 | 360 | |
| 363 | 361 | checkEndSuccess() { |
| ... | ... | @@ -413,7 +411,7 @@ export default { |
| 413 | 411 | confirmButtonText: "确定", |
| 414 | 412 | cancelButtonText: "取消", |
| 415 | 413 | type: "warning" |
| 416 | - }).then(function() { | |
| 414 | + }).then(function () { | |
| 417 | 415 | return delThreestep(ids); |
| 418 | 416 | }).then(() => { |
| 419 | 417 | this.getList(); |
| ... | ... | @@ -430,7 +428,7 @@ export default { |
| 430 | 428 | confirmButtonText: "确定", |
| 431 | 429 | cancelButtonText: "取消", |
| 432 | 430 | type: "warning" |
| 433 | - }).then(function() { | |
| 431 | + }).then(function () { | |
| 434 | 432 | that.loading = true; |
| 435 | 433 | that.getListAndExport(); |
| 436 | 434 | }); | ... | ... |
trash-ui/src/views/activiti/taskhistory/index.vue
| ... | ... | @@ -103,7 +103,12 @@ import violationCaseFileInfo from "@/views/casefile/violationCaseFile/violationC |
| 103 | 103 | import violationWarningInformationInfo |
| 104 | 104 | from "@/views/casefile/violationWarningInformation/violationWarningInformationInfo"; |
| 105 | 105 | import supervisionInfo from "../task/SupervisionInfo"; |
| 106 | -import {getDict} from "@/api/dict"; | |
| 106 | +import { | |
| 107 | + getArea, | |
| 108 | + getDict, | |
| 109 | + getUsers, | |
| 110 | + getSupervision | |
| 111 | +} from "@/api/dict"; | |
| 107 | 112 | |
| 108 | 113 | |
| 109 | 114 | export default { | ... | ... |
trash-ui/src/views/business/dayWorkReport/index.vue
trash-ui/src/views/casefile/violationCaseFile/violationCaseFileInfo.vue
trash-ui/src/views/casefile/violationCaseFile/violationCaseTable.vue
| ... | ... | @@ -131,8 +131,12 @@ export default { |
| 131 | 131 | return sums; |
| 132 | 132 | }, |
| 133 | 133 | handleQuery() { |
| 134 | - let startDate = this.formatDate(this.createTime[0]); | |
| 135 | - let endDate = this.formatDate(this.createTime[1]); | |
| 134 | + let startDate = null; | |
| 135 | + let endDate = null; | |
| 136 | + if(this.createTime.length!=0){ | |
| 137 | + startDate = this.formatDate(this.createTime[0]); | |
| 138 | + endDate = this.formatDate(this.createTime[1]); | |
| 139 | + } | |
| 136 | 140 | caseTable({owningRegion: this.owningRegion, startDate: startDate, endDate: endDate}).then(res => { |
| 137 | 141 | this.tableData = res.data; |
| 138 | 142 | this.hackReset = false; | ... | ... |
trash-ui/src/views/casefile/violationWarningInformation/violationWarningInformationTable.vue
| ... | ... | @@ -130,8 +130,12 @@ export default { |
| 130 | 130 | return sums; |
| 131 | 131 | }, |
| 132 | 132 | handleQuery(){ |
| 133 | - let startDate = this.formatDate(this.createTime[0]); | |
| 134 | - let endDate = this.formatDate(this.createTime[1]); | |
| 133 | + let startDate = null; | |
| 134 | + let endDate = null; | |
| 135 | + if(this.createTime.length!=0){ | |
| 136 | + startDate = this.formatDate(this.createTime[0]); | |
| 137 | + endDate = this.formatDate(this.createTime[1]); | |
| 138 | + } | |
| 135 | 139 | caseTable({owningRegion:this.owningRegion,startDate:startDate,endDate:endDate}).then(res => { |
| 136 | 140 | this.tableData = res.data; |
| 137 | 141 | this.hackReset = false; | ... | ... |
trash-ui/src/views/h5/taskhistory/index.vue
| ... | ... | @@ -91,7 +91,12 @@ |
| 91 | 91 | import caseOfflineInfo from "@/views/h5/caseOffline/caseOfflineInfo"; |
| 92 | 92 | import violationCaseFileInfo from "@/views/h5/task/violationCaseFileInfo"; |
| 93 | 93 | import violationWarningInformationInfo from "@/views/h5/task/violationWarningInformationInfo"; |
| 94 | - import {getDict} from "@/api/dict"; | |
| 94 | + import { | |
| 95 | + getArea, | |
| 96 | + getDict, | |
| 97 | + getUsers, | |
| 98 | + getSupervision | |
| 99 | + } from "@/api/dict"; | |
| 95 | 100 | |
| 96 | 101 | export default { |
| 97 | 102 | name: "taskHistory", | ... | ... |