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

This commit is contained in:
khalil
2025-07-17 15:51:25 +08:00
committed by yujiacong
parent 63d56c6501
commit b06c935207

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({
@@ -1038,4 +1045,4 @@ export default {
.selectBoxImg {
height: 150px;
}
</style>
</style>