20240205
luoJunYong.123 3 years ago
parent dc0ddae42b
commit 5a5a75bd15
  1. 24
      src/components/checkPhoto/index.vue
  2. 30
      src/pages/counter/list/index.vue

@ -1,5 +1,5 @@
<template>
<div class="relative -translate-y-2/4" style="margin-top: 10px;color: black;">
<div class="relative -translate-y-2/4" style="margin-top: 10px;color: black;" id="checkPhoto">
<!-- <div class="bg-gray-400" @click="closeIt">关闭</div> -->
<img class="absolute cursor-pointer hover:bg-red-700" src="@/assets/svg/close.svg" alt="" @click="closeIt" style="right: 50px; top: 30px;" />
@ -31,7 +31,7 @@
<h3 class="subpixel-antialiased text-xs text-center absolute" style="left: 820px;top: 123px;">12802851701099</h3>
<h3 class="subpixel-antialiased text-xs text-center absolute" style="left: 357px;top: 123px;">袋鼠互联网科技有限公司</h3>
<img :src="imgSrc" class="imgPop imgIndex min-w-full " style="min-width: 1000px;" :alt="imgSrcName" :title="imgSrcName">
<img :src="imgSrc" class="imgPop imgIndex min-w-full " style="min-width: 1000px;" :alt="imgSrcName" :title="imgSrcName" >
</template>
<slot />
@ -74,13 +74,16 @@ export default {
mounted() {
// console.log('---showImg')
// console.log(this.showImg)
// const allH3 = document.querySelectorAll('h3');
// for(let i=0; i<allH3.length; i++) {
// allH3[i].addEventListener('click', (e) => {
// e.stopPropagation();
// })
// }
const allH3 = document.querySelectorAll('h3');
for(let i=0; i<allH3.length; i++) {
allH3[i].addEventListener('click', (e) => {
console.log(e)
e.stopPropagation();
})
}
// document.getElementById('checkPhoto').addEventListener('click',(e) => {
// console.log(e)
// })
},
watch: {
showImg: {
@ -142,8 +145,9 @@ export default {
<style lang="scss" scoped>
h3 {
z-index: 9999;
&:hover{
cursor: text!important;;
cursor: text!important;
}
}
</style>

@ -402,17 +402,16 @@
<router-view></router-view>
</div>
<div v-show="showImg" style="z-index: 9999;">
<div v-show="showImg" style="z-index: 9999;" >
<div v-drag class="relative w-screen h-screen">
<div class="dia-header absolute text-center hover:bg-gray-400" style="top: -27px;z-index: 9991;width: 850px;height: 50px;line-height: 50px;" ref="imgCheckDrag">--单击此处可拖拽--</div>
<check-photo :imgSrc="imgSrc" :imgSrcId='imgSrcId' :imgSrcName="imgSrcName" :showImg.sync="showImg" style="width: 850px;z-index: 9990;" ref="photoCheck">
<!-- <div class="dia-header absolute text-center hover:bg-gray-400" style="top: -27px;z-index: 9991;width: 850px;height: 50px;line-height: 50px;" ref="imgCheckDrag">--单击此处可拖拽--</div> -->
<check-photo :imgSrc="imgSrc" :imgSrcId='imgSrcId' :imgSrcName="imgSrcName" :showImg.sync="showImg" class="dia-header" style="width: 850px;z-index: 9990;" ref="imgCheckDrag">
<div class="absolute flex justify-end w-full flex-wrap" style="bottom:7vh; right: 4vw">
<seal-name v-for="item in isSeal(imgSrcId)" :key="item.id" :item="item">
</seal-name>
</div>
</check-photo>
</div>
</div>
@ -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,

Loading…
Cancel
Save