Update index.vue

This commit is contained in:
TimSpan 2025-01-16 17:02:06 +08:00
parent 94934f5b80
commit cfd793ac4e
1 changed files with 5 additions and 3 deletions

View File

@ -24,7 +24,8 @@
:options="options" :options="options"
:show-search="{filter}" :show-search="{filter}"
placeholder="请输入搜索关键词" placeholder="请输入搜索关键词"
/> >
</a-cascader>
</div> </div>
<div ref="scrollContainer" v-loading="loading" class="scrollContainer"> <div ref="scrollContainer" v-loading="loading" class="scrollContainer">
@ -384,7 +385,7 @@
</div> </div>
</a-layout> </a-layout>
</template> </template>
<script lang="ts" setup> <script lang="tsx" setup>
import {JsonResult} from '@/axios' import {JsonResult} from '@/axios'
import * as _ from 'lodash' import * as _ from 'lodash'
import api from '@/axios' import api from '@/axios'
@ -811,6 +812,7 @@ const treedata = () => {
const jinbao = ref([]) const jinbao = ref([])
const getdayline = () => { const getdayline = () => {
let city = JSON.parse(localStorage.getItem('user-stores'))['userInfo']['levelvalue'] let city = JSON.parse(localStorage.getItem('user-stores'))['userInfo']['levelvalue']
console.log('day().format', day().format('YYYY-MM-DD HH:mm:ss'))
api api
.post('multialarm/client/sensor/alarm_event/getlist/today', { .post('multialarm/client/sensor/alarm_event/getlist/today', {
name: localStorage.getItem('loginname'), name: localStorage.getItem('loginname'),
@ -869,7 +871,6 @@ const getdayline = () => {
} }
}) })
} }
} else {
} }
}) })
} }
@ -1363,6 +1364,7 @@ const initMap = () => {
} }
onMounted(() => { onMounted(() => {
// getdayline()
getAiCount() getAiCount()
gettotal() gettotal()
initMap() initMap()