|
@@ -20,24 +20,24 @@
|
|
|
</van-swipe-item>
|
|
|
</van-swipe>
|
|
|
|
|
|
- <div class="tabtitlelay">
|
|
|
+ <div class="tabtitlelay" @click="goToBeDone">
|
|
|
<div class="tabtitle1"></div>
|
|
|
<div class="tabtitle">我的待办</div>
|
|
|
<div class="tabtitle2">(</div>
|
|
|
- <div class="tabtitle3">{{sum}}</div>
|
|
|
+ <div class="tabtitle3">{{con1+con2}}</div>
|
|
|
<div class="tabtitle4">)</div>
|
|
|
- <van-icon name="ellipsis" class="tabtitle5" @click="goToBeDone" />
|
|
|
+ <van-icon name="ellipsis" class="tabtitle5" />
|
|
|
</div>
|
|
|
|
|
|
<div class="flexll">
|
|
|
- <div class="ffl2">
|
|
|
- <div class="textRegular">待处理</div>
|
|
|
- <div class="textRed">{{sum1}}</div>
|
|
|
+ <div class="ffl2" id="0" @click="goToBeDone($event)">
|
|
|
+ <div class="textRegular" >待处理</div>
|
|
|
+ <div class="textRed">{{con1}}</div>
|
|
|
</div>
|
|
|
<div class="verticalLine"></div>
|
|
|
- <div class="ffl2">
|
|
|
- <div class="textRegular">已处理</div>
|
|
|
- <div class="textBlue">{{sum2}}</div>
|
|
|
+ <div class="ffl2" id="1" @click="goToBeDone($event)">
|
|
|
+ <div class="textRegular" >已处理</div>
|
|
|
+ <div class="textBlue">{{con2}}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="hLine"></div>
|
|
@@ -76,7 +76,7 @@
|
|
|
import tool from "@/tool";
|
|
|
import qs from "qs";
|
|
|
import userSets from "@/api/sys/userSets";
|
|
|
-
|
|
|
+import toBeDone from '@/api/toBeDone/toBeDone';
|
|
|
export default {
|
|
|
data() {
|
|
|
return{
|
|
@@ -85,33 +85,50 @@ import userSets from "@/api/sys/userSets";
|
|
|
sms:"",
|
|
|
password:"",
|
|
|
password2:"",
|
|
|
- con1:"0",
|
|
|
- sum:"0",
|
|
|
- sum1:"0",
|
|
|
- sum2:"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']
|
|
|
}
|
|
|
},
|
|
|
|
|
|
created(){
|
|
|
let id=this.$route.query.id;
|
|
|
- //window.xm.setNavigationBarTitle({ title: '智慧“和顺”'})
|
|
|
+ window.xm.setNavigationBarTitle({ title: '智慧“和顺”'})
|
|
|
this.TokenLogin2();
|
|
|
+ this.dataNumber();
|
|
|
},
|
|
|
|
|
|
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() {
|
|
|
this.$router.push("/placeRegister");
|
|
|
},
|
|
|
+ // 人员档案跳转
|
|
|
goPlacePerson() {
|
|
|
this.$router.push("/placePerson");
|
|
|
},
|
|
|
+ // 牌位管理跳转
|
|
|
goPlaceTablet(){
|
|
|
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(){
|
|
|
history.back();
|
|
|
},
|
|
@@ -180,7 +197,6 @@ import userSets from "@/api/sys/userSets";
|
|
|
that.$store.commit('setUser',res.account);
|
|
|
that.getBannerImg();//获取轮播图
|
|
|
that.getSelectColor();//获取主题颜色
|
|
|
- that.getStatistics();//获取待办事项数
|
|
|
});
|
|
|
|
|
|
//})//上线取消注释
|
|
@@ -188,23 +204,11 @@ import userSets from "@/api/sys/userSets";
|
|
|
}else{
|
|
|
that.getBannerImg();//获取轮播图
|
|
|
that.getSelectColor();//获取主题颜色
|
|
|
- that.getStatistics();//获取待办事项数
|
|
|
}
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
- getStatistics(){
|
|
|
- let that=this;
|
|
|
- new userSets()
|
|
|
- .Statistics()
|
|
|
- .then((res) => {
|
|
|
- that.sum=res[0].sum;
|
|
|
- that.sum1=res[0].sum1;
|
|
|
- that.sum2=res[0].sum2;
|
|
|
- });
|
|
|
- },
|
|
|
-
|
|
|
getBannerImg(){
|
|
|
new userSets()
|
|
|
.BannerImg({
|