|
@@ -54,6 +54,7 @@ export class WechatConfigComponent implements OnInit {
|
54
|
54
|
defaultHospital: [null, [Validators.required]],
|
55
|
55
|
defaultDept: [null, [Validators.required]],
|
56
|
56
|
defaultGroup: [null, [Validators.required]],
|
|
57
|
+ bindAccount: ["0", [Validators.required]],
|
57
|
58
|
});
|
58
|
59
|
this.getRoleList();
|
59
|
60
|
this.coopBtns = this.tool.initCoopBtns(this.route);
|
|
@@ -72,6 +73,8 @@ export class WechatConfigComponent implements OnInit {
|
72
|
73
|
appSecret: this.validateForm.controls.secret.value,
|
73
|
74
|
createUser:
|
74
|
75
|
this.validateForm.controls.autoCreateUser.value === "1" ? 1 : 0,
|
|
76
|
+ bindAccount:
|
|
77
|
+ this.validateForm.controls.bindAccount.value === "1" ? 1 : 0,
|
75
|
78
|
defaultRole: this.validateForm.controls.defaultRole.value,
|
76
|
79
|
hospital: this.validateForm.controls.defaultHospital.value,
|
77
|
80
|
defaultDept: this.validateForm.controls.defaultDept.value,
|
|
@@ -120,6 +123,9 @@ export class WechatConfigComponent implements OnInit {
|
120
|
123
|
this.validateForm.controls.autoCreateUser.setValue(
|
121
|
124
|
config.createUser ? "1" : "0"
|
122
|
125
|
);
|
|
126
|
+ this.validateForm.controls.bindAccount.setValue(
|
|
127
|
+ config.bindAccount ? "1" : "0"
|
|
128
|
+ );
|
123
|
129
|
this.validateForm.controls.defaultRole.setValue(
|
124
|
130
|
config.defaultRole
|
125
|
131
|
);
|