Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 68a90ded
authored
Apr 02, 2024
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
bfd5b3df
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
src/views/taskList/index.vue
src/views/taskList/index.vue
View file @
68a90de
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<el-button
:size=
"size"
type=
"primary"
@
click=
"createTask()"
>
新建任务
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"createTask()"
>
新建任务
</el-button>
</div>
</div>
</div>
</div>
<GLTable
:pageSizes=
"pageSizes"
ref=
"tableRef"
:pageConf=
"pageConf"
:searchForm=
"
s
earchForm"
:tableParams=
"tableParams"
:beforeSearchFn=
"beforeSearchFn"
:getListApi=
"getListApi"
>
<GLTable
:pageSizes=
"pageSizes"
ref=
"tableRef"
:pageConf=
"pageConf"
:searchForm=
"
realS
earchForm"
:tableParams=
"tableParams"
:beforeSearchFn=
"beforeSearchFn"
:getListApi=
"getListApi"
>
<div
slot=
"shelfStatusSlot"
slot-scope=
"scope"
>
<div
slot=
"shelfStatusSlot"
slot-scope=
"scope"
>
<span
class=
"status"
:style=
"
{ 'background-color': shelfStatusEnum[scope.scope.shelfStatus].color }">
</span>
<span
class=
"status"
:style=
"
{ 'background-color': shelfStatusEnum[scope.scope.shelfStatus].color }">
</span>
{{
shelfStatusEnum
[
scope
.
scope
.
shelfStatus
]
?
shelfStatusEnum
[
scope
.
scope
.
shelfStatus
].
label
:
'--'
}}
{{
shelfStatusEnum
[
scope
.
scope
.
shelfStatus
]
?
shelfStatusEnum
[
scope
.
scope
.
shelfStatus
].
label
:
'--'
}}
...
@@ -206,6 +206,7 @@ export default {
...
@@ -206,6 +206,7 @@ export default {
}
}
]
]
},
},
realSearchForm
:
{},
searchForm
:
{
searchForm
:
{
taskMonth
:
''
,
taskMonth
:
''
,
shelfStatus
:
''
,
shelfStatus
:
''
,
...
@@ -318,10 +319,11 @@ export default {
...
@@ -318,10 +319,11 @@ export default {
createDate
:
''
,
createDate
:
''
,
upadteDate
:
''
upadteDate
:
''
}
}
this
.
realSearchForm
=
{}
this
.
handleOk
()
this
.
handleOk
()
},
},
getParams
()
{
getParams
()
{
let
params
=
{
...
this
.
searchForm
}
let
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
searchForm
)
if
(
params
.
createDate
)
{
if
(
params
.
createDate
)
{
params
.
createBeginDate
=
dayjs
(
this
.
searchForm
.
createDate
[
0
]).
format
(
'YYYY-MM-DD'
)
params
.
createBeginDate
=
dayjs
(
this
.
searchForm
.
createDate
[
0
]).
format
(
'YYYY-MM-DD'
)
params
.
createEndDate
=
dayjs
(
this
.
searchForm
.
createDate
[
1
]).
format
(
'YYYY-MM-DD'
)
params
.
createEndDate
=
dayjs
(
this
.
searchForm
.
createDate
[
1
]).
format
(
'YYYY-MM-DD'
)
...
@@ -337,7 +339,7 @@ export default {
...
@@ -337,7 +339,7 @@ export default {
},
},
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
this
.
s
earchForm
=
this
.
getParams
()
this
.
realS
earchForm
=
this
.
getParams
()
resolve
()
resolve
()
})
})
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment