公会管理-编辑-负责人根据当前分区和地区过滤

This commit is contained in:
khalil
2025-07-17 15:51:25 +08:00
parent 661e9f55c3
commit 5193123a98

View File

@@ -165,7 +165,7 @@
<el-table-column prop="guildOperatorName"
align="center"
label="负责人" />
<!-- <el-table-column align="center" label="收款账户" width="300">
<template v-slot="scope">
<el-button
@@ -419,15 +419,14 @@
<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"
:key="item.id"
:label="item.name"
:value="item.id"
>
</el-option>
</el-select>
<el-select v-model="ediObj.operatorId"
placeholder="请选择">
<el-option v-for="item in partitionAdminList"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</div>
<template #footer>
<span class="dialog-footer">
@@ -656,7 +655,7 @@ export default {
imageUrl2: "",
enableEditInvite: false,
inviteErbanNo: '',
operatorId:''
operatorId: ''
},
// 收款账户弹窗
payAccountDialog: false,
@@ -678,20 +677,28 @@ export default {
// 删除成员弹窗
memberRemoveDialog: false,
memberRemoveObj: {},
adminListArr:[],//负责人列表
adminListArr: [],//负责人列表
};
},
mounted () {
getGuildOperatorListAll().then(res => {
mounted () {
getGuildOperatorListAll().then(res => {
if (res.code == 200) {
this.adminListArr = res.data;
} else {
ElMessage.error(res.message);
}
this.adminListArr = res.data;
} else {
ElMessage.error(res.message);
}
});
},
created () {
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 () {
},
methods: {
// 查询接口
@@ -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({
@@ -1005,37 +1012,4 @@ 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>
</script>