fix bug
This commit is contained in:
@ -93,9 +93,9 @@ export class CartConfigActionModalComponent implements OnInit {
|
||||
sure() {
|
||||
if (this.i.id === 0) {
|
||||
const params: any = {
|
||||
...this.sf.value,
|
||||
...this.sf?.value,
|
||||
dictKey: this.dictKey,
|
||||
itemData: this.sf.value.itemValue
|
||||
itemData: this.sf?.value.itemValue
|
||||
};
|
||||
this.service.request(this.service.$api_add_dict, params).subscribe(res => {
|
||||
if (res) {
|
||||
@ -106,7 +106,7 @@ export class CartConfigActionModalComponent implements OnInit {
|
||||
} else {
|
||||
const params: any = {
|
||||
...this.i,
|
||||
...this.sf.value
|
||||
...this.sf?.value
|
||||
};
|
||||
this.service.request(this.service.$api_update_dict, params).subscribe(res => {
|
||||
if (res) {
|
||||
@ -121,7 +121,7 @@ export class CartConfigActionModalComponent implements OnInit {
|
||||
if (this.i.id === 0) {
|
||||
const params: any = {
|
||||
configFullKey: 'ban.goods.name',
|
||||
name: this.sf.value.itemValue
|
||||
name: this.sf?.value.itemValue
|
||||
};
|
||||
this.service.request(this.service.$api_add_config_item, params).subscribe(res => {
|
||||
if (res) {
|
||||
@ -130,7 +130,7 @@ export class CartConfigActionModalComponent implements OnInit {
|
||||
}
|
||||
});
|
||||
} else {
|
||||
const params: any = { ...this.sf.value, ...this.i, configFullKey: 'ban.goods.name', name: this.sf.value.itemValue };
|
||||
const params: any = { ...this.sf?.value, ...this.i, configFullKey: 'ban.goods.name', name: this.sf?.value.itemValue };
|
||||
this.service.request(this.service.$api_update_config_item, params).subscribe(res => {
|
||||
if (res) {
|
||||
this.service.msgSrv.success('保存成功!');
|
||||
|
||||
@ -182,14 +182,14 @@ export class NetworkFreightNewComponent implements OnInit {
|
||||
}
|
||||
console.log(this.sf1.value);
|
||||
console.log(this.sf1.valid);
|
||||
console.log(this.sf.value);
|
||||
console.log(this.sf?.value);
|
||||
console.log(this.sf.valid);
|
||||
const sfVlaue = this.sf1.value;
|
||||
const params: any = {};
|
||||
console.log(this.sf1.value);
|
||||
|
||||
Object.assign(params, {
|
||||
...this.sf.value,
|
||||
...this.sf?.value,
|
||||
enterpriseInfoDTO: {
|
||||
...this.sf1.value,
|
||||
legalPersonIdentityDTO: this.sf1.value.legalPersonIdentityVO,
|
||||
|
||||
@ -59,7 +59,7 @@ export class NoTeManagementComponent implements OnInit {
|
||||
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
if (this.sf) {
|
||||
Object.assign(requestOptions.body, { ...this.sf.value });
|
||||
Object.assign(requestOptions.body, { ...this.sf?.value });
|
||||
}
|
||||
return requestOptions;
|
||||
};
|
||||
|
||||
@ -72,7 +72,7 @@ export class OrganizationModalComponent implements OnInit {
|
||||
|
||||
const params: any = {
|
||||
id: this.params.id,
|
||||
...this.sf.value,
|
||||
...this.sf?.value,
|
||||
authority: this.roleInfoData.authority,
|
||||
authorityAssistId: this.roleInfoData.authorityAssistId,
|
||||
parentId: this.parentId
|
||||
|
||||
@ -102,7 +102,7 @@ console.log(this.params.infoUrl)
|
||||
}
|
||||
const params: any = {
|
||||
id: this.params.id,
|
||||
...this.sf.value,
|
||||
...this.sf?.value,
|
||||
authority: auths.authority,
|
||||
authorityAssistId: auths.authorityAssistId
|
||||
};
|
||||
|
||||
@ -94,7 +94,7 @@ export class RoleManagementComponent implements OnInit {
|
||||
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
if (this.sf) {
|
||||
Object.assign(requestOptions.body, { ...this.sf.value });
|
||||
Object.assign(requestOptions.body, { ...this.sf?.value });
|
||||
}
|
||||
if (requestOptions.body?.createTime) {
|
||||
Object.assign(requestOptions.body, { sort: 'createTime.' + requestOptions.body.createTime });
|
||||
|
||||
@ -103,7 +103,7 @@ export class SmsTemplateComponent implements OnInit {
|
||||
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
if (this.sf) {
|
||||
Object.assign(requestOptions.body, { ...this.sf.value });
|
||||
Object.assign(requestOptions.body, { ...this.sf?.value });
|
||||
}
|
||||
return requestOptions;
|
||||
};
|
||||
|
||||
@ -35,6 +35,6 @@
|
||||
</div>
|
||||
|
||||
<st #st [data]="service.$api_get_enterprise_staff_page" [columns]="columns" [page]="{}"
|
||||
[req]="{ params: {nameOrPhone: this.sf.value?.nameOrPhone} }" [loading]="false" [scroll]="{ y: '370px' }"
|
||||
[req]="{ params: {nameOrPhone: this.sf?.value?.nameOrPhone} }" [loading]="false" [scroll]="{ y: '370px' }"
|
||||
(change)="stChange($event)"></st>
|
||||
</nz-card>
|
||||
@ -170,7 +170,7 @@ export class StaffManagementComponent implements OnInit {
|
||||
}
|
||||
|
||||
exportList() {
|
||||
const params = { nameOrPhone: this.sf.value?.nameOrPhone };
|
||||
const params = { nameOrPhone: this.sf?.value?.nameOrPhone };
|
||||
this.service.downloadFile(this.service.$api_export_staff, { ...params, pageSize: -1 });
|
||||
}
|
||||
|
||||
|
||||
@ -72,13 +72,13 @@ export class SystemStaffStaffModalComponent implements OnInit {
|
||||
}
|
||||
|
||||
sure() {
|
||||
if (!this.sf.value.roleId || this.sf.value.roleId.length === 0) {
|
||||
if (!this.sf?.value.roleId || this.sf?.value.roleId.length === 0) {
|
||||
this.service.msgSrv.error('员工角色不能为空!');
|
||||
return;
|
||||
}
|
||||
if (this.i.userId === 0) {
|
||||
const params: any = {
|
||||
...this.sf.value
|
||||
...this.sf?.value
|
||||
};
|
||||
this.service.request(this.service.$api_add_staff, params).subscribe(res => {
|
||||
if (res) {
|
||||
@ -89,7 +89,7 @@ export class SystemStaffStaffModalComponent implements OnInit {
|
||||
} else {
|
||||
const params: any = {
|
||||
appUserId: this.i.appUserId,
|
||||
...this.sf.value
|
||||
...this.sf?.value
|
||||
};
|
||||
this.service.request(this.service.$api_edit_staff, params).subscribe(res => {
|
||||
if (res) {
|
||||
|
||||
Reference in New Issue
Block a user