mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-07 09:28:49 +08:00
应用管理 第三个页签下适配选项保存后无法显示 #I5DWS3
应用管理 第三个页签下适配选项保存后无法显示 #I5DWS3
This commit is contained in:
parent
c8efbe7a58
commit
402b56632d
@ -14,7 +14,6 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import format from 'date-fns/format';
|
import format from 'date-fns/format';
|
||||||
|
|
||||||
import { BaseEntity } from './BaseEntity';
|
import { BaseEntity } from './BaseEntity';
|
||||||
@ -66,6 +65,10 @@ export class Apps extends BaseEntity {
|
|||||||
if (this.status == 1) {
|
if (this.status == 1) {
|
||||||
this.switch_status = true;
|
this.switch_status = true;
|
||||||
}
|
}
|
||||||
|
this.isAdapter = `${data.isAdapter}`;
|
||||||
|
this.isExtendAttr = `${data.isExtendAttr}`;
|
||||||
|
this.logoutType = `${data.logoutType}`;
|
||||||
|
this.visible = `${data.visible}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
override trans(): void {
|
override trans(): void {
|
||||||
|
|||||||
@ -14,7 +14,6 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import format from 'date-fns/format';
|
import format from 'date-fns/format';
|
||||||
|
|
||||||
import { Apps } from './Apps';
|
import { Apps } from './Apps';
|
||||||
@ -32,6 +31,7 @@ export class AppsCasDetails extends Apps {
|
|||||||
|
|
||||||
override init(data: any): void {
|
override init(data: any): void {
|
||||||
Object.assign(this, data);
|
Object.assign(this, data);
|
||||||
|
super.init(data);
|
||||||
if (this.status == 1) {
|
if (this.status == 1) {
|
||||||
this.switch_status = true;
|
this.switch_status = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,7 +14,6 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import format from 'date-fns/format';
|
import format from 'date-fns/format';
|
||||||
|
|
||||||
import { Apps } from './Apps';
|
import { Apps } from './Apps';
|
||||||
@ -26,6 +25,7 @@ export class AppsExtendApiDetails extends Apps {
|
|||||||
|
|
||||||
override init(data: any): void {
|
override init(data: any): void {
|
||||||
Object.assign(this, data);
|
Object.assign(this, data);
|
||||||
|
super.init(data);
|
||||||
if (this.status == 1) {
|
if (this.status == 1) {
|
||||||
this.switch_status = true;
|
this.switch_status = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,7 +14,6 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import format from 'date-fns/format';
|
import format from 'date-fns/format';
|
||||||
|
|
||||||
import { Apps } from './Apps';
|
import { Apps } from './Apps';
|
||||||
@ -32,6 +31,7 @@ export class AppsFormBasedDetails extends Apps {
|
|||||||
|
|
||||||
override init(data: any): void {
|
override init(data: any): void {
|
||||||
Object.assign(this, data);
|
Object.assign(this, data);
|
||||||
|
super.init(data);
|
||||||
if (this.status == 1) {
|
if (this.status == 1) {
|
||||||
this.switch_status = true;
|
this.switch_status = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,7 +14,6 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import format from 'date-fns/format';
|
import format from 'date-fns/format';
|
||||||
|
|
||||||
import { Apps } from './Apps';
|
import { Apps } from './Apps';
|
||||||
@ -40,6 +39,7 @@ export class AppsJwtDetails extends Apps {
|
|||||||
|
|
||||||
override init(data: any): void {
|
override init(data: any): void {
|
||||||
Object.assign(this, data);
|
Object.assign(this, data);
|
||||||
|
super.init(data);
|
||||||
if (this.status == 1) {
|
if (this.status == 1) {
|
||||||
this.switch_status = true;
|
this.switch_status = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,7 +14,6 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import format from 'date-fns/format';
|
import format from 'date-fns/format';
|
||||||
|
|
||||||
import { Apps } from './Apps';
|
import { Apps } from './Apps';
|
||||||
@ -76,7 +75,8 @@ export class AppsOauth20Details extends Apps {
|
|||||||
|
|
||||||
override init(data: any): void {
|
override init(data: any): void {
|
||||||
Object.assign(this, data);
|
Object.assign(this, data);
|
||||||
console.log(data);
|
super.init(data);
|
||||||
|
//console.log(data);
|
||||||
if (this.status == 1) {
|
if (this.status == 1) {
|
||||||
this.switch_status = true;
|
this.switch_status = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,7 +14,6 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import format from 'date-fns/format';
|
import format from 'date-fns/format';
|
||||||
|
|
||||||
import { Apps } from './Apps';
|
import { Apps } from './Apps';
|
||||||
@ -77,6 +76,7 @@ export class AppsSamlDetails extends Apps {
|
|||||||
|
|
||||||
override init(data: any): void {
|
override init(data: any): void {
|
||||||
Object.assign(this, data);
|
Object.assign(this, data);
|
||||||
|
super.init(data);
|
||||||
this.fileType = 'certificate';
|
this.fileType = 'certificate';
|
||||||
this.metaUrl = '';
|
this.metaUrl = '';
|
||||||
if (this.category == null || this.category == '') {
|
if (this.category == null || this.category == '') {
|
||||||
|
|||||||
@ -14,7 +14,6 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import format from 'date-fns/format';
|
import format from 'date-fns/format';
|
||||||
|
|
||||||
import { Apps } from './Apps';
|
import { Apps } from './Apps';
|
||||||
@ -33,6 +32,7 @@ export class AppsTokenBasedDetails extends Apps {
|
|||||||
|
|
||||||
override init(data: any): void {
|
override init(data: any): void {
|
||||||
Object.assign(this, data);
|
Object.assign(this, data);
|
||||||
|
super.init(data);
|
||||||
if (this.status == 1) {
|
if (this.status == 1) {
|
||||||
this.switch_status = true;
|
this.switch_status = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -30,10 +30,11 @@ export class TreeNodes {
|
|||||||
}
|
}
|
||||||
|
|
||||||
init(treeAttrs: any) {
|
init(treeAttrs: any) {
|
||||||
|
let nodeType = treeAttrs.rootNode.attrs && treeAttrs.rootNode.attrs.type ? treeAttrs.rootNode.attrs.type : '';
|
||||||
this._rootNode = {
|
this._rootNode = {
|
||||||
title: treeAttrs.rootNode.title,
|
title: treeAttrs.rootNode.title,
|
||||||
key: treeAttrs.rootNode.key,
|
key: treeAttrs.rootNode.key,
|
||||||
type: treeAttrs.rootNode.attrs.type,
|
type: nodeType,
|
||||||
expanded: true,
|
expanded: true,
|
||||||
isLeaf: false
|
isLeaf: false
|
||||||
};
|
};
|
||||||
@ -48,10 +49,11 @@ export class TreeNodes {
|
|||||||
let treeNodes: any[] = [];
|
let treeNodes: any[] = [];
|
||||||
for (let node of this.request) {
|
for (let node of this.request) {
|
||||||
if (node.key != rootNode.key && node.parentKey == rootNode.key) {
|
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);
|
this.buildTree(treeNode);
|
||||||
treeNodes.push(treeNode);
|
treeNodes.push(treeNode);
|
||||||
console.log(treeNode);
|
//console.log(treeNode);
|
||||||
rootNode.isLeaf = false;
|
rootNode.isLeaf = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,24 +8,22 @@
|
|||||||
<nz-form-item style="width: 100%">
|
<nz-form-item style="width: 100%">
|
||||||
<nz-form-label [nzMd]="8" nzRequired nzFor="id">{{ 'mxk.text.id' | i18n }}</nz-form-label>
|
<nz-form-label [nzMd]="8" nzRequired nzFor="id">{{ 'mxk.text.id' | i18n }}</nz-form-label>
|
||||||
<nz-form-control [nzMd]="16" nzErrorTip="The input is not valid id!">
|
<nz-form-control [nzMd]="16" nzErrorTip="The input is not valid id!">
|
||||||
<input [(ngModel)]="form.model.id" readonly [ngModelOptions]="{ standalone: true }" nz-input name="id" id="id" />
|
<input [(ngModel)]="form.model.id" readonly [ngModelOptions]="{ standalone: true }" nz-input name="id"
|
||||||
|
id="id" />
|
||||||
</nz-form-control>
|
</nz-form-control>
|
||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
<nz-form-item style="width: 100%">
|
<nz-form-item style="width: 100%">
|
||||||
<nz-form-label [nzSm]="8" [nzXs]="24" nzRequired nzFor="secret">{{ 'mxk.apps.secret' | i18n }}</nz-form-label>
|
<nz-form-label [nzSm]="8" [nzXs]="24" nzRequired nzFor="secret">{{ 'mxk.apps.secret' | i18n }}
|
||||||
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48" nzErrorTip="The input is not valid secret!">
|
</nz-form-label>
|
||||||
|
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48"
|
||||||
|
nzErrorTip="The input is not valid secret!">
|
||||||
<nz-input-group nzSearch [nzAddOnAfter]="suffixPasswordButton">
|
<nz-input-group nzSearch [nzAddOnAfter]="suffixPasswordButton">
|
||||||
<input
|
<input [(ngModel)]="form.model.secret" readonly [ngModelOptions]="{ standalone: true }" nz-input
|
||||||
[(ngModel)]="form.model.secret"
|
name="secret" id="secret" />
|
||||||
readonly
|
|
||||||
[ngModelOptions]="{ standalone: true }"
|
|
||||||
nz-input
|
|
||||||
name="secret"
|
|
||||||
id="secret"
|
|
||||||
/>
|
|
||||||
</nz-input-group>
|
</nz-input-group>
|
||||||
<ng-template #suffixPasswordButton>
|
<ng-template #suffixPasswordButton>
|
||||||
<button nz-button nzType="primary" nzSearch (click)="onGenerateSecret($event)">{{ 'mxk.text.generate' | i18n }}</button>
|
<button nz-button nzType="primary" nzSearch (click)="onGenerateSecret($event)">{{ 'mxk.text.generate'
|
||||||
|
| i18n }}</button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</nz-form-control>
|
</nz-form-control>
|
||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
@ -34,43 +32,25 @@
|
|||||||
<nz-form-item>
|
<nz-form-item>
|
||||||
<nz-form-label [nzSm]="8" [nzXs]="24" nzRequired nzFor="icon">{{ 'mxk.apps.icon' | i18n }}</nz-form-label>
|
<nz-form-label [nzSm]="8" [nzXs]="24" nzRequired nzFor="icon">{{ 'mxk.apps.icon' | i18n }}</nz-form-label>
|
||||||
<div nz-col class="clearfix" nzSm="16" nzXs="24">
|
<div nz-col class="clearfix" nzSm="16" nzXs="24">
|
||||||
<nz-upload
|
<nz-upload nzAction="file/upload/" nzListType="picture-card" [(nzFileList)]="fileList" nzName="uploadFile"
|
||||||
nzAction="file/upload/"
|
[nzShowButton]="fileList.length < 1" [nzPreview]="handlePreview" (nzChange)="uploadImageChange($event)">
|
||||||
nzListType="picture-card"
|
|
||||||
[(nzFileList)]="fileList"
|
|
||||||
nzName="uploadFile"
|
|
||||||
[nzShowButton]="fileList.length < 1"
|
|
||||||
[nzPreview]="handlePreview"
|
|
||||||
(nzChange)="uploadImageChange($event)"
|
|
||||||
>
|
|
||||||
<div>
|
<div>
|
||||||
<i nz-icon nzType="plus"></i>
|
<i nz-icon nzType="plus"></i>
|
||||||
<div style="margin-top: 8px">Upload</div>
|
<div style="margin-top: 8px">Upload</div>
|
||||||
</div>
|
</div>
|
||||||
</nz-upload>
|
</nz-upload>
|
||||||
<nz-modal [nzVisible]="previewVisible" [nzContent]="modalContent" [nzFooter]="null" (nzOnCancel)="previewVisible = false">
|
<nz-modal [nzVisible]="previewVisible" [nzContent]="modalContent" [nzFooter]="null"
|
||||||
|
(nzOnCancel)="previewVisible = false">
|
||||||
<ng-template #modalContent>
|
<ng-template #modalContent>
|
||||||
<img [src]="previewImage" [ngStyle]="{ width: '100%' }" />
|
<img [src]="previewImage" [ngStyle]="{ width: '100%' }" />
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</nz-modal>
|
</nz-modal>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<nz-form-control
|
<nz-form-control style="display: none" [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48"
|
||||||
style="display: none"
|
nzErrorTip="The input is not valid icon!">
|
||||||
[nzSm]="16"
|
<input [(ngModel)]="form.model.iconId" disabled="true" [ngModelOptions]="{ standalone: true }" nz-input
|
||||||
[nzMd]="16"
|
name="icon" id="icon" />
|
||||||
[nzXs]="36"
|
|
||||||
[nzXl]="48"
|
|
||||||
nzErrorTip="The input is not valid icon!"
|
|
||||||
>
|
|
||||||
<input
|
|
||||||
[(ngModel)]="form.model.iconId"
|
|
||||||
disabled="true"
|
|
||||||
[ngModelOptions]="{ standalone: true }"
|
|
||||||
nz-input
|
|
||||||
name="icon"
|
|
||||||
id="icon"
|
|
||||||
/>
|
|
||||||
</nz-form-control>
|
</nz-form-control>
|
||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
</div>
|
</div>
|
||||||
@ -78,13 +58,16 @@
|
|||||||
<nz-form-item>
|
<nz-form-item>
|
||||||
<nz-form-label [nzSm]="8" [nzXs]="24" nzRequired nzFor="name">{{ 'mxk.apps.name' | i18n }}</nz-form-label>
|
<nz-form-label [nzSm]="8" [nzXs]="24" nzRequired nzFor="name">{{ 'mxk.apps.name' | i18n }}</nz-form-label>
|
||||||
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48" nzErrorTip="The input is not valid name!">
|
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48" nzErrorTip="The input is not valid name!">
|
||||||
<input [(ngModel)]="form.model.name" [ngModelOptions]="{ standalone: true }" nz-input name="name" id="name" />
|
<input [(ngModel)]="form.model.name" [ngModelOptions]="{ standalone: true }" nz-input name="name"
|
||||||
|
id="name" />
|
||||||
</nz-form-control>
|
</nz-form-control>
|
||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
<nz-form-item>
|
<nz-form-item>
|
||||||
<nz-form-label [nzSm]="8" [nzXs]="24" nzFor="frequently">{{ 'mxk.apps.frequently' | i18n }}</nz-form-label>
|
<nz-form-label [nzSm]="8" [nzXs]="24" nzFor="frequently">{{ 'mxk.apps.frequently' | i18n }}</nz-form-label>
|
||||||
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48" nzErrorTip="The input is not valid frequently!">
|
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48"
|
||||||
<nz-radio-group [(ngModel)]="form.model.frequently" [ngModelOptions]="{ standalone: true }" nzButtonStyle="solid">
|
nzErrorTip="The input is not valid frequently!">
|
||||||
|
<nz-radio-group [(ngModel)]="form.model.frequently" [ngModelOptions]="{ standalone: true }"
|
||||||
|
nzButtonStyle="solid">
|
||||||
<label nz-radio-button nzValue="yes">{{ 'mxk.text.yes' | i18n }}</label>
|
<label nz-radio-button nzValue="yes">{{ 'mxk.text.yes' | i18n }}</label>
|
||||||
<label nz-radio-button nzValue="no">{{ 'mxk.text.no' | i18n }}</label>
|
<label nz-radio-button nzValue="no">{{ 'mxk.text.no' | i18n }}</label>
|
||||||
</nz-radio-group>
|
</nz-radio-group>
|
||||||
@ -93,15 +76,20 @@
|
|||||||
</div>
|
</div>
|
||||||
<div nz-row>
|
<div nz-row>
|
||||||
<nz-form-item>
|
<nz-form-item>
|
||||||
<nz-form-label [nzSm]="8" [nzXs]="24" nzRequired nzFor="protocol">{{ 'mxk.apps.protocol' | i18n }}</nz-form-label>
|
<nz-form-label [nzSm]="8" [nzXs]="24" nzRequired nzFor="protocol">{{ 'mxk.apps.protocol' | i18n }}
|
||||||
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48" nzErrorTip="The input is not valid protocol!">
|
</nz-form-label>
|
||||||
<input [(ngModel)]="form.model.protocol" [ngModelOptions]="{ standalone: true }" nz-input name="protocol" id="protocol" />
|
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48"
|
||||||
|
nzErrorTip="The input is not valid protocol!">
|
||||||
|
<input [(ngModel)]="form.model.protocol" [ngModelOptions]="{ standalone: true }" nz-input name="protocol"
|
||||||
|
id="protocol" />
|
||||||
</nz-form-control>
|
</nz-form-control>
|
||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
<nz-form-item>
|
<nz-form-item>
|
||||||
<nz-form-label [nzSm]="8" [nzXs]="24" nzFor="category">{{ 'mxk.apps.category' | i18n }}</nz-form-label>
|
<nz-form-label [nzSm]="8" [nzXs]="24" nzFor="category">{{ 'mxk.apps.category' | i18n }}</nz-form-label>
|
||||||
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48" nzErrorTip="The input is not valid category!">
|
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48"
|
||||||
<nz-select [(ngModel)]="form.model.category" [ngModelOptions]="{ standalone: true }" name="category" id="category">
|
nzErrorTip="The input is not valid category!">
|
||||||
|
<nz-select [(ngModel)]="form.model.category" [ngModelOptions]="{ standalone: true }" name="category"
|
||||||
|
id="category">
|
||||||
<nz-option nzValue="none" nzLabel="{{ 'mxk.apps.category.none' | i18n }}"></nz-option>
|
<nz-option nzValue="none" nzLabel="{{ 'mxk.apps.category.none' | i18n }}"></nz-option>
|
||||||
<nz-option nzValue="1011" nzLabel="{{ 'mxk.apps.category.1011' | i18n }}"></nz-option>
|
<nz-option nzValue="1011" nzLabel="{{ 'mxk.apps.category.1011' | i18n }}"></nz-option>
|
||||||
<nz-option nzValue="1012" nzLabel="{{ 'mxk.apps.category.1012' | i18n }}"></nz-option>
|
<nz-option nzValue="1012" nzLabel="{{ 'mxk.apps.category.1012' | i18n }}"></nz-option>
|
||||||
@ -136,9 +124,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div nz-row>
|
<div nz-row>
|
||||||
<nz-form-item style="width: 100%">
|
<nz-form-item style="width: 100%">
|
||||||
<nz-form-label [nzSm]="4" [nzXs]="24" nzRequired nzFor="loginUrl">{{ 'mxk.apps.loginUrl' | i18n }}</nz-form-label>
|
<nz-form-label [nzSm]="4" [nzXs]="24" nzRequired nzFor="loginUrl">{{ 'mxk.apps.loginUrl' | i18n }}
|
||||||
<nz-form-control [nzSm]="20" [nzMd]="16" [nzXs]="36" [nzXl]="48" nzErrorTip="The input is not valid loginUrl!">
|
</nz-form-label>
|
||||||
<input [(ngModel)]="form.model.loginUrl" [ngModelOptions]="{ standalone: true }" nz-input name="loginUrl" id="loginUrl" />
|
<nz-form-control [nzSm]="20" [nzMd]="16" [nzXs]="36" [nzXl]="48"
|
||||||
|
nzErrorTip="The input is not valid loginUrl!">
|
||||||
|
<input [(ngModel)]="form.model.loginUrl" [ngModelOptions]="{ standalone: true }" nz-input name="loginUrl"
|
||||||
|
id="loginUrl" />
|
||||||
</nz-form-control>
|
</nz-form-control>
|
||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
</div>
|
</div>
|
||||||
@ -146,31 +137,34 @@
|
|||||||
<nz-tab nzTitle="{{ 'mxk.apps.cas.tab' | i18n }}">
|
<nz-tab nzTitle="{{ 'mxk.apps.cas.tab' | i18n }}">
|
||||||
<div nz-row>
|
<div nz-row>
|
||||||
<nz-form-item style="width: 100%">
|
<nz-form-item style="width: 100%">
|
||||||
<nz-form-label [nzSm]="4" [nzXs]="24" nzRequired nzFor="service">{{ 'mxk.apps.cas.service' | i18n }}</nz-form-label>
|
<nz-form-label [nzSm]="4" [nzXs]="24" nzRequired nzFor="service">{{ 'mxk.apps.cas.service' | i18n }}
|
||||||
<nz-form-control [nzSm]="20" [nzMd]="16" [nzXs]="36" [nzXl]="48" nzErrorTip="The input is not valid service!">
|
</nz-form-label>
|
||||||
<input [(ngModel)]="form.model.service" [ngModelOptions]="{ standalone: true }" nz-input name="service" id="service" />
|
<nz-form-control [nzSm]="20" [nzMd]="16" [nzXs]="36" [nzXl]="48"
|
||||||
|
nzErrorTip="The input is not valid service!">
|
||||||
|
<input [(ngModel)]="form.model.service" [ngModelOptions]="{ standalone: true }" nz-input name="service"
|
||||||
|
id="service" />
|
||||||
</nz-form-control>
|
</nz-form-control>
|
||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
</div>
|
</div>
|
||||||
<div nz-row>
|
<div nz-row>
|
||||||
<nz-form-item style="width: 100%">
|
<nz-form-item style="width: 100%">
|
||||||
<nz-form-label [nzSm]="4" [nzXs]="24" nzRequired nzFor="callbackUrl">{{ 'mxk.apps.cas.callbackUrl' | i18n }}</nz-form-label>
|
<nz-form-label [nzSm]="4" [nzXs]="24" nzRequired nzFor="callbackUrl">{{ 'mxk.apps.cas.callbackUrl' | i18n }}
|
||||||
<nz-form-control [nzSm]="20" [nzMd]="16" [nzXs]="36" [nzXl]="48" nzErrorTip="The input is not valid callbackUrl!">
|
</nz-form-label>
|
||||||
<input
|
<nz-form-control [nzSm]="20" [nzMd]="16" [nzXs]="36" [nzXl]="48"
|
||||||
[(ngModel)]="form.model.callbackUrl"
|
nzErrorTip="The input is not valid callbackUrl!">
|
||||||
[ngModelOptions]="{ standalone: true }"
|
<input [(ngModel)]="form.model.callbackUrl" [ngModelOptions]="{ standalone: true }" nz-input
|
||||||
nz-input
|
name="callbackUrl" id="callbackUrl" />
|
||||||
name="callbackUrl"
|
|
||||||
id="callbackUrl"
|
|
||||||
/>
|
|
||||||
</nz-form-control>
|
</nz-form-control>
|
||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
</div>
|
</div>
|
||||||
<div nz-row>
|
<div nz-row>
|
||||||
<nz-form-item>
|
<nz-form-item>
|
||||||
<nz-form-label [nzSm]="8" [nzXs]="24" nzRequired nzFor="casUser">{{ 'mxk.apps.cas.casUser' | i18n }}</nz-form-label>
|
<nz-form-label [nzSm]="8" [nzXs]="24" nzRequired nzFor="casUser">{{ 'mxk.apps.cas.casUser' | i18n }}
|
||||||
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48" nzErrorTip="The input is not valid casUser!">
|
</nz-form-label>
|
||||||
<nz-select [(ngModel)]="form.model.casUser" [ngModelOptions]="{ standalone: true }" name="category" id="category">
|
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48"
|
||||||
|
nzErrorTip="The input is not valid casUser!">
|
||||||
|
<nz-select [(ngModel)]="form.model.casUser" [ngModelOptions]="{ standalone: true }" name="category"
|
||||||
|
id="category">
|
||||||
<nz-option nzValue="username" nzLabel="{{ 'mxk.users.username' | i18n }}"></nz-option>
|
<nz-option nzValue="username" nzLabel="{{ 'mxk.users.username' | i18n }}"></nz-option>
|
||||||
<nz-option nzValue="employeeNumber" nzLabel="{{ 'mxk.users.employeeNumber' | i18n }}"></nz-option>
|
<nz-option nzValue="employeeNumber" nzLabel="{{ 'mxk.users.employeeNumber' | i18n }}"></nz-option>
|
||||||
<nz-option nzValue="email" nzLabel="{{ 'mxk.users.email' | i18n }}"></nz-option>
|
<nz-option nzValue="email" nzLabel="{{ 'mxk.users.email' | i18n }}"></nz-option>
|
||||||
@ -181,10 +175,13 @@
|
|||||||
</nz-form-control>
|
</nz-form-control>
|
||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
<nz-form-item>
|
<nz-form-item>
|
||||||
<nz-form-label [nzSm]="8" [nzXs]="24" nzRequired nzFor="expires">{{ 'mxk.apps.cas.expires' | i18n }}</nz-form-label>
|
<nz-form-label [nzSm]="8" [nzXs]="24" nzRequired nzFor="expires">{{ 'mxk.apps.cas.expires' | i18n }}
|
||||||
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48" nzErrorTip="The input is not valid expires!">
|
</nz-form-label>
|
||||||
|
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48"
|
||||||
|
nzErrorTip="The input is not valid expires!">
|
||||||
<nz-input-group nzAddOnAfter="{{ 'mxk.text.second' | i18n }}">
|
<nz-input-group nzAddOnAfter="{{ 'mxk.text.second' | i18n }}">
|
||||||
<input [(ngModel)]="form.model.expires" [ngModelOptions]="{ standalone: true }" nz-input name="expires" id="expires" />
|
<input [(ngModel)]="form.model.expires" [ngModelOptions]="{ standalone: true }" nz-input name="expires"
|
||||||
|
id="expires" />
|
||||||
</nz-input-group>
|
</nz-input-group>
|
||||||
</nz-form-control>
|
</nz-form-control>
|
||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
@ -194,14 +191,18 @@
|
|||||||
<div nz-row>
|
<div nz-row>
|
||||||
<nz-form-item>
|
<nz-form-item>
|
||||||
<nz-form-label [nzSm]="8" [nzXs]="24" nzFor="logoutUrl">{{ 'mxk.apps.logoutUrl' | i18n }}</nz-form-label>
|
<nz-form-label [nzSm]="8" [nzXs]="24" nzFor="logoutUrl">{{ 'mxk.apps.logoutUrl' | i18n }}</nz-form-label>
|
||||||
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48" nzErrorTip="The input is not valid logoutUrl!">
|
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48"
|
||||||
<input [(ngModel)]="form.model.logoutUrl" [ngModelOptions]="{ standalone: true }" nz-input name="logoutUrl" id="logoutUrl" />
|
nzErrorTip="The input is not valid logoutUrl!">
|
||||||
|
<input [(ngModel)]="form.model.logoutUrl" [ngModelOptions]="{ standalone: true }" nz-input
|
||||||
|
name="logoutUrl" id="logoutUrl" />
|
||||||
</nz-form-control>
|
</nz-form-control>
|
||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
<nz-form-item>
|
<nz-form-item>
|
||||||
<nz-form-label [nzSm]="8" [nzXs]="24" nzFor="logoutType">{{ 'mxk.apps.logoutType' | i18n }}</nz-form-label>
|
<nz-form-label [nzSm]="8" [nzXs]="24" nzFor="logoutType">{{ 'mxk.apps.logoutType' | i18n }}</nz-form-label>
|
||||||
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48" nzErrorTip="The input is not valid logoutType!">
|
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48"
|
||||||
<nz-select [(ngModel)]="form.model.logoutType" [ngModelOptions]="{ standalone: true }" name="logoutType" id="logoutType">
|
nzErrorTip="The input is not valid logoutType!">
|
||||||
|
<nz-select [(ngModel)]="form.model.logoutType" [ngModelOptions]="{ standalone: true }" name="logoutType"
|
||||||
|
id="logoutType">
|
||||||
<nz-option nzValue="0" nzLabel="{{ 'mxk.apps.logoutType.none' | i18n }}"></nz-option>
|
<nz-option nzValue="0" nzLabel="{{ 'mxk.apps.logoutType.none' | i18n }}"></nz-option>
|
||||||
<nz-option nzValue="1" nzLabel="{{ 'mxk.apps.logoutType.back_channel' | i18n }}"></nz-option>
|
<nz-option nzValue="1" nzLabel="{{ 'mxk.apps.logoutType.back_channel' | i18n }}"></nz-option>
|
||||||
<nz-option nzValue="2" nzLabel="{{ 'mxk.apps.logoutType.front_channel' | i18n }}"></nz-option>
|
<nz-option nzValue="2" nzLabel="{{ 'mxk.apps.logoutType.front_channel' | i18n }}"></nz-option>
|
||||||
@ -213,8 +214,10 @@
|
|||||||
<div nz-row>
|
<div nz-row>
|
||||||
<nz-form-item>
|
<nz-form-item>
|
||||||
<nz-form-label [nzSm]="8" [nzXs]="24" nzFor="visible">{{ 'mxk.apps.visible' | i18n }}</nz-form-label>
|
<nz-form-label [nzSm]="8" [nzXs]="24" nzFor="visible">{{ 'mxk.apps.visible' | i18n }}</nz-form-label>
|
||||||
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48" nzErrorTip="The input is not valid visible!">
|
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48"
|
||||||
<nz-select [(ngModel)]="form.model.visible" [ngModelOptions]="{ standalone: true }" name="visible" id="visible">
|
nzErrorTip="The input is not valid visible!">
|
||||||
|
<nz-select [(ngModel)]="form.model.visible" [ngModelOptions]="{ standalone: true }" name="visible"
|
||||||
|
id="visible">
|
||||||
<nz-option nzValue="0" nzLabel="{{ 'mxk.apps.visible.hidden' | i18n }}"></nz-option>
|
<nz-option nzValue="0" nzLabel="{{ 'mxk.apps.visible.hidden' | i18n }}"></nz-option>
|
||||||
<nz-option nzValue="1" nzLabel="{{ 'mxk.apps.visible.all' | i18n }}"></nz-option>
|
<nz-option nzValue="1" nzLabel="{{ 'mxk.apps.visible.all' | i18n }}"></nz-option>
|
||||||
<nz-option nzValue="2" nzLabel="{{ 'mxk.apps.visible.internet' | i18n }}"></nz-option>
|
<nz-option nzValue="2" nzLabel="{{ 'mxk.apps.visible.internet' | i18n }}"></nz-option>
|
||||||
@ -224,30 +227,38 @@
|
|||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
<nz-form-item>
|
<nz-form-item>
|
||||||
<nz-form-label [nzSm]="8" [nzXs]="24" nzFor="sortIndex">{{ 'mxk.text.sortIndex' | i18n }}</nz-form-label>
|
<nz-form-label [nzSm]="8" [nzXs]="24" nzFor="sortIndex">{{ 'mxk.text.sortIndex' | i18n }}</nz-form-label>
|
||||||
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48" nzErrorTip="The input is not valid sortIndex!">
|
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48"
|
||||||
<input [(ngModel)]="form.model.sortIndex" [ngModelOptions]="{ standalone: true }" nz-input name="sortIndex" id="sortIndex" />
|
nzErrorTip="The input is not valid sortIndex!">
|
||||||
|
<input [(ngModel)]="form.model.sortIndex" [ngModelOptions]="{ standalone: true }" nz-input
|
||||||
|
name="sortIndex" id="sortIndex" />
|
||||||
</nz-form-control>
|
</nz-form-control>
|
||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
</div>
|
</div>
|
||||||
<div nz-row>
|
<div nz-row>
|
||||||
<nz-form-item>
|
<nz-form-item>
|
||||||
<nz-form-label [nzSm]="8" [nzXs]="24" nzFor="vendor">{{ 'mxk.apps.vendor' | i18n }}</nz-form-label>
|
<nz-form-label [nzSm]="8" [nzXs]="24" nzFor="vendor">{{ 'mxk.apps.vendor' | i18n }}</nz-form-label>
|
||||||
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48" nzErrorTip="The input is not valid vendor!">
|
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48"
|
||||||
<input [(ngModel)]="form.model.vendor" [ngModelOptions]="{ standalone: true }" nz-input name="vendor" id="vendor" />
|
nzErrorTip="The input is not valid vendor!">
|
||||||
|
<input [(ngModel)]="form.model.vendor" [ngModelOptions]="{ standalone: true }" nz-input name="vendor"
|
||||||
|
id="vendor" />
|
||||||
</nz-form-control>
|
</nz-form-control>
|
||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
<nz-form-item>
|
<nz-form-item>
|
||||||
<nz-form-label [nzSm]="8" [nzXs]="24" nzFor="vendorUrl">{{ 'mxk.apps.vendor.url' | i18n }}</nz-form-label>
|
<nz-form-label [nzSm]="8" [nzXs]="24" nzFor="vendorUrl">{{ 'mxk.apps.vendor.url' | i18n }}</nz-form-label>
|
||||||
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48" nzErrorTip="The input is not valid vendorUrl!">
|
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48"
|
||||||
<input [(ngModel)]="form.model.vendorUrl" [ngModelOptions]="{ standalone: true }" nz-input name="vendorUrl" id="vendorUrl" />
|
nzErrorTip="The input is not valid vendorUrl!">
|
||||||
|
<input [(ngModel)]="form.model.vendorUrl" [ngModelOptions]="{ standalone: true }" nz-input
|
||||||
|
name="vendorUrl" id="vendorUrl" />
|
||||||
</nz-form-control>
|
</nz-form-control>
|
||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
</div>
|
</div>
|
||||||
<div nz-row>
|
<div nz-row>
|
||||||
<nz-form-item>
|
<nz-form-item>
|
||||||
<nz-form-label [nzSm]="8" [nzXs]="24" nzFor="isAdapter">{{ 'mxk.apps.isAdapter' | i18n }}</nz-form-label>
|
<nz-form-label [nzSm]="8" [nzXs]="24" nzFor="isAdapter">{{ 'mxk.apps.isAdapter' | i18n }}</nz-form-label>
|
||||||
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48" nzErrorTip="The input is not valid isAdapter!">
|
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48"
|
||||||
<nz-select [(ngModel)]="form.model.isAdapter" [ngModelOptions]="{ standalone: true }" name="isAdapter" id="isAdapter">
|
nzErrorTip="The input is not valid isAdapter!">
|
||||||
|
<nz-select [(ngModel)]="form.model.isAdapter" [ngModelOptions]="{ standalone: true }" name="isAdapter"
|
||||||
|
id="isAdapter">
|
||||||
<nz-option nzValue="0" nzLabel="{{ 'mxk.apps.isAdapter.no' | i18n }}"></nz-option>
|
<nz-option nzValue="0" nzLabel="{{ 'mxk.apps.isAdapter.no' | i18n }}"></nz-option>
|
||||||
<nz-option nzValue="1" nzLabel="{{ 'mxk.apps.isAdapter.yes' | i18n }}"></nz-option>
|
<nz-option nzValue="1" nzLabel="{{ 'mxk.apps.isAdapter.yes' | i18n }}"></nz-option>
|
||||||
</nz-select>
|
</nz-select>
|
||||||
@ -255,49 +266,31 @@
|
|||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
<nz-form-item>
|
<nz-form-item>
|
||||||
<nz-form-label [nzSm]="8" [nzXs]="24" nzFor="adapterName">{{ 'mxk.apps.adapter' | i18n }}</nz-form-label>
|
<nz-form-label [nzSm]="8" [nzXs]="24" nzFor="adapterName">{{ 'mxk.apps.adapter' | i18n }}</nz-form-label>
|
||||||
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48" nzErrorTip="The input is not valid adapterName!">
|
<nz-form-control [nzSm]="16" [nzMd]="16" [nzXs]="36" [nzXl]="48"
|
||||||
|
nzErrorTip="The input is not valid adapterName!">
|
||||||
<nz-input-group nzSearch [nzAddOnAfter]="suffixAdapterButton">
|
<nz-input-group nzSearch [nzAddOnAfter]="suffixAdapterButton">
|
||||||
<input
|
<input [(ngModel)]="form.model.adapterName" [ngModelOptions]="{ standalone: true }" nz-input
|
||||||
[(ngModel)]="form.model.adapterName"
|
name="adapterName" id="adapterName" />
|
||||||
[ngModelOptions]="{ standalone: true }"
|
|
||||||
nz-input
|
|
||||||
name="adapterName"
|
|
||||||
id="adapterName"
|
|
||||||
/>
|
|
||||||
</nz-input-group>
|
</nz-input-group>
|
||||||
<ng-template #suffixAdapterButton>
|
<ng-template #suffixAdapterButton>
|
||||||
<button nz-button nzType="primary" nzSearch (click)="onSelectAdapter($event)">{{ 'mxk.text.select' | i18n }}</button>
|
<button nz-button nzType="primary" nzSearch (click)="onSelectAdapter($event)">{{ 'mxk.text.select' |
|
||||||
|
i18n }}</button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<input
|
<input type="hidden" [(ngModel)]="form.model.adapterId" [ngModelOptions]="{ standalone: true }" nz-input
|
||||||
type="hidden"
|
name="adapterId" id="adapterId" />
|
||||||
[(ngModel)]="form.model.adapterId"
|
<input type="hidden" [(ngModel)]="form.model.adapter" [ngModelOptions]="{ standalone: true }" nz-input
|
||||||
[ngModelOptions]="{ standalone: true }"
|
name="adapter" id="adapter" />
|
||||||
nz-input
|
|
||||||
name="adapterId"
|
|
||||||
id="adapterId"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
type="hidden"
|
|
||||||
[(ngModel)]="form.model.adapter"
|
|
||||||
[ngModelOptions]="{ standalone: true }"
|
|
||||||
nz-input
|
|
||||||
name="adapter"
|
|
||||||
id="adapter"
|
|
||||||
/>
|
|
||||||
</nz-form-control>
|
</nz-form-control>
|
||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
</div>
|
</div>
|
||||||
<div nz-row>
|
<div nz-row>
|
||||||
<nz-form-item style="width: 100%">
|
<nz-form-item style="width: 100%">
|
||||||
<nz-form-label [nzSm]="4" [nzXs]="24" nzFor="description">{{ 'mxk.text.description' | i18n }}</nz-form-label>
|
<nz-form-label [nzSm]="4" [nzXs]="24" nzFor="description">{{ 'mxk.text.description' | i18n }}
|
||||||
<nz-form-control [nzSm]="20" [nzMd]="16" [nzXs]="36" [nzXl]="48" nzErrorTip="The input is not valid description!">
|
</nz-form-label>
|
||||||
<input
|
<nz-form-control [nzSm]="20" [nzMd]="16" [nzXs]="36" [nzXl]="48"
|
||||||
[(ngModel)]="form.model.description"
|
nzErrorTip="The input is not valid description!">
|
||||||
[ngModelOptions]="{ standalone: true }"
|
<input [(ngModel)]="form.model.description" [ngModelOptions]="{ standalone: true }" nz-input
|
||||||
nz-input
|
name="description" id="description" />
|
||||||
name="description"
|
|
||||||
id="description"
|
|
||||||
/>
|
|
||||||
</nz-form-control>
|
</nz-form-control>
|
||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -86,6 +86,7 @@ export class AppCasDetailsEditerComponent implements OnInit {
|
|||||||
if (this.isEdit) {
|
if (this.isEdit) {
|
||||||
this.appsCasDetailsService.get(`${this.id}`).subscribe(res => {
|
this.appsCasDetailsService.get(`${this.id}`).subscribe(res => {
|
||||||
this.form.model.init(res.data);
|
this.form.model.init(res.data);
|
||||||
|
//console.log(this.form.model);
|
||||||
this.previewImage = this.form.model.iconBase64.toString();
|
this.previewImage = this.form.model.iconBase64.toString();
|
||||||
this.fileList = [
|
this.fileList = [
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user