Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-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
9fa6ead7
authored
2022-12-26 11:39:07 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:监管
1 parent
e349040a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
48 deletions
src/main.js
src/styles/index.scss
src/views/system/dictionaries/components/editDialog.vue
src/views/system/dictionaries/dictionaries.vue
src/main.js
View file @
9fa6ead
...
...
@@ -24,6 +24,11 @@ Vue.prototype.$endLoading = endLoadingSubCount
import
{
theme
}
from
"@/directive/theme.js"
Vue
.
directive
(
"theme"
,
theme
)
Vue
.
directive
(
'fo'
,
{
inserted
(
el
,
binding
,
vnode
)
{
el
.
querySelector
(
'input'
).
focus
()
}
})
import
'./image/icons'
// icon
import
store
from
'./store'
import
router
from
'./router'
...
...
src/styles/index.scss
View file @
9fa6ead
...
...
@@ -344,8 +344,7 @@ aside {
.prohibit
.suspend
{
position
:
relative
;
margin
:
0
auto
;
text-align
:
left
;
padding-left
:
13px
;
text-align
:
center
;
}
.allow
{
...
...
@@ -360,42 +359,6 @@ aside {
color
:
$yellow
;
}
.
allow
:
:
before
{
content
:
''
;
position
:
absolute
;
left
:
5px
;
top
:
45%
;
background-color
:
$green
;
display
:
inline-block
;
// 此句为css样式展示重点🏁
width
:
5px
;
height
:
5px
;
border-radius
:
50%
;
}
.
prohibit
:
:
before
{
content
:
''
;
position
:
absolute
;
left
:
5px
;
top
:
45%
;
background-color
:
$pink
;
display
:
inline-block
;
// 此句为css样式展示重点🏁
width
:
5px
;
height
:
5px
;
border-radius
:
50%
;
}
.
suspend
:
:
before
{
content
:
''
;
position
:
absolute
;
left
:
5px
;
top
:
45%
;
background-color
:
$yellow
;
display
:
inline-block
;
// 此句为css样式展示重点🏁
width
:
5px
;
height
:
5px
;
border-radius
:
50%
;
}
//错误日志样式 后期超优化
.item-cwnr
{
white-space
:
pre-wrap
;
...
...
src/views/system/dictionaries/components/editDialog.vue
View file @
9fa6ead
...
...
@@ -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,23 @@ export default {
value
(
val
)
{
this
.
myValue
=
val
},
'details.bsmDict'
:
{
handler
:
function
(
newValue
)
{
if
(
!
this
.
value
)
return
this
.
$startLoading
();
getChildDictList
(
newValue
).
then
(
res
=>
{
this
.
$endLoading
();
let
{
result
}
=
res
this
.
tableData
=
result
?
result
:
[]
this
.
tableData
.
forEach
((
item
,
index
)
=>
{
item
.
index
=
index
+
1
})
})
},
immediate
:
true
},
details
:
{
handler
:
function
(
newValue
)
{
this
.
tableData
=
judgeSort
(
_
.
cloneDeep
(
newValue
.
dataList
))
if
(
newValue
.
isenable
==
2
)
{
this
.
column
=
this
.
columns
.
slice
(
0
,
6
)
}
else
{
...
...
@@ -317,6 +331,17 @@ export default {
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scoped
>
/
deep
/
.el-radio
{
margin-right
:
5px
!important
;
display
:
flex
;
}
/
deep
/
.el-radio__label
{
display
:
block
;
}
/
deep
/
.el-radio-group
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
</
style
>
...
...
src/views/system/dictionaries/dictionaries.vue
View file @
9fa6ead
...
...
@@ -52,7 +52,7 @@ export default {
return
{
isDialog
:
false
,
details
:
{
dataList
:
[]
,
bsmDict
:
''
,
isenable
:
1
,
rowData
:
{}
},
...
...
@@ -107,11 +107,8 @@ 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
}
}
};
...
...
Please
register
or
sign in
to post a comment