This commit is contained in:
wangshiming
2022-04-26 21:05:25 +08:00
parent f8135db6dc
commit 74786ab680
6 changed files with 33 additions and 18 deletions

View File

@ -262,10 +262,19 @@ export class VehicleComponentsAuditDetailComponent implements OnInit, OnDestroy
return value;
}
viewEvaluate(item: any) {
this.modal.createStatic(VehicleImgViewComponent, { i: item }).subscribe(i => {
// this.modal.createStatic(VehicleImgViewComponent, { i: item }).subscribe(i => {
// this.st.reload();
// this.getDetailList();
// });
console.log(item);
const params = {
imgList: [item.carProtocal],
index: 0
};
this.nzImageService.preview([{ src: item.carProtocal}]);
this.st.reload();
this.getDetailList();
});
}
updateEvaluate(item: any) {
this.modal.createStatic(VehicleComponentsListEditComponent, { i: item }).subscribe(i => {

View File

@ -198,10 +198,14 @@ export class VehicleComponentsListDetailComponent implements OnInit {
*查看评价
*/
viewEvaluate(item: any) {
this.modal.createStatic(VehicleImgViewComponent, { i: item }).subscribe(() => {
this.st.reload();
this.getDetailList();
});
console.log(item);
this.st.reload();
this.getDetailList();
const params = {
imgList: [item.carProtocal],
index: 0
};
this.nzImageService.preview([{ src: item.carProtocal}]);
}
/**
*查看评价

View File

@ -61,7 +61,7 @@ export class VehicleComponentsListEditComponent implements OnInit {
title: '车主申明/挂靠协议',
ui: {
widget: 'upload',
action: apiConf.fileUpload,
action: apiConf.waterFileUpload,
fileType: 'image/png,image/jpeg,image/jpg,image/gif',
limit: 1,
limitFileCount: 1,
@ -110,8 +110,10 @@ export class VehicleComponentsListEditComponent implements OnInit {
this.modal.destroy();
}
sure() {
console.log(this.sf.value);
const params ={
carProtocal: this.sf.value.carProtocal?.data?.fullFilePath,
carProtocal: this.sf.value.carProtocal,
id: this.i.id
}
this.service.request(this.service.$api_get_upLoadCarProtocal, params).subscribe((res) => {