Compare commits
21 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
50919fd508 | ||
![]() |
8dc17b87ad | ||
![]() |
d420979350 | ||
![]() |
63c7f5ed80 | ||
![]() |
eba1d654d3 | ||
![]() |
09dc6f3645 | ||
![]() |
5338943b9b | ||
![]() |
1b47d48d0a | ||
![]() |
3659f582d5 | ||
![]() |
ed17e47390 | ||
![]() |
84e86deb73 | ||
![]() |
0751f06ec4 | ||
![]() |
4bc596e3d8 | ||
![]() |
1683225a72 | ||
![]() |
c904646f4a | ||
![]() |
98d5f20be7 | ||
![]() |
924971a290 | ||
![]() |
f5b721a6f8 | ||
![]() |
47c819433b | ||
![]() |
3e9a2bfb60 | ||
![]() |
ce2a63c864 |
@@ -34,3 +34,11 @@ export default {
|
|||||||
computed: {},
|
computed: {},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
<style>
|
||||||
|
.modal-open{
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
||||||
|
body{
|
||||||
|
padding-right:0 !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@@ -6,4 +6,11 @@ export const getPartitionInfoList = query => {
|
|||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query
|
||||||
});
|
});
|
||||||
|
};
|
||||||
|
export const listAll = query => {
|
||||||
|
return request({
|
||||||
|
url: '/partition/listAll',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
});
|
||||||
};
|
};
|
@@ -519,11 +519,6 @@ export default {
|
|||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (isEmpty(androidUrl) || isEmpty(iosUrl)) {
|
|
||||||
$("#tipMsg").text("图片不能为空");
|
|
||||||
$("#tipModal").modal('show');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if ($("#addForm").validationEngine('validate')) {
|
if ($("#addForm").validationEngine('validate')) {
|
||||||
console.log('$("#addForm").serialize()', $("#addForm").serialize())
|
console.log('$("#addForm").serialize()', $("#addForm").serialize())
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
@@ -22,6 +22,9 @@
|
|||||||
<option value="2">Room ID</option>
|
<option value="2">Room ID</option>
|
||||||
<option value="1">指定地址</option>
|
<option value="1">指定地址</option>
|
||||||
<option value="3">跳转H5页面</option>
|
<option value="3">跳转H5页面</option>
|
||||||
|
<option value="4">CP活动</option>
|
||||||
|
<option value="5">周星榜活动</option>
|
||||||
|
<option value="6">定制礼物活动</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<label for="status" class="col-sm-1 control-label">状态:</label>
|
<label for="status" class="col-sm-1 control-label">状态:</label>
|
||||||
@@ -181,6 +184,9 @@
|
|||||||
<option value="2">Room ID</option>
|
<option value="2">Room ID</option>
|
||||||
<option value="1">指定地址</option>
|
<option value="1">指定地址</option>
|
||||||
<option value="3">跳转H5页面</option>
|
<option value="3">跳转H5页面</option>
|
||||||
|
<option value="4">CP活动</option>
|
||||||
|
<option value="5">周星榜活动</option>
|
||||||
|
<option value="6">定制礼物活动</option>
|
||||||
</select>
|
</select>
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<input
|
<input
|
||||||
@@ -446,6 +452,9 @@
|
|||||||
<option value="2">Room ID</option>
|
<option value="2">Room ID</option>
|
||||||
<option value="1">指定地址</option>
|
<option value="1">指定地址</option>
|
||||||
<option value="3">跳转H5页面</option>
|
<option value="3">跳转H5页面</option>
|
||||||
|
<option value="4">CP活动</option>
|
||||||
|
<option value="5">周星榜活动</option>
|
||||||
|
<option value="6">定制礼物活动</option>
|
||||||
</select>
|
</select>
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<input
|
<input
|
||||||
@@ -808,6 +817,12 @@ export default {
|
|||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
return "H5页面";
|
return "H5页面";
|
||||||
|
case 4:
|
||||||
|
return "CP活动";
|
||||||
|
case 5:
|
||||||
|
return "周星榜活动";
|
||||||
|
case 6:
|
||||||
|
return "定制礼物活动";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@@ -532,11 +532,11 @@ export default {
|
|||||||
},
|
},
|
||||||
// 弹窗分页导航
|
// 弹窗分页导航
|
||||||
handleSizeChange1(val) {
|
handleSizeChange1(val) {
|
||||||
this.$set(this.pageParams1, "pageSize", val);
|
this.pageParams1.pageSize = val;
|
||||||
this.getDetail();
|
this.getDetail();
|
||||||
},
|
},
|
||||||
handlePageChange1(val) {
|
handlePageChange1(val) {
|
||||||
this.$set(this.pageParams1, "pageNo", val);
|
this.pageParams1.pageNo = val;
|
||||||
this.getDetail();
|
this.getDetail();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
950
src/views/guildOperationManagement/guildInfoCustomerService.vue
Normal file
950
src/views/guildOperationManagement/guildInfoCustomerService.vue
Normal file
@@ -0,0 +1,950 @@
|
|||||||
|
<template>
|
||||||
|
<div class="box">
|
||||||
|
<!-- 查询 -->
|
||||||
|
<div class="inquire">
|
||||||
|
<span>ID</span>
|
||||||
|
<el-input
|
||||||
|
v-model="inquire.userId"
|
||||||
|
placeholder=""
|
||||||
|
class="input"
|
||||||
|
></el-input>
|
||||||
|
</div>
|
||||||
|
<div class="inquire">
|
||||||
|
<div class="block">
|
||||||
|
<span class="demonstration">分区</span>
|
||||||
|
<el-select
|
||||||
|
v-model="inquire.partitionId"
|
||||||
|
style="width: 75%"
|
||||||
|
placeholder="请选择"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in inquire.partitionArr"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.desc"
|
||||||
|
:value="item.id"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- <div class="inquire">
|
||||||
|
<span>推荐人</span>
|
||||||
|
<el-input
|
||||||
|
v-model="inquire.referrer"
|
||||||
|
placeholder=""
|
||||||
|
class="input"
|
||||||
|
></el-input>
|
||||||
|
</div> -->
|
||||||
|
<!-- 时间选择器 -->
|
||||||
|
<!-- <div class="inquire">
|
||||||
|
<div class="block">
|
||||||
|
<span class="demonstration">日期</span>
|
||||||
|
<el-date-picker
|
||||||
|
v-model="inquire.time"
|
||||||
|
type="datetimerange"
|
||||||
|
range-separator="至"
|
||||||
|
start-placeholder="开始日期"
|
||||||
|
end-placeholder="结束日期"
|
||||||
|
>
|
||||||
|
</el-date-picker>
|
||||||
|
</div>
|
||||||
|
</div> -->
|
||||||
|
<!-- 查询按钮 -->
|
||||||
|
<el-button class="primary" type="primary" @click="getData()"
|
||||||
|
>查询</el-button
|
||||||
|
>
|
||||||
|
<el-button class="primary" type="primary" @click="addDialog = true"
|
||||||
|
>添加</el-button
|
||||||
|
>
|
||||||
|
<el-button class="primary" type="primary" @click="exportInfoFun()"
|
||||||
|
>导出</el-button
|
||||||
|
>
|
||||||
|
|
||||||
|
<!-- 表格 -->
|
||||||
|
<el-table
|
||||||
|
v-loading="loading"
|
||||||
|
:data="tableData"
|
||||||
|
border
|
||||||
|
style="width: 100%; margin-top: 25px"
|
||||||
|
>
|
||||||
|
<el-table-column prop="id" align="center" label="公会ID" />
|
||||||
|
<!-- <el-table-column prop="referrer" align="center" label="推荐人" /> -->
|
||||||
|
<el-table-column prop="ownerErbanNo" align="center" label="会长ID" />
|
||||||
|
<el-table-column prop="ownerNick" align="center" label="会长昵称" />
|
||||||
|
<el-table-column
|
||||||
|
prop="ownerPartitionName"
|
||||||
|
align="center"
|
||||||
|
label="会长分区"
|
||||||
|
/>
|
||||||
|
<el-table-column prop="name" align="center" label="公会昵称" />
|
||||||
|
<el-table-column align="center" prop="giftInfo" label="公会头像">
|
||||||
|
<template v-slot="scope">
|
||||||
|
<el-image
|
||||||
|
style="width: 100px; height: 100px"
|
||||||
|
:src="scope.row.avatar"
|
||||||
|
:zoom-rate="1.1"
|
||||||
|
:preview-src-list="[scope.row.avatar]"
|
||||||
|
fit="scale-down"
|
||||||
|
preview-teleported="true"
|
||||||
|
hide-on-click-modal="true"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column align="center" prop="giftInfo" label="公会背景图">
|
||||||
|
<template v-slot="scope">
|
||||||
|
<el-image
|
||||||
|
style="width: 100px; height: 100px"
|
||||||
|
:src="scope.row.backgroundUrl"
|
||||||
|
:zoom-rate="1.1"
|
||||||
|
:preview-src-list="[scope.row.backgroundUrl]"
|
||||||
|
fit="scale-down"
|
||||||
|
preview-teleported="true"
|
||||||
|
hide-on-click-modal="true"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="createTime" align="center" label="创建日期" />
|
||||||
|
<!-- <el-table-column prop="memberNum" align="center" label="成员数量" /> -->
|
||||||
|
<el-table-column align="center" label="成员数量/上限">
|
||||||
|
<template v-slot="scope">
|
||||||
|
<el-button
|
||||||
|
@click="memberDialogFun(scope.row)"
|
||||||
|
type="text"
|
||||||
|
size="default"
|
||||||
|
>{{ scope.row.memberNum }}/{{ scope.row.memberNumLimit }}</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="adminName" align="center" label="操作人" />
|
||||||
|
<el-table-column
|
||||||
|
prop=""
|
||||||
|
align="center"
|
||||||
|
label="公会联系方式"
|
||||||
|
/>
|
||||||
|
<el-table-column align="center" prop="idCard" label="公会长身份证件">
|
||||||
|
<template v-slot="scope">
|
||||||
|
<el-image
|
||||||
|
style="width: 100px; height: 100px"
|
||||||
|
:src="scope.row.idCard"
|
||||||
|
:zoom-rate="1.1"
|
||||||
|
:preview-src-list="[scope.row.idCard]"
|
||||||
|
fit="scale-down"
|
||||||
|
preview-teleported="true"
|
||||||
|
hide-on-click-modal="true"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="inviteErbanNo" align="center" label="邀请人ID" />
|
||||||
|
<el-table-column prop="inviteCheck" align="center" label="邀请人证明">
|
||||||
|
<template v-slot="scope">
|
||||||
|
<el-image
|
||||||
|
style="width: 100px; height: 100px"
|
||||||
|
:src="scope.row.inviteCheck"
|
||||||
|
:zoom-rate="1.1"
|
||||||
|
:preview-src-list="[scope.row.inviteCheck]"
|
||||||
|
fit="scale-down"
|
||||||
|
preview-teleported="true"
|
||||||
|
hide-on-click-modal="true"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<!-- <el-table-column align="center" label="收款账户" width="300">
|
||||||
|
<template v-slot="scope">
|
||||||
|
<el-button
|
||||||
|
@click="payAccountDialogFun(scope.row)"
|
||||||
|
type="text"
|
||||||
|
size="medium "
|
||||||
|
>
|
||||||
|
payoneer:{{
|
||||||
|
scope.row.payAccount.payoneer
|
||||||
|
? scope.row.payAccount.payoneer
|
||||||
|
: "未添加"
|
||||||
|
}} </el-button
|
||||||
|
><br />
|
||||||
|
<el-button
|
||||||
|
@click="payAccountDialogFun(scope.row)"
|
||||||
|
type="text"
|
||||||
|
size="medium "
|
||||||
|
>
|
||||||
|
USDT-ERC20:{{
|
||||||
|
scope.row.payAccount.usdt ? scope.row.payAccount.usdt : "未添加"
|
||||||
|
}} </el-button
|
||||||
|
><br />
|
||||||
|
<el-button
|
||||||
|
@click="payAccountDialogFun(scope.row)"
|
||||||
|
type="text"
|
||||||
|
size="medium "
|
||||||
|
>
|
||||||
|
PayPal:{{
|
||||||
|
scope.row.payAccount.payPal
|
||||||
|
? scope.row.payAccount.payPal
|
||||||
|
: "未添加"
|
||||||
|
}} </el-button
|
||||||
|
><br />
|
||||||
|
</template>
|
||||||
|
</el-table-column> -->
|
||||||
|
<!-- <el-table-column prop="goldIncome" align="center" label="金币总收入" />
|
||||||
|
<el-table-column prop="diamondRemain" align="center" label="钻石总收入" /> -->
|
||||||
|
|
||||||
|
<el-table-column align="center" label="操作" width="300">
|
||||||
|
<template v-slot="scope">
|
||||||
|
<el-button
|
||||||
|
@click="ediClick(scope)"
|
||||||
|
class="primary"
|
||||||
|
type="primary"
|
||||||
|
size="default"
|
||||||
|
:disabled="!scope.row.enable"
|
||||||
|
>编辑</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
@click="
|
||||||
|
delDialog = true;
|
||||||
|
delDialogData = scope.row;
|
||||||
|
"
|
||||||
|
:class="scope.row.enable ? 'danger' : 'info'"
|
||||||
|
:type="scope.row.enable ? 'danger' : 'info'"
|
||||||
|
size="default"
|
||||||
|
:disabled="!scope.row.enable"
|
||||||
|
>{{ scope.row.enable ? "移除" : "已解散" }}</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<!-- 新增弹窗 -->
|
||||||
|
<el-dialog v-model="addDialog" title="新增" width="28%" center>
|
||||||
|
<div style="margin-bottom: 25px">
|
||||||
|
<span
|
||||||
|
style="display: inline-block; margin-right: 20px; width: 100px"
|
||||||
|
class="col-sm-2 control-label"
|
||||||
|
>会长ID</span
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="resource.id"
|
||||||
|
style="width: 75%"
|
||||||
|
class="input"
|
||||||
|
></el-input>
|
||||||
|
</div>
|
||||||
|
<!-- <div style="margin-bottom: 25px">
|
||||||
|
<span
|
||||||
|
style="display: inline-block; margin-right: 20px; width: 100px"
|
||||||
|
class="col-sm-2 control-label"
|
||||||
|
>推荐人</span
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="resource.referrer"
|
||||||
|
style="width: 75%"
|
||||||
|
class="input"
|
||||||
|
></el-input>
|
||||||
|
</div> -->
|
||||||
|
<!-- <div style="margin-bottom: 25px">
|
||||||
|
<span
|
||||||
|
style="display: inline-block; margin-right: 20px; width: 100px"
|
||||||
|
class="col-sm-2 control-label"
|
||||||
|
>会长昵称</span
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="resource.nick"
|
||||||
|
style="width: 75%"
|
||||||
|
class="input"
|
||||||
|
></el-input>
|
||||||
|
</div> -->
|
||||||
|
<template #footer>
|
||||||
|
<span class="dialog-footer">
|
||||||
|
<el-button @click="addDialog = false">取消</el-button>
|
||||||
|
<el-button type="primary" @click="add()"> 确认 </el-button>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</el-dialog>
|
||||||
|
<!-- 分页 -->
|
||||||
|
<el-pagination
|
||||||
|
style="margin-top: 10px"
|
||||||
|
class="paginationClass"
|
||||||
|
v-model:current-page="currentPage"
|
||||||
|
v-model:page-size="pageSize"
|
||||||
|
:page-sizes="[10, 20, 30, 40, 50, 100, 200, 300, 400, 500, 999999999]"
|
||||||
|
layout="sizes, prev, pager, next"
|
||||||
|
:total="total"
|
||||||
|
@size-change="handleSizeChange"
|
||||||
|
@current-change="handleCurrentChange"
|
||||||
|
/>
|
||||||
|
<!-- 编辑弹窗 -->
|
||||||
|
<el-dialog v-model="editDialog" title="编辑" width="28%" center>
|
||||||
|
<!-- 公会ID -->
|
||||||
|
<div style="margin-bottom: 25px; margin-top: 10px">
|
||||||
|
<span
|
||||||
|
style="display: inline-block; margin-right: 20px"
|
||||||
|
class="col-sm-2 control-label"
|
||||||
|
>公会ID</span
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="ediObj.id"
|
||||||
|
style="width: 75%"
|
||||||
|
class="input"
|
||||||
|
disabled
|
||||||
|
></el-input>
|
||||||
|
</div>
|
||||||
|
<!-- 会长ID -->
|
||||||
|
<div style="margin-bottom: 25px; margin-top: 10px">
|
||||||
|
<span
|
||||||
|
style="display: inline-block; margin-right: 20px"
|
||||||
|
class="col-sm-2 control-label"
|
||||||
|
>会长ID</span
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="ediObj.leaderId"
|
||||||
|
style="width: 75%"
|
||||||
|
class="input"
|
||||||
|
disabled
|
||||||
|
></el-input>
|
||||||
|
</div>
|
||||||
|
<!-- 会长昵称 -->
|
||||||
|
<div style="margin-bottom: 25px; margin-top: 10px">
|
||||||
|
<span
|
||||||
|
style="display: inline-block; margin-right: 20px"
|
||||||
|
class="col-sm-2 control-label"
|
||||||
|
>会长昵称</span
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="ediObj.leaderNick"
|
||||||
|
style="width: 75%"
|
||||||
|
class="input"
|
||||||
|
disabled
|
||||||
|
></el-input>
|
||||||
|
</div>
|
||||||
|
<!-- 公会昵称 -->
|
||||||
|
<div style="margin-bottom: 25px; margin-top: 10px">
|
||||||
|
<span
|
||||||
|
style="display: inline-block; margin-right: 20px"
|
||||||
|
class="col-sm-2 control-label"
|
||||||
|
>公会昵称</span
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="ediObj.guildNick"
|
||||||
|
style="width: 75%"
|
||||||
|
class="input"
|
||||||
|
></el-input>
|
||||||
|
</div>
|
||||||
|
<!-- 公会头像 -->
|
||||||
|
<div class="selectBox selectBoxImg">
|
||||||
|
<span class="left" style="margin-right: 20px">公会头像</span>
|
||||||
|
<!-- action="/admin/tencent/cos/upload/file" -->
|
||||||
|
<el-upload
|
||||||
|
class="avatar-uploader"
|
||||||
|
action="/admin/tencent/cos/upload/file"
|
||||||
|
:show-file-list="false"
|
||||||
|
:on-success="handleAvatarSuccess2"
|
||||||
|
:before-upload="beforeAvatarUpload"
|
||||||
|
:on-error="handleAvatarError"
|
||||||
|
>
|
||||||
|
<img v-if="ediObj.imageUrl2" :src="ediObj.imageUrl2" class="avatar" />
|
||||||
|
<el-icon v-else class="avatar-uploader-icon"><Plus /></el-icon>
|
||||||
|
</el-upload>
|
||||||
|
</div>
|
||||||
|
<!-- 公会背景图 -->
|
||||||
|
<div class="selectBox selectBoxImg">
|
||||||
|
<span class="left" style="margin-right: 20px">公会背景图</span>
|
||||||
|
<!-- action="/admin/tencent/cos/upload/file" -->
|
||||||
|
<el-upload
|
||||||
|
class="avatar-uploader"
|
||||||
|
action="/admin/tencent/cos/upload/file"
|
||||||
|
:show-file-list="false"
|
||||||
|
:on-success="handleAvatarSuccess"
|
||||||
|
:before-upload="beforeAvatarUpload"
|
||||||
|
:on-error="handleAvatarError"
|
||||||
|
>
|
||||||
|
<img v-if="ediObj.imageUrl1" :src="ediObj.imageUrl1" class="avatar" />
|
||||||
|
<el-icon v-else class="avatar-uploader-icon">
|
||||||
|
<Plus />
|
||||||
|
</el-icon>
|
||||||
|
</el-upload>
|
||||||
|
</div>
|
||||||
|
<!-- 成员数量上限 -->
|
||||||
|
<div style="margin-bottom: 25px; margin-top: 10px">
|
||||||
|
<span
|
||||||
|
style="display: inline-block; margin-right: 20px"
|
||||||
|
class="col-sm-2 control-label"
|
||||||
|
>成员数量上限</span
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="ediObj.guildNumber"
|
||||||
|
style="width: 75%"
|
||||||
|
class="input"
|
||||||
|
></el-input>
|
||||||
|
</div>
|
||||||
|
<template #footer>
|
||||||
|
<span class="dialog-footer">
|
||||||
|
<el-button @click="editDialog = false">取消</el-button>
|
||||||
|
<el-button type="primary" @click="editDialogClick()">
|
||||||
|
确认
|
||||||
|
</el-button>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</el-dialog>
|
||||||
|
<!-- 二次确认删除弹窗 -->
|
||||||
|
<el-dialog v-model="delDialog" title="提示" width="30%" center>
|
||||||
|
<span> 确定要解散该公会吗?</span>
|
||||||
|
<template #footer>
|
||||||
|
<span class="dialog-footer">
|
||||||
|
<el-button @click="delDialog = false">取消</el-button>
|
||||||
|
<el-button type="primary" @click="delClick()"> 确认 </el-button>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</el-dialog>
|
||||||
|
<!-- 编辑收款账户弹窗 -->
|
||||||
|
<el-dialog
|
||||||
|
v-model="payAccountDialog"
|
||||||
|
:title="payAccountTitle"
|
||||||
|
width="28%"
|
||||||
|
center
|
||||||
|
>
|
||||||
|
<!-- Payoneer -->
|
||||||
|
<div style="margin-bottom: 25px; margin-top: 10px">
|
||||||
|
<span
|
||||||
|
style="display: inline-block; margin-right: 20px"
|
||||||
|
class="col-sm-2 control-label"
|
||||||
|
>Payoneer</span
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="payAccount.payoneer"
|
||||||
|
style="width: 75%"
|
||||||
|
class="input"
|
||||||
|
></el-input>
|
||||||
|
</div>
|
||||||
|
<!-- USDT-ERC20 -->
|
||||||
|
<div style="margin-bottom: 25px; margin-top: 10px">
|
||||||
|
<span
|
||||||
|
style="display: inline-block; margin-right: 20px"
|
||||||
|
class="col-sm-2 control-label"
|
||||||
|
>USDT-ERC20</span
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="payAccount.usdt"
|
||||||
|
style="width: 75%"
|
||||||
|
class="input"
|
||||||
|
></el-input>
|
||||||
|
</div>
|
||||||
|
<!-- PayPal -->
|
||||||
|
<div style="margin-bottom: 25px; margin-top: 10px">
|
||||||
|
<span
|
||||||
|
style="display: inline-block; margin-right: 20px"
|
||||||
|
class="col-sm-2 control-label"
|
||||||
|
>PayPal</span
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="payAccount.payPal"
|
||||||
|
style="width: 75%"
|
||||||
|
class="input"
|
||||||
|
></el-input>
|
||||||
|
</div>
|
||||||
|
<template #footer>
|
||||||
|
<span class="dialog-footer">
|
||||||
|
<el-button @click="payAccountDialog = false">取消</el-button>
|
||||||
|
<el-button type="primary" @click="payAccountClick()">
|
||||||
|
保存
|
||||||
|
</el-button>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</el-dialog>
|
||||||
|
<!-- 编辑成员弹窗 -->
|
||||||
|
<el-dialog v-model="memberDialog" :title="memberTitle" width="36%" center>
|
||||||
|
<!-- 新增用户 -->
|
||||||
|
<div class="inquire">
|
||||||
|
<span>平台ID</span>
|
||||||
|
<el-input
|
||||||
|
v-model="member.userID"
|
||||||
|
placeholder="请输入新增平台id"
|
||||||
|
class="input"
|
||||||
|
></el-input>
|
||||||
|
<el-button type="primary" @click="addMemberFun()"> 新增 </el-button>
|
||||||
|
</div>
|
||||||
|
<!-- 内嵌表格 -->
|
||||||
|
<el-table
|
||||||
|
v-loading="loading"
|
||||||
|
:data="member.tableData"
|
||||||
|
border
|
||||||
|
style="width: 100%; margin-top: 25px"
|
||||||
|
>
|
||||||
|
<el-table-column align="center" label="用户平台ID">
|
||||||
|
<template v-slot="scope">
|
||||||
|
{{ scope.row.erbanNo
|
||||||
|
}}{{
|
||||||
|
scope.row.roleType == 1
|
||||||
|
? "(会长)"
|
||||||
|
: scope.row.roleType == 2
|
||||||
|
? "(管理员)"
|
||||||
|
: ""
|
||||||
|
}}
|
||||||
|
{{ scope.row.enable == false ? "(已离开)" : "" }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="nick" align="center" label="用户昵称" />
|
||||||
|
<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">
|
||||||
|
<el-button
|
||||||
|
@click="setMemberFun(scope.row)"
|
||||||
|
:class="scope.row.roleType == 2 ? 'danger' : 'primary'"
|
||||||
|
:type="scope.row.roleType == 2 ? 'danger' : 'primary'"
|
||||||
|
size="default"
|
||||||
|
:disabled="scope.row.roleType == 1 ? true : false"
|
||||||
|
>{{
|
||||||
|
scope.row.roleType == 1
|
||||||
|
? "会长"
|
||||||
|
: scope.row.roleType == 2
|
||||||
|
? "取消管理员"
|
||||||
|
: "设为管理员"
|
||||||
|
}}</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
@click="
|
||||||
|
memberRemoveObj = scope.row;
|
||||||
|
memberRemoveDialog = true;
|
||||||
|
"
|
||||||
|
class="danger"
|
||||||
|
type="danger"
|
||||||
|
size="default"
|
||||||
|
:disabled="scope.row.roleType == 1 ? true : false"
|
||||||
|
>删除</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<template #footer>
|
||||||
|
<span class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="memberDialog = false">
|
||||||
|
关闭
|
||||||
|
</el-button>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</el-dialog>
|
||||||
|
<!-- 二次确认删除弹窗 -->
|
||||||
|
<el-dialog v-model="memberRemoveDialog" title="提示" width="30%" center>
|
||||||
|
<span> 确定要删除该成员吗?</span>
|
||||||
|
<template #footer>
|
||||||
|
<span class="dialog-footer">
|
||||||
|
<el-button @click="memberRemoveDialog = false">取消</el-button>
|
||||||
|
<el-button type="primary" @click="delmemberRemoveClick()">
|
||||||
|
确认
|
||||||
|
</el-button>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
pageFamily,
|
||||||
|
exportInfo,
|
||||||
|
create,
|
||||||
|
update,
|
||||||
|
dismiss,
|
||||||
|
savePayAccount,
|
||||||
|
manageListFamilyMember,
|
||||||
|
addMember,
|
||||||
|
setManager,
|
||||||
|
removeMember,
|
||||||
|
listPartitionInfo,
|
||||||
|
} from "@/api/noblemanNew/noblemanNew";
|
||||||
|
// @ts-ignore
|
||||||
|
import { dateFormat } from "@/utils/system-helper";
|
||||||
|
// @ts-ignore
|
||||||
|
import { ElMessage } from "element-plus";
|
||||||
|
export default {
|
||||||
|
name: "GuildInfoNewCustomerService",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
loading: false,
|
||||||
|
delDialog: false,
|
||||||
|
delDialogData: null,
|
||||||
|
//查询所需条件对象
|
||||||
|
inquire: {
|
||||||
|
userId: "",
|
||||||
|
referrer: "",
|
||||||
|
time: "",
|
||||||
|
partitionId: "",
|
||||||
|
partitionArr: [],
|
||||||
|
},
|
||||||
|
//新增所需对象
|
||||||
|
resource: {
|
||||||
|
id: "",
|
||||||
|
nick: "",
|
||||||
|
referrer: "",
|
||||||
|
},
|
||||||
|
// 表格
|
||||||
|
tableData: [],
|
||||||
|
// 新增弹窗
|
||||||
|
addDialog: false,
|
||||||
|
// 分页
|
||||||
|
total: 10, //总页数
|
||||||
|
currentPage: 1, //页码
|
||||||
|
pageSize: 10, //条数
|
||||||
|
// 编辑弹窗
|
||||||
|
editDialog: false,
|
||||||
|
ediObj: {
|
||||||
|
leaderId: "",
|
||||||
|
leaderNick: "",
|
||||||
|
guildNick: "",
|
||||||
|
guildNumber: "",
|
||||||
|
id: "",
|
||||||
|
imageUrl1: "",
|
||||||
|
imageUrl2: "",
|
||||||
|
},
|
||||||
|
// 收款账户弹窗
|
||||||
|
payAccountDialog: false,
|
||||||
|
payAccountTitle: "(会长昵称【ID:0】)的收款账户",
|
||||||
|
payAccountNew: {},
|
||||||
|
payAccount: {
|
||||||
|
payoneer: "",
|
||||||
|
usdt: "",
|
||||||
|
payPal: "",
|
||||||
|
},
|
||||||
|
// 新增成员弹窗
|
||||||
|
memberDialog: false,
|
||||||
|
memberTitle: "【公会名称】成员信息",
|
||||||
|
memberNew: {},
|
||||||
|
member: {
|
||||||
|
userID: "",
|
||||||
|
tableData: [],
|
||||||
|
},
|
||||||
|
// 删除成员弹窗
|
||||||
|
memberRemoveDialog: false,
|
||||||
|
memberRemoveObj: {},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
listPartitionInfo().then((res) => {
|
||||||
|
this.inquire.partitionArr = res.data;
|
||||||
|
this.inquire.partitionId = this.inquire.partitionArr[0].id;
|
||||||
|
this.getData();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 查询接口
|
||||||
|
getData() {
|
||||||
|
this.loading = true;
|
||||||
|
let time = this.inquire.time;
|
||||||
|
let startTime = "";
|
||||||
|
let endTime = "";
|
||||||
|
if (time && time.length > 0) {
|
||||||
|
startTime = dateFormat(this.inquire.time[0], "yyyy-MM-dd hh:mm:ss");
|
||||||
|
endTime = dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss");
|
||||||
|
}
|
||||||
|
pageFamily({
|
||||||
|
erbanNo: this.inquire.userId,
|
||||||
|
referrer: this.inquire.referrer,
|
||||||
|
familyName: this.inquire.nick,
|
||||||
|
partitionId: this.inquire.partitionId,
|
||||||
|
// startDate: startTime,
|
||||||
|
// endDate: endTime,
|
||||||
|
pageNum: this.currentPage,
|
||||||
|
pageSize: this.pageSize,
|
||||||
|
}).then((res) => {
|
||||||
|
this.total = res.data.total;
|
||||||
|
this.tableData = res.data.rows;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 打开成员信息弹窗
|
||||||
|
memberDialogFun(val) {
|
||||||
|
var than = this;
|
||||||
|
than.memberTitle = `【${val.name}】成员信息`;
|
||||||
|
than.memberNew = val;
|
||||||
|
manageListFamilyMember({
|
||||||
|
guildId: val.id,
|
||||||
|
}).then((res) => {
|
||||||
|
this.member.tableData = res.data;
|
||||||
|
than.memberDialog = true;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 二次确认删除成员
|
||||||
|
delmemberRemoveClick() {
|
||||||
|
removeMember({
|
||||||
|
guildMemberId: this.memberRemoveObj.guildMemberId,
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: "删除成功",
|
||||||
|
type: "success",
|
||||||
|
});
|
||||||
|
manageListFamilyMember({
|
||||||
|
guildId: this.memberNew.id,
|
||||||
|
}).then((res) => {
|
||||||
|
this.member.tableData = res.data;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: res.message,
|
||||||
|
type: "error",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
this.memberRemoveDialog = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 设置管理员
|
||||||
|
setMemberFun(val) {
|
||||||
|
setManager({
|
||||||
|
guildMemberId: val.guildMemberId,
|
||||||
|
status: val.roleType == 3 ? true : val.roleType == 2 ? false : null,
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: "设置成功!",
|
||||||
|
type: "success",
|
||||||
|
});
|
||||||
|
this.member.userID = "";
|
||||||
|
manageListFamilyMember({
|
||||||
|
guildId: this.memberNew.id,
|
||||||
|
}).then((res) => {
|
||||||
|
this.member.tableData = res.data;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: res.message,
|
||||||
|
type: "error",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 新增成员
|
||||||
|
addMemberFun() {
|
||||||
|
addMember({
|
||||||
|
erbanNo: this.member.userID,
|
||||||
|
guildId: this.memberNew.id,
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: "保存成功!",
|
||||||
|
type: "success",
|
||||||
|
});
|
||||||
|
this.member.userID = "";
|
||||||
|
manageListFamilyMember({
|
||||||
|
guildId: this.memberNew.id,
|
||||||
|
}).then((res) => {
|
||||||
|
this.member.tableData = res.data;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: "保存失败!",
|
||||||
|
type: "error",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 打开收款账户弹窗
|
||||||
|
payAccountDialogFun(val) {
|
||||||
|
this.payAccountTitle = `(${val.ownerNick}【ID:${val.ownerErbanNo}】)的收款账户`;
|
||||||
|
this.payAccount.payoneer = val.payAccount.payoneer;
|
||||||
|
this.payAccount.usdt = val.payAccount.usdt;
|
||||||
|
this.payAccount.payPal = val.payAccount.payPal;
|
||||||
|
this.payAccountDialog = true;
|
||||||
|
this.payAccountNew = val;
|
||||||
|
},
|
||||||
|
// 保存收款账户
|
||||||
|
payAccountClick() {
|
||||||
|
savePayAccount({
|
||||||
|
id: this.payAccountNew.payAccount.familyId,
|
||||||
|
payPal: this.payAccount.payPal,
|
||||||
|
payoneer: this.payAccount.payoneer,
|
||||||
|
usdt: this.payAccount.usdt,
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: "保存成功!",
|
||||||
|
type: "success",
|
||||||
|
});
|
||||||
|
this.payAccountDialog = false;
|
||||||
|
this.getData();
|
||||||
|
} else {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: "保存失败!",
|
||||||
|
type: "error",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 导出
|
||||||
|
exportInfoFun() {
|
||||||
|
let time = this.inquire.time;
|
||||||
|
let startTime = "";
|
||||||
|
let endTime = "";
|
||||||
|
if (time && time.length > 0) {
|
||||||
|
startTime = dateFormat(this.inquire.time[0], "yyyy-MM-dd hh:mm:ss");
|
||||||
|
endTime = dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss");
|
||||||
|
}
|
||||||
|
exportInfo({
|
||||||
|
erbanNo: this.inquire.userId,
|
||||||
|
referrer: this.inquire.referrer,
|
||||||
|
familyName: this.inquire.nick,
|
||||||
|
// startDate: startTime,
|
||||||
|
// endDate: endTime,
|
||||||
|
}).then((res) => {});
|
||||||
|
},
|
||||||
|
// 添加
|
||||||
|
add() {
|
||||||
|
this.addDialog = false;
|
||||||
|
create({
|
||||||
|
erbanNo: this.resource.id,
|
||||||
|
referrer: this.resource.referrer,
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: "添加成功",
|
||||||
|
type: "success",
|
||||||
|
});
|
||||||
|
this.getData();
|
||||||
|
} else {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: res.message,
|
||||||
|
type: "error",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 编辑按钮
|
||||||
|
ediClick(res) {
|
||||||
|
var obj = res.row;
|
||||||
|
this.ediObj.leaderId = obj.ownerErbanNo;
|
||||||
|
this.ediObj.leaderNick = obj.ownerNick;
|
||||||
|
this.ediObj.guildNick = obj.name;
|
||||||
|
this.ediObj.guildNumber = obj.memberNumLimit;
|
||||||
|
this.ediObj.id = obj.id;
|
||||||
|
this.ediObj.imageUrl1 = obj.backgroundUrl;
|
||||||
|
this.ediObj.imageUrl2 = obj.avatar;
|
||||||
|
this.editDialog = true;
|
||||||
|
},
|
||||||
|
// 二次确认弹窗
|
||||||
|
editDialogClick() {
|
||||||
|
console.log(this.ediObj);
|
||||||
|
update({
|
||||||
|
id: this.ediObj.id,
|
||||||
|
memberNumLimit: this.ediObj.guildNumber,
|
||||||
|
backgroundUrl: this.ediObj.imageUrl1,
|
||||||
|
avatar: this.ediObj.imageUrl2,
|
||||||
|
name: this.ediObj.guildNick,
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: res.message,
|
||||||
|
type: "success",
|
||||||
|
});
|
||||||
|
this.getData();
|
||||||
|
this.editDialog = false;
|
||||||
|
} else {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: res.message,
|
||||||
|
type: "error",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
this.delDialog = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 解散按钮
|
||||||
|
delClick() {
|
||||||
|
console.log(this.delDialogData.id);
|
||||||
|
var guildId = this.delDialogData.id;
|
||||||
|
dismiss({ guildId }).then((res) => {
|
||||||
|
console.log();
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.getData();
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: "解散成功",
|
||||||
|
type: "success",
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: res.message,
|
||||||
|
type: "error",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
this.delDialog = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
beforeAvatarUpload() {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: "上传中~",
|
||||||
|
type: "warning",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleAvatarError() {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: "上传失败!",
|
||||||
|
type: "error",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleAvatarSuccess(res, file) {
|
||||||
|
console.log(file);
|
||||||
|
this.ediObj.imageUrl1 = file.response.data;
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: "上传成功!",
|
||||||
|
type: "success",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleAvatarSuccess2(res, file) {
|
||||||
|
console.log(file);
|
||||||
|
this.ediObj.imageUrl2 = file.response.data;
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: "上传成功!",
|
||||||
|
type: "success",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 分页导航
|
||||||
|
handleSizeChange() {
|
||||||
|
this.getData();
|
||||||
|
},
|
||||||
|
handleCurrentChange() {
|
||||||
|
this.getData();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</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>
|
@@ -3,13 +3,24 @@
|
|||||||
<!-- 时间选择器 -->
|
<!-- 时间选择器 -->
|
||||||
<div class="inquire">
|
<div class="inquire">
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<span class="demonstration">日期</span>
|
<span class="demonstration">开始时间</span>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="inquire.time"
|
v-model="inquire.time[0]"
|
||||||
type="daterange"
|
type="date"
|
||||||
range-separator="至"
|
placeholder="开始时间"
|
||||||
start-placeholder="开始日期"
|
format="YYYY-MM-DD 00:00:00"
|
||||||
end-placeholder="结束日期"
|
>
|
||||||
|
</el-date-picker>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="inquire">
|
||||||
|
<div class="block">
|
||||||
|
<span class="demonstration">结束时间</span>
|
||||||
|
<el-date-picker
|
||||||
|
v-model="inquire.time[1]"
|
||||||
|
type="date"
|
||||||
|
placeholder="结束时间"
|
||||||
|
format="YYYY-MM-DD 23:59:59"
|
||||||
>
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</div>
|
</div>
|
||||||
@@ -193,11 +204,24 @@ export default {
|
|||||||
getData() {
|
getData() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
let time = this.inquire.time;
|
let time = this.inquire.time;
|
||||||
let startTime = "";
|
let startTime = null;
|
||||||
let endTime = "";
|
let endTime = null;
|
||||||
if (time && time.length > 0) {
|
if (time.length > 0) {
|
||||||
startTime = dateFormat(this.inquire.time[0], "yyyy-MM-dd hh:mm:ss");
|
startTime = this.inquire.time[0]
|
||||||
endTime = dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss");
|
? dateFormat(this.inquire.time[0], "yyyy-MM-dd 00:00:00")
|
||||||
|
: null;
|
||||||
|
endTime = this.inquire.time[1]
|
||||||
|
? dateFormat(this.inquire.time[1], "yyyy-MM-dd 23:59:59")
|
||||||
|
: null;
|
||||||
|
}
|
||||||
|
if (!startTime || !endTime) {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: "请输入开始时间和结束时间",
|
||||||
|
type: "error",
|
||||||
|
});
|
||||||
|
this.loading = false;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
incomePageFamily({
|
incomePageFamily({
|
||||||
erbanNo: this.inquire.id,
|
erbanNo: this.inquire.id,
|
||||||
@@ -208,8 +232,17 @@ export default {
|
|||||||
pageNum: this.currentPage,
|
pageNum: this.currentPage,
|
||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
this.total = res.data.total;
|
if (res.code == 200) {
|
||||||
this.tableData = res.data.rows;
|
this.total = res.data.total;
|
||||||
|
this.tableData = res.data.rows;
|
||||||
|
this.loading = false;
|
||||||
|
} else {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: res.message,
|
||||||
|
type: "error",
|
||||||
|
});
|
||||||
|
}
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
368
src/views/nobleman/newGuildApplicationCustomerService.vue
Normal file
368
src/views/nobleman/newGuildApplicationCustomerService.vue
Normal file
@@ -0,0 +1,368 @@
|
|||||||
|
<template>
|
||||||
|
<div class="box">
|
||||||
|
<!-- 查询 -->
|
||||||
|
<div class="inquire">
|
||||||
|
<span>分区</span>
|
||||||
|
<el-select v-model="inquire.partitionId" placeholder="请选择">
|
||||||
|
<el-option
|
||||||
|
v-for="item in inquire.partitionArr"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.desc"
|
||||||
|
:value="item.id"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
|
<div class="inquire">
|
||||||
|
<span>平台ID</span>
|
||||||
|
<el-input
|
||||||
|
v-model="inquire.userId"
|
||||||
|
placeholder=""
|
||||||
|
class="input"
|
||||||
|
></el-input>
|
||||||
|
</div>
|
||||||
|
<div class="inquire">
|
||||||
|
<span>状态</span>
|
||||||
|
<el-select v-model="inquire.status" placeholder="请选择">
|
||||||
|
<el-option
|
||||||
|
v-for="item in inquire.statusArr"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.desc"
|
||||||
|
:value="item.id"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
|
<!-- 时间选择器 -->
|
||||||
|
<div class="inquire">
|
||||||
|
<div class="block">
|
||||||
|
<span class="demonstration">日期</span>
|
||||||
|
<el-date-picker
|
||||||
|
v-model="inquire.time"
|
||||||
|
type="datetimerange"
|
||||||
|
range-separator="至"
|
||||||
|
start-placeholder="开始日期"
|
||||||
|
end-placeholder="结束日期"
|
||||||
|
>
|
||||||
|
</el-date-picker>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 查询按钮 -->
|
||||||
|
<el-button class="primary" type="primary" @click="getData()"
|
||||||
|
>查询</el-button
|
||||||
|
>
|
||||||
|
<el-button class="primary" type="primary" @click="addDialog = true"
|
||||||
|
>重置搜索</el-button
|
||||||
|
>
|
||||||
|
|
||||||
|
<!-- 表格 -->
|
||||||
|
<el-table
|
||||||
|
v-loading="loading"
|
||||||
|
:data="tableData"
|
||||||
|
border
|
||||||
|
style="width: 100%; margin-top: 25px"
|
||||||
|
>
|
||||||
|
<el-table-column prop="id" align="center" label="序号" />
|
||||||
|
<el-table-column prop="guildId" align="center" label="公会ID" />
|
||||||
|
<el-table-column prop="erbanNo" align="center" label="公会长ID" />
|
||||||
|
<el-table-column prop="nick" align="center" label="公会长昵称" />
|
||||||
|
<el-table-column align="center" prop="giftInfo" label="公会长头像">
|
||||||
|
<template v-slot="scope">
|
||||||
|
<el-image
|
||||||
|
style="width: 100px; height: 100px"
|
||||||
|
:src="scope.row.avatar"
|
||||||
|
:zoom-rate="1.1"
|
||||||
|
:preview-src-list="[scope.row.avatar]"
|
||||||
|
fit="scale-down"
|
||||||
|
preview-teleported="true"
|
||||||
|
hide-on-click-modal="true"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="guildName" align="center" label="公会昵称" />
|
||||||
|
<el-table-column align="center" prop="giftInfo" label="公会头像">
|
||||||
|
<template v-slot="scope">
|
||||||
|
<el-image
|
||||||
|
style="width: 100px; height: 100px"
|
||||||
|
:src="scope.row.guildAvatar"
|
||||||
|
:zoom-rate="1.1"
|
||||||
|
:preview-src-list="[scope.row.guildAvatar]"
|
||||||
|
fit="scale-down"
|
||||||
|
preview-teleported="true"
|
||||||
|
hide-on-click-modal="true"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<!-- guildContact -->
|
||||||
|
<el-table-column
|
||||||
|
prop=""
|
||||||
|
align="center"
|
||||||
|
label="公会联系方式"
|
||||||
|
/>
|
||||||
|
<el-table-column align="center" prop="idCard" label="公会长身份证件">
|
||||||
|
<template v-slot="scope">
|
||||||
|
<el-image
|
||||||
|
style="width: 100px; height: 100px"
|
||||||
|
:src="scope.row.idCard"
|
||||||
|
:zoom-rate="1.1"
|
||||||
|
:preview-src-list="[scope.row.idCard]"
|
||||||
|
fit="scale-down"
|
||||||
|
preview-teleported="true"
|
||||||
|
hide-on-click-modal="true"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="inviteErbanNo" align="center" label="邀请人ID" />
|
||||||
|
<el-table-column prop="inviteCheck" align="center" label="邀请人证明">
|
||||||
|
<template v-slot="scope">
|
||||||
|
<el-image
|
||||||
|
style="width: 100px; height: 100px"
|
||||||
|
:src="scope.row.inviteCheck"
|
||||||
|
:zoom-rate="1.1"
|
||||||
|
:preview-src-list="[scope.row.inviteCheck]"
|
||||||
|
fit="scale-down"
|
||||||
|
preview-teleported="true"
|
||||||
|
hide-on-click-modal="true"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="applyTime" align="center" label="申请时间" />
|
||||||
|
<el-table-column prop="auditStatus" align="center" label="状态">
|
||||||
|
<template v-slot="scope">
|
||||||
|
{{
|
||||||
|
scope.row.auditStatus == 0
|
||||||
|
? "未审核"
|
||||||
|
: scope.row.auditStatus == 1
|
||||||
|
? "已通过"
|
||||||
|
: "拒绝"
|
||||||
|
}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="adminName" align="center" label="操作人" />
|
||||||
|
<el-table-column align="center" label="操作">
|
||||||
|
<template v-slot="scope">
|
||||||
|
<el-button
|
||||||
|
v-show="scope.row.auditStatus == 0"
|
||||||
|
@click="agree(scope.row.id)"
|
||||||
|
type="text"
|
||||||
|
size="default"
|
||||||
|
>同意</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
v-show="scope.row.auditStatus == 0"
|
||||||
|
@click="refuse(scope.row.id)"
|
||||||
|
type="text"
|
||||||
|
size="default"
|
||||||
|
>拒绝</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<!-- 分页 -->
|
||||||
|
<el-pagination
|
||||||
|
style="margin-top: 10px"
|
||||||
|
class="paginationClass"
|
||||||
|
v-model:current-page="currentPage"
|
||||||
|
v-model:page-size="pageSize"
|
||||||
|
:page-sizes="[10, 20, 30, 40, 50, 100, 200, 300, 400, 500, 999999999]"
|
||||||
|
layout="sizes, prev, pager, next"
|
||||||
|
:total="total"
|
||||||
|
@size-change="handleSizeChange"
|
||||||
|
@current-change="handleCurrentChange"
|
||||||
|
/>
|
||||||
|
<!-- 二次确认删除弹窗 -->
|
||||||
|
<el-dialog v-model="delDialog" title="提示" width="30%" center>
|
||||||
|
<span> 确定要解散该公会吗?</span>
|
||||||
|
<template #footer>
|
||||||
|
<span class="dialog-footer">
|
||||||
|
<el-button @click="delDialog = false">取消</el-button>
|
||||||
|
<el-button type="primary" @click="delClick()"> 确认 </el-button>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
listPartitionInfo,
|
||||||
|
guildApplyList,
|
||||||
|
guildApplyAudit,
|
||||||
|
} from "@/api/nobleman/nobleman";
|
||||||
|
// @ts-ignore
|
||||||
|
import { dateFormat } from "@/utils/system-helper";
|
||||||
|
// @ts-ignore
|
||||||
|
import { ElMessage } from "element-plus";
|
||||||
|
export default {
|
||||||
|
name: "newGuildApplicationCustomerService",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
loading: false,
|
||||||
|
//查询所需条件对象
|
||||||
|
inquire: {
|
||||||
|
partitionId: "",
|
||||||
|
partitionArr: [],
|
||||||
|
userId: "",
|
||||||
|
status: -1,
|
||||||
|
statusArr: [
|
||||||
|
{ desc: "未审核", id: 0 },
|
||||||
|
{ desc: "全部", id: -1 },
|
||||||
|
{ desc: "通过", id: 1 },
|
||||||
|
{ desc: "已拒绝", id: 2 },
|
||||||
|
],
|
||||||
|
time: "",
|
||||||
|
},
|
||||||
|
// 表格
|
||||||
|
tableData: [],
|
||||||
|
// 新增弹窗
|
||||||
|
addDialog: false,
|
||||||
|
// 分页
|
||||||
|
total: 10, //总页数
|
||||||
|
currentPage: 1, //页码
|
||||||
|
pageSize: 10, //条数
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
listPartitionInfo().then((res) => {
|
||||||
|
console.log(res.data);
|
||||||
|
this.inquire.partitionArr = res.data;
|
||||||
|
this.inquire.partitionId = this.inquire.partitionArr[0].id;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 查询接口
|
||||||
|
getData() {
|
||||||
|
this.loading = true;
|
||||||
|
let time = this.inquire.time;
|
||||||
|
let startTime = "";
|
||||||
|
let endTime = "";
|
||||||
|
if (time && time.length > 0) {
|
||||||
|
startTime = dateFormat(this.inquire.time[0], "yyyy-MM-dd hh:mm:ss");
|
||||||
|
endTime = dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss");
|
||||||
|
}
|
||||||
|
guildApplyList({
|
||||||
|
partitionId: this.inquire.partitionId,
|
||||||
|
erbanNo: this.inquire.userId,
|
||||||
|
auditStatus: this.inquire.status,
|
||||||
|
startDate: startTime,
|
||||||
|
endDate: endTime,
|
||||||
|
pageNo: this.currentPage,
|
||||||
|
pageSize: this.pageSize,
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.total = res.data.total;
|
||||||
|
this.tableData = res.data.rows;
|
||||||
|
this.loading = false;
|
||||||
|
} else {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: res.message,
|
||||||
|
type: "error",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
agree(id) {
|
||||||
|
guildApplyAudit({
|
||||||
|
auditStatus: 1,
|
||||||
|
id,
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.getData();
|
||||||
|
} else {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: res.message,
|
||||||
|
type: "error",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
refuse(id) {
|
||||||
|
guildApplyAudit({
|
||||||
|
auditStatus: 2,
|
||||||
|
id,
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.getData();
|
||||||
|
} else {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: res.message,
|
||||||
|
type: "error",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
beforeAvatarUpload() {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: "上传中~",
|
||||||
|
type: "warning",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleAvatarError() {
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: "上传失败!",
|
||||||
|
type: "error",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleAvatarSuccess2(res, file) {
|
||||||
|
this.ediObj.imageUrl2 = file.response.data;
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: "上传成功!",
|
||||||
|
type: "success",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleAvatarSuccess(res, file) {
|
||||||
|
this.ediObj.imageUrl1 = file.response.data;
|
||||||
|
ElMessage({
|
||||||
|
showClose: true,
|
||||||
|
message: "上传成功!",
|
||||||
|
type: "success",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 分页导航
|
||||||
|
handleSizeChange() {
|
||||||
|
this.getData();
|
||||||
|
},
|
||||||
|
handleCurrentChange() {
|
||||||
|
this.getData();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</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>
|
@@ -75,7 +75,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<div id="mapObjHtml">
|
<div id="mapObjHtml" style="display:none">
|
||||||
<span
|
<span
|
||||||
style="
|
style="
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
@@ -125,6 +125,33 @@ export default {
|
|||||||
$(function () {
|
$(function () {
|
||||||
userRegion();
|
userRegion();
|
||||||
$("#table").bootstrapTable("destroy");
|
$("#table").bootstrapTable("destroy");
|
||||||
|
var picker1 = $("#startTime").datetimepicker({
|
||||||
|
format: "yyyy-mm-dd hh:ii:00",
|
||||||
|
todayBtn: true,
|
||||||
|
autoclose: true,
|
||||||
|
});
|
||||||
|
var picker2 = $("#endTime").datetimepicker({
|
||||||
|
format: "yyyy-mm-dd hh:ii:00",
|
||||||
|
todayBtn: true,
|
||||||
|
autoclose: true,
|
||||||
|
});
|
||||||
|
picker1.on("changeDate", function () {
|
||||||
|
var date = $("#startTime").datetimepicker("getDate");
|
||||||
|
picker2.datetimepicker("setStartDate", date);
|
||||||
|
});
|
||||||
|
picker2.on("changeDate", function () {
|
||||||
|
var date = $("#endTime").datetimepicker("getDate");
|
||||||
|
picker1.datetimepicker("setEndDate", date);
|
||||||
|
});
|
||||||
|
|
||||||
|
//导出功能
|
||||||
|
$("#btnExport").on("click", function () {
|
||||||
|
$("#searchForm").submit();
|
||||||
|
});
|
||||||
|
|
||||||
|
// 查询刷新
|
||||||
|
$("#btnSearch").on("click", function () {
|
||||||
|
|
||||||
$("#table").bootstrapTable({
|
$("#table").bootstrapTable({
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
@@ -239,34 +266,8 @@ export default {
|
|||||||
console.log("load fail");
|
console.log("load fail");
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
var picker1 = $("#startTime").datetimepicker({
|
|
||||||
format: "yyyy-mm-dd hh:ii:00",
|
|
||||||
todayBtn: true,
|
|
||||||
autoclose: true,
|
|
||||||
});
|
|
||||||
var picker2 = $("#endTime").datetimepicker({
|
|
||||||
format: "yyyy-mm-dd hh:ii:00",
|
|
||||||
todayBtn: true,
|
|
||||||
autoclose: true,
|
|
||||||
});
|
|
||||||
picker1.on("changeDate", function () {
|
|
||||||
var date = $("#startTime").datetimepicker("getDate");
|
|
||||||
picker2.datetimepicker("setStartDate", date);
|
|
||||||
});
|
|
||||||
picker2.on("changeDate", function () {
|
|
||||||
var date = $("#endTime").datetimepicker("getDate");
|
|
||||||
picker1.datetimepicker("setEndDate", date);
|
|
||||||
});
|
|
||||||
|
|
||||||
//导出功能
|
|
||||||
$("#btnExport").on("click", function () {
|
|
||||||
$("#searchForm").submit();
|
|
||||||
});
|
|
||||||
|
|
||||||
// 查询刷新
|
|
||||||
$("#btnSearch").on("click", function () {
|
|
||||||
TableHelper.doRefresh("#table");
|
TableHelper.doRefresh("#table");
|
||||||
|
$('#mapObjHtml').show();
|
||||||
});
|
});
|
||||||
|
|
||||||
//用户地区
|
//用户地区
|
||||||
|
@@ -1,412 +1,553 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="content">
|
<section class="content">
|
||||||
<div class="box box-primary">
|
<div class="box box-primary">
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<!-- Content Header (Page header) -->
|
<!-- Content Header (Page header) -->
|
||||||
<section class="content-header">
|
<section class="content-header">
|
||||||
<h1 id="itemTitle"></h1>
|
<h1 id="itemTitle"></h1>
|
||||||
</section>
|
</section>
|
||||||
<!-- .content -->
|
<!-- .content -->
|
||||||
<div id="table"></div>
|
<div id="table"></div>
|
||||||
<div id="toolbar">
|
<div id="toolbar">
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
<label for="searchValue" class="col-sm-3 control-label">Peko ID:</label>
|
<label for="searchValue" class="col-sm-1 control-label">ID:</label>
|
||||||
<div class="col-sm-3"><input type="text" class="form-control" name="searchValue" id="searchValue">
|
<div class="col-sm-2">
|
||||||
</div>
|
<input
|
||||||
<label for="searchType" class="col-sm-3 control-label">地区:</label>
|
type="text"
|
||||||
<div class="col-sm-3">
|
class="form-control"
|
||||||
<select name="searchType" id="searchType" data-btn-class="btn-warning" class="form-control">
|
name="searchValue"
|
||||||
<option value="0" selected="selected">全部</option>
|
id="searchValue"
|
||||||
</select>
|
/>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<button id="btnSearch" class="btn btn-default">
|
|
||||||
<i class="glyphicon glyphicon-search"></i>查询
|
|
||||||
</button>
|
|
||||||
<button id="btnAdd" class="btn btn-default">
|
|
||||||
<i class="glyphicon glyphicon-plus-sign"></i>新增
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<label for="partitionId" class="col-sm-1 control-label">分区:</label>
|
||||||
</section>
|
<div class="col-sm-2">
|
||||||
|
<select
|
||||||
<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="modalLabel">
|
name="partitionId"
|
||||||
<div class="modal-dialog" role="document">
|
id="partitionId"
|
||||||
<div class="modal-content">
|
data-btn-class="btn-warning"
|
||||||
<div class="modal-header">
|
class="form-control"
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
|
>
|
||||||
aria-hidden="true">×</span>
|
</select>
|
||||||
</button>
|
|
||||||
<h4 class="modal-title" id="modalLabel">代充信息</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<form class="form-horizontal">
|
|
||||||
<input type="hidden" name="id" id="id" />
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="erbanNo" class="col-sm-3 control-label">Peko ID:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input type="text" class="form-control" id="erbanNo">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">代充地区</label>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
|
|
||||||
<button type="button" class="btn btn-primary" id="save">确认</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<label for="searchType" class="col-sm-1 control-label">地区:</label>
|
||||||
|
<div class="col-sm-2">
|
||||||
|
<select
|
||||||
|
name="searchType"
|
||||||
|
id="searchType"
|
||||||
|
data-btn-class="btn-warning"
|
||||||
|
class="form-control"
|
||||||
|
>
|
||||||
|
<option value="0" selected="selected">全部</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-12">
|
||||||
|
<button id="btnSearch" class="btn btn-default">
|
||||||
|
<i class="glyphicon glyphicon-search"></i>查询
|
||||||
|
</button>
|
||||||
|
<button id="btnAdd" class="btn btn-default">
|
||||||
|
<i class="glyphicon glyphicon-plus-sign"></i>新增
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
<div class="modal fade" id="tipModal" tabindex="-1" role="dialog" aria-labelledby="modalLabel">
|
<div
|
||||||
<div class="modal-dialog" role="document">
|
class="modal fade"
|
||||||
<div class="modal-content">
|
id="editModal"
|
||||||
<div class="modal-header">
|
tabindex="-1"
|
||||||
<h4 class="modal-title">提示信息</h4>
|
role="dialog"
|
||||||
</div>
|
aria-labelledby="modalLabel"
|
||||||
<div class="modal-body" id="tipMsg"></div>
|
>
|
||||||
</div>
|
<div class="modal-dialog" role="document">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="close"
|
||||||
|
data-dismiss="modal"
|
||||||
|
aria-label="Close"
|
||||||
|
>
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
<h4 class="modal-title" id="modalLabel">代充信息</h4>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<form class="form-horizontal">
|
||||||
|
<input type="hidden" name="id" id="id" />
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="erbanNo" class="col-sm-3 control-label"
|
||||||
|
>Peko ID:</label
|
||||||
|
>
|
||||||
|
<div class="col-sm-9">
|
||||||
|
<input type="text" class="form-control" id="erbanNo" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="starLevel" class="col-sm-3 control-label"
|
||||||
|
>信誉值:</label
|
||||||
|
>
|
||||||
|
<div class="col-sm-9">
|
||||||
|
<select name="starLevel" id="starLevel">
|
||||||
|
<option value="">-- 请选择 --</option>
|
||||||
|
<option value="1">1</option>
|
||||||
|
<option value="2">2</option>
|
||||||
|
<option value="3">3</option>
|
||||||
|
<option value="4">4</option>
|
||||||
|
<option value="5">5</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">代充地区</label>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-default" data-dismiss="modal">
|
||||||
|
取消
|
||||||
|
</button>
|
||||||
|
<button type="button" class="btn btn-primary" id="save">确认</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
class="modal fade"
|
||||||
|
id="tipModal"
|
||||||
|
tabindex="-1"
|
||||||
|
role="dialog"
|
||||||
|
aria-labelledby="modalLabel"
|
||||||
|
>
|
||||||
|
<div class="modal-dialog" role="document">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h4 class="modal-title">提示信息</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body" id="tipMsg"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import TableHelper from '@/utils/bootstrap-table-helper';
|
import TableHelper from "@/utils/bootstrap-table-helper";
|
||||||
|
|
||||||
|
var partitionArray;
|
||||||
var regionArray;
|
var regionArray;
|
||||||
export default {
|
export default {
|
||||||
name: "RechargeUserView",
|
name: "RechargeUserView",
|
||||||
setup() {
|
setup() {
|
||||||
//切换只读
|
//切换只读
|
||||||
function editSeqText(obj) {
|
function editSeqText(obj) {
|
||||||
if (!regionArray) {
|
if (!regionArray) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var $input = $(obj);
|
var $input = $(obj);
|
||||||
const typeArray = $("input:checkbox[name='type']:checked").serializeArray();
|
const typeArray = $(
|
||||||
if (!typeArray) {
|
"input:checkbox[name='type']:checked"
|
||||||
return;
|
).serializeArray();
|
||||||
}
|
if (!typeArray) {
|
||||||
for (let i = 0; i < regionArray.length; i++) {
|
return;
|
||||||
var region = regionArray[i];
|
}
|
||||||
var type = region.type;
|
for (let i = 0; i < regionArray.length; i++) {
|
||||||
var isCheck = false;
|
var region = regionArray[i];
|
||||||
for (let j = 0; j < typeArray.length; j++) {
|
var type = region.type;
|
||||||
var value = typeArray[j].value;
|
var isCheck = false;
|
||||||
if (type == value) {
|
for (let j = 0; j < typeArray.length; j++) {
|
||||||
isCheck = true;
|
var value = typeArray[j].value;
|
||||||
break;
|
if (type == value) {
|
||||||
}
|
isCheck = true;
|
||||||
}
|
break;
|
||||||
var $seq = $('#seq' + type);
|
}
|
||||||
if (isCheck) {
|
|
||||||
$seq.removeAttr('readonly');
|
|
||||||
} else {
|
|
||||||
$seq.attr('readonly', 'true');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
window.editSeqText = editSeqText;
|
var $seq = $("#seq" + type);
|
||||||
return {
|
if (isCheck) {
|
||||||
editSeqText
|
$seq.removeAttr("readonly");
|
||||||
};
|
} else {
|
||||||
},
|
$seq.attr("readonly", "true");
|
||||||
created() {
|
}
|
||||||
this.$nextTick(function () {
|
}
|
||||||
this.initData();
|
}
|
||||||
|
window.editSeqText = editSeqText;
|
||||||
|
return {
|
||||||
|
editSeqText,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.$nextTick(function () {
|
||||||
|
this.initData();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
initData() {
|
||||||
|
$(function () {
|
||||||
|
//分区
|
||||||
|
partitionArray = listPartitionInfo();
|
||||||
|
//地区
|
||||||
|
regionArray = chargeRegion();
|
||||||
|
|
||||||
|
$("#table").bootstrapTable("destroy");
|
||||||
|
$("#table").bootstrapTable({
|
||||||
|
columns: [
|
||||||
|
{
|
||||||
|
field: "erbanNo",
|
||||||
|
title: "Peko ID",
|
||||||
|
align: "center",
|
||||||
|
width: "5%",
|
||||||
|
},
|
||||||
|
{ field: "nick", title: "昵称", align: "center", width: "5%" },
|
||||||
|
{
|
||||||
|
field: "starLevel",
|
||||||
|
title: "信誉值",
|
||||||
|
align: "center",
|
||||||
|
width: "5%",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: "createTime",
|
||||||
|
title: "首次加入代充时间",
|
||||||
|
align: "center",
|
||||||
|
width: "5%",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: "type",
|
||||||
|
title: "地区",
|
||||||
|
align: "center",
|
||||||
|
width: "5%",
|
||||||
|
formatter: function (val, row, index) {
|
||||||
|
var value = "";
|
||||||
|
if (regionArray) {
|
||||||
|
for (var i = 0, len = regionArray.length; i < len; i++) {
|
||||||
|
var region = regionArray[i];
|
||||||
|
var name = region.name;
|
||||||
|
var type = region.type;
|
||||||
|
if ((val & type) != 0) {
|
||||||
|
value += name;
|
||||||
|
if (i != len - 1) {
|
||||||
|
value += "<br>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: "userRegions",
|
||||||
|
title: "排序",
|
||||||
|
align: "center",
|
||||||
|
width: "5%",
|
||||||
|
formatter: function (val, row, index) {
|
||||||
|
var value = "";
|
||||||
|
if (row.userRegions) {
|
||||||
|
for (var i = 0, len = row.userRegions.length; i < len; i++) {
|
||||||
|
var userRegion = row.userRegions[i];
|
||||||
|
var name = userRegion.name;
|
||||||
|
var seq = userRegion.seq;
|
||||||
|
value += name + ":" + seq;
|
||||||
|
if (i != len - 1) {
|
||||||
|
value += "<br>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: "outDiamondNum",
|
||||||
|
title: "最近30天转出金币",
|
||||||
|
align: "center",
|
||||||
|
width: "5%",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: "id",
|
||||||
|
title: "操作",
|
||||||
|
align: "center",
|
||||||
|
width: "5%",
|
||||||
|
valign: "middle",
|
||||||
|
formatter: function (val, row, index) {
|
||||||
|
return (
|
||||||
|
'<button class="btn btn-sm btn-default opt-edit" data-index="' +
|
||||||
|
index +
|
||||||
|
'">编辑</button>' +
|
||||||
|
'<button class="btn btn-sm btn-default opt-del" data-index="' +
|
||||||
|
index +
|
||||||
|
'">删除</button>'
|
||||||
|
);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
cache: false,
|
||||||
|
striped: true,
|
||||||
|
showRefresh: false,
|
||||||
|
pageSize: 20,
|
||||||
|
pagination: true,
|
||||||
|
pageList: [20, 50, 100],
|
||||||
|
search: false,
|
||||||
|
sidePagination: "server", //表示服务端请求
|
||||||
|
//设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
|
||||||
|
//设置为limit可以获取limit, offset, search, sort, order
|
||||||
|
queryParamsType: "undefined",
|
||||||
|
queryParams: function queryParams(params) {
|
||||||
|
//设置查询参数
|
||||||
|
var param = {
|
||||||
|
page: params.pageNumber,
|
||||||
|
pageSize: params.pageSize,
|
||||||
|
erbanNo: $("#searchValue").val(),
|
||||||
|
partitionId: $("#partitionId").val(),
|
||||||
|
regionType: $("#searchType").val(),
|
||||||
|
starLevel: $("#starLevel").val(),
|
||||||
|
};
|
||||||
|
return param;
|
||||||
|
},
|
||||||
|
toolbar: "#toolbar",
|
||||||
|
url: "/admin/recharge/user/page",
|
||||||
|
onLoadSuccess: function () {
|
||||||
|
//加载成功时执行
|
||||||
|
console.log("load success");
|
||||||
|
},
|
||||||
|
onLoadError: function () {
|
||||||
|
//加载失败时执行
|
||||||
|
console.log("load fail");
|
||||||
|
},
|
||||||
});
|
});
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
initData() {
|
|
||||||
$(function () {
|
|
||||||
//地区
|
|
||||||
regionArray = chargeRegion();
|
|
||||||
$('#table').bootstrapTable('destroy');
|
|
||||||
$('#table').bootstrapTable({
|
|
||||||
columns: [
|
|
||||||
{ field: 'erbanNo', title: 'Peko ID', align: 'center', width: '5%' },
|
|
||||||
{ field: 'nick', title: '昵称', align: 'center', width: '5%' },
|
|
||||||
{ field: 'createTime', title: '首次加入代充时间', align: 'center', width: '5%' },
|
|
||||||
{
|
|
||||||
field: 'type',
|
|
||||||
title: '地区',
|
|
||||||
align: 'center',
|
|
||||||
width: '5%',
|
|
||||||
formatter: function (val, row, index) {
|
|
||||||
var value = '';
|
|
||||||
if (regionArray) {
|
|
||||||
for (var i = 0, len = regionArray.length; i < len; i++) {
|
|
||||||
var region = regionArray[i];
|
|
||||||
var name = region.name;
|
|
||||||
var type = region.type;
|
|
||||||
if ((val & type) != 0) {
|
|
||||||
value += name;
|
|
||||||
if (i != len - 1) {
|
|
||||||
value += '<br>';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
field: 'userRegions',
|
|
||||||
title: '排序',
|
|
||||||
align: 'center',
|
|
||||||
width: '5%',
|
|
||||||
formatter: function (val, row, index) {
|
|
||||||
var value = '';
|
|
||||||
if (row.userRegions) {
|
|
||||||
for (var i = 0, len = row.userRegions.length; i < len; i++) {
|
|
||||||
var userRegion = row.userRegions[i];
|
|
||||||
var name = userRegion.name;
|
|
||||||
var seq = userRegion.seq;
|
|
||||||
value += name + ':' + seq;
|
|
||||||
if (i != len - 1) {
|
|
||||||
value += '<br>';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{ field: 'outDiamondNum', title: '最近30天转出金币', align: 'center', width: '5%' },
|
|
||||||
{
|
|
||||||
field: 'id',
|
|
||||||
title: '操作',
|
|
||||||
align: 'center',
|
|
||||||
width: '5%',
|
|
||||||
valign: 'middle',
|
|
||||||
formatter: function (val, row, index) {
|
|
||||||
return '<button class="btn btn-sm btn-default opt-edit" data-index="' + index + '">编辑</button>' + '<button class="btn btn-sm btn-default opt-del" data-index="' + index + '">删除</button>';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
cache: false,
|
|
||||||
striped: true,
|
|
||||||
showRefresh: false,
|
|
||||||
pageSize: 20,
|
|
||||||
pagination: true,
|
|
||||||
pageList: [20, 50, 100],
|
|
||||||
search: false,
|
|
||||||
sidePagination: "server", //表示服务端请求
|
|
||||||
//设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
|
|
||||||
//设置为limit可以获取limit, offset, search, sort, order
|
|
||||||
queryParamsType: "undefined",
|
|
||||||
queryParams: function queryParams(params) { //设置查询参数
|
|
||||||
var param = {
|
|
||||||
page: params.pageNumber,
|
|
||||||
pageSize: params.pageSize,
|
|
||||||
erbanNo: $('#searchValue').val(),
|
|
||||||
regionType: $('#searchType').val()
|
|
||||||
};
|
|
||||||
return param;
|
|
||||||
},
|
|
||||||
toolbar: '#toolbar',
|
|
||||||
url: '/admin/recharge/user/page',
|
|
||||||
onLoadSuccess: function () { //加载成功时执行
|
|
||||||
console.log("load success");
|
|
||||||
},
|
|
||||||
onLoadError: function () { //加载失败时执行
|
|
||||||
console.log("load fail");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
//地区
|
//分区
|
||||||
function chargeRegion() {
|
function listPartitionInfo() {
|
||||||
var array;
|
var array;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "get",
|
type: "get",
|
||||||
url: "/admin/charge/region/list",
|
url: "/partition/listPartitionInfo",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: false,
|
async: false,
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.success == 'true' || json.code == 200) {
|
if (json.success == "true" || json.code == 200) {
|
||||||
array = json.data;
|
array = json.data;
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
var $select = $('#searchType');
|
var $select = $("#partitionId");
|
||||||
for (let i = 0; i < array.length; i++) {
|
for (let i = 0; i < array.length; i++) {
|
||||||
var $option = $('<option value="' + array[i].type + '" />');
|
var $option = $('<option value="' + array[i].id + '" />');
|
||||||
$option.html(array[i].name);
|
$option.html(array[i].desc);
|
||||||
$select.append($option);
|
$select.append($option);
|
||||||
}
|
}
|
||||||
return array;
|
return array;
|
||||||
}
|
|
||||||
|
|
||||||
//新增
|
|
||||||
$('#btnAdd').on('click', function () {
|
|
||||||
$("#id").val('');
|
|
||||||
$("#erbanNo").val('');
|
|
||||||
showRegion();
|
|
||||||
$("#editModal").modal('show');
|
|
||||||
});
|
|
||||||
|
|
||||||
// 查询刷新
|
|
||||||
$('#btnSearch').on('click', function () {
|
|
||||||
TableHelper.doRefresh('#table');
|
|
||||||
});
|
|
||||||
|
|
||||||
//展示地区
|
|
||||||
function showRegion() {
|
|
||||||
if (!regionArray) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var $form = $('#editModal .modal-body .form-horizontal');
|
|
||||||
for (let i = 0, len = regionArray.length; i < len; i++) {
|
|
||||||
$('#region' + i).remove();
|
|
||||||
var region = regionArray[i];
|
|
||||||
var name = region.name;
|
|
||||||
var type = region.type;
|
|
||||||
var $formGroup = $('<div/>');
|
|
||||||
$formGroup.attr('id', 'region' + i);
|
|
||||||
$formGroup.attr('class', 'form-group');
|
|
||||||
var $label = $('<label/>');
|
|
||||||
$label.attr('class', 'col-sm-3 control-label');
|
|
||||||
$label.html('<input type="checkbox" name="type" value="' + type + '" onclick=\"editSeqText(this);\"/> ' + name);
|
|
||||||
$formGroup.append($label);
|
|
||||||
var $div = $('<div/>');
|
|
||||||
$div.attr('class', 'col-sm-9');
|
|
||||||
$div.html('<input type="text" readonly class="form-control" id="seq' + type + '" value="0"/>');
|
|
||||||
$formGroup.append($div);
|
|
||||||
$form.append($formGroup);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//保存
|
|
||||||
$("#save").click(function () {
|
|
||||||
const msg = '确定要保存吗?';
|
|
||||||
if (confirm(msg)) {
|
|
||||||
var id = $('#id').val();
|
|
||||||
const typeArray = $("input:checkbox[name='type']:checked").serializeArray();
|
|
||||||
if (!typeArray) {
|
|
||||||
$("#tipMsg").text("代充地区不能为空");
|
|
||||||
$("#tipModal").modal('show');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var userRegionArray = [];
|
|
||||||
for (let i = 0; i < regionArray.length; i++) {
|
|
||||||
var region = regionArray[i];
|
|
||||||
var name = region.name;
|
|
||||||
var seq = 0;
|
|
||||||
var isCheck = false;
|
|
||||||
for (let j = 0; j < typeArray.length; j++) {
|
|
||||||
console.log(typeArray[j]);
|
|
||||||
if (typeArray[j] && region.type == typeArray[j].value) {
|
|
||||||
seq = $('#seq' + region.type).val();
|
|
||||||
isCheck = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var userRegion = {
|
|
||||||
type: region.type,
|
|
||||||
name: region.name,
|
|
||||||
isCheck: isCheck,
|
|
||||||
seq: seq
|
|
||||||
};
|
|
||||||
userRegionArray.push(userRegion);
|
|
||||||
}
|
|
||||||
var data = {
|
|
||||||
erbanNo: $('#erbanNo').val(),
|
|
||||||
userRegions: JSON.stringify(userRegionArray)
|
|
||||||
};
|
|
||||||
if (id) {
|
|
||||||
data.id = id;
|
|
||||||
}
|
|
||||||
$.ajax({
|
|
||||||
type: "post",
|
|
||||||
url: "/admin/recharge/user/save",
|
|
||||||
data: data,
|
|
||||||
dataType: "json",
|
|
||||||
success: function (json) {
|
|
||||||
if (json.success == 'true' || json.code == 200) {
|
|
||||||
$("#tipMsg").text("保存成功");
|
|
||||||
$("#tipModal").modal('show');
|
|
||||||
TableHelper.doRefresh("#table");
|
|
||||||
$("#editModal").modal('hide');
|
|
||||||
} else {
|
|
||||||
$("#tipMsg").text("保存失败." + json.message);
|
|
||||||
$("#tipModal").modal('show');
|
|
||||||
$("#editModal").modal('hide');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
//编辑
|
|
||||||
$('#table').on('click', '.opt-edit', function () {
|
|
||||||
const currentData = $('#table').bootstrapTable('getData')[$(this).data('index')];
|
|
||||||
showRegion();
|
|
||||||
var id = currentData.id;
|
|
||||||
var erbanNo = currentData.erbanNo;
|
|
||||||
var userRegions = currentData.userRegions;
|
|
||||||
$("#erbanNo").val(erbanNo);
|
|
||||||
$("#id").val(id);
|
|
||||||
if (regionArray) {
|
|
||||||
for (let i = 0; i < regionArray.length; i++) {
|
|
||||||
var region = regionArray[i];
|
|
||||||
var seq = 0;
|
|
||||||
var isCheck = false;
|
|
||||||
for (let j = 0; j < userRegions.length; j++) {
|
|
||||||
var userRegion = userRegions[j];
|
|
||||||
if (region.type == userRegion.type) {
|
|
||||||
seq = userRegion.seq;
|
|
||||||
isCheck = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isCheck) {
|
|
||||||
$('input:checkbox[value="' + region.type + '"]').prop('checked', true);
|
|
||||||
$('#seq' + region.type).removeAttr('readonly');
|
|
||||||
$('#seq' + region.type).val(seq);
|
|
||||||
} else {
|
|
||||||
$("input:checkbox[value='" + region.type + "']").prop('checked', false);
|
|
||||||
$('#seq' + region.type).attr('readonly', 'true');
|
|
||||||
$('#seq' + region.type).val(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$("#editModal").modal('show');
|
|
||||||
});
|
|
||||||
|
|
||||||
//删除
|
|
||||||
$('#table').on('click', '.opt-del', function () {
|
|
||||||
const currentData = $('#table').bootstrapTable('getData')[$(this).data('index')];
|
|
||||||
var id = currentData.id;
|
|
||||||
const msg = '确定要删除吗?';
|
|
||||||
if (confirm(msg)) {
|
|
||||||
$.ajax({
|
|
||||||
type: "get",
|
|
||||||
url: "/admin/recharge/user/del?id=" + id,
|
|
||||||
dataType: "json",
|
|
||||||
success: function (json) {
|
|
||||||
if (json.success == 'true' || json.code == 200) {
|
|
||||||
$("#tipMsg").text("删除成功");
|
|
||||||
$("#tipModal").modal('show');
|
|
||||||
TableHelper.doRefresh("#table");
|
|
||||||
$("#editModal").modal('hide');
|
|
||||||
} else {
|
|
||||||
$("#tipMsg").text("删除失败." + json.message);
|
|
||||||
$("#tipModal").modal('show');
|
|
||||||
$("#editModal").modal('hide');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
},
|
|
||||||
|
|
||||||
|
//地区
|
||||||
|
function chargeRegion() {
|
||||||
|
var array;
|
||||||
|
$.ajax({
|
||||||
|
type: "get",
|
||||||
|
url: "/admin/charge/region/list",
|
||||||
|
dataType: "json",
|
||||||
|
async: false,
|
||||||
|
success: function (json) {
|
||||||
|
if (json.success == "true" || json.code == 200) {
|
||||||
|
array = json.data;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
var $select = $("#searchType");
|
||||||
|
for (let i = 0; i < array.length; i++) {
|
||||||
|
var $option = $('<option value="' + array[i].type + '" />');
|
||||||
|
$option.html(array[i].desc);
|
||||||
|
$select.append($option);
|
||||||
|
}
|
||||||
|
return array;
|
||||||
|
}
|
||||||
|
|
||||||
|
//新增
|
||||||
|
$("#btnAdd").on("click", function () {
|
||||||
|
$("#id").val("");
|
||||||
|
$("#erbanNo").val("");
|
||||||
|
$("#starLevel").val("");
|
||||||
|
showRegion();
|
||||||
|
$("#editModal").modal("show");
|
||||||
|
});
|
||||||
|
|
||||||
|
// 查询刷新
|
||||||
|
$("#btnSearch").on("click", function () {
|
||||||
|
TableHelper.doRefresh("#table");
|
||||||
|
});
|
||||||
|
|
||||||
|
//展示地区
|
||||||
|
function showRegion() {
|
||||||
|
if (!regionArray) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var $form = $("#editModal .modal-body .form-horizontal");
|
||||||
|
for (let i = 0, len = regionArray.length; i < len; i++) {
|
||||||
|
$("#region" + i).remove();
|
||||||
|
var region = regionArray[i];
|
||||||
|
var name = region.name;
|
||||||
|
var type = region.type;
|
||||||
|
var $formGroup = $("<div/>");
|
||||||
|
$formGroup.attr("id", "region" + i);
|
||||||
|
$formGroup.attr("class", "form-group");
|
||||||
|
var $label = $("<label/>");
|
||||||
|
$label.attr("class", "col-sm-3 control-label");
|
||||||
|
$label.html(
|
||||||
|
'<input type="checkbox" name="type" value="' +
|
||||||
|
type +
|
||||||
|
'" onclick="editSeqText(this);"/> ' +
|
||||||
|
name
|
||||||
|
);
|
||||||
|
$formGroup.append($label);
|
||||||
|
var $div = $("<div/>");
|
||||||
|
$div.attr("class", "col-sm-9");
|
||||||
|
$div.html(
|
||||||
|
'<input type="text" readonly class="form-control" id="seq' +
|
||||||
|
type +
|
||||||
|
'" value="0"/>'
|
||||||
|
);
|
||||||
|
$formGroup.append($div);
|
||||||
|
$form.append($formGroup);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//保存
|
||||||
|
$("#save").click(function () {
|
||||||
|
const msg = "确定要保存吗?";
|
||||||
|
if (confirm(msg)) {
|
||||||
|
var id = $("#id").val();
|
||||||
|
const typeArray = $(
|
||||||
|
"input:checkbox[name='type']:checked"
|
||||||
|
).serializeArray();
|
||||||
|
if (!typeArray) {
|
||||||
|
$("#tipMsg").text("代充地区不能为空");
|
||||||
|
$("#tipModal").modal("show");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var userRegionArray = [];
|
||||||
|
for (let i = 0; i < regionArray.length; i++) {
|
||||||
|
var region = regionArray[i];
|
||||||
|
var name = region.name;
|
||||||
|
var seq = 0;
|
||||||
|
var isCheck = false;
|
||||||
|
for (let j = 0; j < typeArray.length; j++) {
|
||||||
|
console.log(typeArray[j]);
|
||||||
|
if (typeArray[j] && region.type == typeArray[j].value) {
|
||||||
|
seq = $("#seq" + region.type).val();
|
||||||
|
isCheck = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var userRegion = {
|
||||||
|
type: region.type,
|
||||||
|
name: region.name,
|
||||||
|
isCheck: isCheck,
|
||||||
|
seq: seq,
|
||||||
|
};
|
||||||
|
userRegionArray.push(userRegion);
|
||||||
|
}
|
||||||
|
var data = {
|
||||||
|
erbanNo: $("#erbanNo").val(),
|
||||||
|
starLevel: $("#starLevel").val(),
|
||||||
|
userRegions: JSON.stringify(userRegionArray),
|
||||||
|
};
|
||||||
|
if (id) {
|
||||||
|
data.id = id;
|
||||||
|
}
|
||||||
|
$.ajax({
|
||||||
|
type: "post",
|
||||||
|
url: "/admin/recharge/user/save",
|
||||||
|
data: data,
|
||||||
|
dataType: "json",
|
||||||
|
success: function (json) {
|
||||||
|
if (json.success == "true" || json.code == 200) {
|
||||||
|
$("#tipMsg").text("保存成功");
|
||||||
|
$("#tipModal").modal("show");
|
||||||
|
TableHelper.doRefresh("#table");
|
||||||
|
$("#editModal").modal("hide");
|
||||||
|
} else {
|
||||||
|
$("#tipMsg").text("保存失败." + json.message);
|
||||||
|
$("#tipModal").modal("show");
|
||||||
|
$("#editModal").modal("hide");
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
//编辑
|
||||||
|
$("#table").on("click", ".opt-edit", function () {
|
||||||
|
const currentData =
|
||||||
|
$("#table").bootstrapTable("getData")[$(this).data("index")];
|
||||||
|
showRegion();
|
||||||
|
var id = currentData.id;
|
||||||
|
var erbanNo = currentData.erbanNo;
|
||||||
|
var starLevel = currentData.starLevel;
|
||||||
|
var userRegions = currentData.userRegions;
|
||||||
|
$("#erbanNo").val(erbanNo);
|
||||||
|
$("#starLevel").val(starLevel);
|
||||||
|
$("#id").val(id);
|
||||||
|
if (regionArray) {
|
||||||
|
for (let i = 0; i < regionArray.length; i++) {
|
||||||
|
var region = regionArray[i];
|
||||||
|
var seq = 0;
|
||||||
|
var isCheck = false;
|
||||||
|
for (let j = 0; j < userRegions.length; j++) {
|
||||||
|
var userRegion = userRegions[j];
|
||||||
|
if (region.type == userRegion.type) {
|
||||||
|
seq = userRegion.seq;
|
||||||
|
isCheck = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (isCheck) {
|
||||||
|
$('input:checkbox[value="' + region.type + '"]').prop(
|
||||||
|
"checked",
|
||||||
|
true
|
||||||
|
);
|
||||||
|
$("#seq" + region.type).removeAttr("readonly");
|
||||||
|
$("#seq" + region.type).val(seq);
|
||||||
|
} else {
|
||||||
|
$("input:checkbox[value='" + region.type + "']").prop(
|
||||||
|
"checked",
|
||||||
|
false
|
||||||
|
);
|
||||||
|
$("#seq" + region.type).attr("readonly", "true");
|
||||||
|
$("#seq" + region.type).val(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$("#editModal").modal("show");
|
||||||
|
});
|
||||||
|
|
||||||
|
//删除
|
||||||
|
$("#table").on("click", ".opt-del", function () {
|
||||||
|
const currentData =
|
||||||
|
$("#table").bootstrapTable("getData")[$(this).data("index")];
|
||||||
|
var id = currentData.id;
|
||||||
|
const msg = "确定要删除吗?";
|
||||||
|
if (confirm(msg)) {
|
||||||
|
$.ajax({
|
||||||
|
type: "get",
|
||||||
|
url: "/admin/recharge/user/del?id=" + id,
|
||||||
|
dataType: "json",
|
||||||
|
success: function (json) {
|
||||||
|
if (json.success == "true" || json.code == 200) {
|
||||||
|
$("#tipMsg").text("删除成功");
|
||||||
|
$("#tipModal").modal("show");
|
||||||
|
TableHelper.doRefresh("#table");
|
||||||
|
$("#editModal").modal("hide");
|
||||||
|
} else {
|
||||||
|
$("#tipMsg").text("删除失败." + json.message);
|
||||||
|
$("#tipModal").modal("show");
|
||||||
|
$("#editModal").modal("hide");
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -83,20 +83,20 @@
|
|||||||
>
|
>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<select name="isTop" id="modal_isTop" class="form-control">
|
<select name="isTop" id="modal_isTop" class="form-control">
|
||||||
<option value=""></option>
|
|
||||||
<option value="1">是</option>
|
<option value="1">是</option>
|
||||||
<option value="0">否</option>
|
<option value="0">否</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="modal_type" class="col-sm-3 control-label"
|
<label for="homeType" class="col-sm-3 control-label"
|
||||||
>房间类型:<font color="red">*</font>:</label
|
>房间类型:<font color="red">*</font>:</label
|
||||||
>
|
>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<select name="type" id="modal_type" class="form-control">
|
<select name="type" id="homeType" class="form-control">
|
||||||
<option value="1">客服房间</option>
|
<option value="0">普通</option>
|
||||||
<option value="2">热门房间</option>
|
<option value="1">热门房间</option>
|
||||||
|
<option value="2">客服房间</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -113,7 +113,7 @@
|
|||||||
min="1"
|
min="1"
|
||||||
max="5"
|
max="5"
|
||||||
placeholder="填入的数字=在首页的第几个位置"
|
placeholder="填入的数字=在首页的第几个位置"
|
||||||
oninput="this.value = Math.min(Math.max(this.value, 1), 5)"
|
oninput="this.value = Math.min(Math.max(this.value, 0), 5)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -283,7 +283,6 @@ export default {
|
|||||||
} else if (val == 0) {
|
} else if (val == 0) {
|
||||||
return "否";
|
return "否";
|
||||||
}
|
}
|
||||||
return "是";
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ field: "seq", title: "置顶排序", align: "center", width: "5%" },
|
{ field: "seq", title: "置顶排序", align: "center", width: "5%" },
|
||||||
@@ -304,23 +303,40 @@ export default {
|
|||||||
formatter: formatTime,
|
formatter: formatTime,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "isHourTop1",
|
field: "hourTop",
|
||||||
title: "小时榜top1",
|
title: "小时榜排名",
|
||||||
align: "center",
|
align: "center",
|
||||||
valign: "middle",
|
valign: "middle",
|
||||||
width: "10%",
|
width: "10%",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: "hotValue",
|
||||||
|
title: "热力值",
|
||||||
|
align: "center",
|
||||||
|
valign: "middle",
|
||||||
|
width: "10%",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: "regionFlag",
|
||||||
|
title: "地区旗帜",
|
||||||
|
align: "center",
|
||||||
|
width: "5%",
|
||||||
formatter: function (val, row, index) {
|
formatter: function (val, row, index) {
|
||||||
return val ? "是" : "否";
|
return "<img src='" + val + "' width='40' height='40'>";
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "isHourTop1",
|
field: "homeType",
|
||||||
title: "周榜top1",
|
title: "房间类型",
|
||||||
align: "center",
|
align: "center",
|
||||||
valign: "middle",
|
valign: "middle",
|
||||||
width: "10%",
|
width: "10%",
|
||||||
formatter: function (val, row, index) {
|
formatter: function (val, row, index) {
|
||||||
return val ? "是" : "否";
|
return val == 1
|
||||||
|
? "热门房间"
|
||||||
|
: val == 0
|
||||||
|
? "普通房间"
|
||||||
|
: "客服房间";
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -404,11 +420,28 @@ export default {
|
|||||||
var roomUid = $("#roomUid").val();
|
var roomUid = $("#roomUid").val();
|
||||||
var seq = $("#modal_seq").val();
|
var seq = $("#modal_seq").val();
|
||||||
var isTop = $("#modal_isTop").val();
|
var isTop = $("#modal_isTop").val();
|
||||||
var type = $("#modal_type").val();
|
var homeType = $("#homeType").val();
|
||||||
var iconContent = $("#modal_iconContent").val();
|
var iconContent = $("#modal_iconContent").val();
|
||||||
var topStart = $("#modal_topStart").val();
|
var topStart = $("#modal_topStart").val();
|
||||||
var topEnd = $("#modal_topEnd").val();
|
var topEnd = $("#modal_topEnd").val();
|
||||||
var isShow = $("#modal_isShow").val();
|
var isShow = $("#modal_isShow").val();
|
||||||
|
if (
|
||||||
|
isTop == 1 && seq <1
|
||||||
|
) {
|
||||||
|
alert("置顶为是时,排序必须大于等于1");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (
|
||||||
|
isTop == "" ||
|
||||||
|
homeType == "" ||
|
||||||
|
seq == "" ||
|
||||||
|
topStart == "" ||
|
||||||
|
topEnd == "" ||
|
||||||
|
isShow == ""
|
||||||
|
) {
|
||||||
|
alert("请填写必填项");
|
||||||
|
return;
|
||||||
|
}
|
||||||
if ($("#addForm").validationEngine("validate")) {
|
if ($("#addForm").validationEngine("validate")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
@@ -416,6 +449,7 @@ export default {
|
|||||||
data: {
|
data: {
|
||||||
id: id,
|
id: id,
|
||||||
roomUid: roomUid,
|
roomUid: roomUid,
|
||||||
|
homeType: homeType,
|
||||||
seq: seq,
|
seq: seq,
|
||||||
isTop: isTop,
|
isTop: isTop,
|
||||||
iconContent: iconContent,
|
iconContent: iconContent,
|
||||||
@@ -449,10 +483,10 @@ export default {
|
|||||||
$("#id").val(null);
|
$("#id").val(null);
|
||||||
$("#modal_seq").val(0);
|
$("#modal_seq").val(0);
|
||||||
$("#modal_isTop").val(0);
|
$("#modal_isTop").val(0);
|
||||||
$("#modal_type").val(0);
|
$("#homeType").val(record.homeType + "");
|
||||||
$("#modal_topStart").val("");
|
$("#modal_topStart").val(formatTime(record.topStart));
|
||||||
$("#modal_topEnd").val("");
|
$("#modal_topEnd").val(formatTime(record.topEnd));
|
||||||
$("#modal_isShow").val(0);
|
$("#modal_isShow").val(1);
|
||||||
$("#roomUid").val(record.roomUid);
|
$("#roomUid").val(record.roomUid);
|
||||||
if (id && id != "null") {
|
if (id && id != "null") {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@@ -466,7 +500,7 @@ export default {
|
|||||||
$("#id").val(id);
|
$("#id").val(id);
|
||||||
$("#modal_seq").val(json.seq);
|
$("#modal_seq").val(json.seq);
|
||||||
$("#modal_isTop").val(json.isTop ? 1 : 0);
|
$("#modal_isTop").val(json.isTop ? 1 : 0);
|
||||||
$("#modal_type").val(json.type);
|
$("#homeType").val(json.homeType);
|
||||||
$("#modal_topStart").val(formatTime(json.topStart));
|
$("#modal_topStart").val(formatTime(json.topStart));
|
||||||
$("#modal_topEnd").val(formatTime(json.topEnd));
|
$("#modal_topEnd").val(formatTime(json.topEnd));
|
||||||
$("#modal_isShow").val(json.isShow ? 1 : 0);
|
$("#modal_isShow").val(json.isShow ? 1 : 0);
|
||||||
|
@@ -101,6 +101,7 @@ export default {
|
|||||||
columns: [
|
columns: [
|
||||||
{ field: 'date', title: '日期', align: 'center', width: '14%' },
|
{ field: 'date', title: '日期', align: 'center', width: '14%' },
|
||||||
{ field: 'googleUsd', title: 'google充值美元', align: 'center', width: '14%' },
|
{ field: 'googleUsd', title: 'google充值美元', align: 'center', width: '14%' },
|
||||||
|
{ field: 'razerUsd', title: 'razer充值', align: 'center', width: '14%' },
|
||||||
{ field: 'payermaxUsd', title: 'payermax充值美元', align: 'center', width: '14%' },
|
{ field: 'payermaxUsd', title: 'payermax充值美元', align: 'center', width: '14%' },
|
||||||
{ field: 'myCardUsd', title: 'myCard充值美元', align: 'center', width: '14%' },
|
{ field: 'myCardUsd', title: 'myCard充值美元', align: 'center', width: '14%' },
|
||||||
{ field: 'startPayUsd', title: 'startPay充值美元', align: 'center', width: '14%' },
|
{ field: 'startPayUsd', title: 'startPay充值美元', align: 'center', width: '14%' },
|
||||||
|
@@ -96,6 +96,7 @@ export default {
|
|||||||
{field: 'iosPayAmount', title: 'IOS支付', align: 'center', width: '5%'},
|
{field: 'iosPayAmount', title: 'IOS支付', align: 'center', width: '5%'},
|
||||||
{field: 'wxMiniAppAmount', title: '小程序支付', align: 'center', width: '5%'},*/
|
{field: 'wxMiniAppAmount', title: '小程序支付', align: 'center', width: '5%'},*/
|
||||||
{ field: 'googleAmount', title: 'google支付', align: 'center', width: '5%' },
|
{ field: 'googleAmount', title: 'google支付', align: 'center', width: '5%' },
|
||||||
|
{ field: 'razerAmount', title: 'razer充值', align: 'center', width: '14%' },
|
||||||
{ field: 'payermaxAmount', title: 'payermax支付', align: 'center', width: '5%' },
|
{ field: 'payermaxAmount', title: 'payermax支付', align: 'center', width: '5%' },
|
||||||
{ field: 'myCardAmount', title: 'MyCard支付', align: 'center', width: '5%' },
|
{ field: 'myCardAmount', title: 'MyCard支付', align: 'center', width: '5%' },
|
||||||
{ field: 'startPayAmount', title: 'startPay支付', align: 'center', width: '5%' },
|
{ field: 'startPayAmount', title: 'startPay支付', align: 'center', width: '5%' },
|
||||||
@@ -163,7 +164,7 @@ export default {
|
|||||||
columns: [
|
columns: [
|
||||||
{ field: 'channel', title: '渠道', align: 'center', width: '5%' },
|
{ field: 'channel', title: '渠道', align: 'center', width: '5%' },
|
||||||
{ field: 'amount', title: '充值金额', align: 'center', width: '5%' },
|
{ field: 'amount', title: '充值金额', align: 'center', width: '5%' },
|
||||||
{ field: 'count', title: '充值笔数', align: 'center', width: '5%' }
|
{ field: 'count', title: '充值笔数', align: 'center', width: '5%' },
|
||||||
|
|
||||||
],
|
],
|
||||||
undefinedText: 0,
|
undefinedText: 0,
|
||||||
|
@@ -101,6 +101,7 @@ export default {
|
|||||||
columns: [
|
columns: [
|
||||||
{ field: 'date', title: '日期', align: 'center', width: '14%' },
|
{ field: 'date', title: '日期', align: 'center', width: '14%' },
|
||||||
{ field: 'googleUsd', title: 'google充值美元', align: 'center', width: '14%' },
|
{ field: 'googleUsd', title: 'google充值美元', align: 'center', width: '14%' },
|
||||||
|
{ field: 'razerUsd', title: 'razer充值', align: 'center', width: '14%' },
|
||||||
{ field: 'payermaxUsd', title: 'payermax充值美元', align: 'center', width: '14%' },
|
{ field: 'payermaxUsd', title: 'payermax充值美元', align: 'center', width: '14%' },
|
||||||
{ field: 'myCardUsd', title: 'myCard充值美元', align: 'center', width: '14%' },
|
{ field: 'myCardUsd', title: 'myCard充值美元', align: 'center', width: '14%' },
|
||||||
{ field: 'startPayUsd', title: 'startPay充值美元', align: 'center', width: '14%' },
|
{ field: 'startPayUsd', title: 'startPay充值美元', align: 'center', width: '14%' },
|
||||||
|
@@ -97,6 +97,7 @@ export default {
|
|||||||
columns: [
|
columns: [
|
||||||
{ field: 'partitionName', title: '分区', align: 'center', width: '25%' },
|
{ field: 'partitionName', title: '分区', align: 'center', width: '25%' },
|
||||||
{ field: 'googleUsd', title: 'google充值美元', align: 'center', width: '25%' },
|
{ field: 'googleUsd', title: 'google充值美元', align: 'center', width: '25%' },
|
||||||
|
{ field: 'razerUsd', title: 'razer充值', align: 'center', width: '14%' },
|
||||||
{ field: 'payermaxUsd', title: 'payermax充值美元', align: 'center', width: '25%' },
|
{ field: 'payermaxUsd', title: 'payermax充值美元', align: 'center', width: '25%' },
|
||||||
{ field: 'myCardUsd', title: 'myCard充值美元', align: 'center', width: '25%' },
|
{ field: 'myCardUsd', title: 'myCard充值美元', align: 'center', width: '25%' },
|
||||||
{ field: 'iosUsd', title: 'ios充值美元', align: 'center', width: '25%' },
|
{ field: 'iosUsd', title: 'ios充值美元', align: 'center', width: '25%' },
|
||||||
|
@@ -115,6 +115,7 @@ export default {
|
|||||||
{field: 'iosPayAmount', title: 'IOS支付', align: 'center', width: '5%'},
|
{field: 'iosPayAmount', title: 'IOS支付', align: 'center', width: '5%'},
|
||||||
{field: 'wxMiniAppAmount', title: '小程序支付', align: 'center', width: '5%'},*/
|
{field: 'wxMiniAppAmount', title: '小程序支付', align: 'center', width: '5%'},*/
|
||||||
{ field: 'googleAmount', title: 'google支付', align: 'center', width: '5%' },
|
{ field: 'googleAmount', title: 'google支付', align: 'center', width: '5%' },
|
||||||
|
{ field: 'razerAmount', title: 'razer充值', align: 'center', width: '14%' },
|
||||||
{ field: 'payermaxAmount', title: 'payermax支付', align: 'center', width: '5%' },
|
{ field: 'payermaxAmount', title: 'payermax支付', align: 'center', width: '5%' },
|
||||||
{ field: 'myCardAmount', title: 'myCard支付', align: 'center', width: '5%' },
|
{ field: 'myCardAmount', title: 'myCard支付', align: 'center', width: '5%' },
|
||||||
{ field: 'startPayAmount', title: 'startPay支付', align: 'center', width: '5%' },
|
{ field: 'startPayAmount', title: 'startPay支付', align: 'center', width: '5%' },
|
||||||
|
@@ -101,6 +101,7 @@ export default {
|
|||||||
columns: [
|
columns: [
|
||||||
{ field: 'date', title: '日期', align: 'center', width: '14%' },
|
{ field: 'date', title: '日期', align: 'center', width: '14%' },
|
||||||
{ field: 'googleUsd', title: 'google充值美元', align: 'center', width: '14%' },
|
{ field: 'googleUsd', title: 'google充值美元', align: 'center', width: '14%' },
|
||||||
|
{ field: 'razerUsd', title: 'razer充值', align: 'center', width: '14%' },
|
||||||
{ field: 'payermaxUsd', title: 'payermax充值美元', align: 'center', width: '14%' },
|
{ field: 'payermaxUsd', title: 'payermax充值美元', align: 'center', width: '14%' },
|
||||||
{ field: 'myCardUsd', title: 'myCard充值美元', align: 'center', width: '14%' },
|
{ field: 'myCardUsd', title: 'myCard充值美元', align: 'center', width: '14%' },
|
||||||
{ field: 'startPayUsd', title: 'startPay充值美元', align: 'center', width: '14%' },
|
{ field: 'startPayUsd', title: 'startPay充值美元', align: 'center', width: '14%' },
|
||||||
|
@@ -101,6 +101,7 @@ export default {
|
|||||||
columns: [
|
columns: [
|
||||||
{ field: 'date', title: '日期', align: 'center', width: '14%' },
|
{ field: 'date', title: '日期', align: 'center', width: '14%' },
|
||||||
{ field: 'googleUsd', title: 'google充值美元', align: 'center', width: '14%' },
|
{ field: 'googleUsd', title: 'google充值美元', align: 'center', width: '14%' },
|
||||||
|
{ field: 'razerUsd', title: 'razer充值1', align: 'center', width: '14%' },
|
||||||
{ field: 'payermaxUsd', title: 'payermax充值美元', align: 'center', width: '14%' },
|
{ field: 'payermaxUsd', title: 'payermax充值美元', align: 'center', width: '14%' },
|
||||||
{ field: 'myCardUsd', title: 'myCard充值美元', align: 'center', width: '14%' },
|
{ field: 'myCardUsd', title: 'myCard充值美元', align: 'center', width: '14%' },
|
||||||
{ field: 'startPayUsd', title: 'startPay充值美元', align: 'center', width: '14%' },
|
{ field: 'startPayUsd', title: 'startPay充值美元', align: 'center', width: '14%' },
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -271,7 +271,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import TableHelper from '@/utils/bootstrap-table-helper';
|
import TableHelper from '@/utils/bootstrap-table-helper';
|
||||||
import { getPartitionInfoList } from '@/api/partition/partitionInfo';
|
import { listAll } from '@/api/partition/partitionInfo';
|
||||||
import { buildSelectOption } from '@/utils/system-helper';
|
import { buildSelectOption } from '@/utils/system-helper';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -902,7 +902,7 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
initPartition() {
|
initPartition() {
|
||||||
getPartitionInfoList().then(res => {
|
listAll().then(res => {
|
||||||
let data = res.data;
|
let data = res.data;
|
||||||
this.partitionInfos = data;
|
this.partitionInfos = data;
|
||||||
buildSelectOption(
|
buildSelectOption(
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user