|
|
@@ -3533,8 +3533,8 @@ export default {
|
|
|
};
|
|
|
this.$api.letter.queryQuoteHistory(params).then(res => {
|
|
|
res.data.forEach(item => {
|
|
|
- if( res.data.accidentInfo){
|
|
|
- res.data.accidentInfo.constructor === Object?[res.data.accidentInfo]:res.data.accidentInfo
|
|
|
+ if( item.accidentInfo){
|
|
|
+ item.accidentInfo.constructor === Object?[item.accidentInfo]:item.accidentInfo
|
|
|
}
|
|
|
item.username = this.paramsEdit.username+'('+this.paramsEdit.userid+')'
|
|
|
})
|
|
|
@@ -3618,12 +3618,13 @@ export default {
|
|
|
const saveInfo = {
|
|
|
download: date.getTime() + `.png`,
|
|
|
href: base64Data,
|
|
|
+
|
|
|
}
|
|
|
const element = document.createElement('a')
|
|
|
element.style.display = 'none'
|
|
|
for (const key in saveInfo) {
|
|
|
element.setAttribute(key, saveInfo[key])
|
|
|
- }
|
|
|
+ }
|
|
|
document.body.appendChild(element)
|
|
|
element.click()
|
|
|
setTimeout(() => {
|
|
|
@@ -4481,7 +4482,9 @@ export default {
|
|
|
};
|
|
|
this.$api.letter.queryQuoteHistory(params).then(res => {
|
|
|
res.data.forEach(item => {
|
|
|
- item.accidentInfo.constructor=== Object?[res.data.accidentInfo]:res.data.accidentInfo
|
|
|
+ if( item.accidentInfo){
|
|
|
+ item.accidentInfo.constructor=== Object?[item.accidentInfo]:item.accidentInfo
|
|
|
+ }
|
|
|
})
|
|
|
this.HistoryList = res.data;
|
|
|
});
|