|
|
@ -260,7 +260,6 @@ const selectLiveBy = async function (val) { |
|
|
totalNum.value = Number(data.totalNum) || 0; |
|
|
totalNum.value = Number(data.totalNum) || 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 存储分页总数 |
|
|
// 存储分页总数 |
|
|
total.value = result.data.total |
|
|
total.value = result.data.total |
|
|
console.log('total', total.value) |
|
|
console.log('total', total.value) |
|
|
@ -337,8 +336,6 @@ const get7Days = function () { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 处理排序事件 |
|
|
// 处理排序事件 |
|
|
const handleSortChange = (column) => { |
|
|
const handleSortChange = (column) => { |
|
|
console.log('排序字段:', column.prop) |
|
|
console.log('排序字段:', column.prop) |
|
|
@ -502,53 +499,64 @@ const getTagText = (state) => { |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<template> |
|
|
<template> |
|
|
<el-card class="card1" style="margin-bottom: 1vh;"> |
|
|
|
|
|
<div style="margin-bottom: 1vh;display: flex;"> |
|
|
|
|
|
<div style="width: 18vw;margin-right: 1vw;display: flex;align-items: center;"> |
|
|
|
|
|
<el-text>精网号:</el-text> |
|
|
|
|
|
<el-input v-model="beanConsumeLive.jwcode" style="width:10vw;" placeholder="请输入精网号" clearable /> |
|
|
|
|
|
|
|
|
<el-card class="card1" style="margin-bottom: 0.5vh;"> |
|
|
|
|
|
<el-col style="margin-bottom: 1vh"> |
|
|
|
|
|
<div class="select"> |
|
|
|
|
|
<div class="selectRow"> |
|
|
|
|
|
<el-text class="text">精网号:</el-text> |
|
|
|
|
|
<el-input class="selectContent" v-model="beanConsumeLive.jwcode" placeholder="请输入精网号" clearable/> |
|
|
</div> |
|
|
</div> |
|
|
<div style="margin-bottom: 1vh;width:18vw;display: flex;align-items: center;"> |
|
|
|
|
|
<el-text>地区:</el-text> |
|
|
|
|
|
<el-select v-model="beanConsumeLive.dept" placeholder="请选择地区" style="width:10vw" clearable> |
|
|
|
|
|
|
|
|
<div class="selectRow"> |
|
|
|
|
|
<el-text class="text">地区:</el-text> |
|
|
|
|
|
<el-select class="selectContent" v-model="beanConsumeLive.dept" placeholder="请选择地区" clearable> |
|
|
<el-option v-for="(item, index) in dept" :key="index" :label="item" :value="item"/> |
|
|
<el-option v-for="(item, index) in dept" :key="index" :label="item" :value="item"/> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</div> |
|
|
</div> |
|
|
<div style="margin-bottom: 1vh;width:18vw;display: flex;align-items: center;"> |
|
|
|
|
|
<el-text>礼物名称:</el-text> |
|
|
|
|
|
<el-select v-model="beanConsumeLive.gift" placeholder="请选择礼物名称" style="width:10vw" |
|
|
|
|
|
|
|
|
<div class="selectRow"> |
|
|
|
|
|
<el-text class="text">礼物名称:</el-text> |
|
|
|
|
|
<el-select class="selectContent" v-model="beanConsumeLive.gift" placeholder="请选择礼物名称" |
|
|
clearable filterable allow-create default-first-option> |
|
|
clearable filterable allow-create default-first-option> |
|
|
<el-option v-for="(item, index) in gifts" :key="index" :label="item" :value="item"/> |
|
|
<el-option v-for="(item, index) in gifts" :key="index" :label="item" :value="item"/> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</div> |
|
|
</div> |
|
|
<div style="margin-bottom: 1vh;width:18vw;display: flex;align-items: center;"> |
|
|
|
|
|
<el-text>频道:</el-text> |
|
|
|
|
|
<el-select v-model="beanConsumeLive.liveChannel" placeholder="请选择频道" style="width:10vw" |
|
|
|
|
|
|
|
|
<div class="selectRow"> |
|
|
|
|
|
<el-text class="text">频道:</el-text> |
|
|
|
|
|
<el-select class="selectContent" v-model="beanConsumeLive.liveChannel" placeholder="请选择频道" |
|
|
clearable filterable allow-create default-first-option> |
|
|
clearable filterable allow-create default-first-option> |
|
|
<el-option v-for="(item, index) in channels" :key="index" :label="item" :value="item"/> |
|
|
<el-option v-for="(item, index) in channels" :key="index" :label="item" :value="item"/> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</div> |
|
|
</div> |
|
|
<div style="margin-bottom: 1vh;width:18vw;display: flex;align-items: center;"> |
|
|
|
|
|
<el-text>直播间:</el-text> |
|
|
|
|
|
<el-input v-model="beanConsumeLive.liveName" placeholder="请输入直播间" style="width:10vw" |
|
|
|
|
|
|
|
|
<div class="selectRow"> |
|
|
|
|
|
<el-text class="text">直播间:</el-text> |
|
|
|
|
|
<el-input class="selectContent" v-model="beanConsumeLive.liveName" placeholder="请输入直播间" |
|
|
clearable/> |
|
|
clearable/> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div> |
|
|
|
|
|
<el-text>消费时间:</el-text> |
|
|
|
|
|
<el-date-picker v-model="getTime" type="datetimerange" range-separator="至" start-placeholder="起始时间" |
|
|
|
|
|
end-placeholder="结束时间" style="width: 20vw;margin-right: 1vw;" @change="handleDatePickerChange" |
|
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col> |
|
|
|
|
|
<div class="select"> |
|
|
|
|
|
<div class="selectRow" style="width: 31.5vw;"> |
|
|
|
|
|
<el-text class="text">消费时间:</el-text> |
|
|
|
|
|
<el-date-picker class="selectContent" v-model="getTime" type="datetimerange" range-separator="至" |
|
|
|
|
|
start-placeholder="起始时间" |
|
|
|
|
|
end-placeholder="结束时间" style="margin-right:1vw;width:480px" |
|
|
|
|
|
@change="handleDatePickerChange" |
|
|
:default-time="defaultTime"/> |
|
|
:default-time="defaultTime"/> |
|
|
|
|
|
|
|
|
|
|
|
<div v-if="false"> |
|
|
<el-button @click="getToday()" :type="activeTimeRange === 'today' ? 'primary' : ''"> 今</el-button> |
|
|
<el-button @click="getToday()" :type="activeTimeRange === 'today' ? 'primary' : ''"> 今</el-button> |
|
|
<el-button @click="getYesterday()" :type="activeTimeRange === 'yesterday' ? 'primary' : ''"> 昨</el-button> |
|
|
<el-button @click="getYesterday()" :type="activeTimeRange === 'yesterday' ? 'primary' : ''"> 昨</el-button> |
|
|
<el-button @click="get7Days()" :type="activeTimeRange === '7days' ? 'primary' : ''"> 近7天</el-button> |
|
|
<el-button @click="get7Days()" :type="activeTimeRange === '7days' ? 'primary' : ''"> 近7天</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="selectRow" style="justify-content: flex-start;"> |
|
|
|
|
|
|
|
|
<el-button type="success" @click="reset()">重置</el-button> |
|
|
<el-button type="success" @click="reset()">重置</el-button> |
|
|
<el-button type="primary" @click="search()">查询</el-button> |
|
|
<el-button type="primary" @click="search()">查询</el-button> |
|
|
<el-button type="primary" @click="exportExcel()">导出excel</el-button> |
|
|
<el-button type="primary" @click="exportExcel()">导出excel</el-button> |
|
|
<el-button type="primary" @click="openExportList">查看导出列表</el-button> |
|
|
<el-button type="primary" @click="openExportList">查看导出列表</el-button> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-col> |
|
|
</el-card> |
|
|
</el-card> |
|
|
<el-card class="card2"> |
|
|
<el-card class="card2"> |
|
|
<div class="goldStatistics"> |
|
|
<div class="goldStatistics"> |
|
|
@ -671,4 +679,26 @@ const getTagText = (state) => { |
|
|
display: flex; |
|
|
display: flex; |
|
|
margin-top: 20px; |
|
|
margin-top: 20px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 搜索的样式 */ |
|
|
|
|
|
.select { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
|
|
|
|
|
|
.selectRow { |
|
|
|
|
|
width: 17vw; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
justify-content: center; |
|
|
|
|
|
padding: 0 0.5vw; |
|
|
|
|
|
|
|
|
|
|
|
.text { |
|
|
|
|
|
width: 5vw; |
|
|
|
|
|
font-size: 15px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.selectContent { |
|
|
|
|
|
flex: 1; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |