Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bms-vue-obear
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
daywrite
bms-vue-obear
Commits
dfd94ec7
Commit
dfd94ec7
authored
May 01, 2019
by
daywrite
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工单管理查询条件
parent
4b8eb070
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
9 deletions
+62
-9
case-app.scss
src/assets/css/case-app.scss
+25
-0
caseHome.vue
src/components/case_list/caseHome.vue
+13
-3
timeSearchForm.vue
src/components/case_list/timeSearchForm.vue
+16
-6
setParams.js
src/components/common/setParams.js
+8
-0
No files found.
src/assets/css/case-app.scss
View file @
dfd94ec7
...
@@ -17,4 +17,29 @@
...
@@ -17,4 +17,29 @@
border-color
:
#dc3545
;
border-color
:
#dc3545
;
color
:
#dc3545
;
color
:
#dc3545
;
}
}
.el-radio-button__inner
,
.el-radio-button
:last-child
.el-radio-button__inner
,
.el-radio-button
:first-child
.el-radio-button__inner
{
border-left
:
1px
solid
#DCDFE6
;
margin
:
0
2px
0
0
;
border-radius
:
3px
;
}
.el-radio-button__inner
:hover
{
color
:
#333
;
background-color
:
#e6e6e6
;
border-color
:
#adadad
;
}
.el-radio-button__orig-radio
:checked
+
.el-radio-button__inner
{
color
:
#fff
;
background-color
:
#17a2b8
;
border-color
:
#17a2b8
;
box-shadow
:
0
0
0
0
#17a2b8
;
}
.el-radio-button__orig-radio
:checked
+
.el-radio-button__inner
:hover
{
color
:
#333
;
background-color
:
#d4d4d4
;
border-color
:
#8c8c8c
;
}
.ec-page-wrapper
.el-form-item__label
{
color
:
white
;
}
}
}
src/components/case_list/caseHome.vue
View file @
dfd94ec7
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
</search-header>
</search-header>
<time-search-form
<time-search-form
ref=
"timeSearchForm"
ref=
"timeSearchForm"
form
-search-k
ey=
"projectSearch"
form
SearchK
ey=
"projectSearch"
@
update:list=
"search => timeSearchForm(search)"
>
@
update:list=
"search => timeSearchForm(search)"
>
</time-search-form>
</time-search-form>
<search-form
<search-form
...
@@ -89,7 +89,7 @@ import {
...
@@ -89,7 +89,7 @@ import {
api
api
}
from
'@/lib/commonMixin'
}
from
'@/lib/commonMixin'
export
default
{
export
default
{
name
:
'
document
Home'
,
name
:
'
case
Home'
,
mixins
:
[
SetParams
],
mixins
:
[
SetParams
],
...
@@ -215,7 +215,8 @@ export default {
...
@@ -215,7 +215,8 @@ export default {
// 3.2关键字后面的重置
// 3.2关键字后面的重置
searchClear
()
{
searchClear
()
{
this
.
init
()
this
.
clearParams
()
this
.
$refs
.
timeSearchForm
.
resetForm
()
this
.
_reload
()
this
.
_reload
()
},
},
...
@@ -246,6 +247,15 @@ export default {
...
@@ -246,6 +247,15 @@ export default {
this
.
getList
(
ret
)
this
.
getList
(
ret
)
},
},
// 5.3 TimeSearchForm
timeSearchForm
(
search
)
{
let
ret
=
this
.
setParams
({
...
this
.
form
,
page
:
this
.
pagenation
.
thispage
},
search
)
this
.
getList
(
ret
)
},
// 6.1新增
// 6.1新增
addSch
()
{
addSch
()
{
this
.
$refs
.
formModal
.
show
()
this
.
$refs
.
formModal
.
show
()
...
...
src/components/case_list/timeSearchForm.vue
View file @
dfd94ec7
...
@@ -6,14 +6,15 @@
...
@@ -6,14 +6,15 @@
<el-form-item
label=
"提交时间:"
label-width=
"42"
>
<el-form-item
label=
"提交时间:"
label-width=
"42"
>
<el-radio-group
v-model=
"clientTimeForm[formSearchKey + '[period]']"
size=
"mini"
>
<el-radio-group
v-model=
"clientTimeForm[formSearchKey + '[period]']"
size=
"mini"
>
<el-radio-button
label=
"all"
>
全部
</el-radio-button>
<el-radio-button
label=
"all"
>
全部
</el-radio-button>
<el-radio-button
label=
"thismonth"
>
本月
</el-radio-button>
<el-radio-button
label=
"today"
>
今天
</el-radio-button>
<el-radio-button
label=
"lastmonth"
>
上月
</el-radio-button>
<el-radio-button
label=
"tomorrow"
>
明天
</el-radio-button>
<el-radio-button
label=
"aftertomorrow"
>
后天
</el-radio-button>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-form>
</el-form>
<el-form
ref=
"clientTimeRange"
:model=
"clientTimeRange"
size=
"mini"
>
<el-form
ref=
"clientTimeRange"
:model=
"clientTimeRange"
size=
"mini"
>
<el-col
:span=
"8"
:offset=
"
8
"
:xs=
"
{span: 24, offset: 0}" class="form-content-time-range">
<el-col
:span=
"8"
:offset=
"
0
"
:xs=
"
{span: 24, offset: 0}" class="form-content-time-range">
<el-form-item
label-width=
"0"
>
<el-form-item
label-width=
"0"
>
<el-date-picker
<el-date-picker
size=
"mini"
size=
"mini"
...
@@ -71,10 +72,18 @@ export default {
...
@@ -71,10 +72,18 @@ export default {
initParams
()
{
initParams
()
{
this
.
setInitParams
((
ret
)
=>
{
this
.
setInitParams
((
ret
)
=>
{
this
.
$set
(
this
.
clientTimeForm
,
this
.
formSearchKey
+
'[period]'
,
ret
[
this
.
formSearchKey
+
'[period]'
]
||
''
)
this
.
$set
(
this
.
clientTimeForm
,
this
.
formSearchKey
+
'[period]'
,
ret
[
this
.
formSearchKey
+
'[period]'
]
||
'all'
)
this
.
clientTimeRange
.
from
=
ret
[
this
.
formSearchKey
+
'[from]'
]
||
''
this
.
clientTimeRange
.
to
=
ret
[
this
.
formSearchKey
+
'[to]'
]
||
''
})
})
},
},
resetForm
()
{
this
.
clientTimeForm
[
this
.
formSearchKey
+
'[period]'
]
=
'all'
this
.
clientTimeRange
.
from
=
''
this
.
clientTimeRange
.
to
=
''
},
setSearchTime
()
{
setSearchTime
()
{
let
from
=
this
.
clientTimeRange
.
from
let
from
=
this
.
clientTimeRange
.
from
let
to
=
this
.
clientTimeRange
.
to
let
to
=
this
.
clientTimeRange
.
to
...
@@ -88,8 +97,9 @@ export default {
...
@@ -88,8 +97,9 @@ export default {
watch
:
{
watch
:
{
'formSearchKey'
:
{
'formSearchKey'
:
{
handler
(
val
)
{
handler
(
val
)
{
this
.
$set
(
this
.
clientTimeForm
,
val
+
'[period]'
,
''
)
this
.
$set
(
this
.
clientTimeForm
,
val
+
'[period]'
,
'all'
)
}
},
immediate
:
true
},
},
'clientTimeRange.from'
(
val
)
{
'clientTimeRange.from'
(
val
)
{
if
(
new
Date
(
val
)
>=
new
Date
(
this
.
clientTimeRange
.
to
))
{
if
(
new
Date
(
val
)
>=
new
Date
(
this
.
clientTimeRange
.
to
))
{
...
...
src/components/common/setParams.js
View file @
dfd94ec7
...
@@ -28,6 +28,14 @@ export default {
...
@@ -28,6 +28,14 @@ export default {
return
ret
return
ret
},
},
clearParams
()
{
let
key
=
this
.
$options
&&
this
.
$options
.
name
let
l
=
this
.
isHasLocalStorage
()
if
(
l
&&
key
)
{
l
.
removeItem
(
key
)
}
},
isHasLocalStorage
()
{
isHasLocalStorage
()
{
return
window
.
localStorage
return
window
.
localStorage
}
}
...
...
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