fix: 统计页面新功能增加,原有功能优化。

This commit is contained in:
tianyongbao
2024-06-28 13:07:22 +08:00
parent c8b5697264
commit 5c10fa3e8a
54 changed files with 10591 additions and 86 deletions

View File

@@ -1,10 +1,17 @@
<template>
<view class="container">
<u-sticky offsetTop="8rpx" customNavHeight="8rpx">
<view class="search-view">
<u--input v-model="queryParams.name" border="false" placeholder="请输入投资账户名称" class="search-input"
<view class="search-view">
<u--input v-model="queryParams.name" border="false" placeholder="请输入投资账户名称" class="search-input"
@blur="searchBlur" suffixIcon="search" suffixIconStyle="color: #909399">
</u--input>
</view>
</u-sticky>
<u-sticky offsetTop="8rpx" customNavHeight="8rpx">
<view class="search-view">
<u-input v-model="queryParams.time" border="false" type="select" readonly placeholder="请选择交易时间"
suffixIconStyle="color: #909399" class="search-input">
</u-input>
<u-icon :name="filterPanel ? 'arrow-up-fill' : 'arrow-down-fill'" color="#666666" size="28" label="筛选"
labelPos="left" labelSize="32rpx" labelColor="#666666" @click="filterPanel = !filterPanel"></u-icon>
<u-icon name="plus-circle-fill" color="#666666" size="28" style="margin-left:10px" label="新增"
@@ -53,7 +60,7 @@
:closeOnClickOverlay="true"
:show="timeShow"
v-model="time"
mode="datetime"
mode="date"
@close="openOrCloseDate"
@cancel="openOrCloseDate"
@confirm="confirm"
@@ -114,6 +121,7 @@ import {
import { getDicts } from '@/api/system/dict/data.js'
import { timeHandler } from '@/utils/common.ts'
import {onLoad,onShow} from "@dcloudio/uni-app";
import dayjs from 'dayjs'
// 计算属性与监听属性是在vue中而非uniap中 需要注意!!!
import {reactive ,toRefs,ref,computed }from "vue";
const pageNum = ref(1)
@@ -179,10 +187,12 @@ function getList() {
}
function confirm(e) {
const date = timeHandler(new Date(e.value), '-', ':')
let formatValue = 'YYYY-MM-DD'
dayjs(date).format(formatValue)
if (flag.value) {
queryParams.value.startTime = date
queryParams.value.startTime = dayjs(date).format(formatValue)
} else {
queryParams.value.endTime = date
queryParams.value.endTime = dayjs(date).format(formatValue)
}
timeShow.value = false
}
@@ -243,6 +253,9 @@ function selectAccountType(item) {
})
}
function searchSubmit() {
if(queryParams.value.startTime!=''&&queryParams.value.endTime!=''){
queryParams.value.time = queryParams.value.startTime+'-'+queryParams.value.endTime
}
pageNum.value = 1
listData.value = []
getList()
@@ -254,6 +267,7 @@ function selectAccountType(item) {
getList()
}
function resetQuery() {
queryParams.value.time = ''
queryParams.value.name = ''
queryParams.value.type = '5'
queryParams.value.dealType = ''
@@ -315,7 +329,6 @@ function selectAccountType(item) {
justify-content: space-between;
align-items: center;
position: relative;
margin-bottom: 24rpx;
.search-input {
background: #F5F5F5;