|
@@ -10,7 +10,7 @@
|
|
|
<!-- 顶部 -->
|
|
|
<view class="yqtop flexcj">
|
|
|
<view class="yqtopl">
|
|
|
- <view class="tit mb10">潜山经济开发区</view>
|
|
|
+ <view class="tit mb10">{{city||'潜山经济开发区'}}</view>
|
|
|
<view class="txt">安徽中新云智慧园区服务平台</view>
|
|
|
</view>
|
|
|
<view class="yqtopr">
|
|
@@ -58,7 +58,7 @@
|
|
|
</view>
|
|
|
<view class="yqcba" v-if="checkPermi(['system:management:list'])" @click="getLimitFn">
|
|
|
<view class="aimg"><image :src="htabfimg" class="imgf"></image></view>
|
|
|
- <view class="atit">访客管理</view>
|
|
|
+ <view class="atit">人员权限</view>
|
|
|
</view>
|
|
|
<view class="yqcba" v-if="checkPermi(['system:record:list'])" @click="getVistotFn">
|
|
|
<view class="aimg"><image :src="htabgimg" class="imgg"></image></view>
|
|
@@ -75,96 +75,100 @@
|
|
|
<view class="mb10">
|
|
|
<notice :noticelist="noticelist" :activeColor="activeColor" :nactiveColor="nactiveColor" :autoplay='autoplay' @getNoticeDet="getNoticeDet"></notice>
|
|
|
</view>
|
|
|
- <!-- 统计 -->
|
|
|
- <view class="yqcont yqconta">
|
|
|
- <view class="yqcl">
|
|
|
- <view class="yqcla">
|
|
|
- <image :src="hbgaimg" class="cbgimg"></image>
|
|
|
- <view class="cbox">
|
|
|
- <view class="tit mb5">来访数</view>
|
|
|
- <view class="tit"><text>613</text>位</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="yqcla">
|
|
|
- <image :src="hbgbimg" class="cbgimg"></image>
|
|
|
- <view class="cbox">
|
|
|
- <view class="tit mb5">本月预约</view>
|
|
|
- <view class="tit"><text>613</text>位</view>
|
|
|
+ <!-- 普通用户看到的 -->
|
|
|
+ <template v-if="!checkRole(['manager'])">
|
|
|
+ <view class="yqcont" >
|
|
|
+ <view class="yqcb">
|
|
|
+ <image :src="hbgfimg" class="cbgimg"></image>
|
|
|
+ <view class="cbox flexc">
|
|
|
+ <view class="cboxb flexc pl10">
|
|
|
+ <image :src="dayimg" class="dayimg"></image>
|
|
|
+ <view class="num pr4">{{conuntinfo.dczs}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="cboxb">
|
|
|
+ <view class="tit"><view class="tita">中餐</view><text>{{conuntinfo.dcwc}}</text>位</view>
|
|
|
+ <view class="tit"><view class="tita">晚餐</view><text>{{conuntinfo.dcDinner}}</text>位</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="yqcla">
|
|
|
- <image :src="hbgcimg" class="cbgimg"></image>
|
|
|
- <view class="cbox">
|
|
|
- <view class="tit mb5">今日来访</view>
|
|
|
- <view class="tit"><text>613</text>位</view>
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
+ <view class="yylists">
|
|
|
+ <view class="yyltab flexcj">
|
|
|
+ <view class="left flexc">本周打卡记录<image :src="listline"></image></view>
|
|
|
+ <view class="right" @click="getmClockFn">查看更多 >></view>
|
|
|
</view>
|
|
|
- <view class="yqcla">
|
|
|
- <image :src="hbgdimg" class="cbgimg"></image>
|
|
|
- <view class="cbox">
|
|
|
- <view class="tit mb5">今日预约</view>
|
|
|
- <view class="tit"><text>613</text>位</view>
|
|
|
- </view>
|
|
|
+ <view>
|
|
|
+ <y-list type='record' :datalist="list" :wtdt="wtdt" @getDetail='getClockDetailFn' :adrlist="adrlist" @getDelFn="getDelFn" @gettypeFn="gettypeFn"></y-list>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="yqcr">
|
|
|
- <image :src="hbgeimg" class="cbgimg"></image>
|
|
|
- <view class="cbox">
|
|
|
- <view class="cboxa flexc">
|
|
|
- <image :src="dayimg" class="dayimg"></image>
|
|
|
- <view class="num">1,037</view>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <!-- 统计 -->
|
|
|
+ <view class="yqcont yqconta">
|
|
|
+ <view class="yqcl">
|
|
|
+ <view class="yqcla">
|
|
|
+ <image :src="hbgaimg" class="cbgimg"></image>
|
|
|
+ <view class="cbox">
|
|
|
+ <view class="tit mb5">本月来访数</view>
|
|
|
+ <view class="tit"><text>{{conuntinfo.bylf}}</text>位</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="flexcc">
|
|
|
- <view class="cboxb">
|
|
|
- <view class="tit mb5">中餐</view>
|
|
|
- <view class="tit"><text>732</text>位</view>
|
|
|
+ <view class="yqcla">
|
|
|
+ <image :src="hbgbimg" class="cbgimg"></image>
|
|
|
+ <view class="cbox">
|
|
|
+ <view class="tit mb5">本月预约</view>
|
|
|
+ <view class="tit"><text>{{conuntinfo.byyy}}</text>位</view>
|
|
|
</view>
|
|
|
- <view class="cboxb">
|
|
|
- <view class="tit mb5">晚餐</view>
|
|
|
- <view class="tit"><text>732</text>位</view>
|
|
|
+ </view>
|
|
|
+ <view class="yqcla">
|
|
|
+ <image :src="hbgcimg" class="cbgimg"></image>
|
|
|
+ <view class="cbox">
|
|
|
+ <view class="tit mb5">今日来访</view>
|
|
|
+ <view class="tit"><text>{{conuntinfo.jrlf}}</text>位</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <!-- 普通用户看到的 -->
|
|
|
- <view class="yqcont">
|
|
|
- <view class="yqcb">
|
|
|
- <image :src="hbgfimg" class="cbgimg"></image>
|
|
|
- <view class="cbox flexc">
|
|
|
- <view class="cboxb flexc pl10">
|
|
|
- <image :src="dayimg" class="dayimg"></image>
|
|
|
- <view class="num pr4">1,037</view>
|
|
|
+ <view class="yqcla">
|
|
|
+ <image :src="hbgdimg" class="cbgimg"></image>
|
|
|
+ <view class="cbox">
|
|
|
+ <view class="tit mb5">今日预约</view>
|
|
|
+ <view class="tit"><text>{{conuntinfo.jryy}}</text>位</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="cboxb">
|
|
|
- <view class="tit"><view class="tita">中餐</view><text>732</text>位</view>
|
|
|
- <view class="tit"><view class="tita">晚餐</view><text>732</text>位</view>
|
|
|
+ </view>
|
|
|
+ <view class="yqcr">
|
|
|
+ <image :src="hbgeimg" class="cbgimg"></image>
|
|
|
+ <view class="cbox">
|
|
|
+ <view class="cboxa flexc">
|
|
|
+ <image :src="dayimg" class="dayimg"></image>
|
|
|
+ <view class="num">{{conuntinfo.dczs}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="flexcc">
|
|
|
+ <view class="cboxb">
|
|
|
+ <view class="tit mb5">中餐</view>
|
|
|
+ <view class="tit"><text>{{conuntinfo.dcwc}}</text>位</view>
|
|
|
+ </view>
|
|
|
+ <view class="cboxb">
|
|
|
+ <view class="tit mb5">晚餐</view>
|
|
|
+ <view class="tit"><text>{{conuntinfo.dcDinner}}</text>位</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <!-- 普通用户 -->
|
|
|
- <view class="yylists" v-if="!checkRole(['manager'])">
|
|
|
- <view class="yyltab flexcj">
|
|
|
- <view class="left flexc">本周打卡记录<image :src="listline"></image></view>
|
|
|
- <view class="right" @click="getmClockFn">查看更多 >></view>
|
|
|
- </view>
|
|
|
- <!-- 列表 -->
|
|
|
- <view>
|
|
|
- <y-list type='record' :datalist="list" :wtdt="wtdt" @getDetail='getClockDetailFn' :adrlist="adrlist" @getDelFn="getDelFn" @gettypeFn="gettypeFn"></y-list>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <!-- 管理员 -->
|
|
|
- <view class="yylists" v-else>
|
|
|
- <view class="yyltab flexcj">
|
|
|
- <view class="left flexc">待审批列表<image :src="listline"></image></view>
|
|
|
- <view class="right" @click="getMoreFn">查看更多 >></view>
|
|
|
- </view>
|
|
|
- <!-- 列表 -->
|
|
|
- <view>
|
|
|
- <y-list type='order' :datalist="list" :wtdt="wtdt" @getDetail='getDetail' :adrlist="adrlist" @getDelFn="getDelFn" @gettypeFn="gettypeFn"></y-list>
|
|
|
+
|
|
|
+ <!-- 管理员 -->
|
|
|
+ <view class="yylists">
|
|
|
+ <view class="yyltab flexcj">
|
|
|
+ <view class="left flexc">待审批列表<image :src="listline"></image></view>
|
|
|
+ <view class="right" @click="getMoreFn">查看更多 >></view>
|
|
|
+ </view>
|
|
|
+ <!-- 列表 -->
|
|
|
+ <view>
|
|
|
+ <y-list type='order' :datalist="list" :wtdt="wtdt" @getDetail='getDetail' :adrlist="adrlist" @getDelFn="getDelFn" @gettypeFn="gettypeFn"></y-list>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </template>
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
<footers v-if="isfootflag" :footerindex="footerindex"></footers>
|
|
@@ -177,7 +181,7 @@
|
|
|
import yList from "@/components/order/list.vue"
|
|
|
import notice from "@/components/swiper/notice.vue"
|
|
|
let { calendar } = require("@/components/lunc-calendar/calendar.js");
|
|
|
- import {getReservatcountl,getReservatList,getReservatDel,getReservatSh} from "@/api/mine/order.js"
|
|
|
+ import {getReservatcountl,getReservatList,getReservatDel,getReservatSh,getYydcCont} from "@/api/mine/order.js"
|
|
|
import {getDictionaryFn} from "@/api/mine/register.js"
|
|
|
import {getNoticeList} from "@/api/common.js"
|
|
|
import {getClockList} from "@/api/mine/work.js"
|
|
@@ -235,6 +239,7 @@
|
|
|
startDate:'',
|
|
|
endDate:'',
|
|
|
kaTime:'',
|
|
|
+ conuntinfo:{},
|
|
|
}
|
|
|
},
|
|
|
onPageScroll(e) {
|
|
@@ -256,19 +261,17 @@
|
|
|
this.marTop=692-Number(this.nvaHeight*2)-16;
|
|
|
}
|
|
|
})
|
|
|
- this.getNoticeList()
|
|
|
- return
|
|
|
uni.$on('refreshdatalist',(e) => {
|
|
|
this.reachflag=false;
|
|
|
this.pageNum=1;
|
|
|
this.list=[];
|
|
|
this.getDataFn();
|
|
|
- // this.getcount();
|
|
|
+ this.getcount();
|
|
|
})
|
|
|
|
|
|
this.init()
|
|
|
this.getNoticeList()
|
|
|
- // this.getcount()
|
|
|
+ this.getcount()
|
|
|
|
|
|
uni.getSystemInfo({
|
|
|
success: (e) => {
|
|
@@ -390,7 +393,7 @@
|
|
|
that.pageNum=1;
|
|
|
that.list=[];
|
|
|
that.getDataFn();
|
|
|
- // that.getcount();
|
|
|
+ that.getcount();
|
|
|
},1500)
|
|
|
|
|
|
}else{
|
|
@@ -412,7 +415,7 @@
|
|
|
that.pageNum=1;
|
|
|
that.list=[];
|
|
|
that.getDataFn();
|
|
|
- // that.getcount();
|
|
|
+ that.getcount();
|
|
|
},1500)
|
|
|
|
|
|
}else{
|
|
@@ -465,7 +468,7 @@
|
|
|
return year + '-' + month + '-' + day;
|
|
|
},
|
|
|
getcount(){
|
|
|
- getReservatcountl().then(res=>{
|
|
|
+ getYydcCont().then(res=>{
|
|
|
if(res.code==200){
|
|
|
this.conuntinfo=res.data
|
|
|
}else{
|