增加 待巡检数量查询
This commit is contained in:
@@ -108,8 +108,10 @@
|
||||
<view class="w-b-title">常用服务</view>
|
||||
<view class="logo-list">
|
||||
<view v-for="(item,index) in commonServiceList" class="l-l-item" :key="index" @click="handleJump(item.bizUrl)">
|
||||
<img :src="'static/images/business/'+item.icon+'.png'" />
|
||||
<text class="font-gray">{{ item.bizName }}</text>
|
||||
<img :src="'static/images/business/'+item.icon+'.png'" />
|
||||
<text class="font-gray">{{ item.bizName }}</text>
|
||||
<!--后台创建业务的时候 bizCode 必须固定为 'jrxj' -->
|
||||
<view class="red-bg" v-if="item.bizCode=='jrxj'">{{todayCount}}</view>
|
||||
</view>
|
||||
<!-- <view class="l-l-item" @click="handleAddCommonSercice">
|
||||
<img :src="'static/images/business/icon-add.png'">
|
||||
@@ -153,6 +155,7 @@ import { messageNotifyCount,messageFlowCount,getUserFavorite} from '@/api/home.j
|
||||
import { getWeekStr,formatTimestamp } from '@/utils/datetime.js'
|
||||
import { formatMoney } from '@/utils/formatter.js'
|
||||
import {showLoading,hideLoading} from '@/utils/message.js'
|
||||
import {querytodaytasknum} from '@/api/polling.js'
|
||||
|
||||
// #ifdef APP-PLUS
|
||||
// 获取 存储手机的module
|
||||
@@ -199,12 +202,20 @@ const initLoad =()=>{
|
||||
getSalesTask();
|
||||
getCommonServices();
|
||||
getNewsList();
|
||||
getTaskCount();
|
||||
hideLoading();
|
||||
} catch (error) {
|
||||
hideLoading();
|
||||
}
|
||||
}
|
||||
|
||||
// 查询待巡检的任务数量
|
||||
let todayCount =ref(0);
|
||||
const getTaskCount= async()=>{
|
||||
let res = await querytodaytasknum({});
|
||||
todayCount.value = res || 0;
|
||||
}
|
||||
|
||||
// 下拉刷新
|
||||
const mescrollRef = ref(null);
|
||||
const mescrollInit = (mescroll) => {
|
||||
|
||||
Reference in New Issue
Block a user