Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
9b2790f1
Commit
9b2790f1
authored
Jan 16, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
26b066e8
a060b0cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
base-manager-ui/admin/src/pages/basicset/dept/department.vue
base-manager-ui/admin/src/pages/basicset/dept/department.vue
+10
-5
No files found.
base-manager-ui/admin/src/pages/basicset/dept/department.vue
View file @
9b2790f1
...
...
@@ -22,10 +22,10 @@
<!-- 部门管理 -->
<div
class=
"department-list"
>
<a-spin
:spinning=
"deptLoading"
>
<div
v-if=
"depart
men
t.length"
>
<div
v-if=
"depart
Lis
t.length"
>
<div
:class=
"
{ department_off: true, active: active === i }"
v-for="(v, i) in depart
men
t"
v-for="(v, i) in depart
Lis
t"
:key="v.id"
@click="changeDept(v.id, i)"
>
...
...
@@ -331,6 +331,7 @@ export default {
visibleWork
:
false
,
visibleAdd
:
false
,
department
:
[],
// 部门列表
departList
:
[],
// 部门列表
deptTotal
:
0
,
// 部门总数
windowData
:
[],
// 窗口列表数据
page
:
1
,
...
...
@@ -360,7 +361,8 @@ export default {
watch
:
{
deptSearchVal
(
newVal
)
{
if
(
newVal
===
""
)
{
this
.
getDeptListData
();
this
.
departList
=
this
.
department
;
// this.getDeptListData();
}
},
},
...
...
@@ -407,12 +409,12 @@ export default {
siteId
:
this
.
siteId
,
page
:
1
,
size
:
-
1
,
name
:
`%
${
this
.
deptSearchVal
}
%`
,
});
this
.
deptLoading
=
false
;
let
{
code
,
data
}
=
res
.
data
;
if
(
code
===
1
)
{
this
.
department
=
data
.
data
;
this
.
departList
=
data
.
data
;
this
.
deptTotal
=
data
.
total
;
}
},
...
...
@@ -566,7 +568,10 @@ export default {
// 左边搜索
onSearch
(
val
)
{
if
(
val
!=
""
)
{
this
.
getDeptListData
();
this
.
departList
=
this
.
department
.
filter
((
v
)
=>
{
return
v
.
name
.
includes
(
val
);
});
// this.getDeptListData();
}
},
// 右边搜索
...
...
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