Commit f141b3ed by 李伟康

loading

1 parent f676f285
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
<div <div
class="config-box" class="config-box"
ref="itemBox" ref="itemBox"
v-loading="itemLoading"
> >
<template v-for="(i, index) in questionsList"> <template v-for="(i, index) in questionsList">
<template> <template>
...@@ -207,7 +208,8 @@ export default { ...@@ -207,7 +208,8 @@ export default {
questionsList: [], questionsList: [],
controlOptions: ['编辑', '删除', '上移', '下移', '最前', '最后'], controlOptions: ['编辑', '删除', '上移', '下移', '最前', '最后'],
delObj: {}, delObj: {},
delList: [] delList: [],
itemLoading: false
} }
}, },
mounted () { mounted () {
...@@ -277,6 +279,7 @@ export default { ...@@ -277,6 +279,7 @@ export default {
index index
} }
else { else {
this.itemLoading = true
this.moveItem(questionsList, index, ind, true) this.moveItem(questionsList, index, ind, true)
this.moveItem(questions, index, ind) this.moveItem(questions, index, ind)
} }
...@@ -367,6 +370,7 @@ export default { ...@@ -367,6 +370,7 @@ export default {
e.className = 'item' e.className = 'item'
e.style.transform = '' e.style.transform = ''
}) })
this.itemLoading = false
return array return array
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!