Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周远喜
mes-ui
Commits
d2b422ea
Commit
d2b422ea
authored
Oct 22, 2020
by
樊国敬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o
parent
2ee438a7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
3 deletions
+21
-3
zh-CN.js
i18n/locale/zh-CN.js
+1
-0
add.vue
pages/system/datasource/add.vue
+5
-0
detail.vue
pages/system/datasource/detail.vue
+5
-2
edit.vue
pages/system/datasource/edit.vue
+9
-1
index.vue
pages/system/datasource/index.vue
+1
-0
No files found.
i18n/locale/zh-CN.js
View file @
d2b422ea
...
...
@@ -1019,6 +1019,7 @@ export default {
port
:
'端口'
,
userName
:
'用户名'
,
password
:
'密码'
,
description
:
'描述'
,
creationTime
:
'创建时间'
,
creatorUserId
:
'创建人'
,
lastModificationTime
:
'更新时间'
,
...
...
pages/system/datasource/add.vue
View file @
d2b422ea
...
...
@@ -30,6 +30,11 @@
<Input
v-model=
"entity.password"
></Input>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('description')"
prop=
"description"
>
<Input
v-model=
"entity.description"
></Input>
</FormItem>
</Col>
</Row>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
...
...
pages/system/datasource/detail.vue
View file @
d2b422ea
...
...
@@ -2,10 +2,13 @@
<div
class=
"detail"
>
<Row>
<Filed
:span=
"24"
:name=
"l('hostName')"
>
{{
entity
.
hostName
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('hostsq')"
>
{{
entity
.
hostName
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('hostsq')"
>
<State
code=
"datasource.type"
:value=
"entity.databaseType"
/>
</Filed>
<Filed
:span=
"24"
:name=
"l('port')"
>
{{
entity
.
port
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('userName')"
>
{{
entity
.
userName
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('password')"
>
{{
entity
.
password
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('description')"
>
{{
entity
.
description
}}
</Filed>
</Row>
</div>
</
template
>
...
...
@@ -15,7 +18,7 @@ export default {
name
:
'Add'
,
data
()
{
return
{
entity
:
{
hostName
:
''
,
port
:
0
,
userName
:
''
,
password
:
''
},
entity
:
{
hostName
:
''
,
port
:
0
,
userName
:
''
,
password
:
''
,
description
:
''
},
rules
:
{
name
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
code
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}]
...
...
pages/system/datasource/edit.vue
View file @
d2b422ea
...
...
@@ -10,7 +10,7 @@
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('hostsq')"
prop=
"hostId"
>
<Input
v-model=
"entity.hostId"
></Input
>
<Dictionary
code=
"datasource.type"
v-model=
"entity.databaseType"
type=
"select"
></Dictionary
>
<!--
<Dictionary
v-model=
"entity.hostId"
></Dictionary>
-->
</FormItem>
</Col>
...
...
@@ -31,6 +31,11 @@
<!--
<Input
v-model=
"entity.password"
></Input>
-->
<span>
{{
entity
.
password
}}
</span>
</FormItem>
<Col
:span=
"24"
>
<FormItem
:label=
"l('description')"
prop=
"description"
>
<Input
v-model=
"entity.description"
></Input>
</FormItem>
</Col>
</Col>
</Row>
<FormItem>
...
...
@@ -71,6 +76,9 @@ export default {
methods
:
{
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
if
(
r
.
result
.
databaseType
){
r
.
result
.
databaseType
=
parseInt
(
r
.
result
.
databaseType
)
}
this
.
entity
=
r
.
result
;
this
.
$emit
(
"on-load"
);
});
...
...
pages/system/datasource/index.vue
View file @
d2b422ea
...
...
@@ -84,6 +84,7 @@ export default {
high
:
true
},
{
key
:
"password"
,
title
:
this
.
l
(
"password"
),
align
:
"left"
},
{
key
:
"description"
,
title
:
this
.
l
(
"description"
),
align
:
"left"
},
{
key
:
"creationTime"
,
title
:
this
.
l
(
"creationTime"
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment