fix: 功能完善修复。

This commit is contained in:
tianyongbao
2026-07-12 12:49:10 +08:00
parent aeb1e39920
commit cc1ccad308
25 changed files with 350 additions and 155 deletions

View File

@@ -2,7 +2,7 @@
<view class="container">
<u-sticky offsetTop="0rpx" customNavHeight="0rpx">
<view class="search-view">
<view class="search-input-wrapper">
<view class="search-input-wrapper" @click="handlePerson">
<u--input
v-model="queryParams.personName"
border="surround"
@@ -17,13 +17,12 @@
type="search"
size="18"
color="#667eea"
class="search-icon"
@click="handlePerson">
class="search-icon">
</uni-icons>
</view>
</view>
<view class="search-view">
<view class="search-input-wrapper">
<view class="search-input-wrapper" @click="handleHealthRecord">
<u--input
v-model="queryParams.healthRecordName"
border="surround"
@@ -38,8 +37,7 @@
type="search"
size="18"
color="#667eea"
class="search-icon"
@click="handleHealthRecord">
class="search-icon">
</uni-icons>
</view>
</view>
@@ -192,24 +190,26 @@
:disabled="true"
:disabledColor="'#fff'"
class="dateInput"
@click="openOrCloseDate(true)"
border="surround"
v-model="queryParams.startTime"
placeholder="请选择开始时间"
>
<template v-slot:suffix>
<u-icon name="calendar" @click="openOrCloseDate(true)"></u-icon>
<u-icon name="calendar" @click.stop="openOrCloseDate(true)"></u-icon>
</template>
</u-input>
<u-input
:disabled="true"
:disabledColor="'#fff'"
class="dateInput"
@click="openOrCloseDate(false)"
border="surround"
v-model="queryParams.endTime"
placeholder="请选择结束时间"
>
<template v-slot:suffix>
<u-icon name="calendar" @click="openOrCloseDate(false)"></u-icon>
<u-icon name="calendar" @click.stop="openOrCloseDate(false)"></u-icon>
</template>
</u-input>
</view>
@@ -240,7 +240,7 @@
></u-datetime-picker>
<!-- 曲线图展示 -->
<view class="chart-container" v-if="hasSecondListData && viewMode === 'line'">
<view class="chart-container" v-if="chartVisible && hasSecondListData && viewMode === 'line'">
<qiun-data-charts
type="line"
:canvasId="canvasIdPrefix + '_line'"
@@ -253,7 +253,7 @@
</view>
<!-- 柱状图展示 -->
<view class="chart-container" v-if="hasSecondListData && viewMode === 'column'">
<view class="chart-container" v-if="chartVisible && hasSecondListData && viewMode === 'column'">
<qiun-data-charts
type="column"
:canvasId="canvasIdPrefix + '_column'"
@@ -634,6 +634,7 @@ uni.getSystemInfo({
windowHeight.value = res.windowHeight - 50
}
})
const chartVisible = computed(() => !filterPanel.value && !timeShow.value && !settingPickShow.value && !showPerson.value && !showHealthRecord.value)
onLoad(() => {
getDict()
// getList()
@@ -666,9 +667,13 @@ if (data != null) {
}
}
function openOrCloseDate(data) {
timeShow.value = !timeShow.value
if (typeof data === 'boolean') {
flag.value = data
timeShow.value = true
} else {
timeShow.value = false
}
}
function confirm(e) {
const date = timeHandler(new Date(e.value), '-', ':')
let formatValue = 'YYYY-MM-DD'