Merge pull request 'dj' (#849) from dj into master
Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/849
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="img-preview" >
|
<div class="img-preview" >
|
||||||
<img id="previewImg" :src="fileUrl" :style="{width: fullscreen?windowWidth+'px':'',height: fullscreen?'auto':'650px;'}" alt="Preview"/>
|
<img id="previewImg" :src="fileUrl" :style="{width: fullscreen?windowWidth+'px':'100%',height: fullscreen?'auto':'650px;'}" alt="Preview"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -51,6 +51,24 @@ nextTick(() => {
|
|||||||
.img-preview {
|
.img-preview {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
overflow-y: auto;
|
||||||
|
overflow-x: auto;
|
||||||
|
&::-webkit-scrollbar {
|
||||||
|
width: 6px;
|
||||||
|
height: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 滚动条轨道
|
||||||
|
&::-webkit-scrollbar-track {
|
||||||
|
background: rgb(239, 239, 239);
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 小滑块
|
||||||
|
&::-webkit-scrollbar-thumb {
|
||||||
|
background: rgba(80, 81, 82, 0.29);
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="file-preview">
|
<div class="file-preview">
|
||||||
<el-dialog id="dialog" :border="false" width="1500" :style="{height: fullscreen?'':'750px;'}" top="10vh"
|
<el-dialog id="dialog" :border="false" width="1200" :style="{height: fullscreen?'':'650px;'}" top="10vh"
|
||||||
:fullscreen="fullscreen"
|
:fullscreen="fullscreen"
|
||||||
:title="fileName" :show-close="true" :visible.sync="showPreview" v-model="showPreview"
|
:title="fileName" :show-close="true" :visible.sync="showPreview" v-model="showPreview"
|
||||||
:append-to-body="false"
|
:append-to-body="false"
|
||||||
@@ -54,7 +54,7 @@ if(props.fileType!=='pdf'&&props.fileType!=='docx'&&!checkImgType(props.fileType
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss" scoped>
|
||||||
.file-preview {
|
.file-preview {
|
||||||
.el-overlay-dialog {
|
.el-overlay-dialog {
|
||||||
left: 0 !important;
|
left: 0 !important;
|
||||||
@@ -69,6 +69,8 @@ if(props.fileType!=='pdf'&&props.fileType!=='docx'&&!checkImgType(props.fileType
|
|||||||
}
|
}
|
||||||
|
|
||||||
.el-dialog__body {
|
.el-dialog__body {
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -94,9 +94,8 @@ const sureSelectedCompany = (select) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const cancelSelectedCompany=(select)=>{
|
const cancelSelectedCompany=(select)=>{
|
||||||
console.info("🚀 ~ file:add method:cancelSelectedCompany line:287 -----", select)
|
// formData.value.rdCompanyId =''
|
||||||
formData.value.rdCompanyId =''
|
// formData.value.rdCompany =''
|
||||||
formData.value.rdCompany =''
|
|
||||||
selectedCompanyList.value = select
|
selectedCompanyList.value = select
|
||||||
}
|
}
|
||||||
const handleExpend = () => {
|
const handleExpend = () => {
|
||||||
@@ -163,7 +162,6 @@ const handleSubmit = async (instance) => {
|
|||||||
})
|
})
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.info("🚀 ~method:'formData.value.rdCompanyId -----", formData.value.rdCompanyId)
|
|
||||||
if (!formData.value.rdCompanyId) {
|
if (!formData.value.rdCompanyId) {
|
||||||
ElNotification({
|
ElNotification({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
|
|||||||
Reference in New Issue
Block a user