fix: BUG修改
This commit is contained in:
parent
c9427a0e6e
commit
0b4ba8717f
@ -9,7 +9,7 @@
|
||||
</el-icon>
|
||||
</div>
|
||||
</template>
|
||||
<div class="table-title">施工单位日常违约行为及扣分标准</div>
|
||||
<!-- <div class="table-title">施工单位日常违约行为及扣分标准</div> -->
|
||||
<div class="table-progress" v-for="(val, key, index) in recordData" :key="index">
|
||||
<div class="subTable-title">{{ key }}</div>
|
||||
<div class="table-box table-progress-data">
|
||||
@ -127,7 +127,7 @@ const scoreOption = ref([
|
||||
{ label: "5分", value: 5 }
|
||||
]);
|
||||
const recordData = ref({});
|
||||
const allScore = ref(100);
|
||||
const allScore = ref(0);
|
||||
// 页面新增,编辑数据
|
||||
const confirmAddType = async (form: any) => {
|
||||
let arr = [];
|
||||
@ -179,6 +179,7 @@ const compareSingleAttrReturnColSpan = (row: any, compareAttr: any, index: any,
|
||||
return [count, 1];
|
||||
};
|
||||
const getDetail = async () => {
|
||||
let score = 0;
|
||||
if (props.relativeInfo.score) {
|
||||
const res = await scoreDetail({ scoreId: props.relativeInfo.id });
|
||||
console.log(res);
|
||||
@ -189,6 +190,13 @@ const getDetail = async () => {
|
||||
// });
|
||||
// }
|
||||
recordData.value = res.result;
|
||||
for (let i in recordData.value) {
|
||||
recordData.value[i].map(item => {
|
||||
score += item.standardScore - item.deductPoints;
|
||||
});
|
||||
}
|
||||
console.log(score);
|
||||
allScore.value = score;
|
||||
}
|
||||
} else {
|
||||
const res = await noScoreDetail({ enterpriseType: +props.relativeInfo.enterpriseType });
|
||||
@ -200,6 +208,13 @@ const getDetail = async () => {
|
||||
});
|
||||
}
|
||||
recordData.value = res.result;
|
||||
for (let i in recordData.value) {
|
||||
recordData.value[i].map(item => {
|
||||
score += item.standardScore;
|
||||
});
|
||||
}
|
||||
console.log(score);
|
||||
allScore.value = score;
|
||||
}
|
||||
// if (res && res.result && res.result.length > 0) {
|
||||
// } else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user