Commit 55fca4b2 authored by zhengke's avatar zhengke

优化 设置logo

parent 95fd94cc
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
</el-icon> </el-icon>
<span class="q-pl-md">默认LOGO</span> <span class="q-pl-md">默认LOGO</span>
</div> </div>
<FileInput @change="files => insertImageElement(files,index)"> <FileInput v-if="IsEnable" @change="files => insertImageElement(files,index)">
<div class="row items-center cloudDownControls"> <div class="row items-center cloudDownControls">
<el-icon size="14px" theme="filled"> <el-icon size="14px" theme="filled">
<Upload v-if="!item.FilePath"></Upload> <Upload v-if="!item.FilePath"></Upload>
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
</el-icon> </el-icon>
<span class="q-pl-md">默认LOGO</span> <span class="q-pl-md">默认LOGO</span>
</div> </div>
<FileInput @change="files => insertImageElement(files,index)"> <FileInput v-if="IsEnable" @change="files => insertImageElement(files,index)">
<div class="row items-center cloudDownControls"> <div class="row items-center cloudDownControls">
<el-icon size="14px" theme="filled"> <el-icon size="14px" theme="filled">
<Upload v-if="!item.FilePath"></Upload> <Upload v-if="!item.FilePath"></Upload>
...@@ -168,6 +168,9 @@ ...@@ -168,6 +168,9 @@
</el-button> </el-button>
</div> </div>
</div> </div>
<div class="tip q-pt-md" style="color: #8c85e6;">
提示:滚动鼠标中键可以放大缩小图片
</div>
<div class="modal-content q-pt-lg"> <div class="modal-content q-pt-lg">
<VuePictureCropper <VuePictureCropper
:boxStyle="{ :boxStyle="{
...@@ -400,10 +403,10 @@ ...@@ -400,10 +403,10 @@
opt.width = acquiesceIMG.value[index].width opt.width = acquiesceIMG.value[index].width
opt.height = acquiesceIMG.value[index].height opt.height = acquiesceIMG.value[index].height
let x = acquiesceIMG.value[index] let x = acquiesceIMG.value[index]
let newSize = await FileService.getImageSizeWithoutDownloading(pic.value) let newSize = await FileService.convertNetworkToBase64Async(pic.value)//getImageSizeWithoutDownloading
let scale = parseInt(newSize.width/newSize.height) let scale = parseInt(newSize.width/newSize.height)
if(newSize&&newSize.width&&(newSize.width<x.width&&newSize.height<x.height)){ if(newSize&&newSize.width&&(newSize.width<x.width&&newSize.height<x.height)){
return ElMessage.error({message:`请选择${x.FileSize}、或大于${x.FileSize}LOGO`}) return ElMessage.error({message:`请选择${x.FileSize}、或大于${x.FileSize}`})
} }
isShowModal.value = true isShowModal.value = true
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment