|
|
@@ -335,11 +335,11 @@
|
|
|
|
|
|
<!--画布-->
|
|
|
<DkPanel id="name3" prop="productGraph">
|
|
|
- <DkRow slot="content" style="width:100%;height: 500px;overflow: auto">
|
|
|
+ <DkRow slot="content" style="width:1500px;height: 500px;overflow: auto;margin-left: calc(50% - 750px);">
|
|
|
<Layout>
|
|
|
<!-- 中间流程图 -->
|
|
|
<Content>
|
|
|
- <div id="container" ref="container" style="width:100%;height:100%"/>
|
|
|
+ <div id="container" ref="container" style="width:1500px;height:500px"/>
|
|
|
</Content>
|
|
|
</Layout>
|
|
|
</DkRow>
|
|
|
@@ -564,6 +564,8 @@ export default {
|
|
|
* @date : 2023/6/7 15:42
|
|
|
*/
|
|
|
saveData() {
|
|
|
+ //保存时清除位置视图选中数据
|
|
|
+ this.currentImageRow = []
|
|
|
return this.excute(this.$service.collectService, '/', this.params);
|
|
|
},
|
|
|
/**
|
|
|
@@ -1172,6 +1174,34 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
this.imageColumnList = this.fileList[0].productViewPlaceVOList
|
|
|
+
|
|
|
+ // 直接点出选中节点 模拟鼠标点击不好使
|
|
|
+ // let _this = this
|
|
|
+ // //找到节点并点击
|
|
|
+ // setTimeout(()=>{
|
|
|
+ // // console.log(document.getElementsByTagName('g'))
|
|
|
+ // // [3].dataset.cellId
|
|
|
+ // // data-cell-id="5837fa06-c5f0-4c6e-ba64-86f0cfaf7101"
|
|
|
+ // for (let it of document.getElementsByTagName('g')) {
|
|
|
+ // // console.log(it, it.dataset?.cellId)
|
|
|
+ // if (it.dataset?.cellId) {
|
|
|
+ // // it.click()
|
|
|
+ //
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ //
|
|
|
+ // //store.data.position
|
|
|
+ // if (this.nowNode) {
|
|
|
+ // console.log(this.nowNode)
|
|
|
+ // var evt = document.createEvent("MouseEvents");
|
|
|
+ // evt.initMouseEvent("click", true, true, window, 0, 0, 0,
|
|
|
+ // 900, 500, false, false, false, false, 0, null);
|
|
|
+ // console.log(evt)
|
|
|
+ // document.body.dispatchEvent(evt);
|
|
|
+ // document.getElementById('container').dispatchEvent(evt);
|
|
|
+ // //document.getElementById('container') 900 500 _this.nowNode.store.data.position.x, _this.nowNode.store.data.position.y,
|
|
|
+ // }
|
|
|
+ // }, 1000)
|
|
|
}
|
|
|
},
|
|
|
/**
|
|
|
@@ -1279,7 +1309,6 @@ export default {
|
|
|
this.formData_Defect.pdtPlaceId = this.viewPlaceId
|
|
|
this.formData_Defect.pdtPlaceCodeName = this.viewPlaceName
|
|
|
this.viewModal = false
|
|
|
- this.currentImageRow = []
|
|
|
},
|
|
|
/**
|
|
|
* @desc : 全屏
|