|
@@ -1,11 +1,11 @@
|
|
<template>
|
|
<template>
|
|
<div class="bg">
|
|
<div class="bg">
|
|
- <van-nav-bar
|
|
|
|
|
|
+ <!-- <van-nav-bar
|
|
title="智慧“和顺”"
|
|
title="智慧“和顺”"
|
|
left-text="民宗干事"
|
|
left-text="民宗干事"
|
|
left-arrow
|
|
left-arrow
|
|
@click-left="onClickLeft"
|
|
@click-left="onClickLeft"
|
|
- />
|
|
|
|
|
|
+ /> -->
|
|
|
|
|
|
<!-- <van-image
|
|
<!-- <van-image
|
|
width="100%"
|
|
width="100%"
|
|
@@ -20,24 +20,24 @@
|
|
</van-swipe-item>
|
|
</van-swipe-item>
|
|
</van-swipe>
|
|
</van-swipe>
|
|
|
|
|
|
- <div class="tabtitlelay">
|
|
|
|
|
|
+ <div class="tabtitlelay" @click="goToBeDone">
|
|
<div class="tabtitle1"></div>
|
|
<div class="tabtitle1"></div>
|
|
<div class="tabtitle">我的待办</div>
|
|
<div class="tabtitle">我的待办</div>
|
|
<div class="tabtitle2">(</div>
|
|
<div class="tabtitle2">(</div>
|
|
- <div class="tabtitle3">15</div>
|
|
|
|
|
|
+ <div class="tabtitle3">{{con1+con2}}</div>
|
|
<div class="tabtitle4">)</div>
|
|
<div class="tabtitle4">)</div>
|
|
- <van-icon name="ellipsis" class="tabtitle5" @click="goToBeDone" />
|
|
|
|
|
|
+ <van-icon name="ellipsis" class="tabtitle5" />
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="flexll">
|
|
<div class="flexll">
|
|
- <div class="ffl2">
|
|
|
|
- <div class="textRegular">待处理</div>
|
|
|
|
|
|
+ <div class="ffl2" id="0" @click="goToBeDone($event)">
|
|
|
|
+ <div class="textRegular" >待处理</div>
|
|
<div class="textRed">{{con1}}</div>
|
|
<div class="textRed">{{con1}}</div>
|
|
</div>
|
|
</div>
|
|
<div class="verticalLine"></div>
|
|
<div class="verticalLine"></div>
|
|
- <div class="ffl2">
|
|
|
|
- <div class="textRegular">已处理</div>
|
|
|
|
- <div class="textBlue">8</div>
|
|
|
|
|
|
+ <div class="ffl2" id="1" @click="goToBeDone($event)">
|
|
|
|
+ <div class="textRegular" >已处理</div>
|
|
|
|
+ <div class="textBlue">{{con2}}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="hLine"></div>
|
|
<div class="hLine"></div>
|
|
@@ -76,7 +76,7 @@
|
|
import tool from "@/tool";
|
|
import tool from "@/tool";
|
|
import qs from "qs";
|
|
import qs from "qs";
|
|
import userSets from "@/api/sys/userSets";
|
|
import userSets from "@/api/sys/userSets";
|
|
-
|
|
|
|
|
|
+import toBeDone from '@/api/toBeDone/toBeDone';
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return{
|
|
return{
|
|
@@ -85,7 +85,8 @@ import userSets from "@/api/sys/userSets";
|
|
sms:"",
|
|
sms:"",
|
|
password:"",
|
|
password:"",
|
|
password2:"",
|
|
password2:"",
|
|
- con1:"0",
|
|
|
|
|
|
+ con1:0,
|
|
|
|
+ con2:0,
|
|
BannerImgurls:['https://img1.baidu.com/it/u=2086445453,3056906789&fm=253&fmt=auto&app=138&f=GIF?w=1378&h=400','https://img1.baidu.com/it/u=2086445453,3056906789&fm=253&fmt=auto&app=138&f=GIF?w=1378&h=400']
|
|
BannerImgurls:['https://img1.baidu.com/it/u=2086445453,3056906789&fm=253&fmt=auto&app=138&f=GIF?w=1378&h=400','https://img1.baidu.com/it/u=2086445453,3056906789&fm=253&fmt=auto&app=138&f=GIF?w=1378&h=400']
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -94,21 +95,40 @@ import userSets from "@/api/sys/userSets";
|
|
let id=this.$route.query.id;
|
|
let id=this.$route.query.id;
|
|
window.xm.setNavigationBarTitle({ title: '智慧“和顺”'})
|
|
window.xm.setNavigationBarTitle({ title: '智慧“和顺”'})
|
|
this.TokenLogin2();
|
|
this.TokenLogin2();
|
|
|
|
+ this.dataNumber();
|
|
},
|
|
},
|
|
|
|
|
|
methods:{
|
|
methods:{
|
|
- goToBeDone() {
|
|
|
|
- this.$router.push("/toBeDone");
|
|
|
|
|
|
+ // 待办跳转
|
|
|
|
+ goToBeDone(e) {
|
|
|
|
+ let value = JSON.stringify(e.currentTarget.id)
|
|
|
|
+ // console.log(e.currentTarget.id);
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path:"/toBeDone",
|
|
|
|
+ query:{"name":value}
|
|
|
|
+ });
|
|
},
|
|
},
|
|
|
|
+ // 场所登记跳转
|
|
goPlaceRegister() {
|
|
goPlaceRegister() {
|
|
this.$router.push("/placeRegister");
|
|
this.$router.push("/placeRegister");
|
|
},
|
|
},
|
|
|
|
+ // 人员档案跳转
|
|
goPlacePerson() {
|
|
goPlacePerson() {
|
|
this.$router.push("/placePerson");
|
|
this.$router.push("/placePerson");
|
|
},
|
|
},
|
|
|
|
+ // 牌位管理跳转
|
|
goPlaceTablet(){
|
|
goPlaceTablet(){
|
|
this.$router.push("/placeTablet");
|
|
this.$router.push("/placeTablet");
|
|
},
|
|
},
|
|
|
|
+ //待办数据获取
|
|
|
|
+ dataNumber(){
|
|
|
|
+ new toBeDone().list().then((res)=>{
|
|
|
|
+ this.con1 = res.records.length;
|
|
|
|
+ })
|
|
|
|
+ new toBeDone().list2().then((res1)=>{
|
|
|
|
+ this.con2 = res1.records.length;
|
|
|
|
+ })
|
|
|
|
+ },
|
|
onClickLeft(){
|
|
onClickLeft(){
|
|
history.back();
|
|
history.back();
|
|
},
|
|
},
|