Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
ferry_web
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jianan
ferry_web
Commits
0800854f
Commit
0800854f
authored
Aug 17, 2020
by
YuleiLan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug.
parent
82d79cf5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
src/components/VueFormMaking/components/WidgetForm.vue
+12
-12
No files found.
src/components/VueFormMaking/components/WidgetForm.vue
View file @
0800854f
...
...
@@ -286,40 +286,40 @@ export default {
// 防止布局元素的嵌套拖拽
if
(
item
.
className
.
indexOf
(
'data-grid'
)
>=
0
)
{
// 如果是列表中拖拽的元素需要还原到原来位置
item
.
tagName
===
'DIV'
&&
this
.
data
.
list
.
splice
(
oldIndex
,
0
,
row
.
columns
.
list
[
newIndex
])
item
.
tagName
===
'DIV'
&&
this
.
data
.
list
.
splice
(
oldIndex
,
0
,
row
.
columns
[
colIndex
]
.
list
[
newIndex
])
row
.
columns
.
list
.
splice
(
newIndex
,
1
)
row
.
columns
[
colIndex
]
.
list
.
splice
(
newIndex
,
1
)
return
false
}
const
key
=
Date
.
parse
(
new
Date
())
+
'_'
+
Math
.
ceil
(
Math
.
random
()
*
99999
)
this
.
$set
(
row
.
columns
.
list
,
newIndex
,
{
...
row
.
columns
.
list
[
newIndex
],
this
.
$set
(
row
.
columns
[
colIndex
]
.
list
,
newIndex
,
{
...
row
.
columns
[
colIndex
]
.
list
[
newIndex
],
options
:
{
...
row
.
columns
.
list
[
newIndex
].
options
,
...
row
.
columns
[
colIndex
]
.
list
[
newIndex
].
options
,
remoteFunc
:
'func_'
+
key
},
key
,
// 绑定键值
model
:
row
.
columns
.
list
[
newIndex
].
type
+
'_'
+
key
,
model
:
row
.
columns
[
colIndex
]
.
list
[
newIndex
].
type
+
'_'
+
key
,
rules
:
[]
})
if
(
row
.
columns
.
list
[
newIndex
].
type
===
'radio'
||
row
.
columns
.
list
[
newIndex
].
type
===
'checkbox'
||
row
.
columns
.
list
[
newIndex
].
type
===
'select'
)
{
this
.
$set
(
row
.
columns
.
list
,
newIndex
,
{
...
row
.
columns
.
list
[
newIndex
],
if
(
row
.
columns
[
colIndex
].
list
[
newIndex
].
type
===
'radio'
||
row
.
columns
[
colIndex
].
list
[
newIndex
].
type
===
'checkbox'
||
row
.
columns
[
colIndex
]
.
list
[
newIndex
].
type
===
'select'
)
{
this
.
$set
(
row
.
columns
[
colIndex
]
.
list
,
newIndex
,
{
...
row
.
columns
[
colIndex
]
.
list
[
newIndex
],
options
:
{
...
row
.
columns
.
list
[
newIndex
].
options
,
options
:
row
.
columns
.
list
[
newIndex
].
options
.
options
.
map
(
item
=>
({
...
row
.
columns
[
colIndex
]
.
list
[
newIndex
].
options
,
options
:
row
.
columns
[
colIndex
]
.
list
[
newIndex
].
options
.
options
.
map
(
item
=>
({
...
item
}))
}
})
}
this
.
selectWidget
=
row
.
columns
.
list
[
newIndex
]
this
.
selectWidget
=
row
.
columns
[
colIndex
]
.
list
[
newIndex
]
},
handleWidgetDelete
(
index
)
{
if
(
this
.
data
.
list
.
length
-
1
===
index
)
{
...
...
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