From f39b4d182db13f0672330fa2620e1a41c7197c43 Mon Sep 17 00:00:00 2001
From: e <2432808546@qq.com>
Date: Wed, 29 Dec 2021 15:24:12 +0800
Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E8=A6=81=E5=87=AD=E8=AF=81=E7=AE=B1?=
=?UTF-8?q?=E6=8B=89=E5=8F=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/counter/list/index.vue | 39 ++++++++++++++++++++++++--------
1 file changed, 30 insertions(+), 9 deletions(-)
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%;