Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MaxKey单点登录官方(MaxKeyTop)
MaxKey
提交
ed6ab6cb
MaxKey
项目概览
MaxKey单点登录官方(MaxKeyTop)
/
MaxKey
10 个月 前同步成功
通知
75
Star
3
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
MaxKey
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ed6ab6cb
编写于
10月 08, 2022
作者:
M
MaxKey
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Organization type = 'department',sortIndex = 11
上级
582fbe14
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
9 deletion
+10
-9
maxkey-web-frontend/maxkey-web-mgt-app/src/app/routes/organizations/organization-editer/organization-editer.component.ts
...ions/organization-editer/organization-editer.component.ts
+7
-6
maxkey-web-frontend/maxkey-web-mgt-app/src/app/routes/organizations/organizations.component.ts
...p/src/app/routes/organizations/organizations.component.ts
+3
-3
未找到文件。
maxkey-web-frontend/maxkey-web-mgt-app/src/app/routes/organizations/organization-editer/organization-editer.component.ts
浏览文件 @
ed6ab6cb
...
...
@@ -15,7 +15,7 @@
*/
import
{
I18nPluralPipe
}
from
'
@angular/common
'
;
import
{
LocalizedString
}
from
'
@angular/compiler
'
;
import
{
Component
,
ChangeDetectorRef
,
Input
,
OnInit
,
Inject
,
ViewChild
}
from
'
@angular/core
'
;
import
{
Component
,
ChangeDetectorRef
,
Input
,
OnInit
,
Inject
,
ViewChild
}
from
'
@angular/core
'
;
import
{
FormBuilder
,
FormGroup
,
Validators
}
from
'
@angular/forms
'
;
import
{
I18NService
}
from
'
@core
'
;
import
{
_HttpClient
,
ALAIN_I18N_TOKEN
,
SettingsService
}
from
'
@delon/theme
'
;
...
...
@@ -24,10 +24,10 @@ import { NzI18nService } from 'ng-zorro-antd/i18n';
import
{
NzMessageService
}
from
'
ng-zorro-antd/message
'
;
import
{
NzModalRef
,
NzModalService
}
from
'
ng-zorro-antd/modal
'
;
import
{
NzFormatEmitEvent
,
NzTreeNode
,
NzTreeNodeOptions
}
from
'
ng-zorro-antd/tree
'
;
import
{
NzTreeSelectComponent
}
from
'
ng-zorro-antd/tree-select
'
;
import
{
Organizations
}
from
'
../../../entity/Organizations
'
;
import
{
OrganizationsService
}
from
'
../../../service/organizations.service
'
;
import
{
NzTreeSelectComponent
}
from
"
ng-zorro-antd/tree-select
"
;
@
Component
({
selector
:
'
app-organization-editer
'
,
...
...
@@ -47,7 +47,7 @@ export class OrganizationEditerComponent implements OnInit {
@
Input
()
parentNode
?:
NzTreeNode
;
@
Input
()
isEdit
?:
boolean
;
@
Input
()
orgNodes
!
:
any
[];
@
ViewChild
(
"
orgTree
"
)
orgTree
!
:
NzTreeSelectComponent
;
@
ViewChild
(
'
orgTree
'
)
orgTree
!
:
NzTreeSelectComponent
;
form
:
{
submitting
:
boolean
;
model
:
Organizations
;
...
...
@@ -74,7 +74,8 @@ export class OrganizationEditerComponent implements OnInit {
this
.
cdr
.
detectChanges
();
});
}
else
{
this
.
form
.
model
.
type
=
'
entity
'
;
this
.
form
.
model
.
type
=
'
department
'
;
this
.
form
.
model
.
sortIndex
=
11
;
if
(
this
.
parentNode
)
{
this
.
form
.
model
.
parentId
=
this
.
parentNode
?.
key
;
this
.
form
.
model
.
parentName
=
this
.
parentNode
?.
title
;
...
...
@@ -84,8 +85,8 @@ export class OrganizationEditerComponent implements OnInit {
}
onDeptChange
(
key
:
string
):
void
{
let
node
=
this
.
orgTree
.
getTreeNodeByKey
(
key
);
if
(
node
){
this
.
form
.
model
.
parentName
=
node
.
title
if
(
node
)
{
this
.
form
.
model
.
parentName
=
node
.
title
;
}
}
onClose
(
e
:
MouseEvent
):
void
{
...
...
maxkey-web-frontend/maxkey-web-mgt-app/src/app/routes/organizations/organizations.component.ts
浏览文件 @
ed6ab6cb
...
...
@@ -171,7 +171,7 @@ export class OrganizationsComponent implements OnInit {
modal
.
afterClose
.
subscribe
(
result
=>
{
if
(
result
.
refresh
)
{
this
.
fetch
();
this
.
tree
()
this
.
tree
()
;
}
});
}
...
...
@@ -193,7 +193,7 @@ export class OrganizationsComponent implements OnInit {
modal
.
afterClose
.
subscribe
(
result
=>
{
if
(
result
.
refresh
)
{
this
.
fetch
();
this
.
tree
()
this
.
tree
()
;
}
});
}
...
...
@@ -204,7 +204,7 @@ export class OrganizationsComponent implements OnInit {
if
(
res
.
code
==
0
)
{
this
.
msg
.
success
(
this
.
i18n
.
fanyi
(
'
mxk.alert.delete.success
'
));
this
.
fetch
();
this
.
tree
()
this
.
tree
()
;
}
else
{
this
.
msg
.
error
(
this
.
i18n
.
fanyi
(
'
mxk.alert.delete.error
'
));
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录