diff --git a/src/assets/images/risk/body.png b/src/assets/images/risk/body.png new file mode 100644 index 0000000..dd32b5e Binary files /dev/null and b/src/assets/images/risk/body.png differ diff --git a/src/assets/images/risk/head.png b/src/assets/images/risk/head.png new file mode 100644 index 0000000..40852f8 Binary files /dev/null and b/src/assets/images/risk/head.png differ diff --git a/src/assets/images/risk/icon.png b/src/assets/images/risk/icon.png new file mode 100644 index 0000000..85dba4e Binary files /dev/null and b/src/assets/images/risk/icon.png differ diff --git a/src/assets/images/risk/tab.png b/src/assets/images/risk/tab.png new file mode 100644 index 0000000..ef35b0e Binary files /dev/null and b/src/assets/images/risk/tab.png differ diff --git a/src/loveflow/components/echart/bar/one.vue b/src/loveflow/components/echart/bar/one.vue index d35d497..f43d0b1 100644 --- a/src/loveflow/components/echart/bar/one.vue +++ b/src/loveflow/components/echart/bar/one.vue @@ -28,7 +28,7 @@ export default { show: false, }, grid: { - top: this.chartObj.gridTop || "20%", + top: this.chartObj.gridTop || "15%", bottom: this.chartObj.gridBtm || "10%", left: this.chartObj.gridLeft || "6%", right: "5%", @@ -66,6 +66,13 @@ export default { color: "#6C8097", fontSize: 12, interval: 0, + formatter: function (value) { + if (value >= 1000) { + return (value / 1000).toFixed(1) + "k"; + } else { + return value; + } + }, }, }, series: [ diff --git a/src/loveflow/components/echart/bar/two.vue b/src/loveflow/components/echart/bar/two.vue index 580e919..71c4fa4 100644 --- a/src/loveflow/components/echart/bar/two.vue +++ b/src/loveflow/components/echart/bar/two.vue @@ -19,6 +19,7 @@ export default { }; }, mounted() { + console.log("。。。。。:", this.chartObj); this.setOption(); }, methods: { @@ -67,6 +68,13 @@ export default { color: "#6C8097", fontSize: 12, interval: 0, + formatter: function (value) { + if (value >= 1000) { + return (value / 1000).toFixed(1) + "k"; + } else { + return value; + } + }, }, }, series: [ @@ -119,5 +127,14 @@ export default { }; }, }, + watch: { + chartObj: { + handler(newval) { + this.setOption(); + }, + deep: true, + // immediate: true, + }, + }, }; diff --git a/src/loveflow/components/echart/line/one.vue b/src/loveflow/components/echart/line/one.vue index 16776da..8b59a5c 100644 --- a/src/loveflow/components/echart/line/one.vue +++ b/src/loveflow/components/echart/line/one.vue @@ -113,6 +113,13 @@ export default { color: "#6C8097", fontSize: 12, interval: 0, + formatter: function (value) { + if (value >= 1000) { + return (value / 1000).toFixed(1) + "k"; + } else { + return value; + } + }, }, }, series: seriesArr, diff --git a/src/loveflow/components/echart/line/three.vue b/src/loveflow/components/echart/line/three.vue index 182db3e..a9232a9 100644 --- a/src/loveflow/components/echart/line/three.vue +++ b/src/loveflow/components/echart/line/three.vue @@ -67,6 +67,13 @@ export default { color: "#6C8097", fontSize: 12, interval: 0, + formatter: function (value) { + if (value >= 1000) { + return (value / 1000).toFixed(1) + "k"; + } else { + return value; + } + }, }, }, series: [ diff --git a/src/loveflow/components/echart/line/two.vue b/src/loveflow/components/echart/line/two.vue index aee7628..ba2ab61 100644 --- a/src/loveflow/components/echart/line/two.vue +++ b/src/loveflow/components/echart/line/two.vue @@ -68,6 +68,13 @@ export default { color: "#6C8097", fontSize: 12, interval: 0, + formatter: function (value) { + if (value >= 1000) { + return (value / 1000).toFixed(1) + "k"; + } else { + return value; + } + }, }, }, series: [ diff --git a/src/loveflow/components/echart/radar/one.vue b/src/loveflow/components/echart/radar/one.vue index 639d7df..895600c 100644 --- a/src/loveflow/components/echart/radar/one.vue +++ b/src/loveflow/components/echart/radar/one.vue @@ -28,7 +28,8 @@ export default { show: false, }, tooltip: { - show: false, + show: true, + position: ["50%", "20px"], }, radar: { center: ["50%", "50%"], // 外圆的位置 @@ -80,15 +81,8 @@ export default { }, data: [ { - value: [80, 80, 80, 70, 60, 50], - name: "男", - areaStyle: { - color: "transparent", - }, - }, - { - value: [40, 70, 50, 60, 30, 80], - name: "女", + value: this.chartObj.yData, + name: this.chartObj.name, itemStyle: { borderColor: "rgba(245, 196, 85, 1)", color: "#fff", diff --git a/src/views/enterpriseRiskIndex/abnormal.vue b/src/views/enterpriseRiskIndex/abnormal.vue index 8b63094..b3fc420 100644 --- a/src/views/enterpriseRiskIndex/abnormal.vue +++ b/src/views/enterpriseRiskIndex/abnormal.vue @@ -1,145 +1,101 @@ diff --git a/src/views/enterpriseRiskIndex/analysis.vue b/src/views/enterpriseRiskIndex/analysis.vue index 8fcdc2b..c97f16d 100644 --- a/src/views/enterpriseRiskIndex/analysis.vue +++ b/src/views/enterpriseRiskIndex/analysis.vue @@ -1,86 +1,43 @@ - - diff --git a/src/views/enterpriseRiskIndex/components/leftCard.vue b/src/views/enterpriseRiskIndex/components/leftCard.vue index aa77008..942ed07 100644 --- a/src/views/enterpriseRiskIndex/components/leftCard.vue +++ b/src/views/enterpriseRiskIndex/components/leftCard.vue @@ -32,8 +32,7 @@ export default { display: flex; flex-direction: column; justify-content: center; - margin-right: 20px; - margin-left: 3%; + margin: vw(6); padding-left: 20px; flex: 1; height: vw(80); diff --git a/src/views/enterpriseRiskIndex/components/rightCard.vue b/src/views/enterpriseRiskIndex/components/rightCard.vue index 007a62c..4eebae9 100644 --- a/src/views/enterpriseRiskIndex/components/rightCard.vue +++ b/src/views/enterpriseRiskIndex/components/rightCard.vue @@ -34,9 +34,8 @@ export default { display: flex; flex-direction: column; justify-content: center; - margin-right: 20px; + margin: vw(6); padding-left: 20px; - margin-right: 5%; flex: 2; height: vw(80); background: url("~@/assets/images/screen/zz.png") no-repeat center center; diff --git a/src/views/enterpriseRiskIndex/synthetical.vue b/src/views/enterpriseRiskIndex/synthetical.vue index f0c66c3..bb245a7 100644 --- a/src/views/enterpriseRiskIndex/synthetical.vue +++ b/src/views/enterpriseRiskIndex/synthetical.vue @@ -1,160 +1,182 @@ - - diff --git a/src/views/enterpriseTopic/personSafety/keyPerson.vue b/src/views/enterpriseTopic/personSafety/keyPerson.vue index bb986bc..f2525f8 100644 --- a/src/views/enterpriseTopic/personSafety/keyPerson.vue +++ b/src/views/enterpriseTopic/personSafety/keyPerson.vue @@ -79,7 +79,7 @@ export default { total: 12, }, { - name: "非防人员", + name: "非法上访人员", value: "3", total: 123, }, diff --git a/src/views/home/workspace.vue b/src/views/home/workspace.vue index 4c32aa9..ff58aff 100644 --- a/src/views/home/workspace.vue +++ b/src/views/home/workspace.vue @@ -52,7 +52,7 @@