Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
96b44265
"sql/ry_20210210.sql" did not exist on "abeb8d7fd89ff9a8f625658e91f139706c184aa4"
Commit
96b44265
authored
Aug 07, 2022
by
季圣华
Browse files
去掉多余的api地址
parent
03984841
Changes
2
Show whitespace changes
Inline
Side-by-side
jshERP-web/src/components/jeecgbiz/modal/JSelectDepartModal.vue
View file @
96b44265
...
@@ -35,7 +35,6 @@
...
@@ -35,7 +35,6 @@
</template>
</template>
<
script
>
<
script
>
import
{
queryDepartTreeList
}
from
'
@/api/api
'
export
default
{
export
default
{
name
:
'
JSelectDepartModal
'
,
name
:
'
JSelectDepartModal
'
,
props
:[
'
modalWidth
'
,
'
multi
'
,
'
rootOpened
'
,
'
departId
'
],
props
:[
'
modalWidth
'
,
'
multi
'
,
'
rootOpened
'
,
'
departId
'
],
...
@@ -53,7 +52,6 @@
...
@@ -53,7 +52,6 @@
}
}
},
},
created
(){
created
(){
this
.
loadDepart
();
},
},
watch
:{
watch
:{
departId
(){
departId
(){
...
@@ -76,19 +74,6 @@
...
@@ -76,19 +74,6 @@
this
.
checkedRows
=
[]
this
.
checkedRows
=
[]
this
.
checkedKeys
=
[]
this
.
checkedKeys
=
[]
},
},
loadDepart
(){
queryDepartTreeList
().
then
(
res
=>
{
if
(
res
.
success
){
let
arr
=
[...
res
.
result
]
this
.
reWriterWithSlot
(
arr
)
this
.
treeData
=
arr
this
.
initDepartComponent
()
if
(
this
.
rootOpened
){
this
.
initExpandedKeys
(
res
.
result
)
}
}
})
},
initDepartComponent
(){
initDepartComponent
(){
let
names
=
''
let
names
=
''
if
(
this
.
departId
){
if
(
this
.
departId
){
...
...
jshERP-web/src/components/jeecgbiz/modal/JSelectUserByDepModal.vue
View file @
96b44265
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<
script
>
<
script
>
import
{
filterObj
}
from
'
@/utils/util
'
import
{
filterObj
}
from
'
@/utils/util
'
import
{
queryDepartTreeList
,
getUserList
,
queryUserByDepId
}
from
'
@/api/api
'
import
{
getUserList
,
queryUserByDepId
}
from
'
@/api/api
'
export
default
{
export
default
{
name
:
'
JSelectUserByDepModal
'
,
name
:
'
JSelectUserByDepModal
'
,
...
@@ -298,13 +298,6 @@
...
@@ -298,13 +298,6 @@
})
})
},
},
queryDepartTree
()
{
queryDepartTree
()
{
queryDepartTreeList
().
then
((
res
)
=>
{
if
(
res
.
success
)
{
this
.
departTree
=
res
.
result
;
// 默认展开父节点
this
.
expandedKeys
=
this
.
departTree
.
map
(
item
=>
item
.
id
)
}
})
},
},
modalFormOk
()
{
modalFormOk
()
{
this
.
loadData
();
this
.
loadData
();
...
...
Write
Preview
Supports
Markdown
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