Commit 9db840f7b7ee892f7e5a6964cf7614f75da26d37
1 parent
0501e0e8
修复bug
Showing
4 changed files
with
26 additions
and
19 deletions
trash-ui/src/views/activiti/task/index.vue
| @@ -247,7 +247,7 @@ | @@ -247,7 +247,7 @@ | ||
| 247 | </el-select> | 247 | </el-select> |
| 248 | </el-form-item> | 248 | </el-form-item> |
| 249 | <el-form-item label="阅览人:"> | 249 | <el-form-item label="阅览人:"> |
| 250 | - <treeselect v-model="users" :multiple="true" :options="options" placeholder="请选择"/> | 250 | + <treeselect v-model="users" :multiple="true" :options="options" placeholder="请选择" @select="handleSelect"/> |
| 251 | </el-form-item> | 251 | </el-form-item> |
| 252 | </el-form> | 252 | </el-form> |
| 253 | <div slot="footer" class="dialog-footer"> | 253 | <div slot="footer" class="dialog-footer"> |
| @@ -498,6 +498,7 @@ export default { | @@ -498,6 +498,7 @@ export default { | ||
| 498 | conferenceOpen: false, | 498 | conferenceOpen: false, |
| 499 | construct: false, | 499 | construct: false, |
| 500 | leaveApplicationOpen: false, | 500 | leaveApplicationOpen: false, |
| 501 | + userNodes:[], | ||
| 501 | }; | 502 | }; |
| 502 | }, | 503 | }, |
| 503 | created() { | 504 | created() { |
| @@ -1004,11 +1005,12 @@ export default { | @@ -1004,11 +1005,12 @@ export default { | ||
| 1004 | this.$message.error("请选择阅览人!"); | 1005 | this.$message.error("请选择阅览人!"); |
| 1005 | return; | 1006 | return; |
| 1006 | } | 1007 | } |
| 1007 | - let userNames = []; | ||
| 1008 | - for (let i in this.users) { | ||
| 1009 | - for (let j in this.options) { | ||
| 1010 | - if (this.users[i] == this.options[j].id) { | ||
| 1011 | - userNames.push(this.options[j].label); | 1008 | + const userNames = []; |
| 1009 | + const newArr = this.ArrSet(this.userNodes,"id"); | ||
| 1010 | + for (let i = 0; i < newArr.length; i++) { | ||
| 1011 | + for (let j = 0; j < this.users.length; j++) { | ||
| 1012 | + if(newArr[i].id==this.users[j]){ | ||
| 1013 | + userNames.push(newArr[i].label); | ||
| 1012 | } | 1014 | } |
| 1013 | } | 1015 | } |
| 1014 | } | 1016 | } |
| @@ -1016,7 +1018,6 @@ export default { | @@ -1016,7 +1018,6 @@ export default { | ||
| 1016 | this.form.formData[0].userNames = userNames; | 1018 | this.form.formData[0].userNames = userNames; |
| 1017 | //表里存中文 | 1019 | //表里存中文 |
| 1018 | handleAffairsForm.userNames = userNames.join(","); | 1020 | handleAffairsForm.userNames = userNames.join(","); |
| 1019 | - | ||
| 1020 | updateHandleAffairs(handleAffairsForm).then(res => { | 1021 | updateHandleAffairs(handleAffairsForm).then(res => { |
| 1021 | formDataSave(this.id, this.form.formData).then(response => { | 1022 | formDataSave(this.id, this.form.formData).then(response => { |
| 1022 | this.msgSuccess("审批成功"); | 1023 | this.msgSuccess("审批成功"); |
| @@ -1130,6 +1131,17 @@ export default { | @@ -1130,6 +1131,17 @@ export default { | ||
| 1130 | }); | 1131 | }); |
| 1131 | }); | 1132 | }); |
| 1132 | }, | 1133 | }, |
| 1134 | + handleSelect(node){ | ||
| 1135 | + this.userNodes.push(node); | ||
| 1136 | + }, | ||
| 1137 | + ArrSet(Arr, id) { | ||
| 1138 | + var obj = {}; | ||
| 1139 | + const arrays = Arr.reduce((setArr, item) => { | ||
| 1140 | + obj[item[id]] ? '' : obj[item[id]] = true && setArr.push(item); | ||
| 1141 | + return setArr; | ||
| 1142 | + }, []); | ||
| 1143 | + return arrays; | ||
| 1144 | + }, | ||
| 1133 | getFile(file, fileList) { | 1145 | getFile(file, fileList) { |
| 1134 | this.getBase64(file.raw).then(res => { | 1146 | this.getBase64(file.raw).then(res => { |
| 1135 | const params = res | 1147 | const params = res |
trash-ui/src/views/casefile/violationCaseFile/index.vue
| @@ -25,10 +25,10 @@ | @@ -25,10 +25,10 @@ | ||
| 25 | 25 | ||
| 26 | 26 | ||
| 27 | 27 | ||
| 28 | - <el-form-item label="项目名称" prop="projectName"> | 28 | + <el-form-item label="违规对象" prop="projectName"> |
| 29 | <el-input | 29 | <el-input |
| 30 | v-model="queryParams.projectName" | 30 | v-model="queryParams.projectName" |
| 31 | - placeholder="请输入项目名称" | 31 | + placeholder="请输入违规对象" |
| 32 | 32 | ||
| 33 | size="small" | 33 | size="small" |
| 34 | 34 |
trash-ui/src/views/casefile/violationWarningInformation/index.vue
| @@ -18,10 +18,10 @@ | @@ -18,10 +18,10 @@ | ||
| 18 | <el-option v-for="item in caseType" :label="item.name" :value="item.name" /> | 18 | <el-option v-for="item in caseType" :label="item.name" :value="item.name" /> |
| 19 | </el-select> | 19 | </el-select> |
| 20 | </el-form-item> | 20 | </el-form-item> |
| 21 | - <el-form-item label="项目名称" prop="projectName"> | 21 | + <el-form-item label="违规对象" prop="projectName"> |
| 22 | <el-input | 22 | <el-input |
| 23 | v-model="queryParams.projectName" | 23 | v-model="queryParams.projectName" |
| 24 | - placeholder="请输入项目名称" | 24 | + placeholder="请输入违规对象" |
| 25 | clearable | 25 | clearable |
| 26 | size="small" | 26 | size="small" |
| 27 | @keyup.enter.native="handleQuery" | 27 | @keyup.enter.native="handleQuery" |
| @@ -82,17 +82,12 @@ | @@ -82,17 +82,12 @@ | ||
| 82 | </el-table-column> | 82 | </el-table-column> |
| 83 | <el-table-column label="违规类型" align="center" prop="violationType" /> | 83 | <el-table-column label="违规类型" align="center" prop="violationType" /> |
| 84 | <el-table-column label="日期" align="center" prop="createTime"/> | 84 | <el-table-column label="日期" align="center" prop="createTime"/> |
| 85 | - <el-table-column label="审批状态" align="center" prop="status"> | ||
| 86 | - <template slot-scope="scope"> | ||
| 87 | - <span>{{parseStatus(scope.row.status) }}</span> | ||
| 88 | - </template> | ||
| 89 | - </el-table-column> | ||
| 90 | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> | 85 | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| 91 | <template slot-scope="scope"> | 86 | <template slot-scope="scope"> |
| 92 | <el-button | 87 | <el-button |
| 93 | size="mini" | 88 | size="mini" |
| 94 | type="text" | 89 | type="text" |
| 95 | - icon="el-icon-edit" | 90 | + icon="el-icon-view" |
| 96 | @click="handleInfo(scope.row)" | 91 | @click="handleInfo(scope.row)" |
| 97 | v-hasPermi="['casefile:violationWarningInformation:view']" | 92 | v-hasPermi="['casefile:violationWarningInformation:view']" |
| 98 | >详情</el-button> | 93 | >详情</el-button> |
| @@ -251,4 +246,4 @@ | @@ -251,4 +246,4 @@ | ||
| 251 | </div> | 246 | </div> |
| 252 | </template> | 247 | </template> |
| 253 | 248 | ||
| 254 | -<script src="../../../api/warningInfo"></script> | ||
| 255 | \ No newline at end of file | 249 | \ No newline at end of file |
| 250 | +<script src="../../../api/warningInfo"></script> |
trash-workFlow/src/main/java/com/trash/casefile/domain/ViolationWarningInformation.java
| @@ -81,7 +81,7 @@ public class ViolationWarningInformation extends BaseEntity { | @@ -81,7 +81,7 @@ public class ViolationWarningInformation extends BaseEntity { | ||
| 81 | /** | 81 | /** |
| 82 | * 审批状态 | 82 | * 审批状态 |
| 83 | */ | 83 | */ |
| 84 | - @Excel(name = "审批状态",readConverterExp = "0=审批中,1=审批通过,2=被驳回") | 84 | +// @Excel(name = "审批状态",readConverterExp = "0=审批中,1=审批通过,2=被驳回") |
| 85 | private Integer status; | 85 | private Integer status; |
| 86 | 86 | ||
| 87 | /** | 87 | /** |