Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
W
work-log
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高宇
work-log
Commits
a5056a12
Commit
a5056a12
authored
Apr 03, 2019
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化级联菜单用户体验2;
parent
f0a0c9e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
singleRadio.vue
src/components/common/singleRadio.vue
+5
-5
operationWorkLog.vue
src/components/workLog/work/operationWorkLog.vue
+3
-2
No files found.
src/components/common/singleRadio.vue
View file @
a5056a12
<
template
>
<section>
<section
class=
"single-radio"
>
<el-row
:gutter=
"10"
>
<el-col
:span=
"4"
:class=
"['client-label', 'text-right',
{'required': required}]">
<span>
{{
label
}}
</span>
...
...
@@ -36,23 +36,23 @@
</
script
>
<
style
>
.
el-radio-button__inner
,
.el-radio-button
:last-child
.el-radio-button__inner
,
.el-radio-button
:first-child
.el-radio-button__inner
{
.
single-radio
.el-radio-button__inner
,
.single-radio
.el-radio-button
:last-child
.el-radio-button__inner
,
.single-radio
.el-radio-button
:first-child
.el-radio-button__inner
{
border-left
:
1px
solid
#DCDFE6
;
margin
:
0
10px
5px
0
;
border-radius
:
6px
!important
;
}
.el-radio-button__inner
:hover
{
.
single-radio
.
el-radio-button__inner
:hover
{
color
:
#333
;
background-color
:
#e6e6e6
;
border-color
:
#adadad
;
}
.el-radio-button__orig-radio
:checked
+
.el-radio-button__inner
{
.
single-radio
.
el-radio-button__orig-radio
:checked
+
.el-radio-button__inner
{
color
:
#fff
;
background-color
:
#3c3c3c
;
border-color
:
#373737
;
box-shadow
:
0
0
0
0
#373737
;
}
.el-radio-button__orig-radio
:checked
+
.el-radio-button__inner
:hover
{
.
single-radio
.
el-radio-button__orig-radio
:checked
+
.el-radio-button__inner
:hover
{
color
:
#333
;
background-color
:
#d4d4d4
;
border-color
:
#8c8c8c
;
...
...
src/components/workLog/work/operationWorkLog.vue
View file @
a5056a12
...
...
@@ -184,7 +184,7 @@
setScenarioOption
(
val
)
{
let
scenario
=
this
.
scenarioOptionIds
.
find
(
i
=>
i
.
key
===
val
)
if
(
scenario
)
{
this
.
options
[
'WorkLogSearch[scenario_option_id]'
].
value
=
scenario
.
value
this
.
options
[
'WorkLogSearch[scenario_option_id]'
].
value
=
scenario
.
child
}
},
setClientOption
(
id
)
{
...
...
@@ -265,9 +265,10 @@
}
}).
then
(
res
=>
{
Object
.
keys
(
res
.
options
).
forEach
(
item
=>
{
console
.
log
(
res
.
options
[
item
])
if
(
res
.
options
[
item
].
value
)
{
res
.
options
[
item
].
value
.
forEach
(
i
=>
{
if
(
i
.
value
)
{
if
(
i
.
child
)
{
this
.
scenarioOptionIds
.
push
(
i
)
}
})
...
...
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