Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
addresslist
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
张莎莎
addresslist
Commits
7279fa07
Commit
7279fa07
authored
Aug 06, 2025
by
张莎莎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
a6a4db2c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
16 deletions
+15
-16
src/views/permission/department/index.vue
src/views/permission/department/index.vue
+2
-2
src/views/permission/organize/index.vue
src/views/permission/organize/index.vue
+1
-1
src/views/permission/position/index.vue
src/views/permission/position/index.vue
+2
-2
src/views/permission/xlwjfflxr/index.vue
src/views/permission/xlwjfflxr/index.vue
+1
-1
src/views/permission/xlwjfflxr/person.vue
src/views/permission/xlwjfflxr/person.vue
+9
-10
No files found.
src/views/permission/department/index.vue
View file @
7279fa07
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<el-form
@
submit
.
native
.
prevent
>
<el-form
@
submit
.
native
.
prevent
>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
:label=
"$t('common.keyword')"
>
<el-form-item
:label=
"$t('common.keyword')"
>
<el-input
v-model=
"listQuery.keyword"
:placeholder=
"$t('common.enterKeyword')
"
<el-input
v-model=
"listQuery.keyword"
placeholder=
"请输入部门名称查询
"
clearable
@
keyup.enter.native=
"search()"
/>
clearable
@
keyup.enter.native=
"search()"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -193,7 +193,7 @@ export default {
...
@@ -193,7 +193,7 @@ export default {
this
.
treeLoading
=
true
;
this
.
treeLoading
=
true
;
this
.
organizeId
=
this
.
$store
.
state
.
user
.
userInfo
.
organizeId
;
this
.
organizeId
=
this
.
$store
.
state
.
user
.
userInfo
.
organizeId
;
if
(
this
.
organizeId
==
'
96240625-934F-490B-8AA6-0BC775B18468
'
){
if
(
this
.
organizeId
==
'
96240625-934F-490B-8AA6-0BC775B18468
'
){
getOrganizeList
().
then
(
res
=>
{
getOrganizeList
(
{
'
hidden
'
:
'
1
'
}
).
then
(
res
=>
{
this
.
treeData
=
res
.
data
.
list
this
.
treeData
=
res
.
data
.
list
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
if
(
!
this
.
treeData
.
length
)
{
if
(
!
this
.
treeData
.
length
)
{
...
...
src/views/permission/organize/index.vue
View file @
7279fa07
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<el-form
@
submit
.
native
.
prevent
>
<el-form
@
submit
.
native
.
prevent
>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
:label=
"$t('common.keyword')"
>
<el-form-item
:label=
"$t('common.keyword')"
>
<el-input
v-model=
"listQuery.keyword"
:placeholder=
"$t('common.enterKeyword')
"
<el-input
v-model=
"listQuery.keyword"
placeholder=
"请输入名称查询
"
clearable
@
keyup.enter.native=
"search()"
/>
clearable
@
keyup.enter.native=
"search()"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
...
src/views/permission/position/index.vue
View file @
7279fa07
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<el-form
@
submit
.
native
.
prevent
>
<el-form
@
submit
.
native
.
prevent
>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
:label=
"$t('common.keyword')"
>
<el-form-item
:label=
"$t('common.keyword')"
>
<el-input
v-model=
"listQuery.keyword"
:placeholder=
"$t('common.enterKeyword')
"
<el-input
v-model=
"listQuery.keyword"
placeholder=
"请输入岗位名称查询
"
clearable
@
keyup.enter.native=
"search()"
/>
clearable
@
keyup.enter.native=
"search()"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -196,7 +196,7 @@ export default {
...
@@ -196,7 +196,7 @@ export default {
this
.
organizeId
=
this
.
$store
.
state
.
user
.
userInfo
.
organizeId
;
this
.
organizeId
=
this
.
$store
.
state
.
user
.
userInfo
.
organizeId
;
if
(
this
.
organizeId
==
'
96240625-934F-490B-8AA6-0BC775B18468
'
){
if
(
this
.
organizeId
==
'
96240625-934F-490B-8AA6-0BC775B18468
'
){
getOrganizeList
().
then
(
res
=>
{
getOrganizeList
(
{
'
hidden
'
:
'
1
'
}
).
then
(
res
=>
{
/* let topItem = {
/* let topItem = {
fullName: "全部",
fullName: "全部",
hasChildren: true,
hasChildren: true,
...
...
src/views/permission/xlwjfflxr/index.vue
View file @
7279fa07
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<el-form
@
submit
.
native
.
prevent
>
<el-form
@
submit
.
native
.
prevent
>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
:label=
"$t('common.keyword')"
>
<el-form-item
:label=
"$t('common.keyword')"
>
<el-input
v-model=
"listQuery.keyword"
placeholder=
"请输入
账号、姓名、性别
或者手机号查询"
<el-input
v-model=
"listQuery.keyword"
placeholder=
"请输入
姓名
或者手机号查询"
clearable
@
keyup.enter.native=
"search()"
/>
clearable
@
keyup.enter.native=
"search()"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
...
src/views/permission/xlwjfflxr/person.vue
View file @
7279fa07
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
</div>
</div>
<div
class=
"transfer-pane__body"
>
<div
class=
"transfer-pane__body"
>
<el-tree
:data=
"treeData"
:props=
"props"
check-on-click-node
<el-tree
:data=
"treeData"
:props=
"props"
check-on-click-node
:expand-on-click-node=
"false"
default-expand-all
@
node-click=
"handleNodeClick"
:expand-on-click-node=
"false"
@
node-click=
"handleNodeClick"
class=
"JNPF-common-el-tree"
node-key=
"id"
v-loading=
"loading"
ref=
"tree"
class=
"JNPF-common-el-tree"
node-key=
"id"
v-loading=
"loading"
ref=
"tree"
:filter-node-method=
"filterNode"
>
:filter-node-method=
"filterNode"
>
<span
class=
"custom-tree-node"
slot-scope=
"{ node, data }"
>
<span
class=
"custom-tree-node"
slot-scope=
"{ node, data }"
>
...
@@ -243,11 +243,10 @@ export default {
...
@@ -243,11 +243,10 @@ export default {
this.allList = this.treeToArray(this.treeData)*/
this.allList = this.treeToArray(this.treeData)*/
let
organizeId
=
this
.
$store
.
state
.
user
.
userInfo
.
organizeId
;
let
organizeId
=
this
.
$store
.
state
.
user
.
userInfo
.
organizeId
;
this
.
loading
=
false
;
this
.
loading
=
false
;
/* if(organizeId=='96240625-934F-490B-8AA6-0BC775B18468'){
if
(
organizeId
==
'
96240625-934F-490B-8AA6-0BC775B18468
'
){
getOrganize(organizeId).then(res => {
getOrganizeList
({
'
hidden
'
:
'
1
'
}).
then
(
res
=>
{
/!* this.treeData = res.data.list *!/
console
.
log
(
res
)
console
.
log
(
res
)
function removeDepartments(data) {
/*
function removeDepartments(data) {
// 遍历数组中的每个对象
// 遍历数组中的每个对象
for (let i = 0; i < data.length; i++) {
for (let i = 0; i < data.length; i++) {
const item = data[i];
const item = data[i];
...
@@ -270,14 +269,14 @@ export default {
...
@@ -270,14 +269,14 @@ export default {
}
}
// 使用示例
// 使用示例
const processedData = removeDepartments(res.data);
const processedData = removeDepartments(res.data
.list
);
console.log(processedData);
console.log(processedData);
*/
this.treeData=
processedData
;
this
.
treeData
=
res
.
data
.
list
;
this
.
allList
=
this
.
treeToArray
(
this
.
treeData
)
this
.
allList
=
this
.
treeToArray
(
this
.
treeData
)
this
.
loading
=
false
;
this
.
loading
=
false
;
})
})
}else{
*/
}
else
{
getOrganize
(
organizeId
).
then
(
res
=>
{
getOrganize
(
organizeId
).
then
(
res
=>
{
console
.
log
(
res
,
'
ggggggggggg
'
)
console
.
log
(
res
,
'
ggggggggggg
'
)
this
.
treeData
=
res
.
data
;
this
.
treeData
=
res
.
data
;
...
@@ -286,7 +285,7 @@ export default {
...
@@ -286,7 +285,7 @@ export default {
})
})
/* } */
}
},
},
treeToArray
(
treeData
)
{
treeToArray
(
treeData
)
{
...
...
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