Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MeterSphere
metersphere
提交
638eb859
M
metersphere
项目概览
MeterSphere
/
metersphere
上一次同步 大约 3 年
通知
25
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
metersphere
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
638eb859
编写于
7月 28, 2020
作者:
Q
q4speed
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(接口测试): 给下拉框增加清除功能
上级
70a45fe8
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
98 addition
and
98 deletion
+98
-98
frontend/src/business/components/api/test/components/request/dubbo/ConfigCenter.vue
...onents/api/test/components/request/dubbo/ConfigCenter.vue
+35
-35
frontend/src/business/components/api/test/components/request/dubbo/ConsumerAndService.vue
.../api/test/components/request/dubbo/ConsumerAndService.vue
+31
-31
frontend/src/business/components/api/test/components/request/dubbo/RegistryCenter.vue
...ents/api/test/components/request/dubbo/RegistryCenter.vue
+32
-32
未找到文件。
frontend/src/business/components/api/test/components/request/dubbo/ConfigCenter.vue
浏览文件 @
638eb859
<
template
>
<el-form
:model=
"config"
:rules=
"rules"
ref=
"config"
label-width=
"100px"
size=
"small"
:disabled=
"isReadOnly"
>
<div
class=
"dubbo-form-description"
v-if=
"description"
>
{{
description
}}
{{
description
}}
</div>
<el-form-item
label=
"Protocol"
prop=
"protocol"
class=
"dubbo-form-item"
>
<el-select
v-model=
"config.protocol"
class=
"select-100"
>
<el-select
v-model=
"config.protocol"
class=
"select-100"
clearable
>
<el-option
v-for=
"p in protocols"
:key=
"p"
:label=
"p"
:value=
"p"
/>
</el-select>
</el-form-item>
...
...
@@ -43,41 +43,41 @@
</
template
>
<
script
>
import
'
./dubbo.css
'
import
{
ConfigCenter
}
from
"
@/business/components/api/test/model/ScenarioModel
"
;
import
'
./dubbo.css
'
import
{
ConfigCenter
}
from
"
@/business/components/api/test/model/ScenarioModel
"
;
export
default
{
name
:
"
MsDubboConfigCenter
"
,
props
:
{
description
:
String
,
config
:
ConfigCenter
,
isReadOnly
:
{
type
:
Boolean
,
default
:
false
}
},
data
()
{
return
{
protocols
:
ConfigCenter
.
PROTOCOLS
,
methods
:
[],
rules
:
{
group
:
[
{
max
:
300
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
300
]),
trigger
:
'
blur
'
}
],
namespace
:
[
{
max
:
300
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
300
]),
trigger
:
'
blur
'
}
],
username
:
[
{
max
:
100
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
300
]),
trigger
:
'
blur
'
}
],
password
:
[
{
max
:
30
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
300
]),
trigger
:
'
blur
'
}
],
address
:
[
{
max
:
300
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
300
]),
trigger
:
'
blur
'
}
]
}
export
default
{
name
:
"
MsDubboConfigCenter
"
,
props
:
{
description
:
String
,
config
:
ConfigCenter
,
isReadOnly
:
{
type
:
Boolean
,
default
:
false
}
},
data
()
{
return
{
protocols
:
ConfigCenter
.
PROTOCOLS
,
methods
:
[],
rules
:
{
group
:
[
{
max
:
300
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
300
]),
trigger
:
'
blur
'
}
],
namespace
:
[
{
max
:
300
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
300
]),
trigger
:
'
blur
'
}
],
username
:
[
{
max
:
100
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
300
]),
trigger
:
'
blur
'
}
],
password
:
[
{
max
:
30
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
300
]),
trigger
:
'
blur
'
}
],
address
:
[
{
max
:
300
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
300
]),
trigger
:
'
blur
'
}
]
}
}
}
}
</
script
>
frontend/src/business/components/api/test/components/request/dubbo/ConsumerAndService.vue
浏览文件 @
638eb859
...
...
@@ -2,7 +2,7 @@
<el-form
:model=
"consumer"
:rules=
"rules"
ref=
"consumer"
label-width=
"100px"
size=
"small"
:disabled=
"isReadOnly"
>
<div
class=
"dubbo-form-description"
v-if=
"description"
>
{{
description
}}
{{
description
}}
</div>
<el-form-item
label=
"Timeout"
prop=
"timeout"
class=
"dubbo-form-item"
>
<el-input
type=
"number"
v-model=
"consumer.timeout"
:placeholder=
"$t('commons.input_content')"
/>
...
...
@@ -32,13 +32,13 @@
</el-form-item>
<el-form-item
label=
"Async"
prop=
"async"
class=
"dubbo-form-item"
>
<el-select
v-model=
"consumer.async"
class=
"select-100"
>
<el-select
v-model=
"consumer.async"
class=
"select-100"
clearable
>
<el-option
v-for=
"option in asyncOptions"
:key=
"option"
:label=
"option"
:value=
"option"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"LoadBalance"
prop=
"loadBalance"
class=
"dubbo-form-item"
>
<el-select
v-model=
"consumer.loadBalance"
class=
"select-100"
>
<el-select
v-model=
"consumer.loadBalance"
class=
"select-100"
clearable
>
<el-option
v-for=
"option in loadBalances"
:key=
"option"
:label=
"option"
:value=
"option"
/>
</el-select>
</el-form-item>
...
...
@@ -47,36 +47,36 @@
</
template
>
<
script
>
import
'
./dubbo.css
'
import
{
ConsumerAndService
,
RegistryCenter
}
from
"
@/business/components/api/test/model/ScenarioModel
"
;
import
'
./dubbo.css
'
import
{
ConsumerAndService
,
RegistryCenter
}
from
"
@/business/components/api/test/model/ScenarioModel
"
;
export
default
{
name
:
"
MsDubboConsumerService
"
,
props
:
{
description
:
String
,
consumer
:
ConsumerAndService
,
isReadOnly
:
{
type
:
Boolean
,
default
:
false
}
},
data
()
{
return
{
asyncOptions
:
ConsumerAndService
.
ASYNC_OPTIONS
,
loadBalances
:
ConsumerAndService
.
LOAD_BALANCE_OPTIONS
,
methods
:
[],
rules
:
{
version
:
[
{
max
:
30
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
30
]),
trigger
:
'
blur
'
}
],
cluster
:
[
{
max
:
300
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
300
]),
trigger
:
'
blur
'
}
],
group
:
[
{
max
:
300
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
300
]),
trigger
:
'
blur
'
}
]
}
export
default
{
name
:
"
MsDubboConsumerService
"
,
props
:
{
description
:
String
,
consumer
:
ConsumerAndService
,
isReadOnly
:
{
type
:
Boolean
,
default
:
false
}
},
data
()
{
return
{
asyncOptions
:
ConsumerAndService
.
ASYNC_OPTIONS
,
loadBalances
:
ConsumerAndService
.
LOAD_BALANCE_OPTIONS
,
methods
:
[],
rules
:
{
version
:
[
{
max
:
30
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
30
]),
trigger
:
'
blur
'
}
],
cluster
:
[
{
max
:
300
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
300
]),
trigger
:
'
blur
'
}
],
group
:
[
{
max
:
300
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
300
]),
trigger
:
'
blur
'
}
]
}
}
}
}
</
script
>
frontend/src/business/components/api/test/components/request/dubbo/RegistryCenter.vue
浏览文件 @
638eb859
<
template
>
<el-form
:model=
"registry"
:rules=
"rules"
ref=
"registry"
label-width=
"100px"
size=
"small"
:disabled=
"isReadOnly"
>
<div
class=
"dubbo-form-description"
v-if=
"description"
>
{{
description
}}
{{
description
}}
</div>
<el-form-item
label=
"Protocol"
prop=
"protocol"
class=
"dubbo-form-item"
>
<el-select
v-model=
"registry.protocol"
class=
"select-100"
>
<el-select
v-model=
"registry.protocol"
class=
"select-100"
clearable
>
<el-option
v-for=
"p in protocols"
:key=
"p"
:label=
"p"
:value=
"p"
/>
</el-select>
</el-form-item>
...
...
@@ -36,38 +36,38 @@
</
template
>
<
script
>
import
'
./dubbo.css
'
import
{
RegistryCenter
}
from
"
@/business/components/api/test/model/ScenarioModel
"
;
import
'
./dubbo.css
'
import
{
RegistryCenter
}
from
"
@/business/components/api/test/model/ScenarioModel
"
;
export
default
{
name
:
"
MsDubboRegistryCenter
"
,
props
:
{
description
:
String
,
registry
:
RegistryCenter
,
isReadOnly
:
{
type
:
Boolean
,
default
:
false
}
},
data
()
{
return
{
protocols
:
RegistryCenter
.
PROTOCOLS
,
methods
:
[],
rules
:
{
group
:
[
{
max
:
300
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
300
]),
trigger
:
'
blur
'
}
],
username
:
[
{
max
:
300
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
300
]),
trigger
:
'
blur
'
}
],
password
:
[
{
max
:
30
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
30
]),
trigger
:
'
blur
'
}
],
address
:
[
{
max
:
300
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
300
]),
trigger
:
'
blur
'
}
]
}
export
default
{
name
:
"
MsDubboRegistryCenter
"
,
props
:
{
description
:
String
,
registry
:
RegistryCenter
,
isReadOnly
:
{
type
:
Boolean
,
default
:
false
}
},
data
()
{
return
{
protocols
:
RegistryCenter
.
PROTOCOLS
,
methods
:
[],
rules
:
{
group
:
[
{
max
:
300
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
300
]),
trigger
:
'
blur
'
}
],
username
:
[
{
max
:
300
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
300
]),
trigger
:
'
blur
'
}
],
password
:
[
{
max
:
30
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
30
]),
trigger
:
'
blur
'
}
],
address
:
[
{
max
:
300
,
message
:
this
.
$t
(
'
commons.input_limit
'
,
[
0
,
300
]),
trigger
:
'
blur
'
}
]
}
}
}
}
</
script
>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录