Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
DolphinScheduler
提交
3918a958
DolphinScheduler
项目概览
apache
/
DolphinScheduler
上一次同步 1 年多
通知
706
Star
9572
Fork
3514
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
DolphinScheduler
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
3918a958
编写于
5月 23, 2019
作者:
G
gongzijian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
dag名称增加复制按钮
上级
70a44bd0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
31 addition
and
2 deletion
+31
-2
escheduler-ui/src/js/conf/home/pages/dag/_source/dag.scss
escheduler-ui/src/js/conf/home/pages/dag/_source/dag.scss
+14
-1
escheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue
escheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue
+17
-1
未找到文件。
escheduler-ui/src/js/conf/home/pages/dag/_source/dag.scss
浏览文件 @
3918a958
...
...
@@ -138,11 +138,24 @@
.assist-btn
{
position
:
absolute
;
left
:
10px
;
top
:
8
px
;
top
:
4
px
;
>
.name
{
padding-left
:
6px
;
vertical-align
:
middle
;
}
>
.copy-name
{
cursor
:
pointer
;
padding-left
:
4px
;
&
:hover
{
i
{
color
:
#47c3ff
;
}
}
i
{
color
:
#333
;
font-size
:
18px
;
}
}
}
.save-btn
{
position
:
absolute
;
...
...
escheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue
浏览文件 @
3918a958
...
...
@@ -28,7 +28,8 @@
@
click=
"_toggleView"
icon=
"fa fa-code"
>
</x-button>
<span
class=
"name"
>
{{
name
}}
</span>
<span
class=
"name "
>
{{
name
}}
</span>
<span
class=
"copy-name"
@
click=
"_copyName"
:data-clipboard-text=
"name"
><i
class=
"iconfont"
data-container=
"body"
data-toggle=
"tooltip"
title=
"复制名称"
>

</i></span>
</div>
<div
class=
"save-btn"
>
<div
class=
"operation"
style=
"vertical-align: middle;"
>
...
...
@@ -88,6 +89,7 @@
import
mUdp
from
'
./udp/udp
'
import
i18n
from
'
@/module/i18n
'
import
{
jsPlumb
}
from
'
jsplumb
'
import
Clipboard
from
'
clipboard
'
import
{
allNodesId
}
from
'
./plugIn/util
'
import
{
toolOper
,
tasksType
}
from
'
./config
'
import
mFormModel
from
'
./formModel/formModel
'
...
...
@@ -139,6 +141,20 @@
Dag
.
create
()
}
},
_copyName
(){
let
clipboard
=
new
Clipboard
(
`.copy-name`
)
clipboard
.
on
(
'
success
'
,
e
=>
{
this
.
$message
.
success
(
`
${
i18n
.
$t
(
'
Copy success
'
)}
`
)
// Free memory
clipboard
.
destroy
()
})
clipboard
.
on
(
'
error
'
,
e
=>
{
// Copy is not supported
this
.
$message
.
warning
(
`
${
i18n
.
$t
(
'
The browser does not support automatic copying
'
)}
`
)
// Free memory
clipboard
.
destroy
()
})
},
/**
* Get state interface
* @param isReset Whether to manually refresh
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录