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 | 247 | </el-select> |
| 248 | 248 | </el-form-item> |
| 249 | 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 | 251 | </el-form-item> |
| 252 | 252 | </el-form> |
| 253 | 253 | <div slot="footer" class="dialog-footer"> |
| ... | ... | @@ -498,6 +498,7 @@ export default { |
| 498 | 498 | conferenceOpen: false, |
| 499 | 499 | construct: false, |
| 500 | 500 | leaveApplicationOpen: false, |
| 501 | + userNodes:[], | |
| 501 | 502 | }; |
| 502 | 503 | }, |
| 503 | 504 | created() { |
| ... | ... | @@ -1004,11 +1005,12 @@ export default { |
| 1004 | 1005 | this.$message.error("请选择阅览人!"); |
| 1005 | 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 | 1018 | this.form.formData[0].userNames = userNames; |
| 1017 | 1019 | //表里存中文 |
| 1018 | 1020 | handleAffairsForm.userNames = userNames.join(","); |
| 1019 | - | |
| 1020 | 1021 | updateHandleAffairs(handleAffairsForm).then(res => { |
| 1021 | 1022 | formDataSave(this.id, this.form.formData).then(response => { |
| 1022 | 1023 | this.msgSuccess("审批成功"); |
| ... | ... | @@ -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 | 1145 | getFile(file, fileList) { |
| 1134 | 1146 | this.getBase64(file.raw).then(res => { |
| 1135 | 1147 | const params = res | ... | ... |
trash-ui/src/views/casefile/violationCaseFile/index.vue
trash-ui/src/views/casefile/violationWarningInformation/index.vue
| ... | ... | @@ -18,10 +18,10 @@ |
| 18 | 18 | <el-option v-for="item in caseType" :label="item.name" :value="item.name" /> |
| 19 | 19 | </el-select> |
| 20 | 20 | </el-form-item> |
| 21 | - <el-form-item label="项目名称" prop="projectName"> | |
| 21 | + <el-form-item label="违规对象" prop="projectName"> | |
| 22 | 22 | <el-input |
| 23 | 23 | v-model="queryParams.projectName" |
| 24 | - placeholder="请输入项目名称" | |
| 24 | + placeholder="请输入违规对象" | |
| 25 | 25 | clearable |
| 26 | 26 | size="small" |
| 27 | 27 | @keyup.enter.native="handleQuery" |
| ... | ... | @@ -82,17 +82,12 @@ |
| 82 | 82 | </el-table-column> |
| 83 | 83 | <el-table-column label="违规类型" align="center" prop="violationType" /> |
| 84 | 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 | 85 | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| 91 | 86 | <template slot-scope="scope"> |
| 92 | 87 | <el-button |
| 93 | 88 | size="mini" |
| 94 | 89 | type="text" |
| 95 | - icon="el-icon-edit" | |
| 90 | + icon="el-icon-view" | |
| 96 | 91 | @click="handleInfo(scope.row)" |
| 97 | 92 | v-hasPermi="['casefile:violationWarningInformation:view']" |
| 98 | 93 | >详情</el-button> |
| ... | ... | @@ -251,4 +246,4 @@ |
| 251 | 246 | </div> |
| 252 | 247 | </template> |
| 253 | 248 | |
| 254 | -<script src="../../../api/warningInfo"></script> | |
| 255 | 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 | 81 | /** |
| 82 | 82 | * 审批状态 |
| 83 | 83 | */ |
| 84 | - @Excel(name = "审批状态",readConverterExp = "0=审批中,1=审批通过,2=被驳回") | |
| 84 | +// @Excel(name = "审批状态",readConverterExp = "0=审批中,1=审批通过,2=被驳回") | |
| 85 | 85 | private Integer status; |
| 86 | 86 | |
| 87 | 87 | /** | ... | ... |