Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
liangzhen
/
framework-tools-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fb95f916
authored
Apr 12, 2024
by
liuyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
1 parent
04c54b6b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
71 additions
and
75 deletions
public/drawio/extention/js/exMenus.js
src/views/archi-view-manage/canvas/index.vue
src/views/archi-view-manage/details.vue
src/views/meta-model-list/canvas/index.vue
src/views/meta-model-list/details.vue
public/drawio/extention/js/exMenus.js
View file @
fb95f91
...
...
@@ -106,7 +106,7 @@ function propertyTransferMenuAction(editorUi, graph) {//属性传递按钮点击
if
(
!
graph
.
isSelectionEmpty
())
{
var
cells
=
graph
.
getSelectionCells
();
window
.
parent
.
postMessage
({
type
:
'property
Transfer
'
}
,
'*'
);
window
.
parent
.
postMessage
({
type
:
'property
Connect
'
}
,
'*'
);
// graph.setCellStyles('property', '属性', [cells[0]]);//设置style里面拼接属性
...
...
src/views/archi-view-manage/canvas/index.vue
View file @
fb95f91
...
...
@@ -144,11 +144,45 @@
this
.
saveAttribute
(
e
.
data
.
data
);
}
if
(
e
.
data
.
type
==
'property
Transfer
'
){
if
(
e
.
data
.
type
==
'property
Connect
'
){
// console.log(JSON.parse(e.data.data))
this
.
graph_dialog
=
true
;
this
.
showCurrentGraph
(
this
.
search_select1
[
0
].
arciBelongName
,
0
);
}
if
(
e
.
data
.
type
==
'saveFileSignalXml'
)
{
MessageBox
.
confirm
(
'确定保存文件?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
customClass
:
'messageClass'
,
confirmButtonClass
:
'confirmClass'
,
type
:
'warning'
}).
then
(()
=>
{
const
params
=
{
viewDetailsId
:
id
,
metaModelData
:
e
.
data
.
data
.
mxGraphModel
,
metaModelSvg
:
e
.
data
.
data
.
base64SvgToString
}
saveArchiViewManageCardDetails
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
Message
({
type
:
'success'
,
message
:
'保存成功!'
,
});
}
else
{
Message
({
type
:
'error'
,
message
:
res
.
msg
});
}
})
}).
catch
(()
=>
{
Message
({
type
:
'info'
,
message
:
'已取消'
});
});
}
}
},
methods
:
{
...
...
src/views/archi-view-manage/details.vue
View file @
fb95f91
...
...
@@ -55,42 +55,6 @@ export default {
},
mounted
(){
this
.
id
=
this
.
$route
.
query
.
id
;
window
.
onmessage
=
e
=>
{
if
(
e
.
data
.
type
==
'saveFileSignalXml'
)
{
MessageBox
.
confirm
(
'确定保存文件?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
customClass
:
'messageClass'
,
confirmButtonClass
:
'confirmClass'
,
type
:
'warning'
}).
then
(()
=>
{
const
params
=
{
viewDetailsId
:
this
.
id
,
metaModelData
:
e
.
data
.
data
.
mxGraphModel
,
metaModelSvg
:
e
.
data
.
data
.
base64SvgToString
}
saveArchiViewManageCardDetails
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
Message
({
type
:
'success'
,
message
:
'保存成功!'
,
});
}
else
{
Message
({
type
:
'error'
,
message
:
res
.
msg
});
}
})
}).
catch
(()
=>
{
Message
({
type
:
'info'
,
message
:
'已取消'
});
});
}
}
},
methods
:
{
lookList
()
{
...
...
src/views/meta-model-list/canvas/index.vue
View file @
fb95f91
...
...
@@ -118,10 +118,44 @@
this
.
saveAttribute
(
e
.
data
.
data
);
}
if
(
e
.
data
.
type
==
'property
Transfer
'
){
if
(
e
.
data
.
type
==
'property
Connect
'
){
this
.
graph_dialog
=
true
;
this
.
showCurrentGraph
(
this
.
search_select1
[
0
].
arciBelongName
,
0
);
}
if
(
e
.
data
.
type
==
'saveFileSignalXml'
)
{
MessageBox
.
confirm
(
'确定保存文件?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
customClass
:
'messageClass'
,
confirmButtonClass
:
'confirmClass'
,
type
:
'warning'
}).
then
(()
=>
{
const
params
=
{
metaModelId
:
id
,
metaModelData
:
e
.
data
.
data
.
mxGraphModel
,
metaModelSvg
:
e
.
data
.
data
.
base64SvgToString
}
save_drawio_xml_and_svg
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
Message
({
type
:
'success'
,
message
:
'保存成功!'
,
});
}
else
{
Message
({
type
:
'error'
,
message
:
res
.
msg
});
}
})
}).
catch
(()
=>
{
Message
({
type
:
'info'
,
message
:
'已取消'
});
});
}
}
},
methods
:
{
...
...
src/views/meta-model-list/details.vue
View file @
fb95f91
...
...
@@ -63,42 +63,6 @@ export default {
mounted
(){
this
.
id
=
this
.
$route
.
query
.
id
;
this
.
version
=
this
.
$route
.
query
.
info
;
window
.
onmessage
=
e
=>
{
if
(
e
.
data
.
type
==
'saveFileSignalXml'
)
{
MessageBox
.
confirm
(
'确定保存文件?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
customClass
:
'messageClass'
,
confirmButtonClass
:
'confirmClass'
,
type
:
'warning'
}).
then
(()
=>
{
const
params
=
{
metaModelId
:
this
.
id
,
metaModelData
:
e
.
data
.
data
.
mxGraphModel
,
metaModelSvg
:
e
.
data
.
data
.
base64SvgToString
}
save_drawio_xml_and_svg
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
Message
({
type
:
'success'
,
message
:
'保存成功!'
,
});
}
else
{
Message
({
type
:
'error'
,
message
:
res
.
msg
});
}
})
}).
catch
(()
=>
{
Message
({
type
:
'info'
,
message
:
'已取消'
});
});
}
}
},
methods
:
{
saveFile
()
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment