|
@@ -46,6 +46,7 @@ export class WechatConfigComponent implements OnInit {
|
46
|
46
|
});
|
47
|
47
|
this.hospitals = this.tool.getHospitalList();
|
48
|
48
|
this.validateForm = this.fb.group({
|
|
49
|
+ secret: [null, [Validators.required]],
|
49
|
50
|
appid: [null, [Validators.required]],
|
50
|
51
|
agentid: [null, [Validators.required]],
|
51
|
52
|
autoCreateUser: ["1", [Validators.required]],
|
|
@@ -68,6 +69,7 @@ export class WechatConfigComponent implements OnInit {
|
68
|
69
|
}
|
69
|
70
|
const postData = {
|
70
|
71
|
id: this.id,
|
|
72
|
+ appSecret: this.validateForm.controls.secret.value,
|
71
|
73
|
createUser:
|
72
|
74
|
this.validateForm.controls.autoCreateUser.value === "1" ? 1 : 0,
|
73
|
75
|
defaultRole: this.validateForm.controls.defaultRole.value,
|
|
@@ -112,6 +114,7 @@ export class WechatConfigComponent implements OnInit {
|
112
|
114
|
this.loading1 = false;
|
113
|
115
|
this.deptList = result2.list;
|
114
|
116
|
this.id = config.id;
|
|
117
|
+ this.validateForm.controls.secret.setValue(config.appSecret);
|
115
|
118
|
this.validateForm.controls.appid.setValue(config.appId);
|
116
|
119
|
this.validateForm.controls.agentid.setValue(config.agentId);
|
117
|
120
|
this.validateForm.controls.autoCreateUser.setValue(
|
|
@@ -166,6 +169,7 @@ export class WechatConfigComponent implements OnInit {
|
166
|
169
|
setTimeout(() => {
|
167
|
170
|
this.promptModalShow = true;
|
168
|
171
|
}, 100);
|
|
172
|
+ this.loading1 = true;
|
169
|
173
|
this.getWechatConfig();
|
170
|
174
|
}
|
171
|
175
|
//修改默认院区
|