|
|
@@ -64,7 +64,7 @@
|
|
|
<i class="fa fa-chevron-left text-neutral-400 transition-transform duration-300" :class="{'rotate-90': treeExpanded.location}"></i>
|
|
|
</div>
|
|
|
<div id="location-content" class="tree-content" :class="{'show': treeExpanded.location}">
|
|
|
- <label class="checkbox-item ml-2">
|
|
|
+ <label v-if="checkCenter()" class="checkbox-item ml-2">
|
|
|
<el-checkbox v-model="dimensionFilters.location.center" label="中心" />
|
|
|
</label>
|
|
|
<label class="checkbox-item ml-2">
|
|
|
@@ -209,17 +209,17 @@
|
|
|
<div class="right-content">
|
|
|
<!-- 第一行:4个图标,每个占据25%宽度 -->
|
|
|
<div class="icons-row">
|
|
|
- <el-card class="floating-card icon-item">
|
|
|
+ <el-card class="floating-card icon-item" @click="toRoute(1)">
|
|
|
<div class="icon-wrapper">
|
|
|
<div class="icon-circle bg-color-blue">
|
|
|
<el-icon class="fa fa-ticket text-primary blue-color"></el-icon>
|
|
|
<!-- 角标 -->
|
|
|
- <div class="badge">3</div>
|
|
|
+ <div v-if="homePageData.pendingNum>0" class="badge">{{ homePageData.pendingNum }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="icon-label">我的待办</div>
|
|
|
</el-card>
|
|
|
- <el-card class="floating-card icon-item">
|
|
|
+ <el-card class="floating-card icon-item" @click="toRoute(2)">
|
|
|
<div class="icon-wrapper">
|
|
|
<div class="icon-circle bg-color-yellow">
|
|
|
<el-icon class="fa fa-star text-warning"></el-icon>
|
|
|
@@ -227,7 +227,7 @@
|
|
|
</div>
|
|
|
<div class="icon-label">我发起的</div>
|
|
|
</el-card>
|
|
|
- <el-card class="floating-card icon-item">
|
|
|
+ <el-card class="floating-card icon-item" @click="toRoute(3)">
|
|
|
<div class="icon-wrapper">
|
|
|
<div class="icon-circle bg-color-red">
|
|
|
<el-icon class="fa fa-minus-circle text-danger"></el-icon>
|
|
|
@@ -235,7 +235,7 @@
|
|
|
</div>
|
|
|
<div class="icon-label">我处理的</div>
|
|
|
</el-card>
|
|
|
- <el-card class="floating-card icon-item">
|
|
|
+ <el-card class="floating-card icon-item" @click="toRoute(4)">
|
|
|
<div class="icon-wrapper">
|
|
|
<div class="icon-circle bg-color-green">
|
|
|
<el-icon class="fa fa-history green-color"></el-icon>
|
|
|
@@ -481,7 +481,10 @@ export default {
|
|
|
wbgs: 168, // 本月工时
|
|
|
wbjsy: 12, // 本月工时较上月增长百分比
|
|
|
score: 92, // 本月工分
|
|
|
- wxjsy: 5 // 本月工分较上月增长百分比
|
|
|
+ wxjsy: 5, // 本月工分较上月增长百分比
|
|
|
+ repairPending: 0,
|
|
|
+ workPending: 0,
|
|
|
+ pendingNum: 0
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -742,7 +745,6 @@ export default {
|
|
|
loadHomePageData() {
|
|
|
selectHomePageData().then(response => {
|
|
|
if (response.code === 200) {
|
|
|
- console.log(response);
|
|
|
this.homePageData.workOrderNum = response.data.workOrderNum || 0;
|
|
|
this.homePageData.workOrderJsy = response.data.workOrderJsy || 0;
|
|
|
this.homePageData.repairOrderNum = response.data.repairOrderNum || 0;
|
|
|
@@ -751,6 +753,9 @@ export default {
|
|
|
this.homePageData.wbjsy = response.data.wbjsy || 0;
|
|
|
this.homePageData.score = response.data.score || 0;
|
|
|
this.homePageData.wxjsy = response.data.wxjsy || 0;
|
|
|
+ this.homePageData.repairPending = response.data.repairPending || 0;
|
|
|
+ this.homePageData.workPending = response.data.workPending || 0;
|
|
|
+ this.homePageData.pendingNum = this.homePageData.repairPending + this.homePageData.workPending;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -762,6 +767,33 @@ export default {
|
|
|
}else{
|
|
|
return 'gray';
|
|
|
}
|
|
|
+ },
|
|
|
+ toRoute(num) {
|
|
|
+ if(num==1) {
|
|
|
+ if(this.homePageData.repairPending>0 && this.homePageData.workPending==0) {
|
|
|
+ this.$router.push("/workOrder/repairOrder");
|
|
|
+ }else{
|
|
|
+ this.$router.push("/workOrder/gxtOrder");
|
|
|
+ }
|
|
|
+ }else if (num==2) {
|
|
|
+ this.$router.push("/workOrder/gxtOrder");
|
|
|
+ }else if (num==3) {
|
|
|
+ this.$router.push("/workOrder/gxtOrder");
|
|
|
+ }else{
|
|
|
+ this.$router.push("/workOrder/gxtOrder");
|
|
|
+ }
|
|
|
+ },
|
|
|
+ checkCenter() {
|
|
|
+ console.log(this.orderList);
|
|
|
+ if (this.queryParams.center && this.orderList.length>0) {
|
|
|
+ for(let i=0;i<this.orderList.length;i++) {
|
|
|
+ if(this.orderList[i].center!=null) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return true;
|
|
|
}
|
|
|
}
|
|
|
}
|