hjr 1 сар өмнө
parent
commit
3dcff8a06d

+ 1 - 0
src/views/main/dashboard/index.vue

@@ -3,6 +3,7 @@
 	<div>
 		<h1>数据总览</h1>
 	</div>
+	<!-- <a href="https://marketing-api.vivo.com.cn/openapi/v1/oauth2/authorize?client_id=20250910036&redirect_uri=https://ltnovel8.weishuitang.com/pro-api/vivoAd/callback&response_type=code&state=123456">跳转授权</a> -->
 	<template v-if="!isTeam">
 		<div class="stats-container">
 		  <div class="stat-item" v-for="(stat, index) in stats" :key="index">

+ 16 - 7
src/views/main/user/userList/index.vue

@@ -1,7 +1,11 @@
 <template>
 	<div class="layout-container">
 		<From :form-items="dynamicFormItems" @formSubmitted="handleFormSubmitted" @formReset="handleFormReset" />
-		<el-button @click="refresh" type="primary" style="width: 100px;margin: 10px 0 -10px;">刷新列表</el-button>
+		<el-row style="margin: 10px 0 -10px;">
+			<el-date-picker v-model="refreshTime" value-format="YYYY-MM-DD" type="date" placeholder="请选择日期"
+			  :clearable="true" class="fixed-width-picker" style="width: 230px;"></el-date-picker>
+			<el-button @click="refresh" type="primary" style="width: 100px;margin-left: 10px;">刷新列表</el-button>
+		</el-row>
 		<div class="layout-container">
 			<Table @getTableData="changeTableData" v-model:page="page" ref="table" :data="tableData"
 				@selection-change="handleSelectionChange" style="margin-top: 10px">
@@ -94,7 +98,6 @@ import { queryGameList } from '@/api/common.js'
 import { beforeAvatarUpload } from '@/utils/index.js'
 import { Plus } from "@element-plus/icons-vue";
 import OssUploader from "@/utils/ossUploader.js";
-const partnerList = ['普通用户','初级合伙人','高级合伙人','团长']
 const ossUploader = new OssUploader();
 // const gameList=
 onBeforeMount(async() => {
@@ -140,14 +143,20 @@ const searchEcpmList = async() =>{
 	ecpmList.value = res
 	ecpmPage.total = res.length;
 }
+// 刷新列表时间
+const refreshTime = ref()
 // 刷新列表
 const refresh = async() =>{
-	const pad = (n) => String(n).padStart(2, '0');
-	const y = new Date().getFullYear();
-	const m = pad(new Date().getMonth() + 1);
-	const d = pad(new Date().getDate());
+	// const pad = (n) => String(n).padStart(2, '0');
+	// const y = new Date().getFullYear();
+	// const m = pad(new Date().getMonth() + 1);
+	// const d = pad(new Date().getDate());
+	if(!refreshTime.value){
+		ElMessage.error("请选择日期");
+		return
+	}
 	const res = await adminAdRecordRefresh({
-		nowTime: `${y}-${m}-${d}`
+		nowTime: refreshTime.value // `${y}-${m}-${d}`
 	})
 	searchFormList();
 	ElMessage.success("刷新成功");