diff --git a/src/pages/counter/list/index.vue b/src/pages/counter/list/index.vue index f324817..dab7957 100644 --- a/src/pages/counter/list/index.vue +++ b/src/pages/counter/list/index.vue @@ -115,7 +115,6 @@

- 请从以下物品中选取所需材料 -

- 请从物品栏选中或拖拽所需材料 -

-
@@ -827,18 +826,40 @@ export default { sort: false,// 禁止排序 // 结束拖拽 onEnd: function (/**Event*/evt) { - // console.log(refParamBox,'目标dom',refParamBox.getBoundingClientRect()); - // 判断拖拽的地址 + if(!that.$refs.goods) return that.$message.warning('非可拖拽的交互!') let targetDom = that.$refs.goods.getBoundingClientRect() - console.log(evt.oldIndex) if(evt.originalEvent.pageXtargetDom.left){ if(evt.originalEvent.pageYtargetDom.top){ - console.log(evt) - // this.importanceArr[evt.oldIndex] - // this.importanceArr - alert('拉入到弹框') + /* oldindex识别是拖拽了哪个文件 */ + console.log(that.importanceArr[evt.oldIndex].name,'执行拖拽2'); + that.checkList.push(that.importanceArr[evt.oldIndex].name) + let ifElse = 0; + if(that.goodsShelfTotalData.length > 0){ + for(var i=0;itargetDom.left){ + // if(evt.originalEvent.pageYtargetDom.top){ + // console.log(evt) + // // this.importanceArr[evt.oldIndex] + // // this.importanceArr + // alert('拉入到弹框') + // } + // } }, }); }, @@ -2598,7 +2619,7 @@ export default { } } .box{ - background-color: red; + //background-color: red; border: 2px solid #e6e6e6; height: 2vh; width: 45%;