fix bug
This commit is contained in:
@ -56,7 +56,8 @@ export class VehicleComponentsListEditComponent implements OnInit {
|
||||
// 依据类型初始表单
|
||||
this.schema = {
|
||||
properties: {
|
||||
carProtocal: {
|
||||
carProtocal: { title: '', type: 'string', ui: { hidden: true } },
|
||||
carProtocalWatermark: {
|
||||
type: 'string',
|
||||
title: '车主申明/挂靠协议',
|
||||
ui: {
|
||||
@ -72,6 +73,11 @@ export class VehicleComponentsListEditComponent implements OnInit {
|
||||
appId: this.envSrv.env.appId,
|
||||
},
|
||||
name: 'multipartFile',
|
||||
change: args => {
|
||||
if (args.type === 'success') {
|
||||
this.sf.setValue('/carProtocal', args.fileList[0].response.data.fullFilePath);
|
||||
}
|
||||
},
|
||||
beforeUpload: (file: any, fileList: any) => {
|
||||
return new Observable((observer: Observer<boolean>) => {
|
||||
const isLt1M = file.size / 1024 / 1024 < 5;
|
||||
@ -114,6 +120,7 @@ export class VehicleComponentsListEditComponent implements OnInit {
|
||||
|
||||
const params ={
|
||||
carProtocal: this.sf.value.carProtocal,
|
||||
carProtocalWatermark: this.sf.value.carProtocalWatermark,
|
||||
id: this.i.id
|
||||
}
|
||||
this.service.request(this.service.$api_get_upLoadCarProtocal, params).subscribe((res) => {
|
||||
|
||||
Reference in New Issue
Block a user