Skip to content

Commit

Permalink
fix(cloudTest): evidence
Browse files Browse the repository at this point in the history
evidence 上传证据
  • Loading branch information
21cm committed Jul 26, 2022
1 parent c8dd9d4 commit e8d0510
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/utils/konva/core/topoStage.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ const topoStage = {
"['thing', 'amis', 'device'].indexOf(node.getAttr('name')) ",
['thing', 'amis', 'device'].indexOf(node.getAttr('name'))
)
if (['thing', 'amis', 'device'].indexOf(node.getAttr('name')) != -1) {
if (
['thing', 'amis', 'device'].indexOf(node.getAttr('name')) != -1 ||
location.href.includes('evidence')
) {
const nodeTags = node.getChildren()
nodeTags.forEach((tag) => {
info['tag'].push(tag)
Expand Down Expand Up @@ -88,7 +91,10 @@ const topoStage = {
})
stage.find('Text').forEach((node) => {
info['Text'] = stage.find('Text')
if (location.href.includes('&type=device')) {
if (
location.href.includes('&type=device') ||
location.href.includes('evidence')
) {
dgiotlogger.info('dgiotlogger node:', node)
node
? node.setAttrs({
Expand Down Expand Up @@ -131,6 +137,11 @@ const topoStage = {
})
stage.find('Path').forEach((node) => {
info['Path'] = stage.find('Path')
info['evidence'].push(node)
addNodeEvent({
type: node.getAttr('name'),
node: node,
})
if (['evidence', 'thing', 'device'].indexOf(node.getAttr('name')) != -1) {
if (
location.href.includes('preview') ||
Expand All @@ -149,12 +160,6 @@ const topoStage = {

// canvas.layer.batchDraw()
// canvas.stage.batchDraw()

info['evidence'].push(node)
addNodeEvent({
type: node.getAttr('name'),
node: node,
})
}
// node.setAttrs({
// scaleX: args.saleInfo.scaleX,
Expand Down

1 comment on commit e8d0510

@vercel
Copy link

@vercel vercel bot commented on e8d0510 Jul 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

dgiot-dashboard – ./

dgiot-dashboard-git-master-dgiot.vercel.app
dgiot-dashboard-dgiot.vercel.app
dgiot-dashboard.vercel.app

Please sign in to comment.