Browse Source

lastModify-四性检测

master
xuhuajiao 6 months ago
parent
commit
ddddd888d2
  1. 1
      src/views/collectReorganizi/collectionLibrary/module/uploadOriginal/bigUpload.vue
  2. 2
      src/views/collectReorganizi/collectionLibrary/module/uploadOriginal/index.vue
  3. 4
      src/views/components/category/PreviewForm.vue

1
src/views/collectReorganizi/collectionLibrary/module/uploadOriginal/bigUpload.vue

@ -177,6 +177,7 @@ export default {
jsonString.file_size = item.file.size jsonString.file_size = item.file.size
jsonString.file_type = item.file.name.substring(item.name.lastIndexOf('.') + 1, item.file.name.length) jsonString.file_type = item.file.name.substring(item.name.lastIndexOf('.') + 1, item.file.name.length)
// jsonString.file_path = res.data.data // jsonString.file_path = res.data.data
json.last_modified = item.file.lastModified
jsonString.file_path = '' jsonString.file_path = ''
jsonString.sequence = null jsonString.sequence = null
jsonString.archive_id = this.arcId jsonString.archive_id = this.arcId

2
src/views/collectReorganizi/collectionLibrary/module/uploadOriginal/index.vue

@ -194,8 +194,10 @@ export default {
json.file_thumbnail = '' json.file_thumbnail = ''
json.create_time = this.nowDate json.create_time = this.nowDate
json.id = null json.id = null
json.last_modified = item.lastModified
return json return json
}) })
console.log('promiseArray', promiseArray)
Promise.all(promiseArray) Promise.all(promiseArray)
.then((arrayUpload) => { .then((arrayUpload) => {
// //

4
src/views/components/category/PreviewForm.vue

@ -939,7 +939,8 @@ export default {
'file_thumbnail': '', 'file_thumbnail': '',
'create_time': this.nowDate, 'create_time': this.nowDate,
'id': null, 'id': null,
'is_quote': null
'is_quote': null,
'last_modified': this.file.lastModified
} }
const arrayUpload = [] const arrayUpload = []
arrayUpload.push(json) arrayUpload.push(json)
@ -947,6 +948,7 @@ export default {
// this.$set(this.addOrUpdateForm, 'fileOriginal', this.fileNames) // this.$set(this.addOrUpdateForm, 'fileOriginal', this.fileNames)
this.fileJsonString = JSON.stringify(arrayUpload) this.fileJsonString = JSON.stringify(arrayUpload)
console.log(this.fileJsonString)
}, },
// base64 // base64
getBase64(file) { getBase64(file) {

Loading…
Cancel
Save