Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front-backend
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
front-backend
Commits
a7b22099
Commit
a7b22099
authored
Nov 07, 2019
by
dqjdda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化,加入server.js
parent
0c602579
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
91 additions
and
66 deletions
+91
-66
src/api/server.js
+24
-0
src/views/home.vue
+66
-66
src/views/monitor/server/index.vue
+1
-0
No files found.
src/api/server.js
0 → 100644
View file @
a7b22099
import
request
from
'@/utils/request'
export
function
add
(
data
)
{
return
request
({
url
:
'api/server'
,
method
:
'post'
,
data
})
}
export
function
del
(
id
)
{
return
request
({
url
:
'api/server/'
+
id
,
method
:
'delete'
})
}
export
function
edit
(
data
)
{
return
request
({
url
:
'api/server'
,
method
:
'put'
,
data
})
}
src/views/home.vue
View file @
a7b22099
...
...
@@ -5,6 +5,26 @@
<el-row
style=
"background:#fff;padding:16px 16px 0;margin-bottom:32px;"
>
<line-chart/>
</el-row>
<!--
<el-row
:gutter=
"32"
>
-->
<!--
<el-col
:xs=
"24"
:sm=
"24"
:lg=
"8"
>
-->
<!--
<div
class=
"chart-wrapper"
>
-->
<!--
<radar-chart/>
-->
<!--
</div>
-->
<!--
</el-col>
-->
<!--
<el-col
:xs=
"24"
:sm=
"24"
:lg=
"8"
>
-->
<!--
<div
class=
"chart-wrapper"
>
-->
<!--
<pie-chart/>
-->
<!--
</div>
-->
<!--
</el-col>
-->
<!--
<el-col
:xs=
"24"
:sm=
"24"
:lg=
"8"
>
-->
<!--
<div
class=
"chart-wrapper"
>
-->
<!--
<bar-chart/>
-->
<!--
</div>
-->
<!--
</el-col>
-->
<!--
</el-row>
-->
<!--
<el-row
style=
"background:#fff;padding:16px 16px 0;margin-bottom:32px;"
>
-->
<!--
<heat-map/>
-->
<!--
</el-row>
-->
<el-row
:gutter=
"32"
>
<el-col
:xs=
"24"
:sm=
"24"
:lg=
"8"
>
<div
class=
"chart-wrapper"
>
...
...
@@ -13,26 +33,6 @@
</el-col>
<el-col
:xs=
"24"
:sm=
"24"
:lg=
"8"
>
<div
class=
"chart-wrapper"
>
<pie-chart/>
</div>
</el-col>
<el-col
:xs=
"24"
:sm=
"24"
:lg=
"8"
>
<div
class=
"chart-wrapper"
>
<bar-chart/>
</div>
</el-col>
</el-row>
<el-row
style=
"background:#fff;padding:16px 16px 0;margin-bottom:32px;"
>
<heat-map/>
</el-row>
<el-row
:gutter=
"32"
>
<el-col
:xs=
"24"
:sm=
"24"
:lg=
"8"
>
<div
class=
"chart-wrapper"
>
<funnel/>
</div>
</el-col>
<el-col
:xs=
"24"
:sm=
"24"
:lg=
"8"
>
<div
class=
"chart-wrapper"
>
<sunburst/>
</div>
</el-col>
...
...
@@ -42,52 +42,52 @@
</div>
</el-col>
</el-row>
<
el-row
:gutter=
"12"
>
<el-col
:span=
"12"
>
<div
class=
"chart-wrapper"
>
<rich/
>
</div
>
</el-col
>
<el-col
:span=
"12"
>
<div
class=
"chart-wrapper"
>
<theme-river/
>
</div
>
</el-col
>
<
/el-row
>
<
el-row
:gutter=
"32"
>
<el-col
:xs=
"24"
:sm=
"24"
:lg=
"8"
>
<div
class=
"chart-wrapper"
>
<graph/
>
</div
>
</el-col
>
<el-col
:xs=
"24"
:sm=
"24"
:lg=
"8"
>
<div
class=
"chart-wrapper"
>
<sankey/
>
</div
>
</el-col
>
<el-col
:xs=
"24"
:sm=
"24"
:lg=
"8"
>
<div
class=
"chart-wrapper"
>
<line3-d/
>
</div
>
</el-col
>
<
/el-row
>
<
el-row
:gutter=
"12"
>
<el-col
:span=
"12"
>
<div
class=
"chart-wrapper"
>
<scatter/
>
</div
>
</el-col
>
<el-col
:span=
"12"
>
<div
class=
"chart-wrapper"
>
<point/
>
</div
>
</el-col
>
<
/el-row
>
<
el-row
style=
"background:#fff;padding:16px 16px 0;margin-bottom:32px;"
>
<div
class=
"chart-wrapper"
>
<category/
>
</div
>
<
/el-row
>
<
!--
<el-row
:gutter=
"12"
>
--
>
<!--
<el-col
:span=
"12"
>
--
>
<!--
<div
class=
"chart-wrapper"
>
--
>
<!--
<rich/>
--
>
<!--
</div>
--
>
<!--
</el-col>
--
>
<!--
<el-col
:span=
"12"
>
--
>
<!--
<div
class=
"chart-wrapper"
>
--
>
<!--
<theme-river/>
--
>
<!--
</div>
--
>
<!--
</el-col>
--
>
<
!--
</el-row>
--
>
<
!--
<el-row
:gutter=
"32"
>
--
>
<!--
<el-col
:xs=
"24"
:sm=
"24"
:lg=
"8"
>
--
>
<!--
<div
class=
"chart-wrapper"
>
--
>
<!--
<graph/>
--
>
<!--
</div>
--
>
<!--
</el-col>
--
>
<!--
<el-col
:xs=
"24"
:sm=
"24"
:lg=
"8"
>
--
>
<!--
<div
class=
"chart-wrapper"
>
--
>
<!--
<sankey/>
--
>
<!--
</div>
--
>
<!--
</el-col>
--
>
<!--
<el-col
:xs=
"24"
:sm=
"24"
:lg=
"8"
>
--
>
<!--
<div
class=
"chart-wrapper"
>
--
>
<!--
<line3-d/>
--
>
<!--
</div>
--
>
<!--
</el-col>
--
>
<
!--
</el-row>
--
>
<
!--
<el-row
:gutter=
"12"
>
--
>
<!--
<el-col
:span=
"12"
>
--
>
<!--
<div
class=
"chart-wrapper"
>
--
>
<!--
<scatter/>
--
>
<!--
</div>
--
>
<!--
</el-col>
--
>
<!--
<el-col
:span=
"12"
>
--
>
<!--
<div
class=
"chart-wrapper"
>
--
>
<!--
<point/>
--
>
<!--
</div>
--
>
<!--
</el-col>
--
>
<
!--
</el-row>
--
>
<
!--
<el-row
style=
"background:#fff;padding:16px 16px 0;margin-bottom:32px;"
>
--
>
<!--
<div
class=
"chart-wrapper"
>
--
>
<!--
<category/>
--
>
<!--
</div>
--
>
<
!--
</el-row>
--
>
</div>
</div>
</
template
>
...
...
src/views/monitor/server/index.vue
View file @
a7b22099
...
...
@@ -86,6 +86,7 @@ import initData from '@/mixins/initData'
import
{
del
}
from
'@/api/server'
import
eForm
from
'./form'
export
default
{
name
:
'ServerMonitor'
,
components
:
{
eForm
},
mixins
:
[
initData
],
data
()
{
...
...
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