修复ipad图层编辑

This commit is contained in:
X1627315083
2023-12-01 15:02:37 +08:00
parent dcfd96516b
commit 0c9e153157
24 changed files with 130 additions and 84 deletions

View File

@@ -46,7 +46,7 @@
v-show="file?.status === 'done'"
>
<img :src="file?.imgUrl" class="upload_img" />
<div class="operate_file_block">
<div class="operate_file_block Guide_1_13" :class="[driver__.driver?'showEvents':'']">
<div class="select_img_type">
<div
class="select_category"
@@ -65,7 +65,7 @@
></div>
</div>
<div
class="category_list"
class="category_list Guide_1_14"
v-show="file.categoryShow"
>
<div
@@ -252,7 +252,7 @@
</div>
</template>
<script lang="ts">
import { defineComponent, h, ref ,computed,inject } from "vue";
import { defineComponent, h, ref ,computed,inject, nextTick } from "vue";
import { LoadingOutlined } from "@ant-design/icons-vue";
import { getCookie } from "@/tool/cookie";
import { getUploadUrl } from "@/tool/util";
@@ -347,7 +347,19 @@ export default defineComponent({
sketchboardList:{
handler(newVal:any,oldVal:any){
if(newVal.length>=2 && this.driver__.driver&& newVal.length!=oldVal.length){
driverObj__.moveTo(14)
if(this.driver__.driver){
// driverObj__.moveTo(17)
}
}
}
},
driver__:{
handler(newVal,oldVal){
if(newVal.index >= 14 && newVal.index <= 15){
if(this.driver__.driver){
// driverObj__.moveTo(15)
}
}else{
}
}
}
@@ -374,7 +386,7 @@ export default defineComponent({
},
getPosition(){
let params
if(this.workspace.sexEnum.name == 'Female'){
if(this.workspace?.sexEnum?.name == 'Female'){
params = 'FemalePosition'
}else{
params = 'MalePosition'
@@ -409,6 +421,12 @@ export default defineComponent({
(v: any) => v.status === "done"
);
this.store.commit("setSketchboardFile", fileList);
nextTick().then(()=>{
if(this.driver__.driver){
driverObj__.moveTo(14)
}
})
} else if (file.status === "error") {
let index = -1;
this.fileList.forEach((ele: any, index1: any) => {
@@ -442,6 +460,14 @@ export default defineComponent({
showFileCategory(file: any) {
file.categoryShow = true;
console.log(12312312);
nextTick().then(()=>{
if(this.driver__.driver){
driverObj__.moveNext()
}
})
document.addEventListener("click", this.hiddenFileCategory);
},