Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
horse
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
向伟
horse
Commits
843e9654
Commit
843e9654
authored
Nov 12, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
38089aef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
customerField.vue
src/pages/customer/components/customerField.vue
+11
-3
No files found.
src/pages/customer/components/customerField.vue
View file @
843e9654
<
template
>
<requestgroup></requestgroup>
<div
class=
"q-pa-md customerField"
>
<table
class=
"payTable"
>
<thead>
...
...
@@ -16,7 +17,7 @@
<tr
v-if=
"data && data.length==0"
>
<td
:colspan=
"8"
align=
"center"
>
暂无数据
</td>
</tr>
<draggable
v-model=
"data"
tag=
"tbody"
item-key=
"Id"
@
update=
"datadragEnd"
:clone=
"cloneFun"
>
<draggable
v-model=
"data"
tag=
"tbody"
item-key=
"Id"
:move=
"getdata"
@
update=
"datadragEnd"
:clone=
"cloneFun"
>
<template
#
item=
"
{ element }">
<tr>
<td><span>
{{
element
.
Name
}}
</span></td>
...
...
@@ -58,15 +59,16 @@
</template>
<
script
lang=
"ts"
>
import
{
defineComponent
,
ref
,
onMounted
}
from
'vue'
import
requestgroup
from
'../../../components/customer/request-group.vue'
import
customerService
from
'@/api/customer'
import
draggable
from
"vuedraggable"
;
export
default
defineComponent
({
components
:
{
draggable
},
components
:
{
draggable
,
requestgroup
},
setup
()
{
const
data
=
ref
([]);
const
dragId
=
ref
(
0
);
const
changePage
=
()
=>
{
customerService
.
getCustomerFiledList
({
Enable
:
-
1
}).
then
((
res
)
=>
{
console
.
log
(
132
,
res
)
data
.
value
=
res
.
data
.
Data
})
}
...
...
@@ -74,6 +76,11 @@
console
.
log
(
'拖动结束'
,
e
)
}
const
getdata
=
(
e
:
any
)
=>
{
console
.
log
(
'拖动结束22323'
,
e
)
dragId
.
value
=
e
.
draggedContext
.
element
.
Id
}
onMounted
(()
=>
{
changePage
()
...
...
@@ -82,6 +89,7 @@
data
,
changePage
,
datadragEnd
,
getdata
}
}
...
...
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