公会管理-编辑-负责人根据当前分区和地区过滤
This commit is contained in:
@@ -419,13 +419,12 @@
|
||||
<div style="margin-bottom: 25px; margin-top: 10px">
|
||||
<span style="display: inline-block; margin-right: 20px"
|
||||
class="col-sm-2 control-label">负责人</span>
|
||||
<el-select v-model="ediObj.operatorId" placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in adminListArr"
|
||||
<el-select v-model="ediObj.operatorId"
|
||||
placeholder="请选择">
|
||||
<el-option v-for="item in partitionAdminList"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
>
|
||||
:value="item.id">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
@@ -656,7 +655,7 @@ export default {
|
||||
imageUrl2: "",
|
||||
enableEditInvite: false,
|
||||
inviteErbanNo: '',
|
||||
operatorId:''
|
||||
operatorId: ''
|
||||
},
|
||||
// 收款账户弹窗
|
||||
payAccountDialog: false,
|
||||
@@ -678,7 +677,7 @@ export default {
|
||||
// 删除成员弹窗
|
||||
memberRemoveDialog: false,
|
||||
memberRemoveObj: {},
|
||||
adminListArr:[],//负责人列表
|
||||
adminListArr: [],//负责人列表
|
||||
};
|
||||
},
|
||||
mounted () {
|
||||
@@ -690,6 +689,14 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
computed: {
|
||||
partitionAdminList () {
|
||||
return this.adminListArr.filter(admin => {
|
||||
return (!this.inquire.partitionId || this.inquire.partitionId == admin.partitionId)
|
||||
&& (!this.inquire.regionId || admin.regionIds.includes(this.inquire.regionId)); // 请根据实际数据结构调整此条件
|
||||
});
|
||||
}
|
||||
},
|
||||
created () {
|
||||
|
||||
},
|
||||
@@ -922,7 +929,7 @@ export default {
|
||||
guildContactType: this.ediObj.guildContactType,
|
||||
guildContact: this.ediObj.guildContact,
|
||||
inviteErbanNo: this.ediObj.inviteErbanNo,
|
||||
operatorId:this.ediObj.operatorId
|
||||
operatorId: this.ediObj.operatorId
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
ElMessage({
|
||||
@@ -1006,36 +1013,3 @@ export default {
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
.box {
|
||||
padding-top: 20px;
|
||||
background: #ecf0f5;
|
||||
.inquire {
|
||||
display: inline-block;
|
||||
margin-right: 20px;
|
||||
span {
|
||||
margin-right: 10px;
|
||||
}
|
||||
.input {
|
||||
width: 180px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
}
|
||||
.dialogTableVisibleBut {
|
||||
display: block;
|
||||
margin: 30px 0 0 830px;
|
||||
}
|
||||
.paginationClass {
|
||||
margin: 15px 0 5px 0px;
|
||||
}
|
||||
}
|
||||
.selectBox {
|
||||
display: flex;
|
||||
height: 35px;
|
||||
line-height: 35px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.selectBoxImg {
|
||||
height: 150px;
|
||||
}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user