|
@@ -97,6 +97,11 @@ export default {
|
|
|
type: String,
|
|
|
default: "",
|
|
|
},
|
|
|
+ needType: {
|
|
|
+ type: String,
|
|
|
+ default: "",
|
|
|
+ },
|
|
|
+ needId: [String, Number],
|
|
|
GroupIds: {
|
|
|
type: Array,
|
|
|
default: () => [],
|
|
@@ -178,7 +183,7 @@ export default {
|
|
|
if (this.roleType == 'account') {
|
|
|
this.getRoleData('UserId', 'UserName');
|
|
|
}
|
|
|
- if (!this.OpenGroup) {
|
|
|
+ if (!this.OpenGroup || this.needType) {
|
|
|
if (this.roleType == "roleByUpId") {
|
|
|
this.getRoleDataByUpId("roleId");
|
|
|
}
|
|
@@ -297,7 +302,12 @@ export default {
|
|
|
msgs.forEach(item => {
|
|
|
item.name = item[names]
|
|
|
});
|
|
|
- this.dataList = msgs;
|
|
|
+ if (this.needId) {
|
|
|
+ const yrts = msgs.filter(item => item.RoleId != this.needId);
|
|
|
+ this.dataList = yrts;
|
|
|
+ } else {
|
|
|
+ this.dataList = msgs;
|
|
|
+ }
|
|
|
this.total = num;
|
|
|
this.$emit('roleListChange', msgs)
|
|
|
|