Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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
周远喜
mes-ui
Commits
af8c9203
Commit
af8c9203
authored
Oct 27, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
record
parent
3d6593b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
3 deletions
+30
-3
index.vue
pages/project/record/index.vue
+30
-3
No files found.
pages/project/record/index.vue
View file @
af8c9203
<
template
>
<div>
<DataGrid
:columns=
"columns"
ref=
"grid"
:
action=
"action"
:easy
=
"false"
><template
slot=
"easySearch"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:
data=
"recordList"
:easy=
"false"
:set
=
"false"
><template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
><Input
placeholder=
"请输入关键字标题"
v-model=
"easySearch.keys.value"
/>
</FormItem>
<FormItem><Button
type=
"primary"
@
click=
"search"
>
查询
</Button></FormItem>
...
...
@@ -98,11 +98,14 @@ export default {
])
}
},
]
],
recordList
:
[]
}
},
mounted
()
{
console
.
log
(
this
);
if
(
this
.
eid
!=
''
&&
this
.
eid
!=
null
)
{
this
.
load
(
this
.
eid
);
}
},
async
fetch
({
store
,
...
...
@@ -111,6 +114,23 @@ export default {
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
methods
:
{
load
(
v
)
{
let
params
=
{
conditions
:
[{
fieldName
:
"taskId"
,
fieldValue
:
v
,
conditionalType
:
"Equal"
,
}],
sortBy
:
"creationTime"
,
isDesc
:
false
,
}
Api
.
list
(
params
).
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
recordList
=
r
.
result
}
})
},
ok
()
{
this
.
$refs
.
grid
.
load
()
this
.
modal
=
false
...
...
@@ -159,6 +179,13 @@ export default {
let
vkey
=
"project_plan_record"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
}
},
watch
:
{
eid
(
v
)
{
if
(
v
!=
''
&&
v
!=
null
)
{
this
.
load
(
v
);
}
}
}
}
</
script
>
...
...
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