|
@@ -11,8 +11,8 @@ import { CheckboxCustomEvent } from '@ionic/angular';
|
|
|
export class PageAddComponent {
|
|
|
userAdd: any = {
|
|
|
name: '',
|
|
|
- tag: '',
|
|
|
- desc: '',
|
|
|
+ gender: '',
|
|
|
+ mobile: '',
|
|
|
img: ''
|
|
|
};
|
|
|
selectedImage: string | ArrayBuffer | null = null;
|
|
@@ -28,12 +28,12 @@ export class PageAddComponent {
|
|
|
}
|
|
|
|
|
|
async saveAdd() {
|
|
|
- const Contact = Parse.Object.extend('Contact');
|
|
|
- const newContact = new Contact();
|
|
|
+ const HrmContact = Parse.Object.extend('HrmContact');
|
|
|
+ const newContact = new HrmContact();
|
|
|
|
|
|
newContact.set('name', this.userAdd.name);
|
|
|
- newContact.set('tag', this.userAdd.tag);
|
|
|
- newContact.set('desc', this.userAdd.desc);
|
|
|
+ newContact.set('gender', this.userAdd.gender);
|
|
|
+ newContact.set('mobile', this.userAdd.mobile);
|
|
|
newContact.set('img', this.userAdd.img);
|
|
|
// 设置其他联系人信息...
|
|
|
|