diff --git a/src/views/goverment/huizhou/assessmentManagement/unitList/components/scoreTable.vue b/src/views/goverment/huizhou/assessmentManagement/unitList/components/scoreTable.vue
index d8dce35..169e58c 100644
--- a/src/views/goverment/huizhou/assessmentManagement/unitList/components/scoreTable.vue
+++ b/src/views/goverment/huizhou/assessmentManagement/unitList/components/scoreTable.vue
@@ -9,7 +9,7 @@
-
{{ key }}
@@ -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 {