Compare commits

...

2 Commits

Author SHA1 Message Date
chengdandan e3a50535e4 2023022104 2023-02-21 20:18:33 +08:00
chengdandan 859c896170 2023022104 2023-02-21 19:43:56 +08:00
3 changed files with 9 additions and 3 deletions

View File

@ -197,6 +197,8 @@ export default {
var lineArr = [];
// 线
if (this.typeValue) {
console.log("this.typeValue.type_data",this.typeValue.type_data)
if (this.typeValue.type_data!=undefined) {
this.typeValue.type_data.forEach(ele => {
lineArr.push({
name: ele.name,
@ -205,6 +207,7 @@ export default {
smooth: true
});
});
}
}
//
@ -238,6 +241,7 @@ export default {
show: true,
confine: true
};
console.log("newVal",newVal)
this.series[0].data = newVal.map(val => {
return val.speed;
});

View File

@ -417,7 +417,7 @@ destroyed: function () {
message: res.data.msg,
type: 'success'
});
}, 5000);
}, 15000);
}
})
},

View File

@ -82,8 +82,8 @@
</div>
</el-drawer>
<!-- 组件弹框 -->
<el-dialog :title="componentTitle + '指标组件'" width="40%" :visible.sync="component" :close-on-click-modal="false">
<el-form ref="form" :model="componentForm" label-width="150px" @close="closeComponentForm()">
<el-dialog :title="componentTitle + '指标组件'" width="40%" :visible.sync="component" :close-on-click-modal ="false" @close="closeComponentForm()">
<el-form ref="form" :model="componentForm" label-width="150px" >
<el-form-item label="名称:">
<el-input v-model="componentForm.componentName"></el-input>
</el-form-item>
@ -1166,7 +1166,9 @@ export default {
}
},
closeComponentForm() {
console.log("111")
this.component = false;
document.getElementById('mapModule').contentWindow.editComponent('');
},
closeForm(form) {