| | |
| | | mounted() {}, |
| | | methods: { |
| | | pictureValidate() { |
| | | if (this.changeType == 1 && this.fileList.length < 1) { |
| | | if (this.fileList.length < 1) { |
| | | ElMessage({ |
| | | message: '至少上传一张图片', |
| | | type: 'error' |
| | |
| | | margin-bottom: 30px; |
| | | margin-left: 63px; |
| | | } |
| | | ::v-deep .el-dialog__body { |
| | | :deep(.el-dialog__body) { |
| | | width: 95%; |
| | | } |
| | | ::v-deep .el-upload-list--picture-card .el-upload-list__item-thumbnail { |
| | | :deep(.el-upload-list--picture-card .el-upload-list__item-thumbnail) { |
| | | object-fit: cover !important; |
| | | } |
| | | .preview-pic { |
| | |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | ::v-deep .el-upload--picture-card { |
| | | :deep(.el-upload--picture-card) { |
| | | display: none; |
| | | } |
| | | /* 隐藏el-upload上传成功组件 */ |
| | | ::v-deep .el-upload-list__item-status-label { |
| | | :deep(.el-upload-list__item-status-label) { |
| | | display: none !important; |
| | | } |
| | | </style> |