Browse Source

总览数据加上提示词

master
buaixuexideshitongxue 2 months ago
parent
commit
a15be73e11
  1. 6
      src/components/datav/statistic.vue
  2. 2
      src/views/datav/Global.vue

6
src/components/datav/statistic.vue

@ -3,13 +3,17 @@
<div class="statistic-number">
{{ isDecimal ? parseFloat(outputValue.toFixed(2)) : parseInt(outputValue) }}{{ valueUnit }}
</div>
<div class="statistic-title">{{ title }}</div>
<div class="statistic-title" :title="tooltip">{{ title }}</div>
</div>
</template>
<script setup>
import {useTransition} from "@vueuse/core";
const props = defineProps({
tooltip: {
type: String,
default: '',
},
title: {
type: String
},

2
src/views/datav/Global.vue

@ -48,11 +48,13 @@
:value="overview.supervisionPro"
title="现场督察"
style="width: 20%;"
tooltip="综合查询现场督察"
@click="open('/datav/sceneInsp')"
/>
<datav-statistic
:value="overview.numSupervisionPro"
:title="`数字督察`"
tooltip="灵敏感知+专项督察+视频督察"
style="width: 20%;"
/>

Loading…
Cancel
Save