Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
incubator-dubbo-admin
提交
8db54cfe
I
incubator-dubbo-admin
项目概览
爱吃血肠
/
incubator-dubbo-admin
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
incubator-dubbo-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8db54cfe
编写于
9月 13, 2018
作者:
B
beiwei30
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
enhance dialog
上级
bd9f43d6
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
25 addition
and
11 deletion
+25
-11
dubbo-admin-frontend/src/components/RoutingRule.vue
dubbo-admin-frontend/src/components/RoutingRule.vue
+25
-11
未找到文件。
dubbo-admin-frontend/src/components/RoutingRule.vue
浏览文件 @
8db54cfe
...
...
@@ -70,23 +70,30 @@
</v-card>
</v-flex>
<v-dialog
v-model=
"dialog"
width=
"450px"
persistent
>
<v-dialog
v-model=
"dialog"
full-width
persistent
>
<v-card>
<v-card-title
class=
"justify-center"
>
<span
class=
"headline"
>
Create
new Routing r
ule
</span>
<span
class=
"headline"
>
Create
New Routing R
ule
</span>
</v-card-title>
<v-card-text
>
<v-text-field
placeholder=
"service:version, version is optional"
label=
"Service Unique ID"
hint=
"A service ID in form of service:version, version is optional"
required
v-model=
"service"
></v-text-field>
<v-text-field
placeholder=
"application name"
label=
"Application Name"
hint=
"Application name the service belongs to"
required
v-model=
"application"
></v-text-field>
<codemirror
:placeholder=
'placeholder'
:options=
"cmOption"
></codemirror>
<v-subheader
class=
"pa-0 mt-3"
>
RULE CONTENT
</v-subheader>
<codemirror
ref=
"myCm"
:value=
"code"
:options=
"cmOption"
>
</codemirror>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
...
...
@@ -101,7 +108,9 @@
<
script
>
import
{
codemirror
}
from
'
vue-codemirror
'
import
'
codemirror/lib/codemirror.css
'
import
'
codemirror/theme/paraiso-light.css
'
import
'
codemirror/mode/yaml/yaml.js
'
import
'
codemirror/addon/display/autorefresh.js
'
import
'
codemirror/addon/display/placeholder
'
export
default
{
components
:
{
...
...
@@ -129,7 +138,7 @@
status
:
'
enabled
'
}
],
placeholder
:
'
%yaml 1.2
\n
'
+
code
:
'
%yaml 1.2
\n
'
+
'
---
\n
'
+
'
enable: true/false
\n
'
+
'
priority:
\n
'
+
...
...
@@ -142,11 +151,12 @@
'
- host != 10.20.153.10,10.20.153.11 =>
\n
'
+
'
- host = 10.20.153.10,10.20.153.11 =>
\n
'
+
'
- application != kylin => host != 172.22.3.95,172.22.3.96
\n
'
+
'
- method = find*,list*,get*,is* => host = 172.22.3.94,172.22.3.95,172.22.3.96
\n
'
+
'
...
\n
'
,
'
- method = find*,list*,get*,is* => host = 172.22.3.94,172.22.3.95,172.22.3.96
'
,
cmOption
:
{
lineNumbers
:
true
,
mode
:
'
text/x-yaml
'
theme
:
'
paraiso-light
'
,
autoRefresh
:
true
,
mode
:
'
text/x-yaml
'
,
line
:
true
},
headers
:
[
{
...
...
@@ -193,7 +203,11 @@
this
.
height
=
window
.
innerHeight
*
0.5
}
},
computed
:
{
codemirror
()
{
return
this
.
$refs
.
myCm
.
codemirror
}
},
created
()
{
this
.
setHeight
()
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录