From ebb778519a3f1052618e68650ce89bbeb9346a96 Mon Sep 17 00:00:00 2001 From: Renpc-kilig <308442850@qq.com> Date: Wed, 10 Apr 2024 10:48:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=A4=8D=E6=9D=82=E6=A1=88?= =?UTF-8?q?=E4=BB=B6=E8=80=83=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/table/Wgy.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/components/table/Wgy.vue b/src/components/table/Wgy.vue index 62881e9..999268e 100644 --- a/src/components/table/Wgy.vue +++ b/src/components/table/Wgy.vue @@ -216,6 +216,13 @@ export default { keyName: 'caseSingleScore', width: 60 }, + { + align: 'center', + title: '复杂案件数量', + key: 'complex', + keyName: 'complexScore', + width: 60 + }, { align: 'center', title: '本月实报案件', @@ -670,7 +677,7 @@ export default { fixed: 'right', width: 100, render(row, index) { - return (vueSelf.computeAE(row) * vueSelf.computeAF(row) / 100).toFixed(2); + return ((vueSelf.computeAE(row) * vueSelf.computeAF(row) / 100) + vueSelf.computeComplex(row)).toFixed(2); } } ], @@ -951,6 +958,10 @@ export default { result = Math.min(result, 100); return result < 0 ? 0 : result.toFixed(2); }, + computeComplex(row) { + let complex = row.complex; + return complex * 200; + }, computeAF(row) { let score = this.computeAE(row); if(score <= 100 && score >= 85) { @@ -1102,7 +1113,11 @@ export default { item.AC = item.communityPopulationRate >= 0.75 ? 4 : (item.communityPopulationRate >= 0.6 ? 2 : 0);*/ /*item.S = item.R * 0.2;*/ totalGridCount += item.gridCount; + if(null == item.complex || '' == item.complex || typeof(item.complex) == 'undefined') { + item.complex = 0; + } }) + console.log(data) this.table.data = data; console.log(`totalGridCount: ${totalGridCount}`) }).catch(({ data }) => {