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
4506e6e3
Commit
4506e6e3
authored
Nov 20, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设置工艺拖拽
parent
57d0a002
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
set.vue
pages/technology/setProcess/set.vue
+23
-0
No files found.
pages/technology/setProcess/set.vue
View file @
4506e6e3
...
...
@@ -25,6 +25,8 @@
ref=
"selection"
:columns=
"columns"
:data=
"data1"
:draggable=
"true"
@
on-drag-drop=
"onDragDrop"
@
on-selection-change=
"selectInfo"
></Table>
</Content>
...
...
@@ -190,6 +192,27 @@ export default {
this
.
getData
();
},
methods
:
{
onDragDrop
(
first
,
end
)
{
//转成int型,方便后续使用
first
=
parseInt
(
first
);
end
=
parseInt
(
end
);
let
tmp
=
this
.
data1
[
first
];
if
(
first
<
end
)
{
for
(
var
i
=
first
+
1
;
i
<=
end
;
i
++
)
{
this
.
data1
.
splice
(
i
-
1
,
1
,
this
.
data1
[
i
]);
}
this
.
data1
.
splice
(
end
,
1
,
tmp
);
}
if
(
first
>
end
)
{
for
(
var
i
=
first
;
i
>
end
;
i
--
)
{
this
.
data1
.
splice
(
i
,
1
,
this
.
data1
[
i
-
1
]);
}
this
.
data1
.
splice
(
end
,
1
,
tmp
);
}
},
getData
()
{
let
conditions
=
[
{
...
...
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