Commit b1a15e95 authored by 高滢's avatar 高滢

feat(首页): 任务保密

parent 2bf413a4
...@@ -47,6 +47,8 @@ export default { ...@@ -47,6 +47,8 @@ export default {
var b = heightObj[0].count / total var b = heightObj[0].count / total
this.height = Math.round(b * 100) this.height = Math.round(b * 100)
} }
} else {
console.log('323248888')
} }
}, },
init() { init() {
......
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
<StandardClassification></StandardClassification> <StandardClassification></StandardClassification>
</div> </div>
</el-col> </el-col>
<el-col :span="5"> <el-col :span="10">
<div class="cardThree"> <div class="cardThree">
<div class="cardTitle">任务完成情况占比</div> <div class="cardTitle">任务完成情况占比</div>
<div style="display: flex; justify-content: space-between"> <div style="display: flex; justify-content: space-between">
...@@ -196,11 +196,6 @@ ...@@ -196,11 +196,6 @@
</div> </div>
</div> </div>
</el-col> </el-col>
<el-col :span="5">
<div class="cardStyle">
<ConfidentialityTasks></ConfidentialityTasks>
</div>
</el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="14"> <el-col :span="14">
...@@ -348,7 +343,6 @@ export default { ...@@ -348,7 +343,6 @@ export default {
AverageTest, AverageTest,
UseCaseTest, UseCaseTest,
UseCaseRisk, UseCaseRisk,
ConfidentialityTasks,
StandardClassification StandardClassification
}, },
data() { data() {
...@@ -360,33 +354,42 @@ export default { ...@@ -360,33 +354,42 @@ export default {
averageInspectionRate: [], averageInspectionRate: [],
taskCompleted: [], taskCompleted: [],
taskCompletedGroup: [], taskCompletedGroup: [],
userCaseMsg: { userCaseMsg: {}
riskLevel: []
}
} }
}, },
created() { created() {
this.getTestHome()
this.getQuantityStatistics() this.getQuantityStatistics()
this.getTaskCompleted() this.getTaskCompleted()
this.getTestHome()
}, },
mounted() { mounted() {
this.getAverageInspectionRate() this.getAverageInspectionRate()
}, },
methods: { methods: {
getTestHome() { getTestHome() {
selectTest({ name: '汽车整车信息安全技术要求' }).then(res => { selectTest({ name: '汽车整车信息安全技术要求' })
this.userCaseMsg = res.data .then(res => {
this.$nextTick(() => { this.userCaseMsg = res.data
this.useCaseTestShow = true this.$nextTick(() => {
this.UseCaseRiskShow = true this.useCaseTestShow = true
this.UseCaseRiskShow = true
})
})
.catch(r => {
this.$nextTick(() => {
this.useCaseTestShow = true
this.UseCaseRiskShow = true
})
}) })
})
}, },
riskLevelFilter(value) { riskLevelFilter(value) {
var obj = this.userCaseMsg.riskLevel.filter(obj => obj.value === value) if (this.userCaseMsg.riskLevel) {
if (obj.length > 0) { var obj = this.userCaseMsg.riskLevel.filter(obj => obj.value === value)
return obj[0].count if (obj.length > 0) {
return obj[0].count
} else {
return 0
}
} else { } else {
return 0 return 0
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment