Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
DolphinScheduler
提交
668b36c7
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 搜索 >>
未验证
提交
668b36c7
编写于
2月 18, 2022
作者:
S
songjianet
提交者:
GitHub
2月 18, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[Feature][UI Next] Add e2e to security worker group manage page. (#8434)
上级
f6e2a2cf
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
28 addition
and
33 deletion
+28
-33
dolphinscheduler-ui-next/docs/e2e/security.md
dolphinscheduler-ui-next/docs/e2e/security.md
+13
-15
dolphinscheduler-ui-next/src/views/security/worker-group-manage/components/worker-group-modal.tsx
...ity/worker-group-manage/components/worker-group-modal.tsx
+4
-0
dolphinscheduler-ui-next/src/views/security/worker-group-manage/index.module.scss
.../src/views/security/worker-group-manage/index.module.scss
+0
-11
dolphinscheduler-ui-next/src/views/security/worker-group-manage/index.tsx
...-ui-next/src/views/security/worker-group-manage/index.tsx
+6
-5
dolphinscheduler-ui-next/src/views/security/worker-group-manage/use-table.ts
...-next/src/views/security/worker-group-manage/use-table.ts
+5
-2
未找到文件。
dolphinscheduler-ui-next/docs/e2e/security.md
浏览文件 @
668b36c7
...
...
@@ -51,21 +51,19 @@ id:
#### worker group manage
class:
-
[ ] items
-
[ ] el-popconfirm
-
[ ] el-button--primary
-
[ ] vue-treeselect__menu
-
[ ] name
-
[ ] edit
-
[ ] delete
id:
-
[ ] btnCreateWorkerGroup
-
[ ] inputWorkerGroupName
-
[ ] selectWorkerAddress
-
[ ] btnSubmit
-
[ ] btnCancel
| check | class |
|--------------------|--------------------------------|
| :white_check_mark: | items |
| | el-popconfirm |
| | el-button--primary |
| :white_check_mark: | name |
| :white_check_mark: | edit |
| :white_check_mark: | delete |
| :white_check_mark: | btn-create-worker-group |
| :white_check_mark: | input-worker-group-name |
| :white_check_mark: | select-worker-address |
| :white_check_mark: | btn-submit |
| :white_check_mark: | btn-cancel |
#### queue manage
...
...
dolphinscheduler-ui-next/src/views/security/worker-group-manage/components/worker-group-modal.tsx
浏览文件 @
668b36c7
...
...
@@ -100,6 +100,8 @@ const WorkerGroupModal = defineComponent({
onCancel
=
{
this
.
cancelModal
}
onConfirm
=
{
this
.
confirmModal
}
confirmDisabled
=
{
!
this
.
model
.
name
||
this
.
model
.
addrList
.
length
<
1
}
confirmClassName
=
'btn-submit'
cancelClassName
=
'btn-cancel'
>
{
{
default
:
()
=>
(
...
...
@@ -113,6 +115,7 @@ const WorkerGroupModal = defineComponent({
path
=
'name'
>
<
NInput
class
=
'input-worker-group-name'
placeholder
=
{
t
(
'
security.worker_group.group_name_tips
'
)
}
v
-
model
=
{
[
this
.
model
.
name
,
'
value
'
]
}
/>
...
...
@@ -122,6 +125,7 @@ const WorkerGroupModal = defineComponent({
path
=
'addrList'
>
<
NSelect
class
=
'select-worker-address'
multiple
placeholder
=
{
t
(
'
security.worker_group.worker_addresses_tips
'
...
...
dolphinscheduler-ui-next/src/views/security/worker-group-manage/index.module.scss
浏览文件 @
668b36c7
...
...
@@ -19,17 +19,6 @@
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
.box
{
display
:
flex
;
justify-content
:
flex-end
;
align-items
:
center
;
width
:
300px
;
button
{
margin-left
:
10px
;
}
}
}
.table-card
{
...
...
dolphinscheduler-ui-next/src/views/security/worker-group-manage/index.tsx
浏览文件 @
668b36c7
...
...
@@ -22,7 +22,8 @@ import {
NDataTable
,
NIcon
,
NInput
,
NPagination
NPagination
,
NSpace
}
from
'
naive-ui
'
import
{
SearchOutlined
}
from
'
@vicons/antd
'
import
{
useI18n
}
from
'
vue-i18n
'
...
...
@@ -105,11 +106,11 @@ const workerGroupManage = defineComponent({
<
NCard
>
<
div
class
=
{
styles
[
'
search-card
'
]
}
>
<
div
>
<
NButton
size
=
'small'
type
=
'primary'
onClick
=
{
handleModalChange
}
>
<
NButton
size
=
'small'
type
=
'primary'
onClick
=
{
handleModalChange
}
class
=
'btn-create-worker-group'
>
{
t
(
'
security.worker_group.create_worker_group
'
)
}
</
NButton
>
</
div
>
<
div
class
=
{
styles
.
box
}
>
<
NSpace
>
<
NInput
size
=
'small'
clearable
...
...
@@ -125,11 +126,11 @@ const workerGroupManage = defineComponent({
)
}
}
</
NButton
>
</
div
>
</
NSpace
>
</
div
>
</
NCard
>
<
Card
class
=
{
styles
[
'
table-card
'
]
}
>
<
NDataTable
columns
=
{
this
.
columns
}
data
=
{
this
.
tableData
}
/>
<
NDataTable
row
-
class
-
name
=
'items'
columns
=
{
this
.
columns
}
data
=
{
this
.
tableData
}
/>
<
div
class
=
{
styles
.
pagination
}
>
<
NPagination
v
-
model
:
page
=
{
this
.
page
}
...
...
dolphinscheduler-ui-next/src/views/security/worker-group-manage/use-table.ts
浏览文件 @
668b36c7
...
...
@@ -46,7 +46,8 @@ export function useTable() {
},
{
title
:
t
(
'
security.worker_group.group_name
'
),
key
:
'
name
'
key
:
'
name
'
,
className
:
'
name
'
},
{
title
:
t
(
'
security.worker_group.worker_addresses
'
),
...
...
@@ -94,6 +95,7 @@ export function useTable() {
circle
:
true
,
type
:
'
info
'
,
size
:
'
small
'
,
class
:
'
edit
'
,
onClick
:
()
=>
{
handleEdit
(
row
)
}
...
...
@@ -124,7 +126,8 @@ export function useTable() {
{
circle
:
true
,
type
:
'
error
'
,
size
:
'
small
'
size
:
'
small
'
,
class
:
'
delete
'
},
{
icon
:
()
=>
h
(
DeleteOutlined
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录