Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
T
topology-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
姜立玮
topology-ui
Commits
db8715e5
提交
db8715e5
authored
4月 13, 2022
作者:
jianglw
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改部分加密
上级
6af8b321
流水线
#103
已失败 于阶段
变更
5
流水线
1
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
10 行增加
和
14 行删除
+10
-14
index.html
public/index.html
+1
-2
ParamsConfig.vue
src/views/configuration/ParamsConfig.vue
+2
-3
Preview.vue
src/views/topology/Preview.vue
+2
-5
Workspace.vue
src/views/topology/Workspace.vue
+4
-3
vue.config.js
vue.config.js
+1
-1
没有找到文件。
public/index.html
浏览文件 @
db8715e5
...
@@ -276,8 +276,7 @@
...
@@ -276,8 +276,7 @@
function
request_topology
(
setterTag
,
setteeTag
)
{
function
request_topology
(
setterTag
,
setteeTag
)
{
let
params
=
{}
let
params
=
{}
console
.
log
(
GetQueryString
(
"id"
))
params
.
id
=
GetQueryString
(
"id"
);
params
.
id
=
decodeURIComponent
(
GetQueryString
(
"id"
));
params
.
setterTag
=
setterTag
;
params
.
setterTag
=
setterTag
;
params
.
setteeTag
=
setteeTag
;
params
.
setteeTag
=
setteeTag
;
axios
({
axios
({
...
...
src/views/configuration/ParamsConfig.vue
浏览文件 @
db8715e5
...
@@ -280,14 +280,13 @@ export default {
...
@@ -280,14 +280,13 @@ export default {
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
this
.
previewUrl
,
path
:
this
.
previewUrl
,
query
:
{
query
:
{
id
:
encryption
(
String
(
row
.
id
))
,
id
:
row
.
id
,
},
},
});
});
},
},
async
init
()
{
async
init
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
await
list
(
this
.
queryParams
).
then
((
res
)
=>
{
await
list
(
this
.
queryParams
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
topologyList
=
res
.
rows
;
this
.
topologyList
=
res
.
rows
;
this
.
total
=
res
.
total
;
this
.
total
=
res
.
total
;
});
});
...
@@ -297,7 +296,7 @@ export default {
...
@@ -297,7 +296,7 @@ export default {
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
this
.
editorUrl
,
path
:
this
.
editorUrl
,
query
:
{
query
:
{
id
:
encryption
(
String
(
row
.
id
))
,
id
:
row
.
id
,
},
},
});
});
},
},
...
...
src/views/topology/Preview.vue
浏览文件 @
db8715e5
...
@@ -71,11 +71,8 @@ export default {
...
@@ -71,11 +71,8 @@ export default {
// 3. 渲染图形
// 3. 渲染图形
// 画布图形数据,可以来自于官网下载的json
// 画布图形数据,可以来自于官网下载的json
let
id
=
this
.
$route
.
query
.
id
;
let
id
=
this
.
$route
.
query
.
id
;
if
(
decrypt
(
id
)
===
null
)
{
id
=
this
.
$route
.
fullPath
.
split
(
"id="
)[
1
];
id
=
this
.
$route
.
fullPath
.
split
(
"id="
)[
1
];
console
.
log
(
decrypt
(
id
));
await
getTopologyId
(
id
)
}
await
getTopologyId
(
decrypt
(
id
))
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
topologyData
=
res
.
data
.
data
;
this
.
topologyData
=
res
.
data
.
data
;
...
...
src/views/topology/Workspace.vue
浏览文件 @
db8715e5
...
@@ -446,8 +446,9 @@ export default {
...
@@ -446,8 +446,9 @@ export default {
});
});
},
},
async
open
()
{
async
open
()
{
if
(
this
.
$route
.
query
.
id
)
{
if
(
this
.
$route
.
query
.
id
)
{
await
getTopologyId
(
decrypt
(
this
.
$route
.
query
.
id
)
)
await
getTopologyId
(
this
.
$route
.
query
.
id
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
topologyData
=
res
.
data
.
data
;
this
.
topologyData
=
res
.
data
.
data
;
...
@@ -624,7 +625,7 @@ export default {
...
@@ -624,7 +625,7 @@ export default {
async
saveTopology
()
{
async
saveTopology
()
{
let
params
=
{};
let
params
=
{};
if
(
!!
this
.
$route
.
query
.
id
)
{
if
(
!!
this
.
$route
.
query
.
id
)
{
params
.
id
=
decrypt
(
this
.
$route
.
query
.
id
)
;
params
.
id
=
this
.
$route
.
query
.
id
;
}
}
if
(
!
this
.
canvas
.
data
.
name
)
{
if
(
!
this
.
canvas
.
data
.
name
)
{
this
.
$message
.
error
(
"请填写图文名称"
);
this
.
$message
.
error
(
"请填写图文名称"
);
...
@@ -639,7 +640,7 @@ export default {
...
@@ -639,7 +640,7 @@ export default {
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
this
.
$route
.
path
,
path
:
this
.
$route
.
path
,
query
:
{
query
:
{
id
:
encryption
(
String
(
res
.
data
.
id
))
,
id
:
res
.
data
.
id
,
},
},
});
});
}
}
...
...
vue.config.js
浏览文件 @
db8715e5
...
@@ -10,7 +10,7 @@ module.exports = {
...
@@ -10,7 +10,7 @@ module.exports = {
configureWebpack
:
{
configureWebpack
:
{
name
:
name
name
:
name
},
},
publicPath
:
process
.
env
.
NODE_ENV
===
"production"
?
"/"
:
"/"
,
publicPath
:
process
.
env
.
NODE_ENV
===
"production"
?
"/
topology
"
:
"/"
,
// 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和baseUrl的生产环境路径一致)(默认dist)
// 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和baseUrl的生产环境路径一致)(默认dist)
outputDir
:
'dist'
,
outputDir
:
'dist'
,
// 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)
// 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论