Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VueElementTemplate
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
JIRA
JIRA
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
HireTest
VueElementTemplate
Commits
06e50a88
Commit
06e50a88
authored
8 years ago
by
Pan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refine code
parent
c628f45e
master
storybook
test
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
table.vue
src/views/example/table.vue
+4
-3
No files found.
src/views/example/table.vue
View file @
06e50a88
...
@@ -152,7 +152,7 @@
...
@@ -152,7 +152,7 @@
<
script
>
<
script
>
import
{
fetchList
,
fetchPv
}
from
'api/article_table'
;
import
{
fetchList
,
fetchPv
}
from
'api/article_table'
;
import
{
parseTime
,
objectMerge
}
from
'utils'
;
import
{
parseTime
}
from
'utils'
;
const
calendarTypeOptions
=
[
const
calendarTypeOptions
=
[
{
key
:
'FD'
,
display_name
:
'经济数据'
}
,
{
key
:
'FD'
,
display_name
:
'经济数据'
}
,
...
@@ -265,7 +265,7 @@
...
@@ -265,7 +265,7 @@
this
.
dialogFormVisible
=
true
;
this
.
dialogFormVisible
=
true
;
}
,
}
,
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
objectMerge
(
this
.
temp
,
row
)
this
.
temp
=
Object
.
assign
({
}
,
row
);
this
.
dialogStatus
=
'update'
;
this
.
dialogStatus
=
'update'
;
this
.
dialogFormVisible
=
true
;
this
.
dialogFormVisible
=
true
;
}
,
}
,
...
@@ -296,7 +296,8 @@
...
@@ -296,7 +296,8 @@
this
.
temp
.
timestamp
=
+
this
.
temp
.
timestamp
;
this
.
temp
.
timestamp
=
+
this
.
temp
.
timestamp
;
for
(
const
v
of
this
.
list
)
{
for
(
const
v
of
this
.
list
)
{
if
(
v
.
id
===
this
.
temp
.
id
)
{
if
(
v
.
id
===
this
.
temp
.
id
)
{
objectMerge
(
v
,
this
.
temp
);
const
index
=
this
.
list
.
indexOf
(
v
);
this
.
list
.
splice
(
index
,
1
,
this
.
temp
);
break
;
break
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
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