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
0507bb2a
Commit
0507bb2a
authored
Aug 12, 2020
by
kangzhenfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
saas--数据资源管理ok
parent
5cb32912
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
332 additions
and
183 deletions
+332
-183
zh-CN.js
i18n/locale/zh-CN.js
+5
-2
add.vue
pages/system/host/add.vue
+18
-0
api.js
pages/system/host/api.js
+8
-9
detail.vue
pages/system/host/detail.vue
+48
-47
edit.vue
pages/system/host/edit.vue
+19
-1
index.vue
pages/system/host/index.vue
+232
-123
config.js
static/config.js
+2
-1
No files found.
i18n/locale/zh-CN.js
View file @
0507bb2a
...
@@ -908,8 +908,11 @@ export default {
...
@@ -908,8 +908,11 @@ export default {
},
//多租户-服务器数据源
},
//多租户-服务器数据源
host
:
{
host
:
{
id
:
''
,
id
:
''
,
name
:
'数据源名称'
,
name
:
'描述'
,
//'数据源名称',
ip
:
'服务器地址'
,
os
:
"操作系统"
,
ip
:
'Ip'
,
//'服务器地址',
domain
:
"域名"
,
supportDatabaseType
:
"支持的数据库"
,
user
:
'用户名'
,
user
:
'用户名'
,
password
:
'密码'
,
password
:
'密码'
,
port
:
'ssh端口'
,
port
:
'ssh端口'
,
...
...
pages/system/host/add.vue
View file @
0507bb2a
...
@@ -8,10 +8,25 @@
...
@@ -8,10 +8,25 @@
</Col>
</Col>
</Row>
</Row>
<Row>
<Row>
<Col
:span=
"24"
>
<FormItem
:label=
"l('os')"
prop=
"os"
>
<Input
v-model=
"entity.os"
></Input>
</FormItem>
</Col>
<Col
:span=
"24"
>
<Col
:span=
"24"
>
<FormItem
:label=
"l('ip')"
prop=
"ip"
>
<FormItem
:label=
"l('ip')"
prop=
"ip"
>
<Input
v-model=
"entity.ip"
></Input>
<Input
v-model=
"entity.ip"
></Input>
</FormItem>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('domain')"
prop=
"domain"
>
<Input
v-model=
"entity.domain"
></Input>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('supportDatabaseType')"
prop=
"supportDatabaseType"
>
<Input
v-model=
"entity.supportDatabaseType"
></Input>
</FormItem>
</Col>
</Col>
</Row>
</Row>
<Row>
<Row>
...
@@ -63,6 +78,9 @@ export default {
...
@@ -63,6 +78,9 @@ export default {
name
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
name
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
ip
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
ip
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
user
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
user
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
os
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
domain
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
supportDatabaseType
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
password
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}]
password
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}]
}
}
}
}
...
...
pages/system/host/api.js
View file @
0507bb2a
import
Api
from
'@/plugins/request'
import
Api
from
'@/plugins/request'
export
default
{
export
default
{
index
:
`
${
authUrl
}
/api/services/app/host/paged`
,
// index:`${authUrl}/api/services/app/host/paged`,
index
:
`
${
systemNew
}
api/services/app/host/paged`
,
//new
paged
(
params
){
paged
(
params
){
// return Api.post(`${authUrl}/api/services/app/host/paged`,params); systemNew
return
Api
.
post
(
`
${
authUrl
}
/api/services/app/host/paged`
,
params
);
return
Api
.
post
(
`
${
systemNew
}
api/services/app/host/paged`
,
params
);
},
},
get
(
params
){
get
(
params
){
return
Api
.
get
(
`
${
systemNew
}
api/services/app/host/get`
,
params
);
return
Api
.
get
(
`
${
authUrl
}
/api/services/app/host/get`
,
params
);
},
},
create
(
params
){
create
(
params
){
return
Api
.
post
(
`
${
systemNew
}
api/services/app/host/create`
,
params
);
return
Api
.
post
(
`
${
authUrl
}
/api/services/app/host/create`
,
params
);
},
},
update
(
params
){
update
(
params
){
return
Api
.
post
(
`
${
authUrl
}
/
api/services/app/host/update`
,
params
);
return
Api
.
post
(
`
${
systemNew
}
api/services/app/host/update`
,
params
);
},
},
//删除:
//删除:
delete
(
params
)
{
delete
(
params
)
{
return
Api
.
delete
(
`
${
authUrl
}
/
api/services/app/host/delete`
,{
params
:
params
});
return
Api
.
delete
(
`
${
systemNew
}
api/services/app/host/delete`
,{
params
:
params
});
},
},
}
}
\ No newline at end of file
pages/system/host/detail.vue
View file @
0507bb2a
<
template
>
<
template
>
<div
class=
"detail"
>
<div
class=
"detail"
>
<Row>
<Row>
<Filed
:span=
"24"
:name=
"l('name')"
>
{{
entity
.
name
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('name')"
>
{{
entity
.
name
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('os')"
>
{{
entity
.
os
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('ip')"
>
{{
entity
.
ip
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('ip')"
>
{{
entity
.
ip
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('user')"
>
{{
entity
.
user
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('domain')"
>
{{
entity
.
domain
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('password')"
>
{{
entity
.
password
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('supportDatabaseType')"
>
{{
entity
.
supportDatabaseType
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('port')"
>
{{
entity
.
port
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('user')"
>
{{
entity
.
user
}}
</Filed>
</Row>
<Filed
:span=
"24"
:name=
"l('password')"
>
{{
entity
.
password
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('port')"
>
{{
entity
.
port
}}
</Filed>
</div>
</Row>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
'./api'
import
Api
from
"./api"
;
export
default
{
export
default
{
name
:
'Add'
,
name
:
"Add"
,
data
()
{
data
()
{
return
{
return
{
entity
:
{},
entity
:
{},
rules
:
{
// rules: {
name
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
// name: [{ required: true, message: "必填", trigger: "blur" }],
code
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}]
// code: [{ required: true, message: "必填", trigger: "blur" }]
}
// }
}
};
},
},
props
:
{
props
:
{
eid
:
Number
eid
:
Number
},
},
methods
:
{
methods
:
{
load
(
v
)
{
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
this
.
entity
=
r
.
result
;
this
.
entity
=
r
.
result
;
this
.
$emit
(
'on-load'
)
this
.
$emit
(
"on-load"
);
})
});
},
},
handleClose
()
{
handleClose
()
{
this
.
$emit
(
'on-close'
)
this
.
$emit
(
"on-close"
);
},
},
l
(
key
)
{
l
(
key
)
{
key
=
"host"
+
"."
+
key
;
key
=
"host"
+
"."
+
key
;
return
this
.
$t
(
key
)
return
this
.
$t
(
key
);
}
},
watch
:
{
eid
(
v
)
{
if
(
v
!=
0
)
{
this
.
load
(
v
);
}
}
},
watch
:
{
eid
(
v
)
{
if
(
v
!=
0
)
{
this
.
load
(
v
);
}
}
}
}
}
}
};
</
script
>
</
script
>
\ No newline at end of file
pages/system/host/edit.vue
View file @
0507bb2a
...
@@ -6,11 +6,26 @@
...
@@ -6,11 +6,26 @@
<Input
v-model=
"entity.name"
></Input>
<Input
v-model=
"entity.name"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('os')"
prop=
"os"
>
<Input
v-model=
"entity.os"
></Input>
</FormItem>
</Col>
<Col
:span=
"24"
>
<Col
:span=
"24"
>
<FormItem
:label=
"l('ip')"
prop=
"ip"
>
<FormItem
:label=
"l('ip')"
prop=
"ip"
>
<Input
v-model=
"entity.ip"
></Input>
<Input
v-model=
"entity.ip"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('domain')"
prop=
"domain"
>
<Input
v-model=
"entity.domain"
></Input>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('supportDatabaseType')"
prop=
"supportDatabaseType"
>
<Input
v-model=
"entity.supportDatabaseType"
></Input>
</FormItem>
</Col>
<Col
:span=
"24"
>
<Col
:span=
"24"
>
<FormItem
:label=
"l('user')"
prop=
"user"
>
<FormItem
:label=
"l('user')"
prop=
"user"
>
<Input
v-model=
"entity.user"
></Input>
<Input
v-model=
"entity.user"
></Input>
...
@@ -35,7 +50,7 @@
...
@@ -35,7 +50,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
'./api'
import
Api
from
'./api'
export
default
{
export
default
{
name
:
'Edit'
,
name
:
'Edit'
,
data
()
{
data
()
{
return
{
return
{
...
@@ -43,8 +58,11 @@ export default {
...
@@ -43,8 +58,11 @@ export default {
entity
:
{
name
:
''
,
ip
:
''
,
user
:
''
,
password
:
''
,
port
:
22
,
id
:
0
},
entity
:
{
name
:
''
,
ip
:
''
,
user
:
''
,
password
:
''
,
port
:
22
,
id
:
0
},
rules
:
{
rules
:
{
name
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
name
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
os
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
ip
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
ip
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
user
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
user
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
domain
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
supportDatabaseType
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
password
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}]
password
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}]
}
}
}
}
...
...
pages/system/host/index.vue
View file @
0507bb2a
This diff is collapsed.
Click to expand it.
static/config.js
View file @
0507bb2a
...
@@ -10,7 +10,8 @@ let address=systemApi.dev;
...
@@ -10,7 +10,8 @@ let address=systemApi.dev;
//let address=systemApi.local;
//let address=systemApi.local;
window
.
systemUrl
=
`http://
${
address
}
:10000/system`
;
//System-api 系统管理(基础数据)
window
.
systemUrl
=
`http://
${
address
}
:10000/system`
;
//System-api 系统管理(基础数据)
window
.
system
=
`http://
${
address
}
:10000/auth`
;
//多租户后台系统
window
.
system
=
`http://
${
address
}
:10000/auth`
;
//多租户后台系统
window
.
systemNew
=
`http://
${
address
}
:10130/`
;
//多租户后台系统-new 10130/platform/host/paged
window
.
authUrl
=
`http://
${
address
}
:10010`
;
//Authentication-api //统一登陆认证
window
.
authUrl
=
`http://
${
address
}
:10010`
;
//Authentication-api //统一登陆认证
window
.
designUrl
=
`http://
${
address
}
:10000/process`
;
// 工艺规程
window
.
designUrl
=
`http://
${
address
}
:10000/process`
;
// 工艺规程
window
.
PlanUrl
=
`http://
${
address
}
:10000/plan`
;
//订单
window
.
PlanUrl
=
`http://
${
address
}
:10000/plan`
;
//订单
...
...
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