fix
This commit is contained in:
2
.env.dev
2
.env.dev
@@ -8,5 +8,5 @@ VUE_APP_BASE_URL = 'https://develop.api.aida.com.hk'
|
||||
# 佩佩
|
||||
# VUE_APP_BASE_URL = 'http://192.168.1.7:5567'
|
||||
# 海波
|
||||
VUE_APP_BASE_URL = 'http://192.168.1.9:5567'
|
||||
# VUE_APP_BASE_URL = 'http://192.168.1.9:5567'
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
<li v-for="item,index in dataList" :class="{active:deleteItem == index}" class="printModel_item" @click="setprintModel(item,index)">
|
||||
<a-popover placement="right" v-if="isCanvas">
|
||||
<template #content>
|
||||
<span v-if="item.img != -1 && index == dataList?.length -1 " class="icon iconfont icon-shanchu" style="cursor: pointer; position: absolute; right: 10px; top: 10px;" @click.stop="deleteFile(item)"></span>
|
||||
<img v-if="item.img != -1" style="width: 10rem;height: 10rem;object-fit: contain;" :src="item.img" alt="">
|
||||
<div v-else-if="item.img == -1" class="generalMenu_printModel_upload ">
|
||||
<i class="fi fi-br-upload input_border" style="width: 8rem; height: 8rem;padding: 0;" :title="$t('Generate.uploadTitle')">
|
||||
@@ -99,8 +100,6 @@ import { message, Upload, Modal } from "ant-design-vue";
|
||||
})
|
||||
}
|
||||
let setprintModel = (item:any,index:any)=>{
|
||||
console.log(item.img);
|
||||
|
||||
if(props.deleteItem == index) return
|
||||
if(item.img == -1) return
|
||||
openClick.value = false
|
||||
@@ -145,6 +144,10 @@ import { message, Upload, Modal } from "ant-design-vue";
|
||||
// message.warning(res.errMsg);
|
||||
}
|
||||
}
|
||||
let deleteFile = (item:any)=>{
|
||||
item.img = -1
|
||||
emit('setprintModel',props.dataList[0])
|
||||
}
|
||||
return {
|
||||
selectIndex,
|
||||
openClick,
|
||||
@@ -152,6 +155,7 @@ import { message, Upload, Modal } from "ant-design-vue";
|
||||
setprintModel,
|
||||
openPrintModel,
|
||||
fileUploadChange,
|
||||
deleteFile,
|
||||
}
|
||||
|
||||
},
|
||||
@@ -222,6 +226,12 @@ import { message, Upload, Modal } from "ant-design-vue";
|
||||
background: #ebebeb !important;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
:deep(.icon-shanchu){
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 10px;
|
||||
}
|
||||
}
|
||||
.printModel_item:hover{
|
||||
// background: rgba(0,0,0,.4);
|
||||
|
||||
Reference in New Issue
Block a user