|
@@ -39,22 +39,24 @@
|
39
|
39
|
<!-- 统计信息 -->
|
40
|
40
|
<div
|
41
|
41
|
class="newStatistics"
|
42
|
|
- v-if="!newStatisticsLoading && isShowNewStatistics"
|
|
42
|
+ v-if="!newStatisticsLoading && isShowNewStatistics && isAll"
|
43
|
43
|
>
|
44
|
44
|
<div class="buildOrder">
|
45
|
45
|
<div
|
46
|
46
|
class="buildOrderItem"
|
47
|
|
- @click="goTo('/main/incidentList/all/today')"
|
|
47
|
+ @click="goTo('/main/incidentList/all/0/today')"
|
48
|
48
|
>
|
49
|
49
|
<div class="s_num">{{ newStatistics.createOrders }}</div>
|
50
|
50
|
<div>今日建单</div>
|
51
|
51
|
</div>
|
52
|
52
|
<div
|
53
|
53
|
class="buildOrderItem"
|
54
|
|
- @click="goTo('/main/incidentList/todo/')"
|
|
54
|
+ @click="goTo('/main/incidentList/all/1544')"
|
55
|
55
|
>
|
56
|
|
- <div class="s_num">{{ newStatistics.todoOrders }}</div>
|
57
|
|
- <div>待处理</div>
|
|
56
|
+ <!-- <div class="s_num">{{ newStatistics.todoOrders }}</div> -->
|
|
57
|
+ <div class="s_num">{{ newStatistics.doingOrders }}</div>
|
|
58
|
+ <!-- <div>待处理</div> -->
|
|
59
|
+ <div>所有处理中</div>
|
58
|
60
|
</div>
|
59
|
61
|
</div>
|
60
|
62
|
<div class="attendance" v-if="ifWorking == 1">
|
|
@@ -267,14 +269,12 @@ export default {
|
267
|
269
|
errorCount: 0 //今日迟到
|
268
|
270
|
}, //统计数据
|
269
|
271
|
newStatisticsLoading: false, //统计数据Loading
|
270
|
|
- isShowNewStatistics: false
|
|
272
|
+ isShowNewStatistics: true
|
271
|
273
|
};
|
272
|
274
|
},
|
273
|
275
|
methods: {
|
274
|
276
|
goTo(url){
|
275
|
|
- if(this.isAll){
|
276
|
|
- this.$router.push(url);
|
277
|
|
- }
|
|
277
|
+ this.$router.push(url);
|
278
|
278
|
},
|
279
|
279
|
scan() {
|
280
|
280
|
// this.$router.push({name:'ScanResult',params:{data:'[{"name":"资产名称","value":"哈哈哈"},{"name":"数量","value":"12"}]'}});
|
|
@@ -357,7 +357,7 @@ export default {
|
357
|
357
|
this.$router.push({ path: "/noticeList" });
|
358
|
358
|
},
|
359
|
359
|
toIncidentList(searchType) {
|
360
|
|
- this.$router.push({ path: "/main/incidentList/" + searchType + '/' });
|
|
360
|
+ this.$router.push({ path: "/main/incidentList/" + searchType + '/0' });
|
361
|
361
|
},
|
362
|
362
|
// toKnowList() {
|
363
|
363
|
// this.$router.push({ path: "/knowList" });
|
|
@@ -401,11 +401,11 @@ export default {
|
401
|
401
|
if (menu) {
|
402
|
402
|
this.isAll = menu.some(v => v.link == "shijianliebiao_all");
|
403
|
403
|
}
|
404
|
|
- this.isShowNewStatistics = this.loginUser.role.some(
|
405
|
|
- v =>
|
406
|
|
- v.rolecode == "incident-category-manager" ||
|
407
|
|
- v.rolecode == "incident manager"
|
408
|
|
- );
|
|
404
|
+ // this.isShowNewStatistics = this.loginUser.role.some(
|
|
405
|
+ // v =>
|
|
406
|
+ // v.rolecode == "incident-category-manager" ||
|
|
407
|
+ // v.rolecode == "incident manager"
|
|
408
|
+ // );
|
409
|
409
|
var that = this;
|
410
|
410
|
that.valConfig = JSON.parse(localStorage.getItem("valConfig")) - 0;
|
411
|
411
|
that.loginUser.group.forEach(element => {
|