Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-4
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
Open sidebar
office
haoban-4
Commits
34c2c725
Commit
34c2c725
authored
Sep 07, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改数据维度
parent
3b597fdc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
data-dimension.vue
src/views/apps/customer-app/data-dimension.vue
+18
-3
No files found.
src/views/apps/customer-app/data-dimension.vue
View file @
34c2c725
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-27 11:36:51
* @LastEditors: 无尘
* @LastEditTime: 2020-09-07 1
0:55:18
* @LastEditTime: 2020-09-07 1
4:50:22
-->
<
template
>
...
...
@@ -108,7 +108,7 @@ export default {
const
that
=
this
;
that
.
$emit
(
'showTab'
,
'/data-dimension'
);
that
.
rowDrop
(
'memberCardData'
);
that
.
rowDrop
(
'serviceNumData'
);
that
.
row
s
Drop
(
'serviceNumData'
);
if
(
!!
that
.
brandId
)
{
that
.
getMemberCrad
();
}
...
...
@@ -131,7 +131,22 @@ export default {
let
arr
=
JSON
.
parse
(
JSON
.
stringify
(
that
[
data
]));
const
currRow
=
arr
.
splice
(
oldIndex
,
1
)[
0
];
arr
.
splice
(
newIndex
,
0
,
currRow
);
that
.
setSort
(
arr
);
that
.
setSort
(
arr
,
data
);
}
});
},
rowsDrop
(
data
)
{
const
tbody
=
this
.
$refs
[
data
].
$el
.
querySelectorAll
(
'.el-table__body-wrapper > table > tbody'
)[
0
];
const
that
=
this
;
Sortable
.
create
(
tbody
,
{
onEnd
({
newIndex
,
oldIndex
})
{
if
(
newIndex
==
oldIndex
)
{
return
false
;
}
let
arr
=
JSON
.
parse
(
JSON
.
stringify
(
that
[
data
]));
const
currRow
=
arr
.
splice
(
oldIndex
,
1
)[
0
];
arr
.
splice
(
newIndex
,
0
,
currRow
);
that
.
setSort
(
arr
,
data
);
}
});
},
...
...
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