{{ item.sessionName }}
{{ item.value }} / {{ item.total }}
@@ -99,7 +99,7 @@
-
预警统计
+
风险统计
当年
@@ -143,6 +143,10 @@ use([
let showTime = ref('')
let timer: any = null
+const classOptions = {
+ step: 20
+}
+
function time() {
let dt = new Date();
let y = dt.getFullYear();
@@ -364,9 +368,9 @@ const centerBar1Option = ref({
},
grid: {
top: "20%",
- right: "50",
+ right: "40",
bottom: "30",
- left: "30",
+ left: "40",
},
legend: {
data: [],
@@ -710,9 +714,9 @@ const rightBar1Option = ref({
axisPointer: { type: 'shadow' },
}, "grid": {
"top": "15%",
- "right": "10%",
+ "right": "6%",
"bottom": "30",
- "left": "10%",
+ "left": "6%",
},
legend: {
data: ['预警数', '干预数'],
@@ -842,8 +846,8 @@ async function getHalfMonthData() {
res.data.forEach(v => {
xAxisData.push(v.name)
- warnData.push(v.value)
- interveneData.push(v.spareValue)
+ warnData.push(v.spareValue)
+ interveneData.push(v.value)
});
rightBar1Option.value.xAxis[0].data = xAxisData
@@ -884,11 +888,11 @@ const rightPie2Option = ref({
}
},
series: [{
- name: '预警统计',
+ name: '风险统计',
type: 'pie',
radius: ['50%', '70%'],
center: ['50%', '50%'],
- color: ['rgb(131,249,103)', '#FBFE27', '#FE5050', '#1DB7E5'], //'#FBFE27','rgb(11,228,96)','#FE5050'
+ // color: ['rgb(131,249,103)', '#FBFE27', '#FE5050', '#1DB7E5'], //'#FBFE27','rgb(11,228,96)','#FE5050'
data: [],
roseType: 'radius',
label: {
@@ -1278,4 +1282,4 @@ li {
}
}
}
-
\ No newline at end of file
+
diff --git a/src/views/index.vue b/src/views/index.vue
index 448b332..31b2cca 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -1,7 +1,7 @@
-
+
{{ getGreeting() }}
@@ -207,34 +207,29 @@ const leftPieOption = ref({
type: 'pie',
radius: ['50%', '70%'],
center: ['50%', '50%'],
- color: ['rgb(131,249,103)', '#FBFE27', '#FE5050', '#1DB7E5'], //'#FBFE27','rgb(11,228,96)','#FE5050'
+ // color: ['rgb(131,249,103)', '#FBFE27', '#FE5050', '#1DB7E5'], //'#FBFE27','rgb(11,228,96)','#FE5050'
data: [],
roseType: 'radius',
label: {
- normal: {
- formatter: ['{c|{c}}', '{b|{b}}'].join('\n'),
- rich: {
- c: {
- fontSize: 20,
- lineHeight: 5
- },
- b: {
- fontSize: 14,
- height: 44
- },
+ formatter: ['{c|{c}}', '{b|{b}}'].join('\n'),
+ rich: {
+ c: {
+ fontSize: 20,
+ lineHeight: 5
},
- }
+ b: {
+ fontSize: 14,
+ height: 44
+ },
+ },
},
labelLine: {
- normal: {
- lineStyle: {
- color: 'rgb(98,137,169)',
- },
- smooth: 0.2,
- length: 10,
- length2: 20,
-
- }
+ lineStyle: {
+ color: 'rgb(98,137,169)',
+ },
+ smooth: 0.2,
+ length: 10,
+ length2: 20,
}
}]
})
@@ -271,7 +266,7 @@ const centerBarOption = ref({
}
},
legend: {
- data: ['发布数', '测评数'],
+ data: [],
right: 'center',
top: 0,
itemWidth: 12,
@@ -290,9 +285,7 @@ const centerBarOption = ref({
data: [],
axisLabel: {
formatter: function (value: any) { return value.split("").join("\n"); },
- textStyle: {
- fontSize: 14,
- }
+ fontSize: 14,
}
},
@@ -307,14 +300,11 @@ const centerBarOption = ref({
}
},
axisLabel: {
- textStyle: {
- color: '#95989D',
- fontSize: 14,
- }
+ color: '#95989D',
+ fontSize: 14,
},
axisLine: { show: false },
},
-
series: [
]
})
@@ -332,6 +322,7 @@ async function getGradeData() {
});
const seriesData = [{ name: '发布数', data: seriesPublishData, type: 'bar' }, { name: '测评数', data: seriesEvaluationData, type: 'bar' }]
+ centerBarOption.value.legend.data = ['发布数', '测评数']
centerBarOption.value.xAxis.data = xAxisData
centerBarOption.value.series = seriesData
}
@@ -427,10 +418,7 @@ onMounted(() => {
getInterveneNumData()
initChart()
-})
-onUnmounted(() => {
- disposeChart()
})
// import { initWebSocket } from '@/utils/websocket';
diff --git a/src/views/scale/SysScaleList/index.vue b/src/views/scale/SysScaleList/index.vue
index 84a6225..35924ee 100644
--- a/src/views/scale/SysScaleList/index.vue
+++ b/src/views/scale/SysScaleList/index.vue
@@ -275,10 +275,16 @@ const resetQuery = () => {
const publishType = ref();
const handleAdd = (type: any) => {
reset();
- dialog.visible = true;
- dialog.title = "量表测评发布";
publishType.value = type
+
+ dialog.visible = true;
+
+ if (publishType.value == 0) {
+ dialog.title = "量表个测发布";
+ } else {
+ dialog.title = "量表普测发布";
+ }
}
/** 提交按钮 */
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 7c59671..f1131a7 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -229,10 +229,9 @@
-
-
-
+
+
+
@@ -245,15 +244,6 @@
-
-
-
-
-
-
-
-
-