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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
src/views/resource/treeComponents/syncTree.vue
src/views/resource/videoEquipment.vue
src/views/resource/treeComponents/syncTree.vue
View file @
bfc4860
...
@@ -48,7 +48,11 @@ export default {
...
@@ -48,7 +48,11 @@ export default {
components
:
{},
components
:
{},
watch
:
{
watch
:
{
filterText
(
val
)
{
filterText
(
val
)
{
debugger
;
// this.$refs.synctree.filter(val);
setTimeout
(()
=>
{
this
.
$refs
.
synctree
.
filter
(
val
);
this
.
$refs
.
synctree
.
filter
(
val
);
},
100
);
},
},
treeDatas
(
val
)
{
treeDatas
(
val
)
{
this
.
treeData
[
0
].
childs
=
val
;
this
.
treeData
[
0
].
childs
=
val
;
...
@@ -60,13 +64,12 @@ export default {
...
@@ -60,13 +64,12 @@ export default {
this
.
isLoadingTree
=
true
;
this
.
isLoadingTree
=
true
;
},
},
filterNode
(
value
,
data
)
{
filterNode
(
value
,
data
)
{
// console.log('filterNode:', data)
if
(
!
value
)
return
true
;
if
(
!
value
)
return
true
;
return
data
.
label
.
indexOf
(
value
)
!==
-
1
;
return
data
.
label
.
indexOf
(
value
)
!==
-
1
;
},
},
handleNodeClick
(
data
){
handleNodeClick
(
data
)
{
if
(
data
.
label
===
"平台同步资源"
)
return
;
if
(
data
.
label
===
"平台同步资源"
)
return
;
this
.
$emit
(
'syncTable'
,
data
)
this
.
$emit
(
"syncTable"
,
data
);
},
},
handleRefresh
(
s
,
d
,
n
)
{
handleRefresh
(
s
,
d
,
n
)
{
// console.log(s, d, n)
// console.log(s, d, n)
...
...
src/views/resource/videoEquipment.vue
View file @
bfc4860
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
v-model=
"searchText"
v-model=
"searchText"
>
>
</el-input>
</el-input>
<SyncTree
ref=
"syncRef"
:treeDatas=
"syncTree"
@
syncTable=
"syncTable"
>
<SyncTree
ref=
"syncRef"
:filterText=
"searchText"
:treeDatas=
"syncTree"
@
syncTable=
"syncTable"
>
</SyncTree>
</SyncTree>
<cameraTree
<cameraTree
:filterText=
"searchText"
: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