Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-monitor
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
web-monitor
Commits
e7918628
Commit
e7918628
authored
Mar 11, 2022
by
yanzhongrong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
type
parent
9abe5837
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
93 additions
and
120 deletions
+93
-120
orgTree.vue
src/components/orgTree.vue
+23
-8
common.scss
src/styles/common.scss
+12
-1
index.vue
src/views/dashboard/components/index.vue
+1
-3
mixins.js
src/views/dashboard/components/mixins.js
+6
-7
type1.vue
src/views/dashboard/components/type1.vue
+27
-47
type2.vue
src/views/dashboard/components/type2.vue
+11
-15
type3.vue
src/views/dashboard/components/type3.vue
+12
-16
type4.vue
src/views/dashboard/components/type4.vue
+0
-11
type5.vue
src/views/dashboard/components/type5.vue
+0
-11
index.vue
src/views/dashboard/index.vue
+1
-1
No files found.
src/components/orgTree.vue
View file @
e7918628
...
@@ -15,8 +15,17 @@
...
@@ -15,8 +15,17 @@
type=
"primary"
type=
"primary"
icon=
"el-icon-s-unfold"
icon=
"el-icon-s-unfold"
size=
"mini"
size=
"mini"
:loading=
"flag"
v-if=
"isOpen==true"
@
click=
"flag = true"
@
click=
"toOpen"
>
收起
</el-button
>
<el-button
class=
"ml10"
type=
"primary"
icon=
"el-icon-s-unfold"
size=
"mini"
v-else
@
click=
"toOpen"
>
展开
</el-button
>
展开
</el-button
>
>
<el-button
<el-button
...
@@ -24,19 +33,19 @@
...
@@ -24,19 +33,19 @@
type=
"primary"
type=
"primary"
size=
"mini"
size=
"mini"
icon=
"el-icon-refresh-right"
icon=
"el-icon-refresh-right"
:loading=
"flag1"
@
click=
"getInit"
@
click=
"flag1 = true"
>
刷新
</el-button
>
刷新
</el-button
>
>
</el-row>
</el-row>
<el-scrollbar>
<el-scrollbar>
<el-tree
<el-tree
v-loading=
"loading"
v-loading=
"loading"
v-if=
"openOrNot"
ref=
"vuetree"
ref=
"vuetree"
:props=
"defaultProps"
:props=
"defaultProps"
:data=
"data"
:data=
"data"
:render-content=
"renderContent"
:render-content=
"renderContent"
:default-expand-all=
"
true
"
:default-expand-all=
"
isOpen
"
nodeKey=
"id"
nodeKey=
"id"
class=
"el-tree"
class=
"el-tree"
current-node-key=
"id"
current-node-key=
"id"
...
@@ -57,8 +66,6 @@ export default {
...
@@ -57,8 +66,6 @@ export default {
data
()
{
data
()
{
return
{
return
{
value
:
0
,
value
:
0
,
flag
:
false
,
flag1
:
false
,
options
:
[
options
:
[
{
{
id
:
0
,
id
:
0
,
...
@@ -70,6 +77,8 @@ export default {
...
@@ -70,6 +77,8 @@ export default {
},
},
],
],
data
:
[],
data
:
[],
isOpen
:
false
,
openOrNot
:
true
,
defaultProps
:
{
defaultProps
:
{
children
:
"children"
,
children
:
"children"
,
label
:
"label"
,
label
:
"label"
,
...
@@ -85,6 +94,13 @@ export default {
...
@@ -85,6 +94,13 @@ export default {
this
.
getInit
()
this
.
getInit
()
},
},
methods
:
{
methods
:
{
toOpen
()
{
this
.
isOpen
=
!
this
.
isOpen
this
.
openOrNot
=
false
;
setTimeout
(()
=>
{
this
.
openOrNot
=
true
;
},
10
);
},
handleClick
(
data
)
{
handleClick
(
data
)
{
this
.
$emit
(
'selectItem'
,
data
)
this
.
$emit
(
'selectItem'
,
data
)
},
},
...
@@ -108,7 +124,6 @@ export default {
...
@@ -108,7 +124,6 @@ export default {
<
/span
>
<
/span
>
<
/span
>
<
/span
>
<
/div
>
<
/div
>
);
);
},
},
},
},
...
...
src/styles/common.scss
View file @
e7918628
...
@@ -91,4 +91,15 @@
...
@@ -91,4 +91,15 @@
.particulars
{
.particulars
{
color
:
#666666
color
:
#666666
}
}
\ No newline at end of file
.header_title
{
font-size
:
23px
;
font-family
:
Source
Han
Sans
CN
;
font-weight
:
500
;
line-height
:
40px
;
text-align
:
center
;
color
:
#0058ff
;
letter-spacing
:
5px
;
opacity
:
1
;
margin-bottom
:
20px
;
}
\ No newline at end of file
src/views/dashboard/components/index.vue
View file @
e7918628
...
@@ -11,9 +11,7 @@ import Type5 from './type5.vue'
...
@@ -11,9 +11,7 @@ import Type5 from './type5.vue'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{}
}
},
},
props
:
{
props
:
{
type
:
{
type
:
{
...
...
src/views/dashboard/components/mixins.js
View file @
e7918628
...
@@ -6,14 +6,13 @@ export const DetailMixins = {
...
@@ -6,14 +6,13 @@ export const DetailMixins = {
form
:
{},
form
:
{},
formFunc
:
null
,
formFunc
:
null
,
isOpenSelect
:[{
isOpenSelect
:[{
key
:
0
,
key
:
0
,
label
:
"未开通"
label
:
"未开通"
},
},
{
{
key
:
1
,
key
:
1
,
label
:
"已开通"
label
:
"已开通"
}
}]
]
}
}
},
},
watch
:
{
watch
:
{
...
...
src/views/dashboard/components/type1.vue
View file @
e7918628
<
template
>
<
template
>
<div
class=
"dashboard-container"
>
<div
class=
"dashboard-container"
>
<!-- 首页 -->
<!-- 首页 -->
<header
class=
"header_title"
>
张呼铁路客运专线信息
</header>
<header
class=
"header_title"
>
铁路线(
{{
form
.
baseInfo
.
name
}}
)
</header>
<el-row
:gutter=
"24"
>
<el-row
:gutter=
"24"
>
<el-col
:span=
"12"
class=
"mb20"
>
<el-col
:span=
"12"
class=
"mb20"
>
<el-card
shadow=
"never"
>
<el-card
shadow=
"never"
>
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
</el-row>
</el-row>
<el-row
class=
"text"
:gutter=
"24"
>
<el-row
class=
"text"
:gutter=
"24"
>
<el-col
:span=
"10"
>
<el-col
:span=
"10"
>
<div
class=
"item_name"
>
漏缆
状态
</div>
<div
class=
"item_name"
>
漏缆
(含天馈线)
</div>
</el-col>
</el-col>
<el-col
:span=
"10"
>
<el-col
:span=
"10"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
...
@@ -113,6 +113,14 @@
...
@@ -113,6 +113,14 @@
<div
class=
"item_data"
>
{{
form
.
type5
}}
根
</div>
<div
class=
"item_data"
>
{{
form
.
type5
}}
根
</div>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
class=
"text"
:gutter=
"24"
>
<el-col
:span=
"10"
>
<div
class=
"item_name"
>
天馈线
</div>
</el-col>
<el-col
:span=
"10"
>
<div
class=
"item_data"
>
{{
form
.
type5
}}
根
</div>
</el-col>
</el-row>
</div>
</div>
</el-card>
</el-card>
</el-col>
</el-col>
...
@@ -188,6 +196,23 @@
...
@@ -188,6 +196,23 @@
</div>
</div>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
class=
"text"
:gutter=
"24"
>
<el-col
:span=
"10"
>
<div
class=
"item_name"
>
开通状态
</div>
</el-col>
<el-col
:span=
"10"
>
<div>
<el-select
v-model=
"form.baseInfo.isOpen"
>
<el-option
v-for=
"item in isOpenSelect"
:key=
"item.key"
:label=
"item.label"
:value=
"item.key"
></el-option>
</el-select>
</div>
</el-col>
</el-row>
</div>
</div>
</el-card>
</el-card>
</el-col>
</el-col>
...
@@ -210,17 +235,6 @@ export default {
...
@@ -210,17 +235,6 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.header_title
{
font-size
:
23px
;
font-family
:
Source
Han
Sans
CN
;
font-weight
:
500
;
line-height
:
40px
;
text-align
:
center
;
color
:
#0058ff
;
letter-spacing
:
10px
;
opacity
:
1
;
margin-bottom
:
20px
;
}
::v-deep
.el-card
{
::v-deep
.el-card
{
border
:
1px
solid
#e3e3e3
;
border
:
1px
solid
#e3e3e3
;
border-radius
:
8px
;
border-radius
:
8px
;
...
@@ -283,38 +297,4 @@ export default {
...
@@ -283,38 +297,4 @@ export default {
border-bottom
:
none
!
important
;
border-bottom
:
none
!
important
;
}
}
}
}
.text2
{
// display: flex;
padding
:
10px
20px
10px
20px
;
border-bottom
:
1px
solid
#e3e3e3
;
.item_name
,
.item_data
,
.value_handle
{
height
:
16px
;
line-height
:
16px
;
margin-top
:
12px
;
margin-bottom
:
12px
;
}
.item_name
{
width
:
262px
;
height
:
16px
;
line-height
:
16px
;
color
:
#7e7e7e
;
margin-top
:
12px
;
margin-bottom
:
12px
;
}
.value_handle
{
color
:
red
;
margin-right
:
10px
;
min-width
:
52px
;
}
.alarmbtn
{
margin-top
:
6px
;
margin-bottom
:
6px
;
}
.el-card
:last-child
.text
{
border-bottom
:
none
!
important
;
}
}
</
style
>
</
style
>
src/views/dashboard/components/type2.vue
View file @
e7918628
<
template
>
<
template
>
<div
class=
"dashboard-container"
>
<div
class=
"dashboard-container"
>
<!-- 首页 -->
<!-- 首页 -->
<header
class=
"header_title"
>
张呼铁路客运专线信息
</header>
<header
class=
"header_title"
>
站点(
{{
form
.
baseInfo
.
siteName
}}
)
</header>
<el-row
:gutter=
"24"
>
<el-row
:gutter=
"24"
>
<el-col
:span=
"12"
class=
"mb20"
>
<el-col
:span=
"12"
class=
"mb20"
>
<el-card
shadow=
"never"
>
<el-card
shadow=
"never"
>
...
@@ -33,6 +33,14 @@
...
@@ -33,6 +33,14 @@
<div
class=
"item_data"
>
{{
form
.
type5
}}
根
</div>
<div
class=
"item_data"
>
{{
form
.
type5
}}
根
</div>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
class=
"text"
:gutter=
"24"
>
<el-col
:span=
"10"
>
<div
class=
"item_name"
>
天馈线
</div>
</el-col>
<el-col
:span=
"10"
>
<div
class=
"item_data"
>
{{
form
.
type5
}}
根
</div>
</el-col>
</el-row>
</div>
</div>
</el-card>
</el-card>
</el-col>
</el-col>
...
@@ -153,8 +161,7 @@
...
@@ -153,8 +161,7 @@
<div
class=
"item_name"
>
开通状态
</div>
<div
class=
"item_name"
>
开通状态
</div>
</el-col>
</el-col>
<el-col
:span=
"10"
>
<el-col
:span=
"10"
>
<el-select
class=
"item_data"
<el-select
v-model=
"form.baseInfo.isOpen"
>
>
{{
form
.
baseInfo
.
isOpen
}}
<el-option
<el-option
v-for=
"item in isOpenSelect"
v-for=
"item in isOpenSelect"
:key=
"item.key"
:key=
"item.key"
...
@@ -209,17 +216,6 @@ export default {
...
@@ -209,17 +216,6 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.header_title
{
font-size
:
23px
;
font-family
:
Source
Han
Sans
CN
;
font-weight
:
500
;
line-height
:
40px
;
text-align
:
center
;
color
:
#0058ff
;
letter-spacing
:
10px
;
opacity
:
1
;
margin-bottom
:
20px
;
}
::v-deep
.el-card
{
::v-deep
.el-card
{
border
:
1px
solid
#e3e3e3
;
border
:
1px
solid
#e3e3e3
;
border-radius
:
8px
;
border-radius
:
8px
;
...
@@ -242,7 +238,7 @@ export default {
...
@@ -242,7 +238,7 @@ export default {
.specialCard
{
.specialCard
{
position
:
absolute
;
position
:
absolute
;
top
:
3
0
0px
;
top
:
3
4
0px
;
}
}
.text
{
.text
{
...
...
src/views/dashboard/components/type3.vue
View file @
e7918628
<
template
>
<
template
>
<div
class=
"dashboard-container"
>
<div
class=
"dashboard-container"
>
<!-- 首页 -->
<!-- 首页 -->
<header
class=
"header_title"
>
FSU
</header>
<header
class=
"header_title"
>
FSU
(
{{
form
.
baseInfo
.
equipName
}}
)
</header>
<el-row
:gutter=
"24"
>
<el-row
:gutter=
"24"
>
<el-col
:span=
"11"
class=
"mb20"
>
<el-col
:span=
"11"
class=
"mb20"
>
<el-card
shadow=
"never"
>
<el-card
shadow=
"never"
>
...
@@ -25,6 +25,14 @@
...
@@ -25,6 +25,14 @@
<div
class=
"item_data"
>
{{
form
.
type5
}}
根
</div>
<div
class=
"item_data"
>
{{
form
.
type5
}}
根
</div>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
class=
"text"
:gutter=
"24"
>
<el-col
:span=
"10"
>
<div
class=
"item_name"
>
天馈线
</div>
</el-col>
<el-col
:span=
"10"
>
<div
class=
"item_data"
>
{{
form
.
type5
}}
根
</div>
</el-col>
</el-row>
</div>
</div>
</el-card>
</el-card>
</el-col>
</el-col>
...
@@ -171,8 +179,7 @@
...
@@ -171,8 +179,7 @@
<div
class=
"item_name"
>
开通状态
</div>
<div
class=
"item_name"
>
开通状态
</div>
</el-col>
</el-col>
<el-col
:span=
"10"
>
<el-col
:span=
"10"
>
<el-select
class=
"item_data"
<el-select
v-model=
"form.baseInfo.isOpen"
>
>
{{
form
.
baseInfo
.
isOpen
}}
<el-option
<el-option
v-for=
"item in isOpenSelect"
v-for=
"item in isOpenSelect"
:key=
"item.key"
:key=
"item.key"
...
@@ -188,7 +195,7 @@
...
@@ -188,7 +195,7 @@
<el-col
:span=
"11"
class=
"mb20 specialCard"
>
<el-col
:span=
"11"
class=
"mb20 specialCard"
>
<el-card
shadow=
"never"
>
<el-card
shadow=
"never"
>
<div
slot=
"header"
class=
"clearfix posa"
>
<div
slot=
"header"
class=
"clearfix posa"
>
<span>
管理范围
</span>
<span>
当前状态
</span>
</div>
</div>
<div>
<div>
<el-row
class=
"text"
:gutter=
"24"
>
<el-row
class=
"text"
:gutter=
"24"
>
...
@@ -227,17 +234,6 @@ export default {
...
@@ -227,17 +234,6 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.header_title
{
font-size
:
23px
;
font-family
:
Source
Han
Sans
CN
;
font-weight
:
500
;
line-height
:
40px
;
text-align
:
center
;
color
:
#0058ff
;
letter-spacing
:
10px
;
opacity
:
1
;
margin-bottom
:
20px
;
}
::v-deep
.el-card
{
::v-deep
.el-card
{
border
:
1px
solid
#e3e3e3
;
border
:
1px
solid
#e3e3e3
;
border-radius
:
8px
;
border-radius
:
8px
;
...
@@ -256,7 +252,7 @@ export default {
...
@@ -256,7 +252,7 @@ export default {
}
}
.specialCard
{
.specialCard
{
position
:
absolute
;
position
:
absolute
;
top
:
2
4
0px
;
top
:
2
8
0px
;
}
}
.posa
{
.posa
{
position
:
relative
;
position
:
relative
;
...
...
src/views/dashboard/components/type4.vue
View file @
e7918628
...
@@ -192,17 +192,6 @@ export default {
...
@@ -192,17 +192,6 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.header_title
{
font-size
:
23px
;
font-family
:
Source
Han
Sans
CN
;
font-weight
:
500
;
line-height
:
40px
;
text-align
:
center
;
color
:
#0058ff
;
letter-spacing
:
10px
;
opacity
:
1
;
margin-bottom
:
20px
;
}
::v-deep
.el-card
{
::v-deep
.el-card
{
border
:
1px
solid
#e3e3e3
;
border
:
1px
solid
#e3e3e3
;
border-radius
:
8px
;
border-radius
:
8px
;
...
...
src/views/dashboard/components/type5.vue
View file @
e7918628
...
@@ -192,17 +192,6 @@ export default {
...
@@ -192,17 +192,6 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.header_title
{
font-size
:
23px
;
font-family
:
Source
Han
Sans
CN
;
font-weight
:
500
;
line-height
:
40px
;
text-align
:
center
;
color
:
#0058ff
;
letter-spacing
:
10px
;
opacity
:
1
;
margin-bottom
:
20px
;
}
::v-deep
.el-card
{
::v-deep
.el-card
{
border
:
1px
solid
#e3e3e3
;
border
:
1px
solid
#e3e3e3
;
border-radius
:
8px
;
border-radius
:
8px
;
...
...
src/views/dashboard/index.vue
View file @
e7918628
...
@@ -64,7 +64,7 @@ export default {
...
@@ -64,7 +64,7 @@ export default {
line-height
:
40px
;
line-height
:
40px
;
text-align
:
center
;
text-align
:
center
;
color
:
#0058ff
;
color
:
#0058ff
;
letter-spacing
:
10
px
;
letter-spacing
:
5
px
;
opacity
:
1
;
opacity
:
1
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
...
...
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