Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
property-management
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
chenjunxiong
property-management
Commits
84a53783
Commit
84a53783
authored
Mar 14, 2019
by
zhangdaihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决部门管理 频繁点击刷新会出现数据重复的问题
parent
8ed4b349
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
ant-design-jeecg-vue/src/views/system/DepartList.vue
+4
-1
No files found.
ant-design-jeecg-vue/src/views/system/DepartList.vue
View file @
84a53783
...
...
@@ -6,7 +6,7 @@
<a-button
@
click=
"handleAdd(2)"
style=
"margin-left: 18px"
type=
"primary"
icon=
"plus"
>
添加子部门
</a-button>
<a-button
@
click=
"handleAdd(1)"
type=
"default"
icon=
"plus"
>
添加一级部门
</a-button>
<a-button
title=
"删除多条数据"
@
click=
"batchDel"
type=
"default"
icon=
"delete"
>
批量删除
</a-button>
<a-button
@
click=
"refresh"
type=
"default"
icon=
"reload"
>
刷新
</a-button>
<a-button
@
click=
"refresh"
type=
"default"
icon=
"reload"
:loading=
"loading"
>
刷新
</a-button>
</div>
</a-layout-header>
...
...
@@ -143,6 +143,7 @@
data
(){
return
{
iExpandedKeys
:[],
loading
:
false
,
autoExpandParent
:
true
,
currFlowId
:
""
,
currFlowName
:
""
,
...
...
@@ -196,6 +197,7 @@
that
.
setThisExpandedKeys
(
temp
);
console
.
log
(
temp
.
id
)
}
this
.
loading
=
false
;
}
});
},
...
...
@@ -208,6 +210,7 @@
}
},
refresh
(){
this
.
loading
=
true
;
this
.
loadTree
();
},
onExpand
(
expandedKeys
)
{
...
...
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