Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
af9094f6
authored
2022-12-15 15:24:34 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:字典
1 parent
74c61f26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
11 deletions
src/views/system/dictionaries/components/editDialog.vue
src/views/system/dictionaries/dictionaries.vue
src/views/system/dictionaries/components/editDialog.vue
View file @
af9094f
...
...
@@ -16,15 +16,15 @@
</el-col>
</el-row>
</el-form>
<lb-table
:column=
"column"
:heightNum=
"420"
:key=
"key"
:expand-row-keys=
"keyList"
row-key=
"bsmDic
t"
:tree-props=
"
{ children: 'children' }" :pagination="false" :data="tableData">
<lb-table
:column=
"column"
class=
"loadingtext"
:heightNum=
"420"
:key=
"key"
:expand-row-keys=
"keyLis
t"
row-key=
"bsmDict"
:tree-props=
"
{ children: 'children' }" :pagination="false" :data="tableData">
</lb-table>
</dialogBox>
</
template
>
<
script
>
import
{
getUuid
,
judgeSort
,
realMove
,
findParents
,
removeTreeListItem
}
from
'@/utils/operation'
import
{
editDictNode
}
from
'@/api/user'
import
{
editDictNode
,
getChildDictList
}
from
'@/api/user'
export
default
{
props
:
{
value
:
{
type
:
Boolean
,
default
:
false
},
...
...
@@ -177,9 +177,19 @@ export default {
value
(
val
)
{
this
.
myValue
=
val
},
'details.bsmDict'
:
{
handler
:
function
(
newValue
)
{
this
.
$startLoading
();
getChildDictList
(
newValue
).
then
(
res
=>
{
this
.
$endLoading
();
let
{
result
}
=
res
this
.
tableData
=
result
?
result
:
[]
})
},
immediate
:
true
},
details
:
{
handler
:
function
(
newValue
)
{
this
.
tableData
=
judgeSort
(
_
.
cloneDeep
(
newValue
.
dataList
))
if
(
newValue
.
isenable
==
2
)
{
this
.
column
=
this
.
columns
.
slice
(
0
,
6
)
}
else
{
...
...
src/views/system/dictionaries/dictionaries.vue
View file @
af9094f
...
...
@@ -52,7 +52,7 @@ export default {
return
{
isDialog
:
false
,
details
:
{
dataList
:
[]
,
bsmDict
:
''
,
isenable
:
1
,
rowData
:
{}
},
...
...
@@ -107,14 +107,11 @@ export default {
editClick
(
row
,
val
)
{
this
.
details
.
rowData
=
row
this
.
details
.
isenable
=
val
getChildDictList
(
row
.
bsmDict
).
then
(
res
=>
{
this
.
isDialog
=
true
let
{
result
}
=
res
this
.
details
.
dataList
=
result
?
result
:
[]
})
this
.
details
.
bsmDict
=
row
.
bsmDict
this
.
isDialog
=
true
}
}
}
;
}
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"~@/styles/public.scss"
;
...
...
Please
register
or
sign in
to post a comment