|
@@ -6,7 +6,7 @@
|
|
|
<image slot="right" :src="`${urls}/navBg@2x.png`" class="bgTopImg"></image>
|
|
|
</view> -->
|
|
|
<view class="container uni-container"
|
|
|
- style="display:flex;flex-direction: column;justify-content: space-between;height: 100%;">
|
|
|
+ style="display:flex;flex-direction: column;justify-content: space-around;height: 100%;">
|
|
|
<view class="nav">
|
|
|
<!-- <u-scroll-list indicatorColor="#fff0f0" indicatorActiveColor="#f56c6c" >
|
|
|
<view class="scroll-list" style="flex-direction: row;">
|
|
@@ -28,7 +28,7 @@
|
|
|
</u-grid>
|
|
|
<u-grid :border="false" col="3" v-else>
|
|
|
<u-grid-item v-for="(item, listIndex) in goodsStreet" :key="listIndex">
|
|
|
- <image @click="handleToInfo(item.menuUrl)" class="scroll-list__goods-item__image "
|
|
|
+ <image @click="handleToInfo(item.menuUrl)" class="scroll-list__goods-item__image"
|
|
|
:src="item.thumbnail" mode=""></image>
|
|
|
<text class="grid-text">{{ item.name }}</text>
|
|
|
</u-grid-item>
|
|
@@ -105,6 +105,24 @@
|
|
|
<view v-else>暂无通知</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
+ <view v-if="remindData.length !=0">
|
|
|
+ <view class="" v-for="(item,index) in remindData" :key="index">
|
|
|
+ <view class="back-image" v-if="isStreet" @click.nativite="onRemindClick(item)">
|
|
|
+ <image :src="laba" class="back-notice"></image>
|
|
|
+ <view style="display: flex;padding-top: 40rpx;cursor: pointer;">
|
|
|
+ <image :src="gonggao" class="back-size-tips"></image>
|
|
|
+ <view>
|
|
|
+ <view >
|
|
|
+ {{ item.remind_title }}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view v-else>暂无重要提醒</view>
|
|
|
<!-- <view class="back-image back-image2">
|
|
|
<image :src="laba" class="back-notice"></image>
|
|
|
<view style="display: flex;padding-top: 40rpx;">
|
|
@@ -116,13 +134,14 @@
|
|
|
</view>
|
|
|
</view> -->
|
|
|
</view>
|
|
|
- <view class="" v-if="!isStreet">
|
|
|
+ <view class="" v-if="!isStreet">
|
|
|
<u-cell-group :border="false">
|
|
|
<u-cell :border="false" :boritemder="false" isLink rightIconStyle="color:#4CB2B6;font-size: 24rpx;">
|
|
|
<view slot="title" class="u-slot-title">
|
|
|
<text class="u-cell-text">待办任务</text>
|
|
|
</view>
|
|
|
- <text slot="value" style="font-size: 28rpx;color: #4CB2B6;cursor: pointer;" @click="goInformDetails">更多</text>
|
|
|
+ <text slot="value" style="font-size: 28rpx;color: #4CB2B6;cursor: pointer;"
|
|
|
+ @click="goInformDetails">更多</text>
|
|
|
</u-cell>
|
|
|
</u-cell-group>
|
|
|
<uni-card v-if="tableDatas.length>0">
|
|
@@ -203,14 +222,17 @@
|
|
|
getNoticeList,
|
|
|
getNoticeAllRead,
|
|
|
getNoticeOlnyRead,
|
|
|
- isNeedInfo
|
|
|
+ isNeedInfo,
|
|
|
+ getRemindLists
|
|
|
} from '@/api/notice'; // 通知公告列表
|
|
|
+ import {getRemindOlnyRead} from '@/api/remind'
|
|
|
import {
|
|
|
checkGetPerson, //单位转发任务获取人员
|
|
|
taskList, //获取除草稿箱以外的列表 //获取当前日期的任务列表
|
|
|
checkSubmitForwardTask, //确认转发任务
|
|
|
} from "@/api/check_active";
|
|
|
import storage from '@/utils/storage';
|
|
|
+ // import gonggao from '@/static/appimg/impt_tip.png'
|
|
|
let that = null;
|
|
|
import config from '@/config'
|
|
|
const baseUrlImg = config.baseUrlImg
|
|
@@ -219,7 +241,7 @@
|
|
|
return {
|
|
|
urls: baseUrlImg,
|
|
|
bgImg: `${baseUrlImg}/navBg@2x.png`,
|
|
|
- isStreet:null,//判断是否是街道人员
|
|
|
+ isStreet: null, //判断是否是街道人员
|
|
|
opts: {
|
|
|
legend: {
|
|
|
show: false
|
|
@@ -261,7 +283,8 @@
|
|
|
|
|
|
chartsDataLine3: {},
|
|
|
tongzhi: `${baseUrlImg}/tongzhi.png`,
|
|
|
- gonggao: `${baseUrlImg}/gonggao.png`,
|
|
|
+ gonggao: `${baseUrlImg}/impt_tip.png`,
|
|
|
+ gonggao: gonggao,
|
|
|
laba: `${baseUrlImg}/laba.png`,
|
|
|
//import biankuang from '@/static/images/biankuang.png'
|
|
|
LoadingModel: false,
|
|
@@ -312,6 +335,7 @@
|
|
|
zhuanfa: `${baseUrlImg}/zhuanfa.png`,
|
|
|
// 通知公告数据
|
|
|
tableData: [],
|
|
|
+ remindData:[],
|
|
|
// tableData数据加载中
|
|
|
loading: false,
|
|
|
// echarts数据
|
|
@@ -364,21 +388,22 @@
|
|
|
const date = new Date()
|
|
|
this.formData.receivDate = uni.$u.timeFormat(date, 'yyyy-mm-dd')
|
|
|
this.getDatas()
|
|
|
- this.getData()
|
|
|
+ this.getData();
|
|
|
+ this.getRemind();
|
|
|
const deptId = uni.getStorageSync('getUserInfo_key').streetInfo ? uni.getStorageSync('getUserInfo_key')
|
|
|
.streetInfo
|
|
|
.id : ''; //登录用户
|
|
|
if (deptId != '') {
|
|
|
- this.isStreetPerson = true
|
|
|
- this.$forceUpdate()
|
|
|
- }else{
|
|
|
- this.isStreetPerson = false
|
|
|
- }
|
|
|
+ this.isStreetPerson = true
|
|
|
+ this.$forceUpdate()
|
|
|
+ } else {
|
|
|
+ this.isStreetPerson = false
|
|
|
+ }
|
|
|
},
|
|
|
onLoad: function(option) {
|
|
|
|
|
|
- that = this;
|
|
|
-
|
|
|
+ that = this;
|
|
|
+
|
|
|
// // 判断用户信息是否需要完善
|
|
|
// const value = uni.getStorageSync('getUserInfo_key');
|
|
|
// if (
|
|
@@ -426,6 +451,18 @@
|
|
|
|
|
|
|
|
|
},
|
|
|
+ getRemind(){
|
|
|
+ getRemindLists().then(res=>{
|
|
|
+ if(!res.data.records) return;
|
|
|
+ if( res.data.records.length>3){
|
|
|
+ this.remindData = res.data.records.slice(0,3);
|
|
|
+ }else{
|
|
|
+ this.remindData = res.data.records;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
// 获取数据
|
|
|
getData() {
|
|
|
this.$modal.isLoadingModel(true);
|
|
@@ -439,9 +476,9 @@
|
|
|
// this.tableData = response.data ?? [...this.tableData, ...response.data.list];
|
|
|
if (this.tableData && response.data?.list.length > 0) {
|
|
|
this.arrtongzhi = response.data.list.filter(i => i.type == 1);
|
|
|
- this.arrgonggao =response.data.list.filter(i => i.type == 2);
|
|
|
+ this.arrgonggao = response.data.list.filter(i => i.type == 2);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// this.checkactiveGetEchart();
|
|
|
});
|
|
|
},
|
|
@@ -483,6 +520,16 @@
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ onRemindClick(val){
|
|
|
+
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pagesA/fire/remind/details/details?id=${val.broad_id}`,
|
|
|
+ success: function(res) {
|
|
|
+ // 通过eventChannel向被打开页面传送数据
|
|
|
+ res.eventChannel.emit('acceptDataFromOpenerPage', val);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
// 根据不同的url,进行页面的跳转
|
|
|
handleToInfo(url) {
|
|
|
this.$tab.navigateTo(url);
|
|
@@ -754,11 +801,22 @@
|
|
|
margin: 0 20rpx 0 60rpx;
|
|
|
}
|
|
|
|
|
|
+ .back-size {
|
|
|
+ width: 30px;
|
|
|
+ height: 21px;
|
|
|
+ }
|
|
|
+
|
|
|
.back-sizes {
|
|
|
width: 32rpx;
|
|
|
height: 32rpx;
|
|
|
}
|
|
|
|
|
|
+ .back-size-tips {
|
|
|
+ width: 59px;
|
|
|
+ height: 21px;
|
|
|
+ margin: 0 20rpx 0 60rpx;
|
|
|
+ }
|
|
|
+
|
|
|
.back-notice {
|
|
|
position: absolute;
|
|
|
top: 0;
|