提交 468a2ed1 authored 作者: junjun's avatar junjun

refactor: 视图字段增加校验提示

上级 69ee34bf
...@@ -1952,13 +1952,17 @@ export default { ...@@ -1952,13 +1952,17 @@ export default {
} }
} }
}, },
dragMoveDuplicate(list, e) { dragMoveDuplicate(list, e, mode) {
const that = this if (mode === 'ds') {
const dup = list.filter(function(m) {
return m.id === that.moveId
})
if (dup && dup.length > 1) {
list.splice(e.newDraggableIndex, 1) list.splice(e.newDraggableIndex, 1)
} else {
const that = this
const dup = list.filter(function(m) {
return m.id === that.moveId
})
if (dup && dup.length > 1) {
list.splice(e.newDraggableIndex, 1)
}
} }
}, },
addXaxis(e) { addXaxis(e) {
...@@ -1998,13 +2002,11 @@ export default { ...@@ -1998,13 +2002,11 @@ export default {
this.calcData(true) this.calcData(true)
}, },
moveToDimension(e) { moveToDimension(e) {
this.dragCheckType(this.dimensionData, 'd') this.dragMoveDuplicate(this.dimensionData, e, 'ds')
this.dragMoveDuplicate(this.dimensionData, e)
this.calcData(true) this.calcData(true)
}, },
moveToQuota(e) { moveToQuota(e) {
this.dragCheckType(this.quotaData, 'q') this.dragMoveDuplicate(this.quotaData, e, 'ds')
this.dragMoveDuplicate(this.quotaData, e)
this.calcData(true) this.calcData(true)
}, },
addCustomFilter(e) { addCustomFilter(e) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论