|
@@ -62,7 +62,7 @@
|
|
|
</div>
|
|
|
<p class="line">
|
|
|
<span>
|
|
|
- <em :style="{color:item.level == 1? '#646C73':'#C13830'}">{{option.due_num}}</em>/<em>{{option.unfinished}}</em>/<em >{{option.total}}</em>
|
|
|
+ <em :style="dueNumStyle(option)">{{option.due_num}}</em>/<em>{{option.unfinished}}</em>/<em >{{option.total}}</em>
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>
|
|
@@ -151,6 +151,15 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ dueNumStyle (option) {
|
|
|
+ console.log(option)
|
|
|
+ let bool = option.due_num === 0
|
|
|
+ return {
|
|
|
+ color:bool ? '646C73': '#C13830',
|
|
|
+ fontWeight: bool ? 'normal' :'bold',
|
|
|
+ fontSize: bool ? '12px' : '18px'
|
|
|
+ }
|
|
|
+ },
|
|
|
imgSrc(code) {
|
|
|
return require('../../assets/images/icons/' + code + '.png')
|
|
|
},
|
|
@@ -245,14 +254,10 @@ export default {
|
|
|
this.cardsList[1].push(item)
|
|
|
}
|
|
|
})
|
|
|
- this.cardsList.forEach(item=>{
|
|
|
+ this.cardsList.forEach(item=>{
|
|
|
item.forEach(eq=>{
|
|
|
if (eq.rptGlsmsStatisticsList) {
|
|
|
- eq.assetTypeList.forEach(item => {
|
|
|
- item.is_exception_num = 10
|
|
|
- })
|
|
|
eq.rptGlsmsStatisticsList.forEach(each => {
|
|
|
-
|
|
|
if (each.type === 1) {
|
|
|
each.sort = 0
|
|
|
} else if (each.type === 2) {
|
|
@@ -261,7 +266,6 @@ export default {
|
|
|
each.sort = 2
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
eq.rptGlsmsStatisticsList = sortBy(eq.rptGlsmsStatisticsList, (item) => {return item.sort})
|
|
|
}
|
|
|
})
|
|
@@ -526,9 +530,7 @@ export default {
|
|
|
font-weight: normal;
|
|
|
}
|
|
|
em:first-child {
|
|
|
- font-size: 20px;
|
|
|
font-family: 'persagy';
|
|
|
- font-weight: bold;
|
|
|
}
|
|
|
}
|
|
|
}
|