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 85e87296
authored
Dec 09, 2023
by
songchangcheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新架构版本发布传输方式
1 parent
9481cff2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
public/drawio/extention/js/exMenus.js
public/drawio/extention/js/loadDiagram.js
public/drawio/extention/js/exMenus.js
View file @
85e8729
...
@@ -29,17 +29,18 @@ var exToolbar = function (toolbarContainer) {
...
@@ -29,17 +29,18 @@ var exToolbar = function (toolbarContainer) {
// Toggles compact mode
// Toggles compact mode
mxEvent
.
addListener
(
this
.
toggleElement
,
'click'
,
mxUtils
.
bind
(
this
,
function
(
evt
)
{
mxEvent
.
addListener
(
this
.
toggleElement
,
'click'
,
mxUtils
.
bind
(
this
,
function
(
evt
)
{
swal
({
title
:
""
,
text
:
'该操作将发布架构设计新版本,请确认是否继续?'
,
confirmButtonColor
:
'rgb(13,134,127)'
,
icon
:
"warning"
,
buttons
:
[
"取消"
,
"发布"
]
}).
then
(
res
=>
{
swal
({
title
:
"
版本发布确认
"
,
text
:
'该操作将发布架构设计新版本,请确认是否继续?'
,
confirmButtonColor
:
'rgb(13,134,127)'
,
icon
:
"warning"
,
buttons
:
[
"取消"
,
"发布"
]
}).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
var
jsonData
=
{
"metaModelId"
:
urlParams
[
'id'
],
"version"
:
urlParams
[
'version'
],
"state"
:
1
}
$
.
ajax
({
$
.
ajax
({
method
:
"post"
,
method
:
"post"
,
url
:
"http://43.143.211.42:7003/ynMol/updateYnMol"
,
url
:
"http://43.143.211.42:7003/ynMol/updateYnMol"
,
data
:
{
contentType
:
'application/json'
,
metaModelId
:
urlParams
[
'id'
],
data
:
JSON
.
stringify
(
jsonData
),
version
:
urlParams
[
'version'
],
state
:
urlParams
[
'state'
],
},
// contentType: 'application/json',
success
:
function
(
result
)
{
success
:
function
(
result
)
{
swal
(
"版本发布"
,
"发布成功!"
);
swal
(
"版本发布"
,
"发布成功!"
);
},
},
...
...
public/drawio/extention/js/loadDiagram.js
View file @
85e8729
...
@@ -2,6 +2,9 @@
...
@@ -2,6 +2,9 @@
var
loadDiagram
=
function
(
id
,
diagramTitle
)
{
var
loadDiagram
=
function
(
id
,
diagramTitle
)
{
var
requestUrl
=
id
==
1
?
'/drawio/extention/xml/meta-model.xml'
:
'/drawio/extention/xml/architecture-assets.xml'
;
var
requestUrl
=
id
==
1
?
'/drawio/extention/xml/meta-model.xml'
:
'/drawio/extention/xml/architecture-assets.xml'
;
if
(
id
==
3
)
{
requestUrl
=
'/drawio/extention/xml/meta-model-data.xml'
;
}
var
resultData
=
{};
var
resultData
=
{};
$
.
ajax
({
$
.
ajax
({
type
:
"get"
,
type
:
"get"
,
...
...
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