提交 402b5663 编写于 作者: M MaxKey

应用管理 第三个页签下适配选项保存后无法显示 #I5DWS3

应用管理 第三个页签下适配选项保存后无法显示 #I5DWS3
上级 c8efbe7a
/*
* Copyright [2022] [MaxKey of copyright http://www.maxkey.top]
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import format from 'date-fns/format';
......@@ -66,6 +65,10 @@ export class Apps extends BaseEntity {
if (this.status == 1) {
this.switch_status = true;
}
this.isAdapter = `${data.isAdapter}`;
this.isExtendAttr = `${data.isExtendAttr}`;
this.logoutType = `${data.logoutType}`;
this.visible = `${data.visible}`;
}
override trans(): void {
......
/*
* Copyright [2022] [MaxKey of copyright http://www.maxkey.top]
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import format from 'date-fns/format';
......@@ -32,6 +31,7 @@ export class AppsCasDetails extends Apps {
override init(data: any): void {
Object.assign(this, data);
super.init(data);
if (this.status == 1) {
this.switch_status = true;
}
......
/*
* Copyright [2022] [MaxKey of copyright http://www.maxkey.top]
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import format from 'date-fns/format';
......@@ -26,6 +25,7 @@ export class AppsExtendApiDetails extends Apps {
override init(data: any): void {
Object.assign(this, data);
super.init(data);
if (this.status == 1) {
this.switch_status = true;
}
......
/*
* Copyright [2022] [MaxKey of copyright http://www.maxkey.top]
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import format from 'date-fns/format';
......@@ -32,6 +31,7 @@ export class AppsFormBasedDetails extends Apps {
override init(data: any): void {
Object.assign(this, data);
super.init(data);
if (this.status == 1) {
this.switch_status = true;
}
......
/*
* Copyright [2022] [MaxKey of copyright http://www.maxkey.top]
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import format from 'date-fns/format';
......@@ -40,6 +39,7 @@ export class AppsJwtDetails extends Apps {
override init(data: any): void {
Object.assign(this, data);
super.init(data);
if (this.status == 1) {
this.switch_status = true;
}
......
/*
* Copyright [2022] [MaxKey of copyright http://www.maxkey.top]
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import format from 'date-fns/format';
......@@ -76,7 +75,8 @@ export class AppsOauth20Details extends Apps {
override init(data: any): void {
Object.assign(this, data);
console.log(data);
super.init(data);
//console.log(data);
if (this.status == 1) {
this.switch_status = true;
}
......
/*
* Copyright [2022] [MaxKey of copyright http://www.maxkey.top]
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import format from 'date-fns/format';
......@@ -77,6 +76,7 @@ export class AppsSamlDetails extends Apps {
override init(data: any): void {
Object.assign(this, data);
super.init(data);
this.fileType = 'certificate';
this.metaUrl = '';
if (this.category == null || this.category == '') {
......
/*
* Copyright [2022] [MaxKey of copyright http://www.maxkey.top]
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import format from 'date-fns/format';
......@@ -33,6 +32,7 @@ export class AppsTokenBasedDetails extends Apps {
override init(data: any): void {
Object.assign(this, data);
super.init(data);
if (this.status == 1) {
this.switch_status = true;
}
......
......@@ -30,10 +30,11 @@ export class TreeNodes {
}
init(treeAttrs: any) {
let nodeType = treeAttrs.rootNode.attrs && treeAttrs.rootNode.attrs.type ? treeAttrs.rootNode.attrs.type : '';
this._rootNode = {
title: treeAttrs.rootNode.title,
key: treeAttrs.rootNode.key,
type: treeAttrs.rootNode.attrs.type,
type: nodeType,
expanded: true,
isLeaf: false
};
......@@ -48,10 +49,11 @@ export class TreeNodes {
let treeNodes: any[] = [];
for (let node of this.request) {
if (node.key != rootNode.key && node.parentKey == rootNode.key) {
let treeNode = { title: node.title, key: node.key, type: node.attrs.type, expanded: false, isLeaf: true };
let nodeType = node.attrs && node.attrs.type ? node.attrs.type : '';
let treeNode = { title: node.title, key: node.key, type: nodeType, expanded: false, isLeaf: true };
this.buildTree(treeNode);
treeNodes.push(treeNode);
console.log(treeNode);
//console.log(treeNode);
rootNode.isLeaf = false;
}
}
......
......@@ -86,6 +86,7 @@ export class AppCasDetailsEditerComponent implements OnInit {
if (this.isEdit) {
this.appsCasDetailsService.get(`${this.id}`).subscribe(res => {
this.form.model.init(res.data);
//console.log(this.form.model);
this.previewImage = this.form.model.iconBase64.toString();
this.fileList = [
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册