Browse Source

规定注册时间格式

dev
hongxilin 1 week ago
parent
commit
eaeafec5c9
  1. 38
      src/views/UserPermissions/invitedLook.vue

38
src/views/UserPermissions/invitedLook.vue

@ -55,7 +55,7 @@
<div class="search-group3"> <div class="search-group3">
<div class="search-item"> <div class="search-item">
<span class="form-label">注册时间</span> <span class="form-label">注册时间</span>
<el-date-picker v-model="searchDate" type="datetimerange" :shortcuts="shortcuts" range-separator="" start-placeholder="开始时间" end-placeholder="结束时间" />
<el-date-picker v-model="searchDate" type="datetimerange" :shortcuts="shortcuts" range-separator="" start-placeholder="开始时间" end-placeholder="结束时间" value-format="YYYY-MM-DD HH:mm:ss" />
</div> </div>
</div> </div>
</div> </div>
@ -135,33 +135,33 @@ onMounted(async () => {
const shortcuts = [ const shortcuts = [
{ {
text: '最近7天',
text: "最近7天",
value: () => { value: () => {
const end = new Date()
const start = new Date()
start.setDate(start.getDate() - 7)
return [start, end]
const end = new Date();
const start = new Date();
start.setDate(start.getDate() - 7);
return [start, end];
}, },
}, },
{ {
text: '最近1个月',
text: "最近1个月",
value: () => { value: () => {
const end = new Date()
const start = new Date()
start.setMonth(start.getMonth() - 1)
return [start, end]
const end = new Date();
const start = new Date();
start.setMonth(start.getMonth() - 1);
return [start, end];
}, },
}, },
{ {
text: '最近3个月',
text: "最近3个月",
value: () => { value: () => {
const end = new Date()
const start = new Date()
start.setMonth(start.getMonth() - 3)
return [start, end]
const end = new Date();
const start = new Date();
start.setMonth(start.getMonth() - 3);
return [start, end];
}, },
}, },
]
];
// //
const regionList = ref([]); const regionList = ref([]);
@ -291,8 +291,8 @@ const resetBn = () => {
searchForm.origin_id = ""; searchForm.origin_id = "";
searchForm.user_role = ""; searchForm.user_role = "";
searchForm.country = ""; searchForm.country = "";
searchDate.value=[];
searchDate.value = [];
currentPage.value = 1; currentPage.value = 1;
pageSizeDM.value = 10; pageSizeDM.value = 10;
getTableData(); getTableData();

Loading…
Cancel
Save