|
@@ -236,9 +236,9 @@ export default {
|
|
|
showDetail(params) {
|
|
|
getWavedata(params.goafDataId).then((resp) => {
|
|
|
const { data } = resp
|
|
|
- const x = data.tdWaveValueX.split(',').map(item => parseFloat((item / 100).toFixed(2)))
|
|
|
- const y = data.tdWaveValueY.split(',').map(item => parseFloat((item / 100).toFixed(2)))
|
|
|
- const z = data.tdWaveValueZ.split(',').map(item => parseFloat((item / 100).toFixed(2)))
|
|
|
+ const x = data.tdWaveValueX.substr(0, data.tdWaveValueX.length - 1).split(',').map(item => parseFloat((item / 100).toFixed(2)))
|
|
|
+ const y = data.tdWaveValueY.substr(0, data.tdWaveValueY.length - 1).split(',').map(item => parseFloat((item / 100).toFixed(2)))
|
|
|
+ const z = data.tdWaveValueZ.substr(0, data.tdWaveValueZ.length - 1).split(',').map(item => parseFloat((item / 100).toFixed(2)))
|
|
|
const params = { x, y, z }
|
|
|
this.$refs['chart-detail'].show(params)
|
|
|
})
|