Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
intelligent_station_web
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
张伯涛
intelligent_station_web
Commits
1402aae2
Commit
1402aae2
authored
Aug 27, 2024
by
xuhaoze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
宿主机业务前端初始化
parent
59efc8a7
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
642 additions
and
0 deletions
+642
-0
resHost.js
src/api/resHost.js
+68
-0
index.vue
src/views/resHost/index.vue
+574
-0
No files found.
src/api/resHost.js
0 → 100644
View file @
1402aae2
import
request
from
'@/utils/request'
import
Qs
from
'qs'
/**
* 1. 列表查询
* 2. 查询详细信息
* 3. 新增
* 4. 修改
* 5. 逻辑删除
* 6. 导出
*
*/
// 1. 查询宿主机列表
export
function
listResHost
(
query
)
{
return
request
({
url
:
'/reshost/list'
,
method
:
'get'
,
params
:
query
})
}
// 2. 查询宿主机详细信息
export
function
getResHost
(
businessId
)
{
return
request
({
url
:
'/reshost/detail/'
+
businessId
,
method
:
'get'
})
}
// 3. 新增宿主机
export
function
addResHost
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/reshost/add'
,
method
:
'post'
,
data
:
data
})
}
// 4. 修改宿主机
export
function
updateResHost
(
data
)
{
const
businessId
=
data
.
businessId
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/reshost/update/'
+
businessId
,
method
:
'put'
,
data
})
}
// 5. 逻辑删除宿主机
export
function
delResHost
(
businessId
)
{
return
request
({
url
:
'/reshost/deleteLogical/'
+
businessId
,
method
:
'delete'
})
}
// 6. 导出宿主机
export
function
exportResHost
(
query
)
{
return
request
({
url
:
'/reshost/export'
,
method
:
'get'
,
params
:
query
,
responseType
:
'blob'
})
}
src/views/resHost/index.vue
0 → 100644
View file @
1402aae2
This diff is collapsed.
Click to expand it.
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