Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
W
whp-xl
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
lizhichao
whp-xl
Commits
d1172cb1
Commit
d1172cb1
authored
Jun 11, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
视频可视化-企业视频监控树
parent
a8304992
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
0 deletions
+76
-0
methods.ts
dcit-hcsystem-hcsystem-master/src/utils/methods.ts
+1
-0
VideoList.vue
dcit-hcsystem-hcsystem-master/src/views/Video/VideoList.vue
+75
-0
No files found.
dcit-hcsystem-hcsystem-master/src/utils/methods.ts
View file @
d1172cb1
...
...
@@ -22,6 +22,7 @@ export default {
MenuMg
:
"System"
,
RoleMg
:
"System"
,
UserMg
:
"System"
,
VideoList
:
"Video"
},
deleteFun
(
that
:
any
,
url
:
any
,
callback
:
any
)
{
(
that
as
any
)
...
...
dcit-hcsystem-hcsystem-master/src/views/Video/VideoList.vue
0 → 100644
View file @
d1172cb1
<
template
>
<div
class=
"pomentWrap"
>
<el-row
:gutter=
"5"
type=
"flex"
justify=
"space-around"
>
<el-col
:xs=
"12"
:sm=
"12"
:md=
"6"
:lg=
"4"
:xl=
"4"
>
<div
class=
"topBar"
>
<el-tree
:data=
"treeData"
:props=
"treeProps"
ref=
"Tree"
node-key=
"id"
:highlight-current=
"true"
:default-expanded-keys=
"[0]"
:default-checked-keys=
"[]"
@
node-click=
"nodeClick"
>
</el-tree>
</div>
</el-col>
<el-col
:xs=
"12"
:sm=
"12"
:md=
"18"
:lg=
"20"
:xl=
"20"
>
<el-table
:data=
"tableData.pageData"
border
style=
"width:100%;"
v-loading=
"loading"
>
<el-table-column
prop=
"deviceName"
label
></el-table-column>
</el-table>
</el-col>
</el-row>
</div>
</
template
>
<
style
lang=
"scss"
scped
>
@import
'@/utils/public.scss'
;
</
style
>
<
script
lang=
"ts"
>
import
{
Component
,
Vue
,
Provide
,
Watch
}
from
"vue-property-decorator"
;
import
METHOD
from
"@/utils/methods"
@
Component
({
components
:
{
}
})
export
default
class
VideoList
extends
Vue
{
@
Provide
()
tableData
:
Object
=
{
pageData
:
[],
total
:
0
};
@
Provide
()
PAGE
:
any
=
{
page
:
1
,
size
:
100000
};
@
Provide
()
searchData
:
any
=
{
account
:
""
,
userName
:
""
};
@
Provide
()
loading
:
Boolean
=
false
;
@
Provide
()
treeData
:
any
=
[
{
enterpriseId
:
0
,
name
:
"企业视频监控"
,
level
:
0
,
icon
:
"icon-yh"
,
childList
:
[]
}
];
@
Provide
()
treeProps
:
Object
=
{
children
:
"childList"
,
label
:
"name"
};
@
Provide
()
treecheckedObj
:
any
=
{};
getTreeData
()
{
let
that
=
this
;
(
this
as
any
).
$axios
.
get
(
`/safetyDeviceInfo/getDeviceTree`
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
0
){
console
.
log
(
res
.
data
);
that
.
treeData
[
0
].
childList
=
res
.
data
;
}
});
}
nodeClick
(
data
:
any
,
node
:
any
,
target
:
any
)
{
let
that
=
this
;
that
.
treecheckedObj
=
node
.
data
;
}
created
()
{
let
that
=
this
;
that
.
getTreeData
();
}
}
</
script
>
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