From 6eefdc4da340f0e21bca94ec10a8b04eb828d59f Mon Sep 17 00:00:00 2001 From: Renpc-kilig <308442850@qq.com> Date: Fri, 19 Apr 2024 15:30:34 +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/ZfGa.vue | 13 ++++++++++++- src/components/table/Znbm.vue | 14 +++++++++++++- src/main.js | 1 + 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/src/components/table/ZfGa.vue b/src/components/table/ZfGa.vue index c06a702..5fa76db 100644 --- a/src/components/table/ZfGa.vue +++ b/src/components/table/ZfGa.vue @@ -163,6 +163,13 @@ export default { }, row.C); } }, + { + align: 'center', + title: '复杂案件数量', + key: 'complex', + keyName: 'complexScore', + width: 60 + }, { align: 'center', title: '网格案件调度情况', @@ -333,7 +340,7 @@ export default { fixed: 'right', width: 60, render(row, index) { - return (vueSelf.computeM(row) * row.N / 100 + row.F).toFixed(2); + return ((vueSelf.computeM(row) * row.N / 100 + row.F) + vueSelf.computeComplex(row)).toFixed(2); } } ], @@ -482,6 +489,10 @@ export default { computeM(row) { return Math.max(row.C - row.G - row.H - row.I - row.J - row.K - row.L, 0); }, + computeComplex(row) { + let complex = row.complex; + return complex * 200; + }, resize() { let body = document.body; this.table.minHeight = body.clientHeight - 379; diff --git a/src/components/table/Znbm.vue b/src/components/table/Znbm.vue index 2cde0b0..dd0b63c 100644 --- a/src/components/table/Znbm.vue +++ b/src/components/table/Znbm.vue @@ -155,6 +155,13 @@ export default { keyName: 'caseCount', width: 60, }, + { + align: 'center', + title: '复杂案件数量', + key: 'complex', + keyName: 'complexScore', + width: 60, + }, { align: 'center', title: '办结并验收', @@ -308,7 +315,8 @@ export default { fixed: 'right', width: 60, render(row, index) { - return vueSelf.computeN(row) * row.O / 100 + row.F; + return vueSelf.computeN(row) * row.O / 100 + row.F + vueSelf.computeComplex(row); + // return vueSelf.computeN(row) * row.O / 100 + row.F; } } ], @@ -419,6 +427,10 @@ export default { computeN(row) { return Math.max(row.G - row.H - row.J - row.K + row.L + row.M, 0); }, + computeComplex(row) { + let complex = row.complex; + return complex * 200; + }, resize() { let body = document.body; this.table.minHeight = body.clientHeight - 378; diff --git a/src/main.js b/src/main.js index 6d34c44..6310f0b 100644 --- a/src/main.js +++ b/src/main.js @@ -26,6 +26,7 @@ const router = createRouter({ // axios const createAxios = { install(app, options) { + // axios.defaults.baseURL = 'http://219.147.99.164:8082/bigdata'; axios.defaults.baseURL = 'http://127.0.0.1:8087/bigdata'; // axios.defaults.baseURL = '/bigdata'; axios.defaults.timeout = 20000;