|
|
@@ -1,219 +1,225 @@
|
|
|
<template>
|
|
|
- <view class="content">
|
|
|
- <!-- 项目总览 -->
|
|
|
- <view class="projectAll">
|
|
|
- <view class="all-text">项目总览</view>
|
|
|
- <view class="all-more" @click="takeMore">查看更多</view>
|
|
|
- <view class="all-select">
|
|
|
- <view class="all-list" style="margin-left: 15rpx;" v-if="change==0">今日</view>
|
|
|
- <view class="all-list2" style="margin-left: 15rpx;" v-else @click="changeTime(0)">今日</view>
|
|
|
- <view class="all-list" style="margin-left: 25rpx;" v-if="change==1">本周</view>
|
|
|
- <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime(1)">本周</view>
|
|
|
- <view class="all-list" style="margin-left: 25rpx;" v-if="change==2">本月</view>
|
|
|
- <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime(2)">本月</view>
|
|
|
- </view>
|
|
|
- <view class="all-num">
|
|
|
- <view class="shuzi" v-for="(item,index) in allList.slice(0,5)">
|
|
|
- <view class="shu-num">{{item.num}}</view>
|
|
|
- <view>
|
|
|
- <template v-if="item.state==1">正常在办</template>
|
|
|
- <template v-if="item.state==2">预警在办</template>
|
|
|
- <template v-if="item.state==3">超时在办</template>
|
|
|
- <template v-if="item.state==4">正常办结</template>
|
|
|
- <template v-if="item.state==5">超时办结</template>
|
|
|
- <template v-if="item.state==6">项目总数</template>
|
|
|
+ <view>
|
|
|
+ <view class="content" v-if="shouye==1">
|
|
|
+ <!-- 项目总览 -->
|
|
|
+ <view class="projectAll">
|
|
|
+ <view class="all-text">项目总览</view>
|
|
|
+ <view class="all-more" @click="takeMore">查看更多</view>
|
|
|
+ <view class="all-select">
|
|
|
+ <view class="all-list" style="margin-left: 15rpx;" v-if="change==0">今日</view>
|
|
|
+ <view class="all-list2" style="margin-left: 15rpx;" v-else @click="changeTime(0)">今日</view>
|
|
|
+ <view class="all-list" style="margin-left: 25rpx;" v-if="change==1">本周</view>
|
|
|
+ <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime(1)">本周</view>
|
|
|
+ <view class="all-list" style="margin-left: 25rpx;" v-if="change==2">本月</view>
|
|
|
+ <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime(2)">本月</view>
|
|
|
+ </view>
|
|
|
+ <view class="all-num">
|
|
|
+ <view class="shuzi" v-for="(item,index) in allList.slice(0,5)">
|
|
|
+ <view class="shu-num">{{item.num}}</view>
|
|
|
+ <view>
|
|
|
+ <template v-if="item.state==1">正常在办</template>
|
|
|
+ <template v-if="item.state==2">预警在办</template>
|
|
|
+ <template v-if="item.state==3">超时在办</template>
|
|
|
+ <template v-if="item.state==4">正常办结</template>
|
|
|
+ <template v-if="item.state==5">超时办结</template>
|
|
|
+ <template v-if="item.state==6">项目总数</template>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <!-- 项目列表 -->
|
|
|
- <view class="projectlist" style="height: 100%;">
|
|
|
- <view class="all-text">项目列表</view>
|
|
|
- <view class="all-cui" @click="cuiban('总的')">催办</view>
|
|
|
- <view class="all-more" style="margin: -59rpx 0 0 581rpx;" @click="takeMore">查看更多</view>
|
|
|
- <view class="all-select">
|
|
|
- <view class="all-list" style="margin-left: 15rpx;" v-if="change2==0">今日</view>
|
|
|
- <view class="all-list2" style="margin-left: 15rpx;" v-else @click="changeTime2(0)">今日</view>
|
|
|
- <view class="all-list" style="margin-left: 25rpx;" v-if="change2==1">本周</view>
|
|
|
- <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime2(1)">本周</view>
|
|
|
- <view class="all-list" style="margin-left: 25rpx;" v-if="change2==2">本月</view>
|
|
|
- <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime2(2)">本月</view>
|
|
|
- </view>
|
|
|
- <!-- 列表 -->
|
|
|
- <view class="projectL" v-for="(item,index) in list" :key="index" @click="XiangPro(item)">
|
|
|
- <view class="projectName">{{item.projectName}}</view>
|
|
|
- <view class="all-cui" style="margin: -44rpx 0 0 581rpx;" @click.stop="cuiban(item)" v-if="item.state==1||item.state==2||item.state==3">催办</view>
|
|
|
- <view style="margin: 10rpx 0 0 19rpx;">结束时间:{{item.endTime}}</view>
|
|
|
- <view style="margin: 20rpx 0 0 19rpx;">参与成员:{{item.coSposonerName}}</view>
|
|
|
- <progress v-if="item.progress!='/'" :percent="item.progress" activeColor="rgba(0, 97, 255, 1)" border-radius="50" stroke-width="12" show-info font-size='12' active='true' />
|
|
|
- <view class="projectLine" v-if="list.length>=1&&(index<=list.length-1)"></view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <!-- 未完成清单 -->
|
|
|
- <view class="projectlist" style="height: 100%;">
|
|
|
- <view class="all-text">未完成清单</view>
|
|
|
- <view class="wei-title1 title1" v-if="qingdan==0">
|
|
|
- <view>问题清单</view>
|
|
|
- <view class="wei-line1"></view>
|
|
|
- </view>
|
|
|
- <view class="title1" style="rgba(0, 0, 0, 1)" v-else @click="qingQie(0)">
|
|
|
- 问题清单
|
|
|
- <view class="wei-line1" style="background: rgba(255, 255, 255, 1);"></view>
|
|
|
- </view>
|
|
|
- <view class="wei-title1 title2" v-if="qingdan==1">
|
|
|
- <view>预警清单</view>
|
|
|
- <view class="wei-line1"></view>
|
|
|
- </view>
|
|
|
- <view class="title2" style="rgba(0, 0, 0, 1)" v-else @click="qingQie(1)">
|
|
|
- 预警清单
|
|
|
- <view class="wei-line1" style="background: rgba(255, 255, 255, 1);"></view>
|
|
|
- </view>
|
|
|
- <view class="all-cui" style="margin: -35px 0 0 581rpx;" @click="cuiban('未完成')">催办</view>
|
|
|
- <view class="all-select">
|
|
|
- <view class="all-list" style="margin-left: 15rpx;" v-if="change3==0">今日</view>
|
|
|
- <view class="all-list2" style="margin-left: 15rpx;" v-else @click="changeTime3(0)">今日</view>
|
|
|
- <view class="all-list" style="margin-left: 25rpx;" v-if="change3==1">本周</view>
|
|
|
- <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime3(1)">本周</view>
|
|
|
- <view class="all-list" style="margin-left: 25rpx;" v-if="change3==2">本月</view>
|
|
|
- <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime3(2)">本月</view>
|
|
|
- </view>
|
|
|
- <!-- 未完成清单表格 -->
|
|
|
- <view style="margin: 24rpx 0 0 20rpx;width: 710rpx;">
|
|
|
- <uni-table ref="table" emptyText="暂无更多数据"
|
|
|
- style="width:710rpx;table-layout: fixed; word-wrap: break-word;">
|
|
|
- <uni-tr style="background-color: rgba(245, 246, 250, 1);color: rgba(90, 96, 127, 1);font-size: 24rpx;">
|
|
|
- <uni-th align="center">姓名</uni-th>
|
|
|
- <uni-th align="center">项目名称</uni-th>
|
|
|
- <uni-th align="center">项目任务</uni-th>
|
|
|
- <uni-th align="center">情况状态</uni-th>
|
|
|
- </uni-tr>
|
|
|
- <uni-tr v-for="(item, index) in tableNo" :key="index" style="color: rgba(0, 0, 0, 1);">
|
|
|
- <uni-td align="center">{{ item.headerName }}</uni-td>
|
|
|
- <uni-td align="center">
|
|
|
- <view class="name">{{ item.proname1 }}</view>
|
|
|
- </uni-td>
|
|
|
- <uni-td align="center">{{ item.taskName }}</uni-td>
|
|
|
- <uni-td align="center">{{ item.projectLevel }}</uni-td>
|
|
|
- </uni-tr>
|
|
|
- </uni-table>
|
|
|
- </view>
|
|
|
-
|
|
|
- </view>
|
|
|
- <!-- 部门排行榜 -->
|
|
|
- <view class="projectlist" style="height: 100%;">
|
|
|
- <view class="all-text">部门排行榜</view>
|
|
|
- <view class="wei-title1 title1" v-if="bumen==0">
|
|
|
- <view>评分</view>
|
|
|
- <view class="wei-line1" style="margin: 10rpx 0 0 -8rpx;"></view>
|
|
|
- </view>
|
|
|
- <view class="title1" style="rgba(0, 0, 0, 1)" v-else @click="bumenQie(0)">
|
|
|
- 评分
|
|
|
- <view class="wei-line1" style="background: rgba(255, 255, 255, 1);"></view>
|
|
|
- </view>
|
|
|
- <view class="wei-title1 title2" v-if="bumen==1">
|
|
|
- <view>完成率</view>
|
|
|
- <view class="wei-line1" style="margin: 10rpx 0 0 4rpx;"></view>
|
|
|
- </view>
|
|
|
- <view class="title2" style="rgba(0, 0, 0, 1)" v-else @click="bumenQie(1)">
|
|
|
- 完成率
|
|
|
- <view class="wei-line1" style="background: rgba(255, 255, 255, 1);"></view>
|
|
|
- </view>
|
|
|
- <view class="all-select">
|
|
|
- <view class="all-list" style="margin-left: 15rpx;" v-if="change4==0">今日</view>
|
|
|
- <view class="all-list2" style="margin-left: 15rpx;" v-else @click="changeTime4(0)">今日</view>
|
|
|
- <view class="all-list" style="margin-left: 25rpx;" v-if="change4==1">本周</view>
|
|
|
- <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime4(1)">本周</view>
|
|
|
- <view class="all-list" style="margin-left: 25rpx;" v-if="change4==2">本月</view>
|
|
|
- <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime4(2)">本月</view>
|
|
|
- </view>
|
|
|
- <!-- 部门排行榜表格 -->
|
|
|
- <view style="margin: 24rpx 0 0 20rpx;width: 710rpx;">
|
|
|
- <uni-table ref="table" emptyText="暂无更多数据"
|
|
|
- style="width:710rpx;table-layout: fixed; word-wrap: break-word;">
|
|
|
- <uni-tr style="background-color: rgba(245, 246, 250, 1);color: rgba(90, 96, 127, 1);font-size: 24rpx;">
|
|
|
- <uni-th align="center">排行</uni-th>
|
|
|
- <uni-th align="center">部门名称</uni-th>
|
|
|
- <uni-th align="center">评分</uni-th>
|
|
|
- </uni-tr>
|
|
|
- <uni-tr v-for="(item, index) in tableData" :key="index" style="color: rgba(0, 0, 0, 1);">
|
|
|
- <uni-td align="center">{{ item.id }}</uni-td>
|
|
|
- <uni-td align="center">
|
|
|
- <view class="name">{{ item.name }}</view>
|
|
|
- </uni-td>
|
|
|
- <uni-td align="center">{{ item.num }}</uni-td>
|
|
|
- </uni-tr>
|
|
|
- </uni-table>
|
|
|
- </view>
|
|
|
-
|
|
|
- </view>
|
|
|
- <!-- 消息预警推送汇总 -->
|
|
|
- <view class="projectlist" style="height: 100%;">
|
|
|
- <view class="all-text">消息预警推送汇总</view>
|
|
|
- <view class="wei-title1 title1" v-if="yujin==0">
|
|
|
- <view>汇总</view>
|
|
|
- <view class="wei-line1" style="margin: 10rpx 0 0 -8rpx;"></view>
|
|
|
- </view>
|
|
|
- <view class="title1" style="rgba(0, 0, 0, 1)" v-else @click="yujinQie(0)">
|
|
|
- 汇总
|
|
|
- <view class="wei-line1" style="background: rgba(255, 255, 255, 1);"></view>
|
|
|
- </view>
|
|
|
- <view class="wei-title1 title2" v-if="yujin==1">
|
|
|
- <view>明细</view>
|
|
|
- <view class="wei-line1" style="margin: 10rpx 0 0 -8rpx;"></view>
|
|
|
- </view>
|
|
|
- <view class="title2" style="rgba(0, 0, 0, 1)" v-else @click="yujinQie(1)">
|
|
|
- 明细
|
|
|
- <view class="wei-line1" style="background: rgba(255, 255, 255, 1);"></view>
|
|
|
+ <!-- 项目列表 -->
|
|
|
+ <!-- <view class="projectlist" style="height: 100%;">
|
|
|
+ <view class="all-text">项目列表</view>
|
|
|
+ <view class="all-cui" @click="cuiban('总的')" v-if="allcuiban==1">催办</view>
|
|
|
+ <view class="all-more" style="margin: -59rpx 0 0 581rpx;" @click="takeMore">查看更多</view>
|
|
|
+ <view class="all-select">
|
|
|
+ <view class="all-list" style="margin-left: 15rpx;" v-if="change2==0">今日</view>
|
|
|
+ <view class="all-list2" style="margin-left: 15rpx;" v-else @click="changeTime2(0)">今日</view>
|
|
|
+ <view class="all-list" style="margin-left: 25rpx;" v-if="change2==1">本周</view>
|
|
|
+ <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime2(1)">本周</view>
|
|
|
+ <view class="all-list" style="margin-left: 25rpx;" v-if="change2==2">本月</view>
|
|
|
+ <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime2(2)">本月</view>
|
|
|
+ </view> -->
|
|
|
+ <!-- 列表 -->
|
|
|
+ <!-- <view class="projectL" v-for="(item,index) in list" :key="index" @click="XiangPro(item)">
|
|
|
+ <view class="projectName">{{item.projectName}}</view>
|
|
|
+ <view class="all-cui" style="margin: -44rpx 0 0 581rpx;" @click.stop="cuiban(item)" v-if="(item.state==1||item.state==2||item.state==3) && acuiban==1">催办</view>
|
|
|
+ <view style="margin: 10rpx 0 0 19rpx;">结束时间:{{item.endTime}}</view>
|
|
|
+ <view style="margin: 20rpx 0 0 19rpx;">参与成员:{{item.coSposonerName}}</view>
|
|
|
+ <progress v-if="item.progress!='/'" :percent="item.progress" activeColor="rgba(0, 97, 255, 1)" border-radius="50" stroke-width="12" show-info font-size='12' active='true' />
|
|
|
+ <view class="projectLine" v-if="list.length>=1&&(index<=list.length-1)"></view>
|
|
|
+ </view>
|
|
|
+ </view> -->
|
|
|
+ <!-- 未完成清单 -->
|
|
|
+ <view class="projectlist" style="height: 100%;">
|
|
|
+ <view class="all-text">未完成清单</view>
|
|
|
+ <view class="wei-title1 title1" v-if="qingdan==0">
|
|
|
+ <view>问题清单</view>
|
|
|
+ <view class="wei-line1"></view>
|
|
|
+ </view>
|
|
|
+ <view class="title1" style="rgba(0, 0, 0, 1)" v-else @click="qingQie(0)">
|
|
|
+ 问题清单
|
|
|
+ <view class="wei-line1" style="background: rgba(255, 255, 255, 1);"></view>
|
|
|
+ </view>
|
|
|
+ <view class="wei-title1 title2" v-if="qingdan==1">
|
|
|
+ <view>预警清单</view>
|
|
|
+ <view class="wei-line1"></view>
|
|
|
+ </view>
|
|
|
+ <view class="title2" style="rgba(0, 0, 0, 1)" v-else @click="qingQie(1)">
|
|
|
+ 预警清单
|
|
|
+ <view class="wei-line1" style="background: rgba(255, 255, 255, 1);"></view>
|
|
|
+ </view>
|
|
|
+ <view class="all-cui" style="margin: -35px 0 0 581rpx;" @click="cuiban('未完成')" v-if="allcuiban==1">催办</view>
|
|
|
+ <view class="all-select">
|
|
|
+ <view class="all-list" style="margin-left: 15rpx;" v-if="change3==0">今日</view>
|
|
|
+ <view class="all-list2" style="margin-left: 15rpx;" v-else @click="changeTime3(0)">今日</view>
|
|
|
+ <view class="all-list" style="margin-left: 25rpx;" v-if="change3==1">本周</view>
|
|
|
+ <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime3(1)">本周</view>
|
|
|
+ <view class="all-list" style="margin-left: 25rpx;" v-if="change3==2">本月</view>
|
|
|
+ <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime3(2)">本月</view>
|
|
|
+ </view>
|
|
|
+ <!-- 未完成清单表格 -->
|
|
|
+ <view style="margin: 24rpx 0 0 20rpx;width: 710rpx;">
|
|
|
+ <uni-table ref="table" emptyText="暂无更多数据"
|
|
|
+ style="width:710rpx;table-layout: fixed; word-wrap: break-word;">
|
|
|
+ <uni-tr style="background-color: rgba(245, 246, 250, 1);color: rgba(90, 96, 127, 1);font-size: 24rpx;">
|
|
|
+ <uni-th align="center">姓名</uni-th>
|
|
|
+ <uni-th align="center">项目名称</uni-th>
|
|
|
+ <uni-th align="center">项目任务</uni-th>
|
|
|
+ <uni-th align="center">情况状态</uni-th>
|
|
|
+ </uni-tr>
|
|
|
+ <uni-tr v-for="(item, index) in tableNo" :key="index" style="color: rgba(0, 0, 0, 1);">
|
|
|
+ <uni-td align="center">{{ item.headerName }}</uni-td>
|
|
|
+ <uni-td align="center">
|
|
|
+ <view class="name">{{ item.projectName }}</view>
|
|
|
+ </uni-td>
|
|
|
+ <uni-td align="center">{{ item.taskName }}</uni-td>
|
|
|
+ <uni-td align="center">{{ item.projectLevel }}</uni-td>
|
|
|
+ </uni-tr>
|
|
|
+ </uni-table>
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
- <view class="all-select">
|
|
|
- <view class="all-list" style="margin-left: 15rpx;" v-if="change5==0">今日</view>
|
|
|
- <view class="all-list2" style="margin-left: 15rpx;" v-else @click="changeTime5(0)">今日</view>
|
|
|
- <view class="all-list" style="margin-left: 25rpx;" v-if="change5==1">本周</view>
|
|
|
- <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime5(1)">本周</view>
|
|
|
- <view class="all-list" style="margin-left: 25rpx;" v-if="change5==2">本月</view>
|
|
|
- <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime5(2)">本月</view>
|
|
|
+ <!-- 部门排行榜 -->
|
|
|
+ <view class="projectlist" style="height: 100%;">
|
|
|
+ <view class="all-text">部门排行榜</view>
|
|
|
+ <view class="wei-title1 title1" v-if="bumen==0">
|
|
|
+ <view>评分</view>
|
|
|
+ <view class="wei-line1" style="margin: 10rpx 0 0 -8rpx;"></view>
|
|
|
+ </view>
|
|
|
+ <view class="title1" style="rgba(0, 0, 0, 1)" v-else @click="bumenQie(0)">
|
|
|
+ 评分
|
|
|
+ <view class="wei-line1" style="background: rgba(255, 255, 255, 1);"></view>
|
|
|
+ </view>
|
|
|
+ <view class="wei-title1 title2" v-if="bumen==1">
|
|
|
+ <view>完成率</view>
|
|
|
+ <view class="wei-line1" style="margin: 10rpx 0 0 4rpx;"></view>
|
|
|
+ </view>
|
|
|
+ <view class="title2" style="rgba(0, 0, 0, 1)" v-else @click="bumenQie(1)">
|
|
|
+ 完成率
|
|
|
+ <view class="wei-line1" style="background: rgba(255, 255, 255, 1);"></view>
|
|
|
+ </view>
|
|
|
+ <view class="all-select">
|
|
|
+ <view class="all-list" style="margin-left: 15rpx;" v-if="change4==0">今日</view>
|
|
|
+ <view class="all-list2" style="margin-left: 15rpx;" v-else @click="changeTime4(0)">今日</view>
|
|
|
+ <view class="all-list" style="margin-left: 25rpx;" v-if="change4==1">本周</view>
|
|
|
+ <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime4(1)">本周</view>
|
|
|
+ <view class="all-list" style="margin-left: 25rpx;" v-if="change4==2">本月</view>
|
|
|
+ <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime4(2)">本月</view>
|
|
|
+ </view>
|
|
|
+ <!-- 部门排行榜表格 -->
|
|
|
+ <view style="margin: 24rpx 0 0 20rpx;width: 710rpx;">
|
|
|
+ <uni-table ref="table" emptyText="暂无更多数据"
|
|
|
+ style="width:710rpx;table-layout: fixed; word-wrap: break-word;">
|
|
|
+ <uni-tr style="background-color: rgba(245, 246, 250, 1);color: rgba(90, 96, 127, 1);font-size: 24rpx;">
|
|
|
+ <uni-th align="center">排行</uni-th>
|
|
|
+ <uni-th align="center">部门名称</uni-th>
|
|
|
+ <uni-th align="center">评分</uni-th>
|
|
|
+ </uni-tr>
|
|
|
+ <uni-tr v-for="(item, index) in tableData" :key="index" style="color: rgba(0, 0, 0, 1);">
|
|
|
+ <uni-td align="center">{{ item.id }}</uni-td>
|
|
|
+ <uni-td align="center">
|
|
|
+ <view class="name">{{ item.name }}</view>
|
|
|
+ </uni-td>
|
|
|
+ <uni-td align="center">{{ item.num }}</uni-td>
|
|
|
+ </uni-tr>
|
|
|
+ </uni-table>
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
- <!-- 汇总表格 -->
|
|
|
- <view style="margin: 24rpx 0 0 20rpx;width: 710rpx;" v-if="yujin==0">
|
|
|
- <view class="hui-kuang" v-for="(item,index) in xiaoban" :key="index">
|
|
|
- <view class="hui-left">{{item.organize}}</view>
|
|
|
- <view>
|
|
|
- <view class="hui-center">{{item.mtype}}</view>
|
|
|
- <view class="hui-center">{{item.num}}次</view>
|
|
|
- </view>
|
|
|
- <view>
|
|
|
- <view class="hui-center">预警次数</view>
|
|
|
- <view class="hui-center">{{item.num2}}次</view>
|
|
|
+ <!-- 消息预警推送汇总 -->
|
|
|
+ <view class="projectlist" style="height: 100%;">
|
|
|
+ <view class="all-text">消息预警推送汇总</view>
|
|
|
+ <view class="wei-title1 title1" v-if="yujin==0">
|
|
|
+ <view>汇总</view>
|
|
|
+ <view class="wei-line1" style="margin: 10rpx 0 0 -8rpx;"></view>
|
|
|
+ </view>
|
|
|
+ <view class="title1" style="rgba(0, 0, 0, 1)" v-else @click="yujinQie(0)">
|
|
|
+ 汇总
|
|
|
+ <view class="wei-line1" style="background: rgba(255, 255, 255, 1);"></view>
|
|
|
+ </view>
|
|
|
+ <view class="wei-title1 title2" v-if="yujin==1">
|
|
|
+ <view>明细</view>
|
|
|
+ <view class="wei-line1" style="margin: 10rpx 0 0 -8rpx;"></view>
|
|
|
+ </view>
|
|
|
+ <view class="title2" style="rgba(0, 0, 0, 1)" v-else @click="yujinQie(1)">
|
|
|
+ 明细
|
|
|
+ <view class="wei-line1" style="background: rgba(255, 255, 255, 1);"></view>
|
|
|
+ </view>
|
|
|
+ <view class="all-select">
|
|
|
+ <view class="all-list" style="margin-left: 15rpx;" v-if="change5==0">今日</view>
|
|
|
+ <view class="all-list2" style="margin-left: 15rpx;" v-else @click="changeTime5(0)">今日</view>
|
|
|
+ <view class="all-list" style="margin-left: 25rpx;" v-if="change5==1">本周</view>
|
|
|
+ <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime5(1)">本周</view>
|
|
|
+ <view class="all-list" style="margin-left: 25rpx;" v-if="change5==2">本月</view>
|
|
|
+ <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime5(2)">本月</view>
|
|
|
+ </view>
|
|
|
+ <!-- 汇总表格 -->
|
|
|
+ <view style="margin: 24rpx 0 0 20rpx;width: 710rpx;" v-if="yujin==0">
|
|
|
+ <view class="hui-kuang" v-for="(item,index) in xiaoban" :key="index">
|
|
|
+ <view class="hui-left">{{item.organize}}</view>
|
|
|
+ <view>
|
|
|
+ <view class="hui-center">{{item.mtype}}</view>
|
|
|
+ <view class="hui-center">{{item.num}}次</view>
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ <view class="hui-center">预警次数</view>
|
|
|
+ <view class="hui-center">{{item.num2}}次</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <!-- 消息预警推送汇总明细表格 -->
|
|
|
+ <view style="margin: 24rpx 0 0 20rpx;width: 710rpx;" v-if="yujin==1">
|
|
|
+ <uni-table ref="table" emptyText="暂无更多数据"
|
|
|
+ style="width:710rpx;table-layout: fixed; word-wrap: break-word;">
|
|
|
+ <uni-tr style="background-color: rgba(245, 246, 250, 1);color: rgba(90, 96, 127, 1);font-size: 24rpx;">
|
|
|
+ <uni-th align="center">项目</uni-th>
|
|
|
+ <uni-th align="center">任务</uni-th>
|
|
|
+ <uni-th align="center">类型</uni-th>
|
|
|
+ <uni-th align="center">发生时间</uni-th>
|
|
|
+ <uni-th align="center">部门</uni-th>
|
|
|
+ <uni-th align="center">姓名</uni-th>
|
|
|
+ </uni-tr>
|
|
|
+ <uni-tr v-for="(item, index) in yujinList" :key="index" style="color: rgba(0, 0, 0, 1);">
|
|
|
+ <uni-td align="center">{{ item.projectName }}</uni-td>
|
|
|
+ <uni-td align="center">
|
|
|
+ <view class="name">{{ item.taskName }}</view>
|
|
|
+ </uni-td>
|
|
|
+ <uni-td align="center">{{ item.mtype }}</uni-td>
|
|
|
+ <uni-td align="center">{{item.createTime}}</uni-td>
|
|
|
+ <uni-td align="center">
|
|
|
+ <view class="name">{{ item.organize }}</view>
|
|
|
+ </uni-td>
|
|
|
+ <uni-td align="center">{{ item.userName }}</uni-td>
|
|
|
+ </uni-tr>
|
|
|
+ </uni-table>
|
|
|
+ </view>
|
|
|
+ <view style="width: 100%;height:120rpx;"></view>
|
|
|
</view>
|
|
|
- <!-- 消息预警推送汇总明细表格 -->
|
|
|
- <view style="margin: 24rpx 0 0 20rpx;width: 710rpx;" v-if="yujin==1">
|
|
|
- <uni-table ref="table" emptyText="暂无更多数据"
|
|
|
- style="width:710rpx;table-layout: fixed; word-wrap: break-word;">
|
|
|
- <uni-tr style="background-color: rgba(245, 246, 250, 1);color: rgba(90, 96, 127, 1);font-size: 24rpx;">
|
|
|
- <uni-th align="center">项目</uni-th>
|
|
|
- <uni-th align="center">任务</uni-th>
|
|
|
- <uni-th align="center">类型</uni-th>
|
|
|
- <uni-th align="center">发生时间</uni-th>
|
|
|
- <uni-th align="center">部门</uni-th>
|
|
|
- <uni-th align="center">姓名</uni-th>
|
|
|
- </uni-tr>
|
|
|
- <uni-tr v-for="(item, index) in yujinList" :key="index" style="color: rgba(0, 0, 0, 1);">
|
|
|
- <uni-td align="center">{{ item.projectName }}</uni-td>
|
|
|
- <uni-td align="center">
|
|
|
- <view class="name">{{ item.taskName }}</view>
|
|
|
- </uni-td>
|
|
|
- <uni-td align="center">{{ item.mtype }}</uni-td>
|
|
|
- <uni-td align="center">{{item.createTime}}</uni-td>
|
|
|
- <uni-td align="center">
|
|
|
- <view class="name">{{ item.organize }}</view>
|
|
|
- </uni-td>
|
|
|
- <uni-td align="center">{{ item.userName }}</uni-td>
|
|
|
- </uni-tr>
|
|
|
- </uni-table>
|
|
|
- </view>
|
|
|
- <view style="width: 100%;height:120rpx;"></view>
|
|
|
+ </view>
|
|
|
+ <view v-if="shouye==0" class="content">
|
|
|
+ <image src="../../static/img/quesheng.png" class="quesheng"></image>
|
|
|
+ <view style="color: rgba(87, 146, 240, 1);">暂无内容</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -244,6 +250,16 @@
|
|
|
weekEnd:'',//本周结束时间
|
|
|
monthStart:'',//本月开始时间
|
|
|
monthEnd:'',//本月结束时间
|
|
|
+
|
|
|
+ shouye:1,//首页
|
|
|
+ allcuiban:1,//一键催办
|
|
|
+ acuiban:1,//是否催办
|
|
|
+
|
|
|
+ weidu:[],
|
|
|
+
|
|
|
+ page:1,
|
|
|
+ size:10,
|
|
|
+ totalCount:0,
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
|
@@ -255,7 +271,7 @@
|
|
|
//项目总览
|
|
|
this.getStateLb()
|
|
|
//项目列表
|
|
|
- this.getList()
|
|
|
+ // this.getList()
|
|
|
//未完成清单
|
|
|
this.getNoQingdan()
|
|
|
//部门排行
|
|
|
@@ -305,8 +321,11 @@
|
|
|
var data={
|
|
|
roleId:roleId
|
|
|
}
|
|
|
- that.$Request.postT('/api/sysRole/queryMenuByRole').then(res => {
|
|
|
+ that.$Request.postT('/api/sysRole/queryMenuByRole',data).then(res => {
|
|
|
if (res.code==200) {
|
|
|
+ this.shouye=res.data[0].state
|
|
|
+ this.allcuiban=res.data[1].menuLists[0].state
|
|
|
+ this.acuiban=res.data[1].menuLists[3].state
|
|
|
// uni.setStorageSync('roleId', res.data.roleId)
|
|
|
console.log(uni.getStorageSync('roleId'),'数据')
|
|
|
} else {
|
|
|
@@ -335,7 +354,7 @@
|
|
|
var time11=time.join(",")
|
|
|
}else if(that.change==1){
|
|
|
var time=[]
|
|
|
- time=[that.weekStart,that.weekEnd]
|
|
|
+ time=[that.weekStart,that.nowDate+' 24:00:00']
|
|
|
var time11=time.join(",")
|
|
|
}else if(that.change==2){
|
|
|
var time11='本月'
|
|
|
@@ -365,7 +384,7 @@
|
|
|
//项目列表
|
|
|
changeTime2(a){
|
|
|
this.change2=a
|
|
|
- this.getList()
|
|
|
+ // this.getList()
|
|
|
},
|
|
|
//查看项目详情
|
|
|
XiangPro(item){
|
|
|
@@ -375,8 +394,12 @@
|
|
|
str = str.replace(/%/g, '%25')
|
|
|
//这里———————————————————————————
|
|
|
let query = encodeURIComponent(str)
|
|
|
+
|
|
|
+ let t2=JSON.stringify(this.weidu)
|
|
|
+ //这里———————————————————————————
|
|
|
+ let query2 = encodeURIComponent(t2)
|
|
|
uni.navigateTo({
|
|
|
- url:'/pages/project/projectX?data='+query
|
|
|
+ url:'/pages/project/projectX?data='+query+'&weidu='+query2
|
|
|
})
|
|
|
},
|
|
|
// 催办
|
|
|
@@ -418,7 +441,7 @@
|
|
|
duration:800
|
|
|
});
|
|
|
setTimeout(function() {
|
|
|
- that.getList()
|
|
|
+ // that.getList()
|
|
|
}, 1000)
|
|
|
} else {
|
|
|
uni.showToast({
|
|
|
@@ -437,13 +460,14 @@
|
|
|
},
|
|
|
getList(){
|
|
|
this.list=[]
|
|
|
+ this.weidu=[]
|
|
|
let that = this
|
|
|
if(that.change2==0){
|
|
|
var time1=that.nowDate
|
|
|
var time2=that.nowDate+' 24:00:00'
|
|
|
}else if(that.change2==1){
|
|
|
var time1=that.weekStart
|
|
|
- var time2=that.weekEnd
|
|
|
+ var time2=that.nowDate+' 24:00:00'//that.weekEnd
|
|
|
}else if(that.change2==2){
|
|
|
var time1=that.monthStart
|
|
|
var time2=that.monthEnd
|
|
|
@@ -453,7 +477,7 @@
|
|
|
mask: true, // 是否显示透明蒙层,防止触摸穿透
|
|
|
});
|
|
|
var data={
|
|
|
- "type": null, // 1我关注的我收藏的、3我负责的、4我协办的、null
|
|
|
+ "type": null, // 3我负责的、4我协办的、5创建的、6我分管的
|
|
|
"project": {
|
|
|
"projectName": null, // 项目名称
|
|
|
"projectFrom": null, // 项目来源
|
|
|
@@ -463,6 +487,10 @@
|
|
|
"coOrganize": null, // 协办单位-多选
|
|
|
"sposonerName": null, // 主办人
|
|
|
"coSposonerName": null, // 协办人
|
|
|
+ "scoreState": null, // 是否已评分:1已评分,0未评分,null全部
|
|
|
+ "collect": null, // 是否已关注,1收藏,0未收藏,null全部
|
|
|
+ "hasTask": null, // 是否有任务:1有任务,0没有认为,null全部
|
|
|
+ "isScore": null // 是否我评分,1是我,0不是我,null全部
|
|
|
},
|
|
|
"t1": time1, // 创建开始时间
|
|
|
"t2": time2, // 创建结束时间
|
|
|
@@ -474,6 +502,7 @@
|
|
|
that.$Request.postJson('/api/sysProject/queryPage?page=1&rows=2',data).then(res => {
|
|
|
if (res.code==200) {
|
|
|
that.list=res.data.project.rows.slice(0,2)
|
|
|
+ that.weidu=res.data.config
|
|
|
console.log(that.list,'数据')
|
|
|
} else {
|
|
|
uni.showToast({
|
|
|
@@ -504,7 +533,7 @@
|
|
|
var time11=time.join(",")
|
|
|
}else if(that.change3==1){
|
|
|
var time=[]
|
|
|
- time=[that.weekStart,that.weekEnd]
|
|
|
+ time=[that.weekStart,that.nowDate+' 24:00:00']
|
|
|
var time11=time.join(",")
|
|
|
}else if(that.change3==2){
|
|
|
var time=[]
|
|
|
@@ -565,7 +594,7 @@
|
|
|
var time11=time.join(",")
|
|
|
}else if(that.change4==1){
|
|
|
var time=[]
|
|
|
- time=[that.weekStart,that.weekEnd]
|
|
|
+ time=[that.weekStart,that.nowDate+' 24:00:00']
|
|
|
var time11=time.join(",")
|
|
|
}else if(that.change4==2){
|
|
|
var time11='本月'
|
|
|
@@ -602,7 +631,7 @@
|
|
|
var time11=time.join(",")
|
|
|
}else if(that.change4==1){
|
|
|
var time=[]
|
|
|
- time=[that.weekStart,that.weekEnd]
|
|
|
+ time=[that.weekStart,that.nowDate+' 24:00:00']
|
|
|
var time11=time.join(",")
|
|
|
}else if(that.change4==2){
|
|
|
var time11='本月'
|
|
|
@@ -656,7 +685,7 @@
|
|
|
var time11=time.join(",")
|
|
|
}else if(that.change5==1){
|
|
|
var time=[]
|
|
|
- time=[that.weekStart,that.weekEnd]
|
|
|
+ time=[that.weekStart,that.nowDate+' 24:00:00']
|
|
|
var time11=time.join(",")
|
|
|
}else if(that.change5==2){
|
|
|
var time11='本月'
|
|
|
@@ -692,7 +721,7 @@
|
|
|
},
|
|
|
//预警明细
|
|
|
getYujinXi(){
|
|
|
- this.yujinList=[]
|
|
|
+ // this.yujinList=[]
|
|
|
let that = this
|
|
|
if(that.change5==0){
|
|
|
var time=[]
|
|
|
@@ -700,7 +729,7 @@
|
|
|
var time11=time.join(",")
|
|
|
}else if(that.change5==1){
|
|
|
var time=[]
|
|
|
- time=[that.weekStart,that.weekEnd]
|
|
|
+ time=[that.weekStart,that.nowDate+' 24:00:00']
|
|
|
var time11=time.join(",")
|
|
|
}else if(that.change5==2){
|
|
|
var time11='本月'
|
|
|
@@ -720,10 +749,15 @@
|
|
|
"coSposonerName": null, // 协办人
|
|
|
"updateBy": time11 // 时间类型:有:【最近7日】,【本月】,【本季度】,【2024-12-01,2024-12-30】
|
|
|
}
|
|
|
- that.$Request.postJson('/api/sysProject/queryMessage',data).then(res => {
|
|
|
+ that.$Request.postJson('/api/sysProject/queryMessage?page='+that.page+'&rows='+that.size,data).then(res => {
|
|
|
if (res.code==200) {
|
|
|
console.log(res,data,'项目')
|
|
|
- this.yujinList=res.data
|
|
|
+ that.totalCount = res.data.total
|
|
|
+ if (that.page == 1) {
|
|
|
+ that.yujinList = res.data.rows
|
|
|
+ } else {
|
|
|
+ that.yujinList = that.yujinList.concat(res.data.rows)
|
|
|
+ }
|
|
|
} else {
|
|
|
uni.showToast({
|
|
|
title: res.message,
|
|
|
@@ -734,15 +768,36 @@
|
|
|
uni.hideLoading();
|
|
|
});
|
|
|
},
|
|
|
+ // 上拉加载
|
|
|
+ onReachBottom: function() {
|
|
|
+ if(this.yujin==1){
|
|
|
+ if(this.yujinList.length < this.totalCount){
|
|
|
+ this.page = this.page + 1;
|
|
|
+ this.getYujinXi()
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: '已经最后一页啦',
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ onPullDownRefresh: function() {
|
|
|
+ if(this.yujin==1){
|
|
|
+ this.page = 1;
|
|
|
+ this.getYujinXi()
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
- //获得本周的开始时间:
|
|
|
+ //获得7天前的开始时间:
|
|
|
getStartDayOfWeek(time) {
|
|
|
let now = new Date(time); // 当前日期
|
|
|
let nowDayOfWeek = now.getDay(); // 今天本周的第几天
|
|
|
let day = nowDayOfWeek || 7;
|
|
|
let nowDay = now.getDate(); // 当前日
|
|
|
let nowMonth = now.getMonth(); // 当前月
|
|
|
- return this.formatDate(new Date(now.getFullYear(), nowMonth, nowDay + 1 - day));
|
|
|
+ return this.formatDate(new Date(now.getFullYear(), nowMonth, nowDay -6));
|
|
|
},
|
|
|
//获得本周的结束时间:
|
|
|
getEndDayOfWeek(time) {
|
|
|
@@ -969,4 +1024,10 @@
|
|
|
line-height: 60rpx;
|
|
|
text-align: center;
|
|
|
}
|
|
|
+
|
|
|
+.quesheng{
|
|
|
+ margin-top: 300rpx;
|
|
|
+ width: 480rpx;
|
|
|
+ height: 558rpx;
|
|
|
+ }
|
|
|
</style>
|