Commit dc74ac7033d18366b1539f4ac032dcf346afae7d

Authored by youxiw2000
2 parents a3187b66 541db4d4

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

trash-ui/src/api/dayWorkReport.js
1 -  
2 import h5Page from '@/views/h5/Pagination'; 1 import h5Page from '@/views/h5/Pagination';
3 2
4 3
@@ -105,7 +104,7 @@ export default { @@ -105,7 +104,7 @@ export default {
105 created() { 104 created() {
106 this.getList(0); 105 this.getList(0);
107 106
108 - getArea().then(res=>{ 107 + getArea().then(res => {
109 this.areas = res.result; 108 this.areas = res.result;
110 }); 109 });
111 110
@@ -146,9 +145,9 @@ export default { @@ -146,9 +145,9 @@ export default {
146 this.queryParams.page = 1; 145 this.queryParams.page = 1;
147 this.queryParams.pageSize = 9999; 146 this.queryParams.pageSize = 9999;
148 147
149 - if(this.queryParams.timeRange){ 148 + if (this.queryParams.timeRange) {
150 this.queryParams.workStartTime = this.queryParams.timeRange[0]; 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 this.queryParams.timeRange = null; 151 this.queryParams.timeRange = null;
153 } 152 }
154 153
@@ -211,7 +210,6 @@ export default { @@ -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,28 +224,29 @@ export default {
226 // let query = this.queryParams; 224 // let query = this.queryParams;
227 225
228 if (tabIdx == 1) { 226 if (tabIdx == 1) {
229 - this.queryParams.pageNum = 1; 227 + this.queryParams.pageNum = 1;
230 this.resetQuery(); 228 this.resetQuery();
231 this.queryParams.his = tabIdx; 229 this.queryParams.his = tabIdx;
232 } else if (tabIdx == 0) { 230 } else if (tabIdx == 0) {
233 - this.queryParams.pageNum = 1; 231 + this.queryParams.pageNum = 1;
234 this.resetQuery(); 232 this.resetQuery();
235 this.queryParams.his = tabIdx; 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 this.queryParams.workStartTime = this.queryParams.timeRange[0]; 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 this.queryParams.timeRange = null; 240 this.queryParams.timeRange = null;
242 } 241 }
243 242
244 dayWorkList(this.queryParams).then(response => { 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,7 +356,6 @@ export default {
357 }); 356 });
358 357
359 358
360 -  
361 }, 359 },
362 360
363 checkEndSuccess() { 361 checkEndSuccess() {
@@ -413,7 +411,7 @@ export default { @@ -413,7 +411,7 @@ export default {
413 confirmButtonText: "确定", 411 confirmButtonText: "确定",
414 cancelButtonText: "取消", 412 cancelButtonText: "取消",
415 type: "warning" 413 type: "warning"
416 - }).then(function() { 414 + }).then(function () {
417 return delThreestep(ids); 415 return delThreestep(ids);
418 }).then(() => { 416 }).then(() => {
419 this.getList(); 417 this.getList();
@@ -430,7 +428,7 @@ export default { @@ -430,7 +428,7 @@ export default {
430 confirmButtonText: "确定", 428 confirmButtonText: "确定",
431 cancelButtonText: "取消", 429 cancelButtonText: "取消",
432 type: "warning" 430 type: "warning"
433 - }).then(function() { 431 + }).then(function () {
434 that.loading = true; 432 that.loading = true;
435 that.getListAndExport(); 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,7 +103,12 @@ import violationCaseFileInfo from "@/views/casefile/violationCaseFile/violationC
103 import violationWarningInformationInfo 103 import violationWarningInformationInfo
104 from "@/views/casefile/violationWarningInformation/violationWarningInformationInfo"; 104 from "@/views/casefile/violationWarningInformation/violationWarningInformationInfo";
105 import supervisionInfo from "../task/SupervisionInfo"; 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 export default { 114 export default {
trash-ui/src/views/business/dayWorkReport/index.vue
@@ -50,8 +50,6 @@ @@ -50,8 +50,6 @@
50 </el-date-picker> 50 </el-date-picker>
51 </el-form-item> 51 </el-form-item>
52 </el-col> 52 </el-col>
53 -  
54 - </el-col>  
55 </el-row> 53 </el-row>
56 <el-form-item> 54 <el-form-item>
57 <el-button type="primary" size="mini" @click="handleQuery">搜索</el-button> 55 <el-button type="primary" size="mini" @click="handleQuery">搜索</el-button>
trash-ui/src/views/casefile/violationCaseFile/violationCaseFileInfo.vue
1 <template> 1 <template>
2 - <el-form ref="form" :model="form" :rules="rules" label-width="115px"> 2 + <el-form ref="form" :model="form" label-width="115px">
3 <el-row :gutter="2"> 3 <el-row :gutter="2">
4 <el-col :span="11"> 4 <el-col :span="11">
5 <el-form-item label="案卷编号" prop="number"> 5 <el-form-item label="案卷编号" prop="number">
trash-ui/src/views/casefile/violationCaseFile/violationCaseTable.vue
@@ -131,8 +131,12 @@ export default { @@ -131,8 +131,12 @@ export default {
131 return sums; 131 return sums;
132 }, 132 },
133 handleQuery() { 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 caseTable({owningRegion: this.owningRegion, startDate: startDate, endDate: endDate}).then(res => { 140 caseTable({owningRegion: this.owningRegion, startDate: startDate, endDate: endDate}).then(res => {
137 this.tableData = res.data; 141 this.tableData = res.data;
138 this.hackReset = false; 142 this.hackReset = false;
trash-ui/src/views/casefile/violationWarningInformation/violationWarningInformationTable.vue
@@ -130,8 +130,12 @@ export default { @@ -130,8 +130,12 @@ export default {
130 return sums; 130 return sums;
131 }, 131 },
132 handleQuery(){ 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 caseTable({owningRegion:this.owningRegion,startDate:startDate,endDate:endDate}).then(res => { 139 caseTable({owningRegion:this.owningRegion,startDate:startDate,endDate:endDate}).then(res => {
136 this.tableData = res.data; 140 this.tableData = res.data;
137 this.hackReset = false; 141 this.hackReset = false;
trash-ui/src/views/h5/taskhistory/index.vue
@@ -91,7 +91,12 @@ @@ -91,7 +91,12 @@
91 import caseOfflineInfo from "@/views/h5/caseOffline/caseOfflineInfo"; 91 import caseOfflineInfo from "@/views/h5/caseOffline/caseOfflineInfo";
92 import violationCaseFileInfo from "@/views/h5/task/violationCaseFileInfo"; 92 import violationCaseFileInfo from "@/views/h5/task/violationCaseFileInfo";
93 import violationWarningInformationInfo from "@/views/h5/task/violationWarningInformationInfo"; 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 export default { 101 export default {
97 name: "taskHistory", 102 name: "taskHistory",