增加 待巡检数量查询
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
#调用后台地址
|
#调用后台地址
|
||||||
# 贝英斯公司
|
# 贝英斯公司
|
||||||
# VITE_APP_BASE_URL = 'http://118.186.13.120:31302'
|
VITE_APP_BASE_URL = 'http://118.186.13.120:31302'
|
||||||
# VITE_APP_BASE_URL = "http://192.168.236.71:31302"
|
# VITE_APP_BASE_URL = "http://192.168.236.71:31302"
|
||||||
# VITE_APP_BASE_URL = "http://123.57.20.168:3000"
|
# VITE_APP_BASE_URL = "http://123.57.20.168:3000"
|
||||||
|
|
||||||
@@ -12,5 +12,5 @@
|
|||||||
|
|
||||||
# 友晟线上内网
|
# 友晟线上内网
|
||||||
# VITE_APP_BASE_URL = 'https://appi.718yousheng.com/app'
|
# VITE_APP_BASE_URL = 'https://appi.718yousheng.com/app'
|
||||||
# 友晟线上外网网
|
# 友晟线上外网
|
||||||
VITE_APP_BASE_URL = 'https://app.718yousheng.com/app'
|
# VITE_APP_BASE_URL = 'https://app.718yousheng.com/app'
|
||||||
@@ -112,7 +112,17 @@ export function minioUpload(data) {
|
|||||||
export function minioParam(data) {
|
export function minioParam(data) {
|
||||||
return request.post({
|
return request.post({
|
||||||
url: '/patrol/minio/param',
|
url: '/patrol/minio/param',
|
||||||
...data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 待检查的任务数量
|
||||||
|
export function querytodaytasknum(data) {
|
||||||
|
return request.post({
|
||||||
|
url: '/patrol/patroltask/querytodaytasknum',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ export const AGREEWELCOME_KEY="agreewelcome";
|
|||||||
// clientId 默认写2
|
// clientId 默认写2
|
||||||
export const CLIENT_ID="2";
|
export const CLIENT_ID="2";
|
||||||
// #区分内外网 //1-内网,2-外网
|
// #区分内外网 //1-内网,2-外网
|
||||||
export const NETWORK_ENV=2;
|
export const NETWORK_ENV=1;
|
||||||
|
|
||||||
// miniIo 参数对象
|
// miniIo 参数对象
|
||||||
export const MINIO_KEY="minioKey"
|
export const MINIO_KEY="minioKey"
|
||||||
|
|||||||
@@ -47,11 +47,12 @@
|
|||||||
</view>
|
</view>
|
||||||
<block v-if="!item.expandFlag">
|
<block v-if="!item.expandFlag">
|
||||||
<view class="logo-list" v-if="item.children&&item.children.length>0">
|
<view class="logo-list" v-if="item.children&&item.children.length>0">
|
||||||
<block v-for="(item2,index2) in item.children">
|
<block v-for="(item2,index2) in item.children" :key="index2">
|
||||||
<view class="l-l-item"
|
<view class="l-l-item" @click="handleJump(item2.bizUrl)">
|
||||||
@click="handleJump(item2.bizUrl)">
|
|
||||||
<img :src="'static/images/business/'+item2.icon+'.png'" />
|
<img :src="'static/images/business/'+item2.icon+'.png'" />
|
||||||
<text class="font-gray">{{ item2.bizName }}</text>
|
<text class="font-gray">{{ item2.bizName }}</text>
|
||||||
|
<!--后台创建业务的时候 bizCode 必须固定为 'jrxj' -->
|
||||||
|
<view class="red-bg" v-if="item2.bizCode=='jrxj'">{{todayCount}}</view>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
@@ -75,12 +76,14 @@ import { getNavBarPaddingTop} from '@/utils/system.js'
|
|||||||
import { businessList } from '@/api/business.js';
|
import { businessList } from '@/api/business.js';
|
||||||
import {showLoading,hideLoading} from '@/utils/message.js'
|
import {showLoading,hideLoading} from '@/utils/message.js'
|
||||||
import { initTree } from '@/utils/common.js';
|
import { initTree } from '@/utils/common.js';
|
||||||
|
import {querytodaytasknum} from '@/api/polling.js'
|
||||||
|
|
||||||
onLoad(async(opt) => {
|
onLoad(async(opt) => {
|
||||||
// uni.setStorageSync('page_cache',true);
|
// uni.setStorageSync('page_cache',true);
|
||||||
try {
|
try {
|
||||||
showLoading("加载中...")
|
showLoading("加载中...")
|
||||||
getList();
|
getList();
|
||||||
|
getTaskCount();
|
||||||
hideLoading();
|
hideLoading();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
hideLoading();
|
hideLoading();
|
||||||
@@ -93,6 +96,13 @@ onMounted(() => {
|
|||||||
navBarPaddingTop.value = getNavBarPaddingTop()*2;
|
navBarPaddingTop.value = getNavBarPaddingTop()*2;
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 查询待巡检的任务数量
|
||||||
|
let todayCount =ref(0);
|
||||||
|
const getTaskCount= async()=>{
|
||||||
|
let res = await querytodaytasknum({});
|
||||||
|
todayCount.value = res || 0;
|
||||||
|
}
|
||||||
|
|
||||||
// 搜索处理
|
// 搜索处理
|
||||||
let searchShow = ref(false);
|
let searchShow = ref(false);
|
||||||
let searchText = ref(undefined);
|
let searchText = ref(undefined);
|
||||||
@@ -176,7 +186,7 @@ let handleJump=(url)=>{
|
|||||||
<style scope>
|
<style scope>
|
||||||
.scroll-h{
|
.scroll-h{
|
||||||
/* #ifdef APP-PLUS */
|
/* #ifdef APP-PLUS */
|
||||||
height: calc(100vh - 130px) !important;
|
height: calc(100vh - 123px) !important;
|
||||||
/* #endif */
|
/* #endif */
|
||||||
/* #ifndef APP-PLUS */
|
/* #ifndef APP-PLUS */
|
||||||
height: calc(100vh - 140px) !important;
|
height: calc(100vh - 140px) !important;
|
||||||
|
|||||||
@@ -108,8 +108,10 @@
|
|||||||
<view class="w-b-title">常用服务</view>
|
<view class="w-b-title">常用服务</view>
|
||||||
<view class="logo-list">
|
<view class="logo-list">
|
||||||
<view v-for="(item,index) in commonServiceList" class="l-l-item" :key="index" @click="handleJump(item.bizUrl)">
|
<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'" />
|
<img :src="'static/images/business/'+item.icon+'.png'" />
|
||||||
<text class="font-gray">{{ item.bizName }}</text>
|
<text class="font-gray">{{ item.bizName }}</text>
|
||||||
|
<!--后台创建业务的时候 bizCode 必须固定为 'jrxj' -->
|
||||||
|
<view class="red-bg" v-if="item.bizCode=='jrxj'">{{todayCount}}</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="l-l-item" @click="handleAddCommonSercice">
|
<!-- <view class="l-l-item" @click="handleAddCommonSercice">
|
||||||
<img :src="'static/images/business/icon-add.png'">
|
<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 { getWeekStr,formatTimestamp } from '@/utils/datetime.js'
|
||||||
import { formatMoney } from '@/utils/formatter.js'
|
import { formatMoney } from '@/utils/formatter.js'
|
||||||
import {showLoading,hideLoading} from '@/utils/message.js'
|
import {showLoading,hideLoading} from '@/utils/message.js'
|
||||||
|
import {querytodaytasknum} from '@/api/polling.js'
|
||||||
|
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
// 获取 存储手机的module
|
// 获取 存储手机的module
|
||||||
@@ -199,12 +202,20 @@ const initLoad =()=>{
|
|||||||
getSalesTask();
|
getSalesTask();
|
||||||
getCommonServices();
|
getCommonServices();
|
||||||
getNewsList();
|
getNewsList();
|
||||||
|
getTaskCount();
|
||||||
hideLoading();
|
hideLoading();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
hideLoading();
|
hideLoading();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 查询待巡检的任务数量
|
||||||
|
let todayCount =ref(0);
|
||||||
|
const getTaskCount= async()=>{
|
||||||
|
let res = await querytodaytasknum({});
|
||||||
|
todayCount.value = res || 0;
|
||||||
|
}
|
||||||
|
|
||||||
// 下拉刷新
|
// 下拉刷新
|
||||||
const mescrollRef = ref(null);
|
const mescrollRef = ref(null);
|
||||||
const mescrollInit = (mescroll) => {
|
const mescrollInit = (mescroll) => {
|
||||||
|
|||||||
@@ -356,8 +356,8 @@ page {
|
|||||||
/* 项目间距 */
|
/* 项目间距 */
|
||||||
margin-left:-10rpx;
|
margin-left:-10rpx;
|
||||||
margin-right:-10rpx;
|
margin-right:-10rpx;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.white-bg .logo-list .l-l-item {
|
.white-bg .logo-list .l-l-item {
|
||||||
width: 140rpx;
|
width: 140rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -368,6 +368,21 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.white-bg .logo-list .l-l-item .red-bg{
|
||||||
|
position: absolute;
|
||||||
|
top:0rpx;
|
||||||
|
right: 15rpx;
|
||||||
|
width:32rpx;
|
||||||
|
height: 32rpx;
|
||||||
|
line-height: 32rpx;
|
||||||
|
background-color: #FF2B44;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 50%;
|
||||||
|
color:#fff;
|
||||||
|
font-size:24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.white-bg .logo-list .l-l-item img {
|
.white-bg .logo-list .l-l-item img {
|
||||||
width: 90rpx;
|
width: 90rpx;
|
||||||
height: 90rpx;
|
height: 90rpx;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -356,8 +356,8 @@ page {
|
|||||||
/* 项目间距 */
|
/* 项目间距 */
|
||||||
margin-left:-10rpx;
|
margin-left:-10rpx;
|
||||||
margin-right:-10rpx;
|
margin-right:-10rpx;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.white-bg .logo-list .l-l-item {
|
.white-bg .logo-list .l-l-item {
|
||||||
width: 140rpx;
|
width: 140rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -368,6 +368,21 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.white-bg .logo-list .l-l-item .red-bg{
|
||||||
|
position: absolute;
|
||||||
|
top:0rpx;
|
||||||
|
right: 15rpx;
|
||||||
|
width:32rpx;
|
||||||
|
height: 32rpx;
|
||||||
|
line-height: 32rpx;
|
||||||
|
background-color: #FF2B44;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 50%;
|
||||||
|
color:#fff;
|
||||||
|
font-size:24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.white-bg .logo-list .l-l-item img {
|
.white-bg .logo-list .l-l-item img {
|
||||||
width: 90rpx;
|
width: 90rpx;
|
||||||
height: 90rpx;
|
height: 90rpx;
|
||||||
|
|||||||
Reference in New Issue
Block a user