|
@@ -86,15 +86,15 @@ export default {
|
|
|
// immediate: true,
|
|
|
deep: true
|
|
|
},
|
|
|
- marks: {
|
|
|
- handler(newValue, oldValue){
|
|
|
- console.log('预制曲线线段', newValue, oldValue)
|
|
|
- // this.refreshData(newValue)
|
|
|
- this.markData = newValue
|
|
|
- },
|
|
|
- // immediate: true,
|
|
|
- deep: true
|
|
|
- },
|
|
|
+ // marks: {
|
|
|
+ // handler(newValue, oldValue){
|
|
|
+ // console.log('预制曲线线段', newValue, oldValue)
|
|
|
+ // // this.refreshData(newValue)
|
|
|
+ // this.markData = newValue
|
|
|
+ // },
|
|
|
+ // // immediate: true,
|
|
|
+ // deep: true
|
|
|
+ // },
|
|
|
'chooseXunhuan.circname': {
|
|
|
handler(newValue, oldValue){
|
|
|
if(newValue){
|
|
@@ -109,17 +109,17 @@ export default {
|
|
|
// this.changeData(moniData)
|
|
|
},
|
|
|
mounted () {
|
|
|
+ // console.log('mark', this.data, this.marks, this.markData)
|
|
|
this.$nextTick(() => {
|
|
|
this.initYuzhiCurve()
|
|
|
this.refreshData(this.data)
|
|
|
- // this.setMarkLine()
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
setMarkLine(data, color){
|
|
|
console.log(data, color)
|
|
|
var markLines = []
|
|
|
- this.markData.forEach((item, index) => {
|
|
|
+ this.marks.forEach((item, index) => {
|
|
|
var y = (data[index] + data[index + 1]) / 2
|
|
|
markLines.push([
|
|
|
{
|