From 24b60209eeb4c4459bf1a82e03cca9b1677ca391 Mon Sep 17 00:00:00 2001 From: aBin Date: Wed, 28 Jul 2021 16:50:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AF=8F=E6=9C=88=E6=8A=A5=E5=91=8A=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E5=8F=8A=E8=B7=B3=E8=BD=AC=E8=B7=AF=E5=BE=84=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 8 ++++--- route.js | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 5b7f157..0aa38e0 100644 --- a/index.html +++ b/index.html @@ -59,9 +59,11 @@ */ const p1419896936236064768 = { jumpDetail(that) { - console.log(that.parentNode.parentNode); - console.log('data-pid',that.parentNode.parentNode.getAttribute('data-pid')); - location.href = 'https://www.baidu.com'; + const pId = that.parentNode.parentNode.getAttribute('data-pid'); + const rId = that.parentNode.parentNode.getAttribute('data-rid'); + const uId = that.parentNode.parentNode.getAttribute('data-uid'); + const tId = that.parentNode.parentNode.getAttribute('data-tid'); + location.href = `https://www.tall.wiki/qc/report?projectId=${pId}&roleId=${rId}&userId=${uId}&id=${tId}`; }, }; diff --git a/route.js b/route.js index d164f8f..2ae094a 100644 --- a/route.js +++ b/route.js @@ -45,6 +45,11 @@ post('/controlTable').to.json({ scope: 'DPT', beyond: '发病-溶栓' }, + { + time: 556, + scope: 'DPX', + beyond: '发病-溶栓' + }, ], success: true }) @@ -80,3 +85,68 @@ post('/timeLine').to.json({ ], success: true }) + +post('/zkcharts').to.json({ + code: 200, + msg: 'ok', + data: { + type: [1,2,3,4,5,6,7,8,9,10,11,12], + value: [120,200,150,80,70,110,130,160,180,90,140,110] + }, + success: true +}) + +post('/zkCard').to.json({ + code: 200, + msg: 'ok', + data: [{ + time: new Date().getTime(), + num: 27, + maxTime: 193, + minTime: 0, + average: 52, + proportion: 59, + rate: 59 + },{ + time: new Date().getTime(), + num: 7, + maxTime: 61, + minTime: 11, + average: 45, + proportion: 71, + rate: 71 + },{ + time: new Date().getTime(), + num: 7, + maxTime: 82, + minTime: 11, + average: 49, + proportion: 71, + rate: 71 + },{ + time: new Date().getTime(), + num: 6, + maxTime: 61, + minTime: 1, + average: 43, + proportion: 83, + rate: 83 + },{ + time: new Date().getTime(), + num: 4, + maxTime: 87, + minTime: 0, + average: 52, + proportion: 50, + rate: 50 + },{ + time: new Date().getTime(), + num: 5, + maxTime: 104, + minTime: 11, + average: 56, + proportion: 60, + rate: 60 + },], + success: true +})