Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
platform
/
fanxing_new
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bfc48606
authored
Jul 02, 2020
by
潘建波
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
🐛
修改同步资源查询无效问题
1 parent
655061ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
src/views/resource/treeComponents/syncTree.vue
src/views/resource/videoEquipment.vue
src/views/resource/treeComponents/syncTree.vue
View file @
bfc4860
...
...
@@ -46,9 +46,13 @@ export default {
}
},
components
:
{},
watch
:
{
watch
:
{
filterText
(
val
)
{
this
.
$refs
.
synctree
.
filter
(
val
);
debugger
;
// this.$refs.synctree.filter(val);
setTimeout
(()
=>
{
this
.
$refs
.
synctree
.
filter
(
val
);
},
100
);
},
treeDatas
(
val
)
{
this
.
treeData
[
0
].
childs
=
val
;
...
...
@@ -60,13 +64,12 @@ export default {
this
.
isLoadingTree
=
true
;
},
filterNode
(
value
,
data
)
{
// console.log('filterNode:', data)
if
(
!
value
)
return
true
;
return
data
.
label
.
indexOf
(
value
)
!==
-
1
;
},
handleNodeClick
(
data
){
if
(
data
.
label
===
"平台同步资源"
)
return
;
this
.
$emit
(
'syncTable'
,
data
)
handleNodeClick
(
data
)
{
if
(
data
.
label
===
"平台同步资源"
)
return
;
this
.
$emit
(
"syncTable"
,
data
);
},
handleRefresh
(
s
,
d
,
n
)
{
// console.log(s, d, n)
...
...
src/views/resource/videoEquipment.vue
View file @
bfc4860
...
...
@@ -9,7 +9,7 @@
v-model=
"searchText"
>
</el-input>
<SyncTree
ref=
"syncRef"
:treeDatas=
"syncTree"
@
syncTable=
"syncTable"
>
<SyncTree
ref=
"syncRef"
:filterText=
"searchText"
:treeDatas=
"syncTree"
@
syncTable=
"syncTable"
>
</SyncTree>
<cameraTree
:filterText=
"searchText"
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment