SS公会奖励发放 - 修复周期下拉列表为空问题,修复导出问题
This commit is contained in:
@@ -3,81 +3,44 @@
|
||||
<!-- 查询 -->
|
||||
<div class="inquire">
|
||||
<span>主播ID</span>
|
||||
<el-input
|
||||
v-model="inquire.anchorId"
|
||||
placeholder=""
|
||||
class="input"
|
||||
></el-input>
|
||||
<el-input v-model="inquire.anchorId" placeholder="" class="input"></el-input>
|
||||
</div>
|
||||
<div class="inquire">
|
||||
<span>公会ID</span>
|
||||
<el-input
|
||||
v-model="inquire.guildId"
|
||||
placeholder=""
|
||||
class="input"
|
||||
></el-input>
|
||||
<el-input v-model="inquire.guildId" placeholder="" class="input"></el-input>
|
||||
</div>
|
||||
<div class="inquire">
|
||||
<span>公会长ID</span>
|
||||
<el-input
|
||||
v-model="inquire.guildUserId"
|
||||
placeholder=""
|
||||
class="input"
|
||||
></el-input>
|
||||
<el-input v-model="inquire.guildUserId" placeholder="" class="input"></el-input>
|
||||
</div>
|
||||
<div class="inquire">
|
||||
<span>周期</span>
|
||||
<el-select v-model="inquire.weekTime" placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in inquire.weekTimeOptions"
|
||||
:key="item.cycleDateBegin"
|
||||
:label="item.cycleDateShow"
|
||||
:value="item.cycleDateBegin"
|
||||
>
|
||||
<el-select v-model="inquire.weekTime" placeholder="请选择" :clearable="true">
|
||||
<el-option v-for="item in inquire.weekTimeOptions" :key="item.cycleDateBegin" :label="item.cycleDateShow"
|
||||
:value="item.cycleDateBegin">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
<div class="inquire">
|
||||
<span>发放状态</span>
|
||||
<el-select v-model="inquire.status" placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in inquire.statusOptions"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
<el-option v-for="item in inquire.statusOptions" :key="item.value" :label="item.label" :value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
<!-- 查询按钮 -->
|
||||
<el-button class="primary" type="primary" @click="getData()"
|
||||
>查询</el-button
|
||||
>
|
||||
<el-button class="primary" type="primary" @click="confirmExport2Excel()"
|
||||
>导出</el-button
|
||||
>
|
||||
<el-button class="warning" type="warning " @click="sendGoldFun()"
|
||||
>批量发放</el-button
|
||||
>
|
||||
<el-button class="primary" type="primary" @click="getData()">查询</el-button>
|
||||
<el-button class="primary" type="primary" @click="confirmExport2Excel()">导出</el-button>
|
||||
<el-button class="warning" type="warning " @click="sendGoldFun()">批量发放</el-button>
|
||||
|
||||
<!-- 表格 -->
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="tableData"
|
||||
ref="multipleTable"
|
||||
@selection-change="handleSelectionChange"
|
||||
border
|
||||
style="width: 100%; margin-top: 25px"
|
||||
>
|
||||
<el-table v-loading="loading" :data="tableData" ref="multipleTable" @selection-change="handleSelectionChange" border
|
||||
style="width: 100%; margin-top: 25px">
|
||||
<el-table-column type="selection" :selectable="callback" label="选择" />
|
||||
<el-table-column prop="cycleDate" align="center" label="周期" />
|
||||
<el-table-column prop="erbanNo" align="center" label="主播ID" />
|
||||
<el-table-column prop="guildId" align="center" label="公会ID" />
|
||||
<el-table-column
|
||||
prop="guildDiamondNum"
|
||||
align="center"
|
||||
label="公会总流水"
|
||||
/>
|
||||
<el-table-column prop="guildDiamondNum" align="center" label="公会总流水" />
|
||||
<el-table-column prop="ssLevelName" align="center" label="公会等级" />
|
||||
<el-table-column prop="diamondNum" align="center" label="主播流水" />
|
||||
<el-table-column prop="memberLevelName" align="center" label="主播档位" />
|
||||
@@ -90,32 +53,20 @@
|
||||
<el-table-column prop="sendUser" align="center" label="发放人" />
|
||||
<el-table-column align="center" label="操作" width="300">
|
||||
<template v-slot="scope">
|
||||
<el-button
|
||||
@click="sendGoldOneFun(scope.row)"
|
||||
:class="scope.row.sendStatusStr == '未发放' ? 'primary' : 'info'"
|
||||
:type="scope.row.sendStatusStr == '未发放' ? 'primary' : 'info'"
|
||||
size="default"
|
||||
:disabled="scope.row.sendStatusStr == '未发放' ? false : true"
|
||||
>{{
|
||||
<el-button @click="sendGoldOneFun(scope.row)" :class="scope.row.sendStatusStr == '未发放' ? 'primary' : 'info'"
|
||||
:type="scope.row.sendStatusStr == '未发放' ? 'primary' : 'info'" size="default"
|
||||
:disabled="scope.row.sendStatusStr == '未发放' ? false : true">{{
|
||||
scope.row.sendStatusStr == "未发放" ? "发放" : "已发放"
|
||||
}}</el-button
|
||||
>
|
||||
}}</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-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" />
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@@ -151,6 +102,7 @@ export default {
|
||||
{ value: 0, label: "未发放" },
|
||||
{ value: 1, label: "已发放" },
|
||||
],
|
||||
partitionId: 2
|
||||
},
|
||||
// 表格
|
||||
tableData: [],
|
||||
@@ -161,7 +113,7 @@ export default {
|
||||
};
|
||||
},
|
||||
created() {
|
||||
cycleDateList().then((res) => {
|
||||
cycleDateList({partitionId:this.inquire.partitionId}).then((res) => {
|
||||
this.inquire.weekTimeOptions = res.data;
|
||||
});
|
||||
this.getData();
|
||||
@@ -178,7 +130,7 @@ export default {
|
||||
endTime = dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss");
|
||||
}
|
||||
list({
|
||||
partitionId: 2,
|
||||
partitionId: this.inquire.partitionId,
|
||||
erbanNo: this.inquire.anchorId,
|
||||
guildId: this.inquire.guildId,
|
||||
ownerErbanNo: this.inquire.guildUserId,
|
||||
@@ -222,6 +174,7 @@ export default {
|
||||
ownerErbanNo: this.inquire.guildUserId,
|
||||
cycleDate: this.inquire.weekTime,
|
||||
status: this.inquire.status,
|
||||
partitionId: this.inquire.partitionId,
|
||||
})
|
||||
.then((res) => {
|
||||
// if (res) {
|
||||
@@ -344,31 +297,38 @@ export default {
|
||||
.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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user