vue2-client 1.15.111 → 1.15.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -32,18 +32,23 @@ export default {
|
|
32
32
|
sd: 0
|
33
33
|
}
|
34
34
|
},
|
35
|
-
mounted () {
|
35
|
+
mounted () {
|
36
|
+
},
|
36
37
|
methods: {
|
37
38
|
initDome (queryParamsName, parameter) {
|
38
39
|
getConfigByName(queryParamsName, 'af-his', async (res) => {
|
39
40
|
this.config = res
|
40
41
|
console.log('res', res)
|
41
42
|
runLogic(res.data, parameter, 'af-his').then(result => {
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
43
|
+
if (result != 0) {
|
44
|
+
this.standardValue = result[0][this.config.standardValue] != null ? result[0][this.config.standardValue] : 0
|
45
|
+
this.sd = result[0].sd
|
46
|
+
const listData = result.map(item => [item.x, item.y])
|
47
|
+
this.data = listData
|
48
|
+
this.renderChart()
|
49
|
+
} else {
|
50
|
+
this.$message.warn('没有获取到结果数据')
|
51
|
+
}
|
47
52
|
})
|
48
53
|
})
|
49
54
|
},
|
@@ -62,11 +67,8 @@ export default {
|
|
62
67
|
const sd3Lower = centerLine - 3 * this.sd
|
63
68
|
|
64
69
|
// 计算y轴范围,让靶值居中
|
65
|
-
const
|
66
|
-
const
|
67
|
-
const range = Math.max(dataMax - centerLine, centerLine - dataMin, this.sd * 4)
|
68
|
-
const yMin = centerLine - range
|
69
|
-
const yMax = centerLine + range
|
70
|
+
const yMin = centerLine - this.sd * 4
|
71
|
+
const yMax = centerLine + this.sd * 4
|
70
72
|
|
71
73
|
const option = {
|
72
74
|
title: {
|