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 fcb0be16
authored
Dec 22, 2023
by
liuyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
1 parent
8d3e85d9
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
7 deletions
public/drawio/extention/js/url.js
public/drawio/js/diagramly/App.js
public/drawio/js/diagramly/Devel.js
src/views/meta-model-list/index.vue
vue.config.js
public/drawio/extention/js/url.js
0 → 100644
View file @
fcb0be1
const
ajaxUrl
=
'192.168.148.129:7003'
;
\ No newline at end of file
public/drawio/js/diagramly/App.js
View file @
fcb0be1
...
@@ -250,7 +250,7 @@ App = function(editor, container, lightbox)
...
@@ -250,7 +250,7 @@ App = function(editor, container, lightbox)
}
}
$
.
ajax
({
$
.
ajax
({
method
:
"post"
,
method
:
"post"
,
url
:
'http://192.168.148.129:7003/ynMol/archi-list'
,
url
:
`http://
${
ajaxUrl
}
/ma-ml/archi-list`
,
data
:
JSON
.
stringify
({
data
:
JSON
.
stringify
({
metaModelId
:
urlParams
[
'id'
]
metaModelId
:
urlParams
[
'id'
]
}),
}),
...
@@ -3852,7 +3852,7 @@ App.prototype.showSplash = function(force)
...
@@ -3852,7 +3852,7 @@ App.prototype.showSplash = function(force)
}
else
{
}
else
{
$
.
ajax
({
$
.
ajax
({
method
:
"post"
,
method
:
"post"
,
url
:
'http://192.168.148.129:7003/ynMol/gBMMId'
,
url
:
`http://
${
ajaxUrl
}
/ma-ml/gBMMId`
,
data
:
JSON
.
stringify
({
data
:
JSON
.
stringify
({
metaModelId
:
urlParams
[
'id'
]
metaModelId
:
urlParams
[
'id'
]
}),
}),
...
...
public/drawio/js/diagramly/Devel.js
View file @
fcb0be1
...
@@ -275,6 +275,8 @@ mxscript(drawDevUrl + 'js/diagramly/mxFreehand.js');
...
@@ -275,6 +275,8 @@ mxscript(drawDevUrl + 'js/diagramly/mxFreehand.js');
mxscript
(
drawDevUrl
+
'js/diagramly/P2PCollab.js'
);
mxscript
(
drawDevUrl
+
'js/diagramly/P2PCollab.js'
);
mxscript
(
drawDevUrl
+
'js/diagramly/DevTools.js'
);
mxscript
(
drawDevUrl
+
'js/diagramly/DevTools.js'
);
mxscript
(
geBasePath
+
'../../../extention/js/loadDiagram.js'
);
mxscript
(
geBasePath
+
'../../../extention/js/loadDiagram.js'
);
mxscript
(
geBasePath
+
'../../../extention/js/url.js'
);
// Vsdx/vssx support
// Vsdx/vssx support
mxscript
(
drawDevUrl
+
'js/diagramly/vsdx/VsdxExport.js'
);
mxscript
(
drawDevUrl
+
'js/diagramly/vsdx/VsdxExport.js'
);
...
...
src/views/meta-model-list/index.vue
View file @
fcb0be1
...
@@ -162,7 +162,7 @@ export default {
...
@@ -162,7 +162,7 @@ export default {
const
params
=
{
const
params
=
{
verName
:
this
.
query_item1
verName
:
this
.
query_item1
}
}
get_yuan_mo_xing_list
(
{}
).
then
(
res
=>
{
get_yuan_mo_xing_list
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
res
.
data
.
records
.
map
(
item
=>
{
res
.
data
.
records
.
map
(
item
=>
{
item
[
'metaModelSvg_'
]
=
'data:image/svg+xml;base64,'
+
item
.
metaModelSvg
;
item
[
'metaModelSvg_'
]
=
'data:image/svg+xml;base64,'
+
item
.
metaModelSvg
;
...
...
vue.config.js
View file @
fcb0be1
const
{
defineConfig
}
=
require
(
'@vue/cli-service'
)
const
{
defineConfig
}
=
require
(
'@vue/cli-service'
);
const
ip
=
'192.168.148.129'
;
module
.
exports
=
defineConfig
({
module
.
exports
=
defineConfig
({
transpileDependencies
:
true
,
transpileDependencies
:
true
,
//如果是hash模式, publicPath:"";如果是history, publicPath:"/"
//如果是hash模式, publicPath:"";如果是history, publicPath:"/"
...
@@ -6,19 +7,19 @@ module.exports = defineConfig({
...
@@ -6,19 +7,19 @@ module.exports = defineConfig({
devServer
:
{
devServer
:
{
proxy
:
{
proxy
:
{
'/api/file'
:
{
'/api/file'
:
{
target
:
'http://43.143.211.42:7005'
,
target
:
`http://
${
ip
}
:7005`
,
changeOrigin
:
true
,
changeOrigin
:
true
,
// secure: false,
// secure: false,
pathRewrite
:
{
'^/api/file'
:
''
},
pathRewrite
:
{
'^/api/file'
:
''
},
},
},
'/api/network'
:
{
'/api/network'
:
{
target
:
'http://192.168.148.129:7003'
,
target
:
`http://
${
ip
}
:7003`
,
changeOrigin
:
true
,
changeOrigin
:
true
,
// secure: false,
// secure: false,
pathRewrite
:
{
'^/api/network'
:
''
},
pathRewrite
:
{
'^/api/network'
:
''
},
},
},
'/api'
:
{
'/api'
:
{
target
:
'http://192.168.148.129:7004'
,
target
:
`http://
${
ip
}
:7004`
,
changeOrigin
:
true
,
changeOrigin
:
true
,
// secure: false,
// secure: false,
pathRewrite
:
{
'^/api'
:
''
},
pathRewrite
:
{
'^/api'
:
''
},
...
...
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