|
@@ -331,41 +331,41 @@ export default {
|
|
|
this.doNot = false
|
|
|
},
|
|
|
handleAvatarSuccess(actid,res, file) {
|
|
|
- console.log(actid)
|
|
|
switch (actid){
|
|
|
case 1:
|
|
|
- this.simplification(0)
|
|
|
+ this.simplification(actid-1,res)
|
|
|
break
|
|
|
case 2:
|
|
|
- this.simplification(1)
|
|
|
+ this.simplification(actid-1,res)
|
|
|
break
|
|
|
case 3:
|
|
|
- this.simplification(2)
|
|
|
+ this.simplification(actid-1,res)
|
|
|
break
|
|
|
case 4:
|
|
|
- this.simplification(3)
|
|
|
+ this.simplification(actid-1,res)
|
|
|
break
|
|
|
case 5:
|
|
|
- this.simplification(4)
|
|
|
+ this.simplification(actid-1,res)
|
|
|
break
|
|
|
case 6:
|
|
|
- this.simplification(5)
|
|
|
+ this.simplification(actid-1,res)
|
|
|
break
|
|
|
case 7:
|
|
|
- this.simplification(6)
|
|
|
+ this.simplification(actid-1,res)
|
|
|
break
|
|
|
case 8:
|
|
|
- this.simplification(7)
|
|
|
+ this.simplification(actid-1,res)
|
|
|
break
|
|
|
case 9:
|
|
|
- this.simplification(8)
|
|
|
+ this.simplification(actid-1,res)
|
|
|
break
|
|
|
default:
|
|
|
this.$message.error('未知错误,请稍后再试');
|
|
|
}
|
|
|
},
|
|
|
- simplification(index){
|
|
|
- this.fTmsorderbillsattachs[index].actId = actid
|
|
|
+ simplification(index,res){
|
|
|
+ console.log(index)
|
|
|
+ this.fTmsorderbillsattachs[index].actId = Number(index+1)
|
|
|
this.fTmsorderbillsattachs[index].attachUrl = res.url
|
|
|
this.fTmsorderbillsattachs[index].attachName = res.fileName
|
|
|
},
|
|
@@ -390,7 +390,9 @@ export default {
|
|
|
this.doNot = true
|
|
|
console.log(data)
|
|
|
this.dataFormD = data.data.fleetCarManage
|
|
|
- this.fTmsorderbillsattachs = data.data.fTmsorderbillsattachs
|
|
|
+ if (data.data.fTmsorderbillsattachs){
|
|
|
+ this.fTmsorderbillsattachs = data.data.fTmsorderbillsattachs
|
|
|
+ }
|
|
|
this.optionsProjectTypeItem = data.data.fleetCompanyMsg
|
|
|
if (data.data.fleetCompanyMsg){
|
|
|
this.handleSelect()
|