|
@@ -131,6 +131,7 @@ export class TabCustomComponent implements OnInit {
|
131
|
131
|
showModal() {
|
132
|
132
|
this.add = true;
|
133
|
133
|
this.modal = true;
|
|
134
|
+ this.tabTypeListDisabled = false;
|
134
|
135
|
this.initForm();
|
135
|
136
|
}
|
136
|
137
|
hideModal() {
|
|
@@ -197,7 +198,9 @@ export class TabCustomComponent implements OnInit {
|
197
|
198
|
// 编辑
|
198
|
199
|
maskFlag: any = false;
|
199
|
200
|
coopData = {};
|
|
201
|
+ tabTypeListDisabled:boolean = false;
|
200
|
202
|
edit(data) {
|
|
203
|
+ this.tabTypeListDisabled = Boolean(data.system);
|
201
|
204
|
this.validateForm.controls.title.setValue(data.title);
|
202
|
205
|
this.validateForm.controls.orders.setValue(data.orders);
|
203
|
206
|
this.validateForm.controls.tabTypeList.setValue(Array.isArray(data.tabTypeList) ? data.tabTypeList.map(v => +v.taskTypeId) : []);
|