公会信息-增加公会长地区

This commit is contained in:
khalil
2025-06-03 16:33:51 +08:00
parent 9986b102f1
commit 359a34c955
2 changed files with 632 additions and 673 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -3,19 +3,25 @@
<!-- 查询 --> <!-- 查询 -->
<div class="inquire"> <div class="inquire">
<span>ID</span> <span>ID</span>
<el-input <el-input v-model="inquire.userId"
v-model="inquire.userId" placeholder=""
placeholder="" class="input"></el-input>
class="input"
></el-input>
</div> </div>
<div class="inquire"> <div class="inquire">
<div class="block"> <div class="block">
<span class="demonstration">分区</span> <span class="demonstration">分区</span>
<partition-select v-model:partition-id="inquire.partitionId" <partition-select v-model:partition-id="inquire.partitionId"
v-model:partition-infos="inquire.partitionArr" v-model:partition-infos="inquire.partitionArr"
v-model:after-init="getData" v-model:after-init="getData" />
/> </div>
</div>
<div class="inquire">
<div class="block">
<span class="demonstration">地区</span>
<partition-region-select v-model:partition-id="inquire.partitionId"
v-model:region-id="inquire.regionId"
v-model:region-infos="inquire.regionArr"
v-model:after-init="getData" />
</div> </div>
</div> </div>
<!-- <div class="inquire"> <!-- <div class="inquire">
@@ -41,102 +47,111 @@
</div> </div>
</div> --> </div> -->
<!-- 查询按钮 --> <!-- 查询按钮 -->
<el-button class="primary" type="primary" @click="getData()" <el-button class="primary"
>查询</el-button type="primary"
> @click="getData()">查询</el-button>
<el-button class="primary" type="primary" @click="addDialog = true" <el-button class="primary"
>添加</el-button type="primary"
> @click="addDialog = true">添加</el-button>
<el-button class="primary" type="primary" @click="exportInfoFun()" <el-button class="primary"
>导出</el-button type="primary"
> @click="exportInfoFun()">导出</el-button>
<!-- 表格 --> <!-- 表格 -->
<el-table <el-table v-loading="loading"
v-loading="loading" :data="tableData"
:data="tableData" border
border style="width: 100%; margin-top: 25px">
style="width: 100%; margin-top: 25px" <el-table-column prop="id"
> align="center"
<el-table-column prop="id" align="center" label="公会ID" /> label="公会ID" />
<!-- <el-table-column prop="referrer" align="center" label="推荐人" /> --> <!-- <el-table-column prop="referrer" align="center" label="推荐人" /> -->
<el-table-column prop="ownerErbanNo" align="center" label="会长ID" /> <el-table-column prop="ownerErbanNo"
<el-table-column prop="ownerNick" align="center" label="会长昵称" /> align="center"
<el-table-column label="会长ID" />
prop="ownerPartitionName" <el-table-column prop="ownerNick"
align="center" align="center"
label="会长分区" label="会长昵称" />
/> <el-table-column prop="ownerPartitionName"
<el-table-column prop="name" align="center" label="公会昵称" /> align="center"
<el-table-column align="center" prop="giftInfo" label="公会头像"> label="会长分区" />
<el-table-column prop="ownerRegionName"
align="center"
label="会长地区" />
<el-table-column prop="name"
align="center"
label="公会昵称" />
<el-table-column align="center"
prop="giftInfo"
label="公会头像">
<template v-slot="scope"> <template v-slot="scope">
<el-image <el-image style="width: 100px; height: 100px"
style="width: 100px; height: 100px" :src="scope.row.avatar"
:src="scope.row.avatar" :zoom-rate="1.1"
:zoom-rate="1.1" :preview-src-list="[scope.row.avatar]"
:preview-src-list="[scope.row.avatar]" fit="scale-down"
fit="scale-down" preview-teleported="true"
preview-teleported="true" hide-on-click-modal="true" />
hide-on-click-modal="true"
/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" prop="giftInfo" label="公会背景图"> <el-table-column align="center"
prop="giftInfo"
label="公会背景图">
<template v-slot="scope"> <template v-slot="scope">
<el-image <el-image style="width: 100px; height: 100px"
style="width: 100px; height: 100px" :src="scope.row.backgroundUrl"
:src="scope.row.backgroundUrl" :zoom-rate="1.1"
:zoom-rate="1.1" :preview-src-list="[scope.row.backgroundUrl]"
:preview-src-list="[scope.row.backgroundUrl]" fit="scale-down"
fit="scale-down" preview-teleported="true"
preview-teleported="true" hide-on-click-modal="true" />
hide-on-click-modal="true"
/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="createTime" align="center" label="创建日期" /> <el-table-column prop="createTime"
align="center"
label="创建日期" />
<!-- <el-table-column prop="memberNum" align="center" label="成员数量" /> --> <!-- <el-table-column prop="memberNum" align="center" label="成员数量" /> -->
<el-table-column align="center" label="成员数量/上限"> <el-table-column align="center"
label="成员数量/上限">
<template v-slot="scope"> <template v-slot="scope">
<el-button <el-button @click="memberDialogFun(scope.row)"
@click="memberDialogFun(scope.row)" type="text"
type="text" size="default">{{ scope.row.memberNum }}/{{ scope.row.memberNumLimit }}</el-button>
size="default"
>{{ scope.row.memberNum }}/{{ scope.row.memberNumLimit }}</el-button
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="adminName" align="center" label="操作人" /> <el-table-column prop="adminName"
<el-table-column align="center"
prop="" label="操作人" />
align="center" <el-table-column prop=""
label="公会联系方式" align="center"
/> label="公会联系方式" />
<el-table-column align="center" prop="idCard" label="公会长身份证件"> <el-table-column align="center"
prop="idCard"
label="公会长身份证件">
<template v-slot="scope"> <template v-slot="scope">
<el-image <el-image style="width: 100px; height: 100px"
style="width: 100px; height: 100px" :src="scope.row.idCard"
:src="scope.row.idCard" :zoom-rate="1.1"
:zoom-rate="1.1" :preview-src-list="[scope.row.idCard]"
:preview-src-list="[scope.row.idCard]" fit="scale-down"
fit="scale-down" preview-teleported="true"
preview-teleported="true" hide-on-click-modal="true" />
hide-on-click-modal="true"
/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="inviteErbanNo" align="center" label="邀请人ID" /> <el-table-column prop="inviteErbanNo"
<el-table-column prop="inviteCheck" align="center" label="邀请人证明"> align="center"
label="邀请人ID" />
<el-table-column prop="inviteCheck"
align="center"
label="邀请人证明">
<template v-slot="scope"> <template v-slot="scope">
<el-image <el-image style="width: 100px; height: 100px"
style="width: 100px; height: 100px" :src="scope.row.inviteCheck"
:src="scope.row.inviteCheck" :zoom-rate="1.1"
:zoom-rate="1.1" :preview-src-list="[scope.row.inviteCheck]"
:preview-src-list="[scope.row.inviteCheck]" fit="scale-down"
fit="scale-down" preview-teleported="true"
preview-teleported="true" hide-on-click-modal="true" />
hide-on-click-modal="true"
/>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column align="center" label="收款账户" width="300"> <!-- <el-table-column align="center" label="收款账户" width="300">
@@ -177,43 +192,37 @@
<!-- <el-table-column prop="goldIncome" align="center" label="金币总收入" /> <!-- <el-table-column prop="goldIncome" align="center" label="金币总收入" />
<el-table-column prop="diamondRemain" align="center" label="钻石总收入" /> --> <el-table-column prop="diamondRemain" align="center" label="钻石总收入" /> -->
<el-table-column align="center" label="操作" width="300"> <el-table-column align="center"
label="操作"
width="300">
<template v-slot="scope"> <template v-slot="scope">
<el-button <el-button @click="ediClick(scope)"
@click="ediClick(scope)" class="primary"
class="primary" type="primary"
type="primary" size="default"
size="default" :disabled="!scope.row.enable">编辑</el-button>
:disabled="!scope.row.enable" <el-button @click="
>编辑</el-button
>
<el-button
@click="
delDialog = true; delDialog = true;
delDialogData = scope.row; delDialogData = scope.row;
" "
:class="scope.row.enable ? 'danger' : 'info'" :class="scope.row.enable ? 'danger' : 'info'"
:type="scope.row.enable ? 'danger' : 'info'" :type="scope.row.enable ? 'danger' : 'info'"
size="default" size="default"
:disabled="!scope.row.enable" :disabled="!scope.row.enable">{{ scope.row.enable ? "移除" : "已解散" }}</el-button>
>{{ scope.row.enable ? "移除" : "已解散" }}</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- 新增弹窗 --> <!-- 新增弹窗 -->
<el-dialog v-model="addDialog" title="新增" width="28%" center> <el-dialog v-model="addDialog"
title="新增"
width="28%"
center>
<div style="margin-bottom: 25px"> <div style="margin-bottom: 25px">
<span <span style="display: inline-block; margin-right: 20px; width: 100px"
style="display: inline-block; margin-right: 20px; width: 100px" class="col-sm-2 control-label">会长ID</span>
class="col-sm-2 control-label" <el-input v-model="resource.id"
>会长ID</span style="width: 75%"
> class="input"></el-input>
<el-input
v-model="resource.id"
style="width: 75%"
class="input"
></el-input>
</div> </div>
<!-- <div style="margin-bottom: 25px"> <!-- <div style="margin-bottom: 25px">
<span <span
@@ -242,220 +251,193 @@
<template #footer> <template #footer>
<span class="dialog-footer"> <span class="dialog-footer">
<el-button @click="addDialog = false">取消</el-button> <el-button @click="addDialog = false">取消</el-button>
<el-button type="primary" @click="add()"> 确认 </el-button> <el-button type="primary"
@click="add()"> 确认 </el-button>
</span> </span>
</template> </template>
</el-dialog> </el-dialog>
<!-- 分页 --> <!-- 分页 -->
<el-pagination <el-pagination style="margin-top: 10px"
style="margin-top: 10px" class="paginationClass"
class="paginationClass" v-model:current-page="currentPage"
v-model:current-page="currentPage" v-model:page-size="pageSize"
v-model:page-size="pageSize" :page-sizes="[10, 20, 30, 40, 50, 100, 200, 300, 400, 500, 999999999]"
:page-sizes="[10, 20, 30, 40, 50, 100, 200, 300, 400, 500, 999999999]" layout="sizes, prev, pager, next"
layout="sizes, prev, pager, next" :total="total"
:total="total" @size-change="handleSizeChange"
@size-change="handleSizeChange" @current-change="handleCurrentChange" />
@current-change="handleCurrentChange"
/>
<!-- 编辑弹窗 --> <!-- 编辑弹窗 -->
<el-dialog v-model="editDialog" title="编辑" width="28%" center> <el-dialog v-model="editDialog"
title="编辑"
width="28%"
center>
<!-- 公会ID --> <!-- 公会ID -->
<div style="margin-bottom: 25px; margin-top: 10px"> <div style="margin-bottom: 25px; margin-top: 10px">
<span <span style="display: inline-block; margin-right: 20px"
style="display: inline-block; margin-right: 20px" class="col-sm-2 control-label">公会ID</span>
class="col-sm-2 control-label" <el-input v-model="ediObj.id"
>公会ID</span style="width: 75%"
> class="input"
<el-input disabled></el-input>
v-model="ediObj.id"
style="width: 75%"
class="input"
disabled
></el-input>
</div> </div>
<!-- 会长ID --> <!-- 会长ID -->
<div style="margin-bottom: 25px; margin-top: 10px"> <div style="margin-bottom: 25px; margin-top: 10px">
<span <span style="display: inline-block; margin-right: 20px"
style="display: inline-block; margin-right: 20px" class="col-sm-2 control-label">会长ID</span>
class="col-sm-2 control-label" <el-input v-model="ediObj.leaderId"
>会长ID</span style="width: 75%"
> class="input"
<el-input disabled></el-input>
v-model="ediObj.leaderId"
style="width: 75%"
class="input"
disabled
></el-input>
</div> </div>
<!-- 会长昵称 --> <!-- 会长昵称 -->
<div style="margin-bottom: 25px; margin-top: 10px"> <div style="margin-bottom: 25px; margin-top: 10px">
<span <span style="display: inline-block; margin-right: 20px"
style="display: inline-block; margin-right: 20px" class="col-sm-2 control-label">会长昵称</span>
class="col-sm-2 control-label" <el-input v-model="ediObj.leaderNick"
>会长昵称</span style="width: 75%"
> class="input"
<el-input disabled></el-input>
v-model="ediObj.leaderNick"
style="width: 75%"
class="input"
disabled
></el-input>
</div> </div>
<!-- 公会昵称 --> <!-- 公会昵称 -->
<div style="margin-bottom: 25px; margin-top: 10px"> <div style="margin-bottom: 25px; margin-top: 10px">
<span <span style="display: inline-block; margin-right: 20px"
style="display: inline-block; margin-right: 20px" class="col-sm-2 control-label">公会昵称</span>
class="col-sm-2 control-label" <el-input v-model="ediObj.guildNick"
>公会昵称</span style="width: 75%"
> class="input"></el-input>
<el-input
v-model="ediObj.guildNick"
style="width: 75%"
class="input"
></el-input>
</div> </div>
<!-- 公会头像 --> <!-- 公会头像 -->
<div class="selectBox selectBoxImg"> <div class="selectBox selectBoxImg">
<span class="left" style="margin-right: 20px">公会头像</span> <span class="left"
style="margin-right: 20px">公会头像</span>
<!-- action="/admin/tencent/cos/upload/file" --> <!-- action="/admin/tencent/cos/upload/file" -->
<el-upload <el-upload class="avatar-uploader"
class="avatar-uploader" action="/admin/tencent/cos/upload/file"
action="/admin/tencent/cos/upload/file" :show-file-list="false"
:show-file-list="false" :on-success="handleAvatarSuccess2"
:on-success="handleAvatarSuccess2" :before-upload="beforeAvatarUpload"
:before-upload="beforeAvatarUpload" :on-error="handleAvatarError">
:on-error="handleAvatarError" <img v-if="ediObj.imageUrl2"
> :src="ediObj.imageUrl2"
<img v-if="ediObj.imageUrl2" :src="ediObj.imageUrl2" class="avatar" /> class="avatar" />
<el-icon v-else class="avatar-uploader-icon"><Plus /></el-icon> <el-icon v-else
class="avatar-uploader-icon">
<Plus />
</el-icon>
</el-upload> </el-upload>
</div> </div>
<!-- 公会背景图 --> <!-- 公会背景图 -->
<div class="selectBox selectBoxImg"> <div class="selectBox selectBoxImg">
<span class="left" style="margin-right: 20px">公会背景图</span> <span class="left"
style="margin-right: 20px">公会背景图</span>
<!-- action="/admin/tencent/cos/upload/file" --> <!-- action="/admin/tencent/cos/upload/file" -->
<el-upload <el-upload class="avatar-uploader"
class="avatar-uploader" action="/admin/tencent/cos/upload/file"
action="/admin/tencent/cos/upload/file" :show-file-list="false"
:show-file-list="false" :on-success="handleAvatarSuccess"
:on-success="handleAvatarSuccess" :before-upload="beforeAvatarUpload"
:before-upload="beforeAvatarUpload" :on-error="handleAvatarError">
:on-error="handleAvatarError" <img v-if="ediObj.imageUrl1"
> :src="ediObj.imageUrl1"
<img v-if="ediObj.imageUrl1" :src="ediObj.imageUrl1" class="avatar" /> class="avatar" />
<el-icon v-else class="avatar-uploader-icon"> <el-icon v-else
class="avatar-uploader-icon">
<Plus /> <Plus />
</el-icon> </el-icon>
</el-upload> </el-upload>
</div> </div>
<!-- 成员数量上限 --> <!-- 成员数量上限 -->
<div style="margin-bottom: 25px; margin-top: 10px"> <div style="margin-bottom: 25px; margin-top: 10px">
<span <span style="display: inline-block; margin-right: 20px"
style="display: inline-block; margin-right: 20px" class="col-sm-2 control-label">成员数量上限</span>
class="col-sm-2 control-label" <el-input v-model="ediObj.guildNumber"
>成员数量上限</span style="width: 75%"
> class="input"></el-input>
<el-input
v-model="ediObj.guildNumber"
style="width: 75%"
class="input"
></el-input>
</div> </div>
<template #footer> <template #footer>
<span class="dialog-footer"> <span class="dialog-footer">
<el-button @click="editDialog = false">取消</el-button> <el-button @click="editDialog = false">取消</el-button>
<el-button type="primary" @click="editDialogClick()"> <el-button type="primary"
@click="editDialogClick()">
确认 确认
</el-button> </el-button>
</span> </span>
</template> </template>
</el-dialog> </el-dialog>
<!-- 二次确认删除弹窗 --> <!-- 二次确认删除弹窗 -->
<el-dialog v-model="delDialog" title="提示" width="30%" center> <el-dialog v-model="delDialog"
title="提示"
width="30%"
center>
<span> 确定要解散该公会吗?</span> <span> 确定要解散该公会吗?</span>
<template #footer> <template #footer>
<span class="dialog-footer"> <span class="dialog-footer">
<el-button @click="delDialog = false">取消</el-button> <el-button @click="delDialog = false">取消</el-button>
<el-button type="primary" @click="delClick()"> 确认 </el-button> <el-button type="primary"
@click="delClick()"> 确认 </el-button>
</span> </span>
</template> </template>
</el-dialog> </el-dialog>
<!-- 编辑收款账户弹窗 --> <!-- 编辑收款账户弹窗 -->
<el-dialog <el-dialog v-model="payAccountDialog"
v-model="payAccountDialog" :title="payAccountTitle"
:title="payAccountTitle" width="28%"
width="28%" center>
center
>
<!-- Payoneer --> <!-- Payoneer -->
<div style="margin-bottom: 25px; margin-top: 10px"> <div style="margin-bottom: 25px; margin-top: 10px">
<span <span style="display: inline-block; margin-right: 20px"
style="display: inline-block; margin-right: 20px" class="col-sm-2 control-label">Payoneer</span>
class="col-sm-2 control-label" <el-input v-model="payAccount.payoneer"
>Payoneer</span style="width: 75%"
> class="input"></el-input>
<el-input
v-model="payAccount.payoneer"
style="width: 75%"
class="input"
></el-input>
</div> </div>
<!-- USDT-ERC20 --> <!-- USDT-ERC20 -->
<div style="margin-bottom: 25px; margin-top: 10px"> <div style="margin-bottom: 25px; margin-top: 10px">
<span <span style="display: inline-block; margin-right: 20px"
style="display: inline-block; margin-right: 20px" class="col-sm-2 control-label">USDT-ERC20</span>
class="col-sm-2 control-label" <el-input v-model="payAccount.usdt"
>USDT-ERC20</span style="width: 75%"
> class="input"></el-input>
<el-input
v-model="payAccount.usdt"
style="width: 75%"
class="input"
></el-input>
</div> </div>
<!-- PayPal --> <!-- PayPal -->
<div style="margin-bottom: 25px; margin-top: 10px"> <div style="margin-bottom: 25px; margin-top: 10px">
<span <span style="display: inline-block; margin-right: 20px"
style="display: inline-block; margin-right: 20px" class="col-sm-2 control-label">PayPal</span>
class="col-sm-2 control-label" <el-input v-model="payAccount.payPal"
>PayPal</span style="width: 75%"
> class="input"></el-input>
<el-input
v-model="payAccount.payPal"
style="width: 75%"
class="input"
></el-input>
</div> </div>
<template #footer> <template #footer>
<span class="dialog-footer"> <span class="dialog-footer">
<el-button @click="payAccountDialog = false">取消</el-button> <el-button @click="payAccountDialog = false">取消</el-button>
<el-button type="primary" @click="payAccountClick()"> <el-button type="primary"
@click="payAccountClick()">
保存 保存
</el-button> </el-button>
</span> </span>
</template> </template>
</el-dialog> </el-dialog>
<!-- 编辑成员弹窗 --> <!-- 编辑成员弹窗 -->
<el-dialog v-model="memberDialog" :title="memberTitle" width="36%" center> <el-dialog v-model="memberDialog"
:title="memberTitle"
width="36%"
center>
<!-- 新增用户 --> <!-- 新增用户 -->
<div class="inquire"> <div class="inquire">
<span>平台ID</span> <span>平台ID</span>
<el-input <el-input v-model="member.userID"
v-model="member.userID" placeholder="请输入新增平台id"
placeholder="请输入新增平台id" class="input"></el-input>
class="input" <el-button type="primary"
></el-input> @click="addMemberFun()"> 新增 </el-button>
<el-button type="primary" @click="addMemberFun()"> 新增 </el-button>
</div> </div>
<!-- 内嵌表格 --> <!-- 内嵌表格 -->
<el-table <el-table v-loading="loading"
v-loading="loading" :data="member.tableData"
:data="member.tableData" border
border style="width: 100%; margin-top: 25px">
style="width: 100%; margin-top: 25px" <el-table-column align="center"
> label="用户平台ID">
<el-table-column align="center" label="用户平台ID">
<template v-slot="scope"> <template v-slot="scope">
{{ scope.row.erbanNo {{ scope.row.erbanNo
}}{{ }}{{
@@ -468,54 +450,61 @@
{{ scope.row.enable == false ? "(已离开)" : "" }} {{ scope.row.enable == false ? "(已离开)" : "" }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="nick" align="center" label="用户昵称" /> <el-table-column prop="nick"
<el-table-column prop="createTime" align="center" label="加入时间" /> align="center"
<el-table-column prop="adminName" align="center" label="操作人" /> label="用户昵称" />
<el-table-column align="center" label="操作" width="300"> <el-table-column prop="createTime"
align="center"
label="加入时间" />
<el-table-column prop="adminName"
align="center"
label="操作人" />
<el-table-column align="center"
label="操作"
width="300">
<template v-slot="scope"> <template v-slot="scope">
<el-button <el-button @click="setMemberFun(scope.row)"
@click="setMemberFun(scope.row)" :class="scope.row.roleType == 2 ? 'danger' : 'primary'"
:class="scope.row.roleType == 2 ? 'danger' : 'primary'" :type="scope.row.roleType == 2 ? 'danger' : 'primary'"
:type="scope.row.roleType == 2 ? 'danger' : 'primary'" size="default"
size="default" :disabled="scope.row.roleType == 1 ? true : false">{{
:disabled="scope.row.roleType == 1 ? true : false"
>{{
scope.row.roleType == 1 scope.row.roleType == 1
? "会长" ? "会长"
: scope.row.roleType == 2 : scope.row.roleType == 2
? "取消管理员" ? "取消管理员"
: "设为管理员" : "设为管理员"
}}</el-button }}</el-button>
> <el-button @click="
<el-button
@click="
memberRemoveObj = scope.row; memberRemoveObj = scope.row;
memberRemoveDialog = true; memberRemoveDialog = true;
" "
class="danger" class="danger"
type="danger" type="danger"
size="default" size="default"
:disabled="scope.row.roleType == 1 ? true : false" :disabled="scope.row.roleType == 1 ? true : false">删除</el-button>
>删除</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<template #footer> <template #footer>
<span class="dialog-footer"> <span class="dialog-footer">
<el-button type="primary" @click="memberDialog = false"> <el-button type="primary"
@click="memberDialog = false">
关闭 关闭
</el-button> </el-button>
</span> </span>
</template> </template>
</el-dialog> </el-dialog>
<!-- 二次确认删除弹窗 --> <!-- 二次确认删除弹窗 -->
<el-dialog v-model="memberRemoveDialog" title="提示" width="30%" center> <el-dialog v-model="memberRemoveDialog"
title="提示"
width="30%"
center>
<span> 确定要删除该成员吗?</span> <span> 确定要删除该成员吗?</span>
<template #footer> <template #footer>
<span class="dialog-footer"> <span class="dialog-footer">
<el-button @click="memberRemoveDialog = false">取消</el-button> <el-button @click="memberRemoveDialog = false">取消</el-button>
<el-button type="primary" @click="delmemberRemoveClick()"> <el-button type="primary"
@click="delmemberRemoveClick()">
确认 确认
</el-button> </el-button>
</span> </span>
@@ -543,10 +532,11 @@ import { dateFormat } from "@/utils/system-helper";
// @ts-ignore // @ts-ignore
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import PartitionSelect from "@/views/common/partitionSelect.vue"; import PartitionSelect from "@/views/common/partitionSelect.vue";
import PartitionRegionSelect from "@/views/common/partitionRegionSelect.vue";
export default { export default {
name: "GuildInfoNewCustomerService", name: "GuildInfoNewCustomerService",
components: {PartitionSelect}, components: { PartitionSelect, PartitionRegionSelect },
data() { data () {
return { return {
loading: false, loading: false,
delDialog: false, delDialog: false,
@@ -558,6 +548,8 @@ export default {
time: "", time: "",
partitionId: undefined, partitionId: undefined,
partitionArr: [], partitionArr: [],
regionId: undefined,
regionArr: [],
}, },
//新增所需对象 //新增所需对象
resource: { resource: {
@@ -608,7 +600,7 @@ export default {
}, },
methods: { methods: {
// 查询接口 // 查询接口
getData() { getData () {
this.loading = true; this.loading = true;
let time = this.inquire.time; let time = this.inquire.time;
let startTime = ""; let startTime = "";
@@ -622,6 +614,7 @@ export default {
referrer: this.inquire.referrer, referrer: this.inquire.referrer,
familyName: this.inquire.nick, familyName: this.inquire.nick,
partitionId: this.inquire.partitionId, partitionId: this.inquire.partitionId,
regionId: this.inquire.regionId == 0 ? undefined : this.inquire.regionId,
// startDate: startTime, // startDate: startTime,
// endDate: endTime, // endDate: endTime,
pageNum: this.currentPage, pageNum: this.currentPage,
@@ -633,7 +626,7 @@ export default {
}); });
}, },
// 打开成员信息弹窗 // 打开成员信息弹窗
memberDialogFun(val) { memberDialogFun (val) {
var than = this; var than = this;
than.memberTitle = `${val.name}】成员信息`; than.memberTitle = `${val.name}】成员信息`;
than.memberNew = val; than.memberNew = val;
@@ -645,7 +638,7 @@ export default {
}); });
}, },
// 二次确认删除成员 // 二次确认删除成员
delmemberRemoveClick() { delmemberRemoveClick () {
removeMember({ removeMember({
guildMemberId: this.memberRemoveObj.guildMemberId, guildMemberId: this.memberRemoveObj.guildMemberId,
}).then((res) => { }).then((res) => {
@@ -671,7 +664,7 @@ export default {
}); });
}, },
// 设置管理员 // 设置管理员
setMemberFun(val) { setMemberFun (val) {
setManager({ setManager({
guildMemberId: val.guildMemberId, guildMemberId: val.guildMemberId,
status: val.roleType == 3 ? true : val.roleType == 2 ? false : null, status: val.roleType == 3 ? true : val.roleType == 2 ? false : null,
@@ -698,7 +691,7 @@ export default {
}); });
}, },
// 新增成员 // 新增成员
addMemberFun() { addMemberFun () {
addMember({ addMember({
erbanNo: this.member.userID, erbanNo: this.member.userID,
guildId: this.memberNew.id, guildId: this.memberNew.id,
@@ -725,7 +718,7 @@ export default {
}); });
}, },
// 打开收款账户弹窗 // 打开收款账户弹窗
payAccountDialogFun(val) { payAccountDialogFun (val) {
this.payAccountTitle = `(${val.ownerNick}【ID:${val.ownerErbanNo}】)的收款账户`; this.payAccountTitle = `(${val.ownerNick}【ID:${val.ownerErbanNo}】)的收款账户`;
this.payAccount.payoneer = val.payAccount.payoneer; this.payAccount.payoneer = val.payAccount.payoneer;
this.payAccount.usdt = val.payAccount.usdt; this.payAccount.usdt = val.payAccount.usdt;
@@ -734,7 +727,7 @@ export default {
this.payAccountNew = val; this.payAccountNew = val;
}, },
// 保存收款账户 // 保存收款账户
payAccountClick() { payAccountClick () {
savePayAccount({ savePayAccount({
id: this.payAccountNew.payAccount.familyId, id: this.payAccountNew.payAccount.familyId,
payPal: this.payAccount.payPal, payPal: this.payAccount.payPal,
@@ -759,7 +752,7 @@ export default {
}); });
}, },
// 导出 // 导出
exportInfoFun() { exportInfoFun () {
let time = this.inquire.time; let time = this.inquire.time;
let startTime = ""; let startTime = "";
let endTime = ""; let endTime = "";
@@ -771,12 +764,14 @@ export default {
erbanNo: this.inquire.userId, erbanNo: this.inquire.userId,
referrer: this.inquire.referrer, referrer: this.inquire.referrer,
familyName: this.inquire.nick, familyName: this.inquire.nick,
partitionId: this.inquire.partitionId,
regionId: this.inquire.regionId == 0 ? undefined : this.inquire.regionId,
// startDate: startTime, // startDate: startTime,
// endDate: endTime, // endDate: endTime,
}).then((res) => {}); }).then((res) => { });
}, },
// 添加 // 添加
add() { add () {
this.addDialog = false; this.addDialog = false;
create({ create({
erbanNo: this.resource.id, erbanNo: this.resource.id,
@@ -799,7 +794,7 @@ export default {
}); });
}, },
// 编辑按钮 // 编辑按钮
ediClick(res) { ediClick (res) {
var obj = res.row; var obj = res.row;
this.ediObj.leaderId = obj.ownerErbanNo; this.ediObj.leaderId = obj.ownerErbanNo;
this.ediObj.leaderNick = obj.ownerNick; this.ediObj.leaderNick = obj.ownerNick;
@@ -811,7 +806,7 @@ export default {
this.editDialog = true; this.editDialog = true;
}, },
// 二次确认弹窗 // 二次确认弹窗
editDialogClick() { editDialogClick () {
console.log(this.ediObj); console.log(this.ediObj);
update({ update({
id: this.ediObj.id, id: this.ediObj.id,
@@ -839,7 +834,7 @@ export default {
}); });
}, },
// 解散按钮 // 解散按钮
delClick() { delClick () {
console.log(this.delDialogData.id); console.log(this.delDialogData.id);
var guildId = this.delDialogData.id; var guildId = this.delDialogData.id;
dismiss({ guildId }).then((res) => { dismiss({ guildId }).then((res) => {
@@ -861,21 +856,21 @@ export default {
this.delDialog = false; this.delDialog = false;
}); });
}, },
beforeAvatarUpload() { beforeAvatarUpload () {
ElMessage({ ElMessage({
showClose: true, showClose: true,
message: "上传中~", message: "上传中~",
type: "warning", type: "warning",
}); });
}, },
handleAvatarError() { handleAvatarError () {
ElMessage({ ElMessage({
showClose: true, showClose: true,
message: "上传失败!", message: "上传失败!",
type: "error", type: "error",
}); });
}, },
handleAvatarSuccess(res, file) { handleAvatarSuccess (res, file) {
console.log(file); console.log(file);
this.ediObj.imageUrl1 = file.response.data; this.ediObj.imageUrl1 = file.response.data;
ElMessage({ ElMessage({
@@ -884,7 +879,7 @@ export default {
type: "success", type: "success",
}); });
}, },
handleAvatarSuccess2(res, file) { handleAvatarSuccess2 (res, file) {
console.log(file); console.log(file);
this.ediObj.imageUrl2 = file.response.data; this.ediObj.imageUrl2 = file.response.data;
ElMessage({ ElMessage({
@@ -894,10 +889,10 @@ export default {
}); });
}, },
// 分页导航 // 分页导航
handleSizeChange() { handleSizeChange () {
this.getData(); this.getData();
}, },
handleCurrentChange() { handleCurrentChange () {
this.getData(); this.getData();
}, },
}, },