|
@@ -174,21 +174,25 @@
|
|
|
</el-dialog>
|
|
|
<normal-dialog
|
|
|
:show-dialog="showCopyFile"
|
|
|
- :title="'复制信息'"
|
|
|
- :width="'35%'"
|
|
|
+ :title="'上传截图'"
|
|
|
+ :width="'50%'"
|
|
|
+ :submit-button="'上传'"
|
|
|
+ :top="'5vh'"
|
|
|
@confirm="confirmUpload()"
|
|
|
@cancel="showCopyFile=false"
|
|
|
>
|
|
|
<div class="file-dialog">
|
|
|
- <el-form ref="form" label-width="80px">
|
|
|
- <el-form-item label="图片名称">
|
|
|
- <el-col :span="20">
|
|
|
+ <el-form ref="form" label-width="20%">
|
|
|
+ <el-form-item label="图片命名">
|
|
|
+ <el-col style="width: 75%">
|
|
|
<el-input v-model="imageName" />
|
|
|
</el-col>
|
|
|
- <el-col :span="4">.png</el-col>
|
|
|
+ <el-col style="width: 10%">.png</el-col>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <img :src="imageUrl" class="image-url">
|
|
|
+ <div class="image">
|
|
|
+ <img :src="imageUrl" class="image-url">
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</normal-dialog>
|
|
|
<el-dialog title="附件预览" :modal-append-to-body="false" :visible.sync="dialogVisible">
|
|
@@ -589,12 +593,21 @@ export default {
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|
|
|
.el-form {
|
|
|
- width: 80%;
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ .image {
|
|
|
+ position: relative;
|
|
|
+ width: 61%;
|
|
|
+ padding-top: 60%;
|
|
|
+ border:1px solid #409EFF;
|
|
|
+ .image-url {
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ left: 50%;
|
|
|
+ transform: translate(-50%,-50%);
|
|
|
+ width: 100%;
|
|
|
+ max-height: 100%;
|
|
|
+ }
|
|
|
}
|
|
|
-}
|
|
|
-.image-url {
|
|
|
- width: 90%;
|
|
|
- max-height: 60vh;
|
|
|
- border:1px solid #EBEEF5;
|
|
|
}
|
|
|
</style>
|