sasp-flow-render 1.1.17 → 1.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sasp-flow-render",
3
- "version": "1.1.17",
3
+ "version": "1.1.18",
4
4
  "description": "业务应用支撑平台-智慧流程渲染组件",
5
5
  "scripts": {
6
6
  "build": "vue-cli-service build"
@@ -122,6 +122,7 @@
122
122
  // 解析用户数据
123
123
  this.analyseRequest(dataInter).then(data => {
124
124
  let arr = [];
125
+ let userIdArr = [];
125
126
  data.forEach(item => {
126
127
  item.dataUserId = item[dataInter["idCode"] || "userId"];
127
128
  item.dataKey = item.dataUserId;
@@ -135,10 +136,13 @@
135
136
  if(item.dataPosId){
136
137
  item.dataParentId = item.posId;
137
138
  }
138
- arr.push({
139
- id:item.dataKey,
140
- userName:item.dataLabel
141
- })
139
+ if(userIdArr.indexOf(item.dataKey) === -1){
140
+ arr.push({
141
+ id:item.dataKey,
142
+ userName:item.dataLabel
143
+ })
144
+ userIdArr.push(item.dataKey);
145
+ }
142
146
  })
143
147
  this.userArr = arr;
144
148
  this.INTER_CACHE.setUserArr(arr);