diff --git a/src/components/checkPhoto/index.vue b/src/components/checkPhoto/index.vue index ec7f543..8477ba8 100644 --- a/src/components/checkPhoto/index.vue +++ b/src/components/checkPhoto/index.vue @@ -1,5 +1,5 @@ @@ -74,13 +74,16 @@ export default { mounted() { // console.log('---showImg') // console.log(this.showImg) - // const allH3 = document.querySelectorAll('h3'); - // for(let i=0; i { - // e.stopPropagation(); - // }) - // } - + const allH3 = document.querySelectorAll('h3'); + for(let i=0; i { + console.log(e) + e.stopPropagation(); + }) + } + // document.getElementById('checkPhoto').addEventListener('click',(e) => { + // console.log(e) + // }) }, watch: { showImg: { @@ -142,8 +145,9 @@ export default { \ No newline at end of file diff --git a/src/pages/counter/list/index.vue b/src/pages/counter/list/index.vue index eae060c..2119bfc 100644 --- a/src/pages/counter/list/index.vue +++ b/src/pages/counter/list/index.vue @@ -402,17 +402,16 @@ -
+
-
--单击此处可拖拽--
- + +
-
@@ -967,8 +966,22 @@ export default { this.imgSrc = '' this.imgSrcId = '' this.imgSrcName = '' + }else { + this.$nextTick(() => { + console.log(this.$refs.imgCheckDrag) + new Sortable(this.$refs.imgCheckDrag, { + animation: 150, + group: { + name:'shared', + pull:'clone',// 是否可以被移出或克隆 + put:false// 禁止拖入 + }, + }) + }) + } + }, '$route.path': function (val) { // 控制弹框显隐 @@ -1097,14 +1110,7 @@ export default { let that = this // 图片查看器允许拖拽 - new Sortable(this.$refs.imgCheckDrag, { - animation: 150, - group: { - name:'shared', - pull:'clone',// 是否可以被移出或克隆 - put:false// 禁止拖入 - }, - }) + // 拖拽-物品栏 new Sortable(this.$refs.goods, { animation: 150,