diff --git a/src/api/sensitivePerception/profileDepart.ts b/src/api/sensitivePerception/profileDepart.ts index 719ce94..86c7d60 100644 --- a/src/api/sensitivePerception/profileDepart.ts +++ b/src/api/sensitivePerception/profileDepart.ts @@ -7,8 +7,15 @@ export function listDepartNegative(query) { }); } -export function getDepartProfile(departId) { +export function getDepartProfile(departId, query) { return request.get({ - url: `/profile/depart/${departId}` + url: `/profile/depart/${departId}`, + query + }); +} + +export function listNegativeMonthly(departId) { + return request.get({ + url: `/profile/depart/${departId}/month` }); } \ No newline at end of file diff --git a/src/api/sensitivePerception/profilePolice.ts b/src/api/sensitivePerception/profilePolice.ts new file mode 100644 index 0000000..f4d3b15 --- /dev/null +++ b/src/api/sensitivePerception/profilePolice.ts @@ -0,0 +1,28 @@ +import request from "@/api/request"; + +export function listPoliceNegative(query) { + return request.get({ + url: `/profile/police`, + query + }); +} + +export function getPoliceProfile(idCode, query) { + return request.get({ + url: `/profile/police/${idCode}`, + query + }); +} + +export function listNegativeByPoliceIdCode(idCode, query) { + return request.get({ + url: `/profile/police/${idCode}/negative`, + query + }); +} + +export function listNegativeMonthly(idCode) { + return request.get({ + url: `/profile/police/${idCode}/month` + }); +} \ No newline at end of file diff --git a/src/components/datav/chart-bar.vue b/src/components/datav/chart-bar.vue index a043ec5..1bf4e46 100644 --- a/src/components/datav/chart-bar.vue +++ b/src/components/datav/chart-bar.vue @@ -15,7 +15,7 @@ class="bar-item_content-bar" :style="{ width: `${(item.value / max) * 100}%`, - background: getColor(item.value / max), + background: getColor(item.value / max * 100), }" > @@ -86,8 +86,7 @@ function getColor(val) { } if (props.color instanceof Array) { const colors = [...props.color] - colors.reduce((a, b) => b.percentage - a.percentage) - console.log(colors) + colors.sort((a, b) => b.percentage - a.percentage) for (let i = 0; i < colors.length; i++) { if (val > colors[0].percentage) { return colors[0].color; @@ -120,6 +119,10 @@ function getColor(val) { } } } + &[size="small"] { + height: 25px; + font-size: 12px; + } .bar-item-name { width: 19%; text-align: right; @@ -130,7 +133,6 @@ function getColor(val) { width: 0; height: 9px; background: linear-gradient(270deg, #63e700 0%, #19674c 100%); - box-shadow: 1px 0 0px 0px #020b5f; transition: width 0.3s; } } diff --git a/src/components/description-pair.vue b/src/components/description-pair.vue index d5cfb76..6bcafa1 100644 --- a/src/components/description-pair.vue +++ b/src/components/description-pair.vue @@ -17,7 +17,7 @@ defineProps({ default: "", }, value1: { - type: String, + type: Number, default: "", }, label2: { @@ -25,7 +25,7 @@ defineProps({ default: "", }, value2: { - type: String, + type: Number, default: "", }, size: { diff --git a/src/views/sensitivePerception/DepartNegative.vue b/src/views/sensitivePerception/DepartNegative.vue index 6de8d93..278959f 100644 --- a/src/views/sensitivePerception/DepartNegative.vue +++ b/src/views/sensitivePerception/DepartNegative.vue @@ -1,99 +1,108 @@ \ No newline at end of file diff --git a/src/views/sensitivePerception/PoliceNegative.vue b/src/views/sensitivePerception/PoliceNegative.vue index cabe848..8cb46a5 100644 --- a/src/views/sensitivePerception/PoliceNegative.vue +++ b/src/views/sensitivePerception/PoliceNegative.vue @@ -4,20 +4,39 @@ - - + - - + + + + + + + + + + + +
@@ -35,19 +54,37 @@
- - + + + + - - + + + + @@ -70,59 +107,74 @@
- +
- +
- 查询 + 查询
-
- +
+ -
单位情况
-
-
- - {{}} -
-
- - {{}} -
-
- - {{}} -
-
+
民警基本情况
- - - - - + + +
+
+ + {{ policeInfo.name }} +
+
+ + {{ + getGenderFromIdCode(policeInfo.idCode) + }} +
+
+ + + {{ + activeRow.parentDepartName + ? activeRow.parentDepartName + + "/" + : activeRow.parentDepartName + }}{{ activeRow.departName }} + +
+
+ + {{ policeInfo.empNo }} +
+
+ + {{ policeInfo.employmentDate }} +
+
+ + {{ policeInfo.mobile }} +
+
问题情况
- +
- 51 + {{ activeRow.verifySize }}
问题总数
@@ -132,16 +184,16 @@
@@ -158,21 +210,35 @@ :width="250" color="#DC6231" > -
- 78 +
+ 78 + +
+
+ 分险指标值 +
+
+ 中风险
-
分险指标值
-
中风险
- +
问题来源占比
@@ -180,62 +246,67 @@
业务类型占比
风险问题构成
- -
-
- - -
个人问题排名
- -
- -
突出问题排名
- -
- -
单位问题标签
-
+
问题变化趋势
问题清单
- - - - - - + + + + + - + + + +
+ + +
+ + \ No newline at end of file