修改新旧拆分单对比--全文比对
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
<p>
|
||||
<a-icon class="action-upload" type="cloud-upload" />
|
||||
</p>
|
||||
<p class="ant-upload-text" style="font-size: 14px;line-height: 30px;margin-left: 5px;">{{this.$t('clickUpload')}}</p>
|
||||
<p class="ant-upload-text" style="font-size: 14px;line-height: 30px;margin-left: 5px;">点击上传</p>
|
||||
</a-upload-dragger>
|
||||
</a-modal>
|
||||
</template>
|
||||
@@ -80,7 +80,7 @@ export default {
|
||||
fileFlag = (fileTypes[0] === fileNowTypes[0])
|
||||
// console.log('filetype',fileFlag)
|
||||
if (!fileFlag) {
|
||||
this.$message.warning(this.$t('fileFormatIncorrect'))
|
||||
this.$message.warning(this.$t('文件格式不正确,请上传图片格式文件'))
|
||||
this.fileTypeSatus = false
|
||||
} else {
|
||||
// let thisFileType = this.thisFileType.replace(/\s+/g, "");
|
||||
@@ -114,7 +114,7 @@ export default {
|
||||
this.uploadFileFlag--
|
||||
this.$emit('uploadSuccess', this.fileList)
|
||||
this.$message.destroy()
|
||||
this.$message.warning(`${info.file.name} ` + this.$t('fileUploadFailed'))
|
||||
this.$message.warning(`${info.file.name} ` + '上传失败')
|
||||
} else if (status === 'removed') {
|
||||
this.uploadFileFlag--
|
||||
this.myFileList = info.fileList
|
||||
@@ -132,16 +132,15 @@ export default {
|
||||
}
|
||||
if (this.myFileList.length > 0) {
|
||||
this.$message.destroy()
|
||||
this.$message.success(`${info.file.name} ` + this.$t('deletedSuccessfully'))
|
||||
this.$message.success(`${info.file.name} ` + '删除成功')
|
||||
}
|
||||
} else if (status === 'done') {
|
||||
this.uploadFileFlag--
|
||||
this.fileList = []
|
||||
this.myFileList = info.fileList
|
||||
console.log('listLength11111', info.fileList.length)
|
||||
if (info.fileList.length > 20) {
|
||||
this.$message.destroy()
|
||||
this.$message.warning(this.$t('uploadMaximumATime'))
|
||||
this.$message.warning(this.$t('最多上传20个图片'))
|
||||
info.fileList.splice(20)
|
||||
this.myFileList = info.fileList
|
||||
this.myFileList.forEach((res) => {
|
||||
@@ -167,7 +166,7 @@ export default {
|
||||
// console.log('uplossss',this.fileList,fileList)
|
||||
if (this.myFileList.length > 0) {
|
||||
this.$message.destroy()
|
||||
this.$message.success(`${info.file.name} ` + this.$t('uploadSuccessful'))
|
||||
this.$message.success(`${info.file.name} ` + this.$t('上传成功'))
|
||||
}
|
||||
}
|
||||
} else if (status === 'uploading') {
|
||||
|
||||
Reference in New Issue
Block a user