|
@@ -1165,9 +1165,10 @@
|
|
action="/api/v1/otms/addtmstruckArrivalResult"
|
|
action="/api/v1/otms/addtmstruckArrivalResult"
|
|
:limit="12"
|
|
:limit="12"
|
|
:on-change="fileChange1"
|
|
:on-change="fileChange1"
|
|
|
|
+ :on-remove="fileChange1"
|
|
:on-preview="handlePictureCardPreview"
|
|
:on-preview="handlePictureCardPreview"
|
|
:on-exceed="exceed"
|
|
:on-exceed="exceed"
|
|
- accept=".jpg,.jpeg,.png,.gif,.bmp,.pdf,.JPG,.JPEG,.PBG,.GIF,.BMP,.PDF"
|
|
|
|
|
|
+ accept=".jpg,.jpeg,.png,.gif,.bmp,.JPG,.JPEG,.PBG,.GIF,.BMP,.PDF"
|
|
:auto-upload="false"
|
|
:auto-upload="false"
|
|
>
|
|
>
|
|
<i class="el-icon-plus"></i>
|
|
<i class="el-icon-plus"></i>
|
|
@@ -1181,9 +1182,10 @@
|
|
action="null"
|
|
action="null"
|
|
:limit="11"
|
|
:limit="11"
|
|
:on-change="fileChange2"
|
|
:on-change="fileChange2"
|
|
|
|
+ :on-remove="fileChange2"
|
|
:on-preview="handlePictureCardPreview"
|
|
:on-preview="handlePictureCardPreview"
|
|
:on-exceed="exceed"
|
|
:on-exceed="exceed"
|
|
- accept=".jpg,.jpeg,.png,.gif,.bmp,.pdf,.JPG,.JPEG,.PBG,.GIF,.BMP,.PDF"
|
|
|
|
|
|
+ accept=".jpg,.jpeg,.png,.gif,.bmp,.JPG,.JPEG,.PBG,.GIF,.BMP,.PDF"
|
|
:auto-upload="false"
|
|
:auto-upload="false"
|
|
>
|
|
>
|
|
<i class="el-icon-plus"></i>
|
|
<i class="el-icon-plus"></i>
|
|
@@ -1575,7 +1577,7 @@ import { sjTime, isVehicleNumber } from '@/utils/sharedJsFile'
|
|
import { getCookie } from '@/utils/util.js'
|
|
import { getCookie } from '@/utils/util.js'
|
|
import PathView from './mapTest.vue'
|
|
import PathView from './mapTest.vue'
|
|
import currentLocation from './currentLocation.vue'
|
|
import currentLocation from './currentLocation.vue'
|
|
-import { downloadFile } from '@/utils/base64ToBlob.js'
|
|
|
|
|
|
+import { downloadFile,creatImageFile } from '@/utils/base64ToBlob.js'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
PathView,
|
|
PathView,
|
|
@@ -2651,10 +2653,13 @@ export default {
|
|
if (res.data) {
|
|
if (res.data) {
|
|
this.arriavlList = []
|
|
this.arriavlList = []
|
|
res.data.forEach((e, index) => {
|
|
res.data.forEach((e, index) => {
|
|
- this.arriavlList.push({
|
|
|
|
- name: 'file' + index,
|
|
|
|
- url: e
|
|
|
|
- })
|
|
|
|
|
|
+ creatImageFile(e,'file1-'+index).then((res)=>{
|
|
|
|
+ this.arriavlList.push({
|
|
|
|
+ name: 'file' + index,
|
|
|
|
+ raw: res,
|
|
|
|
+ url: e
|
|
|
|
+ })
|
|
|
|
+ });
|
|
})
|
|
})
|
|
this.fileListArrival = this.arriavlList
|
|
this.fileListArrival = this.arriavlList
|
|
}
|
|
}
|
|
@@ -2667,10 +2672,13 @@ export default {
|
|
if (res.data) {
|
|
if (res.data) {
|
|
this.receiveList = []
|
|
this.receiveList = []
|
|
res.data.forEach((e, index) => {
|
|
res.data.forEach((e, index) => {
|
|
- this.receiveList.push({
|
|
|
|
- name: 'file' + index,
|
|
|
|
- url: e
|
|
|
|
- })
|
|
|
|
|
|
+ creatImageFile(e,'file2-'+index).then((res)=>{
|
|
|
|
+ this.receiveList.push({
|
|
|
|
+ name: 'file' + index,
|
|
|
|
+ raw: res,
|
|
|
|
+ url: e
|
|
|
|
+ })
|
|
|
|
+ });
|
|
})
|
|
})
|
|
this.fileListReceive = this.receiveList
|
|
this.fileListReceive = this.receiveList
|
|
}
|
|
}
|
|
@@ -2730,7 +2738,9 @@ export default {
|
|
this.axios(options).then(res => {
|
|
this.axios(options).then(res => {
|
|
console.log('receiveRes:', res)
|
|
console.log('receiveRes:', res)
|
|
this.$message.success('上传成功!')
|
|
this.$message.success('上传成功!')
|
|
|
|
+ this.steelMap.arrivalAddress = this.location
|
|
this.closeUpload()
|
|
this.closeUpload()
|
|
|
|
+ this.refresh();
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|