Commit 7aa45e24 authored by 袁家斌's avatar 袁家斌

change

parent d8264f27
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
{{ data.project_name }} {{ data.project_name }}
</div> </div>
<div> <div>
质量检测得分:<span class="count">{{ data.quality_check_score }}</span> 质量检测得分:<span class="count">{{ scoreValue }}</span>
</div> </div>
</div> </div>
<el-table <el-table
...@@ -65,6 +65,7 @@ export default { ...@@ -65,6 +65,7 @@ export default {
loadingBG: "rgba(0, 0, 0, 0.2)", loadingBG: "rgba(0, 0, 0, 0.2)",
columns: [], columns: [],
allData: [], allData: [],
scoreValue: ''
}; };
}, },
...@@ -124,6 +125,8 @@ export default { ...@@ -124,6 +125,8 @@ export default {
let id = this.tabnamenow == 'ZLPD' ? this.data.id : this.data.project_id let id = this.tabnamenow == 'ZLPD' ? this.data.id : this.data.project_id
getZLJCList(id).then((res) => { getZLJCList(id).then((res) => {
this.allData = [...res.data.score_data]; this.allData = [...res.data.score_data];
this.infoData = res.data.project_info
this.scoreValue = this.tabnamenow == 'ZLPD' ? this.data.quality_check_score : this.infoData.quality_check_score
let arr = []; let arr = [];
res.data.score_data.forEach((item) => { res.data.score_data.forEach((item) => {
......
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
:style="{ marginTop: '.1rem', height: 'calc(100% - .6rem)' }" :style="{ marginTop: '.1rem', height: 'calc(100% - .6rem)' }"
:headers="header4_1" :headers="header4_1"
:table-data="data4" :table-data="data4"
@row-click="rowClickArea" @row-click="(e)=>{rowClickArea(0, e)}"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.header.slot == 'regulation_score'"> <template v-if="scope.header.slot == 'regulation_score'">
...@@ -300,27 +300,33 @@ ...@@ -300,27 +300,33 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.header.slot == 'score1'"> <template v-if="scope.header.slot == 'score1'">
<span> <span v-if="scope.row.check_type_3" :style="{
{{ scope.row.field_1 || 0}} color: '#f86262',
}">
{{ scope.row.check_type_3 || 0 }}%
</span> </span>
<span> <span v-else>
{{ scope.row.unqualified_percent || 0}}% 0%
</span> </span>
</template> </template>
<template v-if="scope.header.slot == 'score2'"> <template v-if="scope.header.slot == 'score2'">
<span> <span v-if="scope.row.check_type_2" :style="{
{{ scope.row.check_type_2 || 0 }} color: '#f86262',
}">
{{ scope.row.check_type_2 || 0 }}%
</span> </span>
<span> <span v-else>
{{ scope.row.unqualified_percent || 0 }}% 0%
</span> </span>
</template> </template>
<template v-if="scope.header.slot == 'score3'"> <template v-if="scope.header.slot == 'score3'">
<span> <span v-if="scope.row.check_type_1" :style="{
{{ scope.row.check_type_1 || 0 }} color: '#f86262',
}">
{{ scope.row.check_type_1 || 0 }}%
</span> </span>
<span> <span v-else>
{{ scope.row.unqualified_percent || 0 }}% 0%
</span> </span>
</template> </template>
</template> </template>
......
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