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
|
@@ -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
|
-
|
|
139
|
-
|
|
140
|
-
|
|
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);
|