Commit 7d73c9206639e5f39a69b2333b18939ce3b62fda

Authored by 273548560@qq.com
1 parent c8bdb389

修复bug

trash-ui/src/views/activiti/task/index.vue
... ... @@ -870,7 +870,6 @@ export default {
870 870 return;
871 871 }
872 872 if (this.definitionKey == "workflow_casefile") {
873   - debugger;
874 873  
875 874 if (this.taskName == "车辆所属企业" || this.taskName == "渣土办科员") {
876 875 console.log(this.businessKey);
... ... @@ -1028,8 +1027,6 @@ export default {
1028 1027 this.form.formData[0].userNames = userNames;
1029 1028 //表里存中文
1030 1029 handleAffairsForm.userNames = userNames.join(",");
1031   - console.log(this.form)
1032   - console.log(handleAffairsForm)
1033 1030  
1034 1031 updateHandleAffairs(handleAffairsForm).then(res => {
1035 1032 formDataSave(this.id, this.form.formData).then(response => {
... ...
trash-ui/src/views/casefile/violationCaseFile/index.vue
... ... @@ -81,14 +81,13 @@
81 81 <el-table v-loading="loading" :data="violationCaseFileList" @selection-change="handleSelectionChange">
82 82 <el-table-column type="selection" width="55" align="center" />
83 83 <el-table-column label="所属区域" align="center" prop="owningRegion" />
  84 + <el-table-column label="违规对象" align="center" prop="projectName" />
84 85 <el-table-column label="违规对象类型" align="center" prop="violationObjectType">
85 86 <template slot-scope="scope">
86 87 <span>{{scope.row.violationObjectType == 0 ? "工地" :scope.row.violationObjectType == 1 ?"消纳场":"企业"}}</span>
87 88 </template>
88 89 </el-table-column>
89 90 <el-table-column label="违规类型" align="center" prop="violationType" />
90   - <el-table-column label="项目名称" align="center" prop="projectName" />
91   - <el-table-column label="企业名称" align="center" prop="companyName" />
92 91 <el-table-column label="审批状态" align="center" prop="status">
93 92 <template slot-scope="scope">
94 93 <span>{{parseStatus(scope.row.status) }}</span>
... ... @@ -99,9 +98,9 @@
99 98 <el-button
100 99 size="mini"
101 100 type="text"
102   - icon="el-icon-edit"
  101 + icon="el-icon-view"
103 102 @click="handleInfo(scope.row)"
104   - v-hasPermi="['casefile:violationCaseFile:view']"
  103 + v-hasPermi="['casefile:violationCaseFile:edit']"
105 104 >详情</el-button>
106 105 <!-- <el-button-->
107 106 <!-- size="mini"-->
... ... @@ -175,10 +174,8 @@
175 174 </el-col>
176 175 <el-col :span="11">
177 176 <el-form-item label="违规对象" prop="projectName">
178   - <el-select v-model="form.projectName" :filterable="true" placeholder="请输入项目名称" style="width: 100%;">
179   - <el-option v-for="item in data" :key="item.name" :label="item.name" :value="item.name" @click.native="getObjId(item)"
180   - v-if="form.place == item.areaCode"
181   - />
  177 + <el-select v-model="form.projectName" :filterable="true" :remote-method="projectNameLoadOptions" :loading="isLoading" placeholder="请输入项目名称" style="width: 100%;">
  178 + <el-option v-for="item in projectNameList" :key="item.name" :label="item.name" :value="item.name"></el-option>
182 179 </el-select>
183 180 </el-form-item>
184 181 </el-col>
... ...
trash-ui/src/views/casefile/violationWarningInformation/index.vue
... ... @@ -73,14 +73,13 @@
73 73 <el-table v-loading="loading" :data="violationWarningInformationList" @selection-change="handleSelectionChange">
74 74 <el-table-column type="selection" width="55" align="center" />
75 75 <el-table-column label="所属区域" align="center" prop="owningRegion" />
  76 + <el-table-column label="违规对象" align="center" prop="projectName" />
76 77 <el-table-column label="违规对象类型" align="center" prop="violationObjectType" >
77 78 <template slot-scope="scope">
78 79 <span>{{scope.row.violationObjectType == 0 ? "工地" :scope.row.violationObjectType == 1 ?"消纳场":"企业"}}</span>
79 80 </template>
80 81 </el-table-column>
81 82 <el-table-column label="违规类型" align="center" prop="violationType" />
82   - <el-table-column label="项目名称" align="center" prop="projectName" />
83   - <el-table-column label="企业名称" align="center" prop="companyName" />
84 83 <el-table-column label="日期" align="center" prop="createTime"/>
85 84 <el-table-column label="审批状态" align="center" prop="status">
86 85 <template slot-scope="scope">
... ...
trash-workFlow/src/main/java/com/trash/casefile/domain/ViolationCaseFile.java
... ... @@ -21,64 +21,71 @@ public class ViolationCaseFile extends BaseEntity
21 21 private Long id;
22 22  
23 23 /** 案卷编号 */
24   - @Excel(name = "案卷编号")
25 24 private String number;
26 25  
27   - /** 违规对象类型 */
28   - @Excel(name = "违规对象类型")
29   - private String violationObjectType;
30   -
31 26 /** 所属区域 */
32 27 @Excel(name = "所属区域")
33 28 private String owningRegion;
34 29  
  30 + /** 项目名称 */
  31 + @Excel(name = "违规对象")
  32 + private String projectName;
  33 +
  34 + /** 违规对象类型 */
  35 + @Excel(name = "违规对象类型",readConverterExp = "0=工地,1=消纳场,2=企业")
  36 + private String violationObjectType;
  37 +
  38 +
35 39 /** 违规类型 */
36 40 @Excel(name = "违规类型")
37 41 private String violationType;
38 42  
39 43 /** 违规等级 */
40   - @Excel(name = "违规等级")
41 44 private String violationGrade;
42 45  
43   - /** 项目名称 */
44   - @Excel(name = "项目名称")
45   - private String projectName;
  46 +
46 47  
47 48 /** 企业名称 */
48   - @Excel(name = "企业名称")
49 49 private String companyName;
50 50  
51 51 /** 违规描述 */
52   - @Excel(name = "违规描述")
53 52 private String describe;
54 53  
55 54 /** 推送对象 */
56   - @Excel(name = "推送对象")
57 55 private String sendObject;
58 56  
  57 + @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
  58 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  59 + private Date createTime;
  60 +
59 61 /** 审批状态 */
60   - @Excel(name = "审批状态")
  62 + @Excel(name = "审批状态",readConverterExp = "0=审批中,1=审批通过,2=被驳回")
61 63 private Integer status;
62 64  
63 65 /** 接收人 */
64   - @Excel(name = "接收人")
65 66 private String receive;
66 67  
67 68 /** 接收状态 */
68   - @Excel(name = "接收状态")
69 69 private Integer receiveStatus;
70 70  
71 71 /** 阅览人 */
72   - @Excel(name = "阅览人")
73 72 private String readBy;
74 73  
75 74 /** 阅览时间 */
76   - @JsonFormat(pattern = "yyyy-MM-dd")
77   - @Excel(name = "阅览时间", width = 30, dateFormat = "yyyy-MM-dd")
78 75 private Date readTime;
79 76  
80 77 private String abbreviation;
81 78  
  79 + @Override
  80 + public Date getCreateTime() {
  81 + return createTime;
  82 + }
  83 +
  84 + @Override
  85 + public void setCreateTime(Date createTime) {
  86 + this.createTime = createTime;
  87 + }
  88 +
82 89 public String getAbbreviation() {
83 90 return abbreviation;
84 91 }
... ...
trash-workFlow/src/main/java/com/trash/casefile/domain/ViolationWarningInformation.java
... ... @@ -33,6 +33,12 @@ public class ViolationWarningInformation extends BaseEntity {
33 33 */
34 34 @Excel(name = "所属区域")
35 35 private String owningRegion;
  36 +
  37 + /**
  38 + * 项目名称
  39 + */
  40 + @Excel(name = "违规对象")
  41 + private String projectName;
36 42 /**
37 43 * 违规对象类型
38 44 */
... ... @@ -50,16 +56,11 @@ public class ViolationWarningInformation extends BaseEntity {
50 56 */
51 57 private String violationGrade;
52 58  
53   - /**
54   - * 项目名称
55   - */
56   - @Excel(name = "项目名称")
57   - private String projectName;
  59 +
58 60  
59 61 /**
60 62 * 企业名称
61 63 */
62   - @Excel(name = "企业名称")
63 64 private String companyName;
64 65  
65 66 @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
... ...
trash-workFlow/src/main/java/com/trash/casefile/kafka/Consumer.java
... ... @@ -86,6 +86,9 @@ public class Consumer {
86 86 throw new RuntimeException("获取公司列表失败!!!");
87 87 }
88 88  
  89 + if(basevehicleInfo==null){
  90 + throw new RuntimeException("获取公司详情失败!vehicleId:"+jsonObject.getString("vehicleId"));
  91 + }
89 92 //这两种类型无需累加
90 93 if(violationType.equals("工地预警-视频设备离线超时报警") || violationType.equals("消纳场预警-视频设备离线超时报警")){
91 94 violationWarningInformation1 = null;
... ...