Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DA-Platform
Overview
Overview
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
文档服务地址:
http://47.92.0.57:3000/
周报索引地址:
http://47.92.0.57:3000/s/NruNXRYmV
Open sidebar
Berlin
DA-Platform
Commits
46346c8e
Commit
46346c8e
authored
Jun 05, 2020
by
Wang Yuhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
搜索功能
parent
14237711
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
TaskHall.vue
DAPlatform-front/src/components/TaskHall.vue
+17
-3
No files found.
DAPlatform-front/src/components/TaskHall.vue
View file @
46346c8e
...
@@ -4,10 +4,10 @@
...
@@ -4,10 +4,10 @@
<div
class=
"filter-container"
>
<div
class=
"filter-container"
>
<div
class=
"filter-item"
>
<div
class=
"filter-item"
>
任务名称:
任务名称:
<el-input
class=
"filter-input"
prefix-icon=
"el-icon-search"
v-model=
"keyword
s
"
placeholder=
"请输入查询条件"
></el-input>
<el-input
class=
"filter-input"
prefix-icon=
"el-icon-search"
v-model=
"keyword"
placeholder=
"请输入查询条件"
></el-input>
</div>
</div>
<div
class=
"filter-item"
>
<div
class=
"filter-item"
>
<el-button
class=
"filter-button"
type=
"primary"
>
查询
</el-button>
<el-button
class=
"filter-button"
type=
"primary"
@
click=
"search()"
>
查询
</el-button>
</div>
</div>
<el-divider></el-divider>
<el-divider></el-divider>
</div>
</div>
...
@@ -53,7 +53,7 @@ export default {
...
@@ -53,7 +53,7 @@ export default {
return
{
return
{
activeName
:
'任务大厅'
,
activeName
:
'任务大厅'
,
tasks
:
[],
tasks
:
[],
keyword
s
:
''
,
keyword
:
''
,
pageSize
:
10
,
pageSize
:
10
,
currentPage
:
1
,
currentPage
:
1
,
pageNum
:
0
pageNum
:
0
...
@@ -81,6 +81,20 @@ export default {
...
@@ -81,6 +81,20 @@ export default {
name
:
'task'
,
name
:
'task'
,
params
:
{
task
:
encodeURIComponent
(
JSON
.
stringify
(
task
))
}
params
:
{
task
:
encodeURIComponent
(
JSON
.
stringify
(
task
))
}
})
})
},
search
()
{
var
self
=
this
this
.
axios
.
get
(
'/task/getTasks'
,
{
params
:
{
pageSize
:
self
.
pageSize
,
currentPage
:
self
.
currentPage
,
keyword
:
self
.
keyword
}
}).
then
(
res
=>
{
console
.
log
(
res
)
self
.
tasks
=
res
.
data
.
tasks
self
.
pageNum
=
res
.
data
.
pageNum
})
}
}
}
}
}
}
...
...
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