bri-components 1.3.13 → 1.3.14
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
|
@@ -287,6 +287,10 @@
|
|
|
287
287
|
...this.commonDealPropsObj
|
|
288
288
|
};
|
|
289
289
|
},
|
|
290
|
+
// 禁止显示的部门以及部门下人员
|
|
291
|
+
userDepartFilterVals () {
|
|
292
|
+
return this.selfPropsObj._userDepartFilterVals || [];
|
|
293
|
+
},
|
|
290
294
|
highSearch () {
|
|
291
295
|
return this.isOnSearch ? true : this.selfPropsObj._highSearch;
|
|
292
296
|
},
|
|
@@ -411,7 +415,7 @@
|
|
|
411
415
|
},
|
|
412
416
|
loadingName: "loading",
|
|
413
417
|
callback: data => {
|
|
414
|
-
this.userList = data.list;
|
|
418
|
+
this.userList = data.list.filter(item => !this.userDepartFilterVals.includes(item.departmentKey));
|
|
415
419
|
this.total = data.total;
|
|
416
420
|
}
|
|
417
421
|
});
|
|
@@ -486,7 +490,7 @@
|
|
|
486
490
|
name: "全部",
|
|
487
491
|
_key: ""
|
|
488
492
|
},
|
|
489
|
-
...data.list
|
|
493
|
+
...data.list.filter(item => !this.userDepartFilterVals.includes(item._key))
|
|
490
494
|
];
|
|
491
495
|
}
|
|
492
496
|
});
|
package/src/utils/table.js
CHANGED
|
@@ -64,7 +64,7 @@ const transformToColumns = function (form, {
|
|
|
64
64
|
showRequired = false,
|
|
65
65
|
showDescription = false,
|
|
66
66
|
headHeightAuto = false
|
|
67
|
-
}, allFormList = []) {
|
|
67
|
+
} = {}, allFormList = []) {
|
|
68
68
|
return form
|
|
69
69
|
.map(col => {
|
|
70
70
|
const typeData = this.$modFieldMap[col._type] || {};
|
|
@@ -159,7 +159,7 @@ const transformToColumns = function (form, {
|
|
|
159
159
|
|
|
160
160
|
...col
|
|
161
161
|
};
|
|
162
|
-
|
|
162
|
+
});
|
|
163
163
|
};
|
|
164
164
|
|
|
165
165
|
export default {
|