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

change

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