| | |
| | | "path": "pages/alarm_list/alarm_list", |
| | | "name": "alarm_list", |
| | | "style": { |
| | | "navigationBarTitleText": "我要查", |
| | | "app-plus":{ |
| | | "titleNView":false |
| | | } |
| | | "navigationBarTitleText": "群防任务", |
| | | "navigationBarBackgroundColor": "#0cd7e5", |
| | | "navigationBarTextStyle":"white" |
| | | } |
| | | }, |
| | | { |
| | |
| | | <view class="alarm-list"> |
| | | <!-- 自定义顶部导航栏 --> |
| | | <!-- <navBarTop :title="'我要查'"></navBarTop> --> |
| | | <uni-nav-bar class="uni-nav-bar-info" :fixed="true" :status-bar="true"> |
| | | <!-- <uni-nav-bar class="uni-nav-bar-info" :fixed="true" :status-bar="true"> |
| | | <view class="title" slot="default">群防任务</view> |
| | | <view slot="left" class="uni-nav-bar-left" @click="goBack()"> |
| | | <image src="../../static/images/nav/back02.png"></image> |
| | | </view> |
| | | </uni-nav-bar> |
| | | </uni-nav-bar> --> |
| | | <view class="navigation-bar"> |
| | | <view class="alarm-bar-total" :style="{color:totalColor,borderBottom:totalBoder}" |
| | | @click="getAlarmListInfo(1)">全部({{totalNumber}})</view> |
| | |
| | | </view> |
| | | <view class="alarm-status" :style="{color:processedColor}" |
| | | v-if="item.securityId!='' && item.jtype==1">处理中</view> |
| | | <view class="alarm-status" :style="{color:finishColor}" v-if="item.jtype==2">已处理</view> |
| | | <view class="alarm-status" :style="{color:finishColor}" v-if="item.jtype==2 && item.securityId!=''">已处理</view> |
| | | </view> |
| | | <view class="alarm-position-time"> |
| | | <view class="image-place"> |
| | |
| | | page { |
| | | width: 100%; |
| | | height: 100%; |
| | | background-color: rgba(243, 243, 243, 1); |
| | | background-color: #F7F7F7; |
| | | z-index: 999; |
| | | } |
| | | </style> |
| | |
| | | } |
| | | |
| | | .uni-nav-bar-info { |
| | | background-color: #0BB9C8; |
| | | // font-weight: 550; |
| | | |
| | | .title { |
| | |
| | | top: 0.2rem; |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | .alarm-list { |
| | |
| | | flex-direction: column; |
| | | |
| | | .navigation-bar { |
| | | border-top: 1rpx solid #C8C7CC; |
| | | // border-top: 1rpx solid #C8C7CC; |
| | | background-color: #FFFFFF; |
| | | width: 100%; |
| | | height: 43px; |
| | |
| | | //去打卡 |
| | | goClock() { |
| | | var that = this; |
| | | axios({ |
| | | method: "POST", |
| | | url: this.$store.state.piAPI + `/attendance/AppSave`, |
| | | params: { |
| | | number: this.$store.state.puserID, |
| | | name: this.name, |
| | | clockTime: this.getNowTime(1), |
| | | jd: this.jd, |
| | | wd: this.wd, |
| | | address: this.address |
| | | }, |
| | | }).then((resdata) => { |
| | | //不在考勤范围内 |
| | | if (resdata.data.code == 400) { |
| | | layui.use('layer', function() { |
| | | var layer = layui.layer; |
| | | layer.msg('打卡失败,不在考勤范围', { |
| | | icon: 0 |
| | | }); |
| | | }); |
| | | } |
| | | //打卡成功 |
| | | if (resdata.data.code == 200) { |
| | | layui.use('layer', function() { |
| | | var layer = layui.layer; |
| | | layer.msg('打卡成功!', { |
| | | icon: 1 |
| | | }); |
| | | }); |
| | | } |
| | | |
| | | }); |
| | | uni.request({ |
| | | url: this.$store.state.piAPI + `/attendance/AppSave`, |
| | | method: "POST", |
| | | data:{ |
| | | number: this.$store.state.puserID, |
| | | name: this.name, |
| | | clockTime: this.getNowTime(1), |
| | | jd: this.jd, |
| | | wd: this.wd, |
| | | address: this.address |
| | | }, |
| | | success(resdata) { |
| | | //不在考勤范围内 |
| | | if (resdata.data.code == 400) { |
| | | uni.showToast({ |
| | | title: '不在考勤范围,打卡失败!', |
| | | icon:'none', |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | //打卡成功 |
| | | if (resdata.data.code == 200) { |
| | | uni.showToast({ |
| | | title: '打卡成功!', |
| | | icon:'success', |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | //获取当前时间 |
| | |
| | | height: 6rem; |
| | | border-radius: 100px; |
| | | color: #FFFFFF; |
| | | background-image: linear-gradient(to bottom,#65CBA9,#66D0AC); |
| | | background-image: linear-gradient(to bottom,#0FD0E1,#0FD0E1); |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | |
| | | <view class="m-top"> |
| | | <view class="my-user-info"> |
| | | <view class="user-name-id"> |
| | | <view class="user-name">{{userName}}</view> |
| | | <view class="user-id">ID: 4120552252</view> |
| | | <view class="user-name">{{name}}</view> |
| | | <view class="user-id">ID: {{id}}</view> |
| | | </view> |
| | | <view class="userImg"> |
| | | <img class="img" :src="useimg" @click="ChooseImage"> |
| | |
| | | </view> |
| | | <view class="my-dept-info"> |
| | | <view class="dept-info"> |
| | | <view class="dept-name">所属组织: **派出所--**警务站</view> |
| | | <view class="dept-name">所属组织: {{tenantName}}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | }, |
| | | |
| | | ], |
| | | tabbar:this.$store.state.tabbar |
| | | tabbar:this.$store.state.tabbar, |
| | | name:'', |
| | | id:'', |
| | | tenantName:'' |
| | | } |
| | | }, |
| | | components: { |
| | |
| | | } |
| | | }, |
| | | onLoad() { |
| | | if(this.$store.state.puserID){ |
| | | //获取个人信息 |
| | | this.getOneselfInFo(); |
| | | } |
| | | if(this.$store.state.avatar!=null && this.$store.state.avatar!=''){ |
| | | this.useimg = this.$store.state.avatar; |
| | | } |
| | |
| | | animationType: 'slide-in-top', |
| | | animationDuration: 20000 |
| | | }); |
| | | }, |
| | | //登录成功后,获取个人信息 |
| | | getOneselfInFo(){ |
| | | var that = this; |
| | | //保安信息查询 |
| | | uni.request({ |
| | | url:'http://s16s652780.51mypc.cn/api/blade-user/details?id='+this.$store.state.puserID, |
| | | method:'POST', |
| | | success(resdata) { |
| | | that.name = resdata.data.data.realName; |
| | | that.id = resdata.data.data.id; |
| | | that.tenantName = resdata.data.data.tenantName; |
| | | } |
| | | }) |
| | | }, |
| | | operation(e) { |
| | | let that = this; |
| | |
| | | font-weight: 550; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | |