|
@@ -303,6 +303,7 @@ export default {
|
|
|
this.view.strokecolor = this.ruleForm.Color
|
|
|
this.view.lineType = this.ruleForm.LineDash
|
|
|
this.view.lineWidth = this.ruleForm.LineWidth
|
|
|
+ //修改的时候canvas的image可以预览
|
|
|
if (this.ruleForm.Url && type == 2) {
|
|
|
let url = `/serve/topology-wanda/Picture/query/${this.ruleForm.Url}`
|
|
|
this.view.url = url
|
|
@@ -467,7 +468,7 @@ export default {
|
|
|
this.update()
|
|
|
this.$emit('updateSuccess')
|
|
|
this.view.canvas.clearRect(0, 0, this.width, this.height)
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -545,9 +546,9 @@ export default {
|
|
|
this.initGraph()
|
|
|
}
|
|
|
},
|
|
|
- watch:{
|
|
|
- 'ruleForm.Id':{
|
|
|
- handler(){
|
|
|
+ watch: {
|
|
|
+ 'ruleForm.Id': {
|
|
|
+ handler() {
|
|
|
this.initQueryDeviceAndPOsition()
|
|
|
this.visualization()
|
|
|
if (this.title == '修改图例库') {
|