@@ -68,14 +68,14 @@
{{data.userName}} |
{{data.loginName}} |
{{data.telephone}} |
- {{data.status | sysAccountStatus}} |
+ {{data.status | dictionary: 'SEC_USER_STATUS'}} |
{{data.createTime | date: 'yyyy-MM-dd HH:mm'}} |
{{data.updateTime | date: 'yyyy-MM-dd HH:mm'}} |
-
+ |
修改
- 更多操作
+ 更多
diff --git a/src/app/pages/account/sys-account/sys-account.component.less b/src/app/pages/account/sys-account/sys-account.component.less
index c26355e..cae9ae7 100644
--- a/src/app/pages/account/sys-account/sys-account.component.less
+++ b/src/app/pages/account/sys-account/sys-account.component.less
@@ -2,7 +2,7 @@
overflow: visible;
}
button {
- margin-left: 8px;
+ margin-right: 8px;
}
.search-area {
text-align: left;
diff --git a/src/app/pages/account/sys-account/sys-account.component.ts b/src/app/pages/account/sys-account/sys-account.component.ts
index 1183cbe..1fb178c 100644
--- a/src/app/pages/account/sys-account/sys-account.component.ts
+++ b/src/app/pages/account/sys-account/sys-account.component.ts
@@ -21,8 +21,9 @@ import {NzTreeComponent} from "ng-zorro-antd/tree";
import {NzOptionComponent, NzSelectComponent} from "ng-zorro-antd/select";
import {NzDropDownModule} from "ng-zorro-antd/dropdown";
import {NzIconDirective} from "ng-zorro-antd/icon";
-import {SysAccountStatusPipe} from "../../../pipes/account/sys-account-status.pipe";
import {RoleService} from "../../../servies/role/role.service";
+import {DictionaryPipe} from "../../../pipes/common/dictionary.pipe";
+import {Dictionary} from "../../../data/common/dictionary.namespace";
@Component({
selector: 'app-sys-account',
@@ -56,7 +57,7 @@ import {RoleService} from "../../../servies/role/role.service";
NzOptionComponent,
NzDropDownModule,
NzIconDirective,
- SysAccountStatusPipe,
+ DictionaryPipe,
],
templateUrl: './sys-account.component.html',
styleUrl: './sys-account.component.less'
@@ -69,6 +70,7 @@ export class SysAccountComponent {
total: 0,
list: [],
};
+ accountStatus: Dictionary[] = []
// 角色数据
roleData: any = [];
// 搜索表单
@@ -101,6 +103,7 @@ export class SysAccountComponent {
telephone: [''],
roleId: ['', [Validators.required]],
});
+ this.accountStatus = new DictionaryPipe().getDictionaryList("SEC_USER_STATUS");
this.queryAllRole();
this.queryData();
}
@@ -122,6 +125,7 @@ export class SysAccountComponent {
queryData() {
this.searchForm.value.pageNum = this.tablePageNum;
this.searchForm.value.pageSize = 10;
+ this.searchForm.value.objectType = 1;
this.searchForm.value.time = new Date().getTime();
this.sysAccountService.queryList(this.searchForm.value, (data: any) => {
if (data['return_code'] == '000000') {
diff --git a/src/app/pages/account/sys-role/sys-role.component.html b/src/app/pages/account/sys-role/sys-role.component.html
index 93f20c7..5878c10 100644
--- a/src/app/pages/account/sys-role/sys-role.component.html
+++ b/src/app/pages/account/sys-role/sys-role.component.html
@@ -1,15 +1,15 @@
- |