Browse Source

0512merge

main
zry 5 days ago
parent
commit
1fcafa069e
  1. 8
      gold-system/src/views/audit/rechargeAudit.vue
  2. 36
      gold-system/src/views/consume/addConsume.vue
  3. 28
      gold-system/src/views/managerecharge/rate.vue
  4. 2
      gold-system/src/views/recharge/addRecharge.vue
  5. 9
      gold-system/src/views/recharge/allRecharge.vue
  6. 7
      gold-system/src/views/usergold/index.vue
  7. 10
      gold-system/src/views/workspace/index.vue
  8. 4
      gold-system/stats.html

8
gold-system/src/views/audit/rechargeAudit.vue

@ -30,7 +30,7 @@ const columnOptions = ref([
// //
const defaultColumns = ['username', 'jwcode', 'area', 'activityName', 'rechargeGold', 'rechargeWay', 'paidGold', 'freeGold', const defaultColumns = ['username', 'jwcode', 'area', 'activityName', 'rechargeGold', 'rechargeWay', 'paidGold', 'freeGold',
'remark', 'payWay', 'rechargeVoucher', 'name', 'status', 'reson', 'rechargeTime', 'createTime', 'operation', ]
'remark', 'payWay', 'rechargeVoucher', 'name', 'status', 'reson', 'rechargeTime', 'createTime' ]
const selectedColumns = ref([...defaultColumns]) const selectedColumns = ref([...defaultColumns])
// //
const adminData = ref({}) const adminData = ref({})
@ -646,9 +646,9 @@ const trimJwCode = () => {
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="21"> <el-col :span="21">
<div>
<el-text class="mx-1" size="large">显示列</el-text>
<el-select v-model="selectedColumns" multiple placeholder="请选择显示列" size="large" style="width: 800px">
<div style="margin-top: 10px">
<el-text class="mx-1" size="large">请选择您想看到的数据</el-text>
<el-select v-model="selectedColumns" multiple placeholder="请选择您想看到的数据" size="large" style="width: 800px">
<el-option v-for="item in columnOptions" :key="item.prop" :label="item.label" :value="item.prop" /> <el-option v-for="item in columnOptions" :key="item.prop" :label="item.label" :value="item.prop" />
</el-select> </el-select>
</div> </div>

36
gold-system/src/views/consume/addConsume.vue

@ -39,6 +39,7 @@ const addConsume = ref({
rechargeCoin: 0, rechargeCoin: 0,
taskCoin: 0, taskCoin: 0,
updateType: "1", updateType: "1",
indexName:"", //
}); });
// //
const add = async function () { const add = async function () {
@ -130,6 +131,19 @@ const rules = reactive({
{ required: true, message: "消费金币总数不能为空", trigger: "blur" }, { required: true, message: "消费金币总数不能为空", trigger: "blur" },
{ validator: checkFreeGoldRadio, trigger: "blur" }, { validator: checkFreeGoldRadio, trigger: "blur" },
], ],
indexName: [
{
required: true,
validator: (rule, value, callback) => {
if (isHC.value === 1 && !value) {
callback(new Error("请选择指标"));
} else {
callback();
}
},
trigger: ["change", "blur"],
},
]
}); });
// //
const delteConsume = function () { const delteConsume = function () {
@ -305,17 +319,22 @@ const getIndexs = async function (type) {
const isHC = ref(0); const isHC = ref(0);
const handleProductSelect = (productName) => { const handleProductSelect = (productName) => {
// //
indexs.value.productName = productName;
if (productName == "homilychart") {
// indexs.value.productName = productName;
if (productName === "homilychart") {
isHC.value = 1; isHC.value = 1;
addConsume.value.productName = "homilychart"; //
addConsume.value.indexName = ""; //
} else { } else {
isHC.value = 0; isHC.value = 0;
addConsume.value.productName = productName;
addConsume.value.indexName = "";
} }
}; };
const indexs = ref([]); const indexs = ref([]);
const handleIndexSelect = (indexName) => {
indexs.value.productName = "homilychart" + indexName;
console.log("选择的指标是", indexs.value.productName);
const handleIndexSelect = () => {
if (isHC.value === 1 && addConsume.value.indexName) {
addConsume.value.productName = "homilychart" + addConsume.value.indexName;
}
}; };
// //
@ -388,12 +407,13 @@ const handleSelectBlur = (value) => {
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="productName" label="指标" v-if="isHC == 1">
<!-- prop为什么绑定productName -->
<el-form-item prop="indexName" label="指标" v-if="isHC == 1">
<el-select <el-select
v-model="indexs.name"
v-model="addConsume.indexName"
placeholder="请选择" placeholder="请选择"
style="width: 100px" style="width: 100px"
@change="handleIndexSelect(indexs.name)"
@change="handleIndexSelect"
filterable filterable
allow-create allow-create
default-first-option default-first-option

28
gold-system/src/views/managerecharge/rate.vue

@ -101,8 +101,8 @@ const getToday = () => {
const today = new Date() const today = new Date()
// //
const startDate = moment(today).startOf('day').format('YYYY-MM-DD HH:mm:ss') const startDate = moment(today).startOf('day').format('YYYY-MM-DD HH:mm:ss')
//
const endDate = moment(today).endOf('day').format('YYYY-MM-DD HH:mm:ss')
// 00:00:00
const endDate = moment(today).add(1, 'days').startOf('day').format('YYYY-MM-DD HH:mm:ss')
time.value.startTime = startDate time.value.startTime = startDate
time.value.endTime = endDate time.value.endTime = endDate
search() search()
@ -113,8 +113,8 @@ const getYesterday = () => {
const yesterday = moment().subtract(1, 'days') const yesterday = moment().subtract(1, 'days')
// //
const startDate = yesterday.startOf('day').format('YYYY-MM-DD HH:mm:ss') const startDate = yesterday.startOf('day').format('YYYY-MM-DD HH:mm:ss')
//
const endDate = yesterday.endOf('day').format('YYYY-MM-DD HH:mm:ss')
// 00:00:00
const endDate = yesterday.add(1, 'days').startOf('day').format('YYYY-MM-DD HH:mm:ss')
time.value.startTime = startDate time.value.startTime = startDate
time.value.endTime = endDate time.value.endTime = endDate
search() search()
@ -124,8 +124,8 @@ const getYesterday = () => {
const get7Days = () => { const get7Days = () => {
// //
const startDate = moment().subtract(6, 'days').startOf('day').format('YYYY-MM-DD HH:mm:ss') const startDate = moment().subtract(6, 'days').startOf('day').format('YYYY-MM-DD HH:mm:ss')
//
const endDate = moment().endOf('day').format('YYYY-MM-DD HH:mm:ss')
// 00:00:00
const endDate = moment().add(1, 'days').startOf('day').format('YYYY-MM-DD HH:mm:ss')
time.value.startTime = startDate time.value.startTime = startDate
time.value.endTime = endDate time.value.endTime = endDate
search() search()
@ -414,9 +414,9 @@ const rules = reactive({
// //
const handledelete = function () { const handledelete = function () {
value1.value = {}
startTime.value = ''
endTime.value = ''
time.value.startTime = ''
time.value.endTime = ''
getObj.value.pageNum = 1
} }
// //
const checkNumber = function () { const checkNumber = function () {
@ -527,14 +527,14 @@ function handleInput(value) {
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-button <el-button
type="primary"
@click="search"
>查询</el-button>
<el-button
class="button-item" class="button-item"
type="success" type="success"
@click="handledelete"
@click="handledelete()"
>重置</el-button> >重置</el-button>
<el-button
type="primary"
@click="search"
>查询</el-button>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>

2
gold-system/src/views/recharge/addRecharge.vue

@ -84,7 +84,7 @@ const add = async function () {
addRecharge.value.rechargeVoucher = '' addRecharge.value.rechargeVoucher = ''
addRecharge.value.rechargeWay = '客服充值' addRecharge.value.rechargeWay = '客服充值'
addRecharge.value.freeGold = '' addRecharge.value.freeGold = ''
addRecharge.value.rechargeGold = 1
addRecharge.value.rechargeGold = null
addRecharge.value.paidGold = '' addRecharge.value.paidGold = ''
imageUrl.value = '' imageUrl.value = ''
Rate.value = null Rate.value = null

9
gold-system/src/views/recharge/allRecharge.vue

@ -214,8 +214,7 @@ const getToday = function () {
const endDate = new Date( const endDate = new Date(
today.getFullYear(), today.getFullYear(),
today.getMonth(), today.getMonth(),
today.getDate(),
23, 59, 59
today.getDate() + 1
) )
getTime.value = [startDate, endDate] getTime.value = [startDate, endDate]
// //
@ -238,8 +237,7 @@ const getYesterday = function () {
const endDate = new Date( const endDate = new Date(
yesterday.getFullYear(), yesterday.getFullYear(),
yesterday.getMonth(), yesterday.getMonth(),
yesterday.getDate(),
23, 59, 59
yesterday.getDate() + 1
) )
getTime.value = [startDate, endDate] getTime.value = [startDate, endDate]
// //
@ -261,8 +259,7 @@ const get7Days = function () {
const endDate = new Date( const endDate = new Date(
today.getFullYear(), today.getFullYear(),
today.getMonth(), today.getMonth(),
today.getDate(),
23, 59, 59
today.getDate() + 1
) )
getTime.value = [startDate, endDate] getTime.value = [startDate, endDate]
// //

7
gold-system/src/views/usergold/index.vue

@ -152,16 +152,17 @@ const reset = function () {
const getToday = function () { const getToday = function () {
const today = moment() const today = moment()
const startDate = today.startOf('day').toDate() const startDate = today.startOf('day').toDate()
const endDate = today.endOf('day').toDate()
const endDate = today.add(1, 'days').startOf('day').toDate()
getTime.value = [startDate, endDate] getTime.value = [startDate, endDate]
search() search()
} }
// //
const getYesterday = function () { const getYesterday = function () {
const today = moment()
const yesterday = moment().subtract(1, 'day') const yesterday = moment().subtract(1, 'day')
const startDate = yesterday.startOf('day').toDate() const startDate = yesterday.startOf('day').toDate()
const endDate = yesterday.endOf('day').toDate()
const endDate = today.startOf('day').toDate()
getTime.value = [startDate, endDate] getTime.value = [startDate, endDate]
search() search()
} }
@ -169,7 +170,7 @@ const getYesterday = function () {
// 7 // 7
const get7Days = function () { const get7Days = function () {
const startDate = moment().subtract(6, 'day').startOf('day').toDate() const startDate = moment().subtract(6, 'day').startOf('day').toDate()
const endDate = moment().endOf('day').toDate()
const endDate = moment().add(1,'days').startOf('day').toDate()
getTime.value = [startDate, endDate] getTime.value = [startDate, endDate]
search() search()
} }

10
gold-system/src/views/workspace/index.vue

@ -1019,7 +1019,7 @@ onMounted(async function () {
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
position: ['15%', '-3%'], position: ['15%', '-3%'],
show:true, //
show:false, //
formatter: function (params) { formatter: function (params) {
return params.seriesName + '<br/>' + params.name return params.seriesName + '<br/>' + params.name
} }
@ -1029,7 +1029,7 @@ onMounted(async function () {
left: 'center', left: 'center',
orient: 'vertical', orient: 'vertical',
// //
selectedMode: true,
selectedMode: false,
}, },
series: [ series: [
{ {
@ -1061,6 +1061,7 @@ onMounted(async function () {
var yearConsumePie = echarts.init(document.getElementById('yearConsume')) var yearConsumePie = echarts.init(document.getElementById('yearConsume'))
const option4 = { const option4 = {
tooltip: { tooltip: {
show:false, //
trigger: 'item', trigger: 'item',
position: ['15%', '-3%'], position: ['15%', '-3%'],
formatter: function (params) { formatter: function (params) {
@ -1070,7 +1071,8 @@ onMounted(async function () {
legend: { legend: {
bottom: '-1%', bottom: '-1%',
left: 'center', left: 'center',
orient: 'vertical'
orient: 'vertical',
selectedMode: false,
}, },
grid: { grid: {
top: '0%' // 10%使 top: '0%' // 10%使
@ -1105,6 +1107,7 @@ onMounted(async function () {
var nowGoldPie = echarts.init(document.getElementById('nowGold')) var nowGoldPie = echarts.init(document.getElementById('nowGold'))
const option5 = { const option5 = {
tooltip: { tooltip: {
show: false,
trigger: 'item', trigger: 'item',
position: ['15%', '-3%'], position: ['15%', '-3%'],
formatter: function (params) { formatter: function (params) {
@ -1122,6 +1125,7 @@ onMounted(async function () {
} }
}, },
legend: { legend: {
selectedMode: false,
bottom: '-1%', bottom: '-1%',
left: 'center', left: 'center',
orient: 'vertical' orient: 'vertical'

4
gold-system/stats.html
File diff suppressed because it is too large
View File

Loading…
Cancel
Save