Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
usermgt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Qiu Chuntao
usermgt
Commits
ddc4246e
Commit
ddc4246e
authored
4 years ago
by
Qiu Chuntao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimize the code
parent
b921bf2b
Pipeline
#11844
failed with stage
in 1 minute and 19 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
sysusermgt.cpp
src/class/plugin/sysusermgt/sysusermgt.cpp
+2
-2
module.conf
...dule/MODULELIST/user-management-custom-module/module.conf
+2
-2
module.conf
...T/user-management-module-configuration-module/module.conf
+1
-1
No files found.
src/class/plugin/sysusermgt/sysusermgt.cpp
View file @
ddc4246e
...
...
@@ -276,7 +276,7 @@ void SysUserMgt::refresh(bool iResetPage)
{
TSqlSelectorV2
selector
;
if
(
!
mTableConf
.
dbSql
.
isEmpty
())
{
selector
.
setTable
(
mTableConf
.
dbSql
);
selector
.
setTable
(
QString
(
"(%1) as USERTB"
).
arg
(
mTableConf
.
dbSql
)
);
}
else
if
(
!
mTableConf
.
dbTableName
.
isEmpty
())
{
selector
.
setTable
(
mTableConf
.
dbTableName
);
}
else
{
...
...
@@ -328,7 +328,7 @@ void SysUserMgt::refreshDetail(const QString &iUid)
}
else
{
TSqlSelectorV2
selector
;
if
(
!
mTableConf
.
dbSql
.
isEmpty
())
{
selector
.
setTable
(
mTableConf
.
dbSql
);
selector
.
setTable
(
QString
(
"(%1) as USERTB"
).
arg
(
mTableConf
.
dbSql
)
);
}
else
if
(
!
mTableConf
.
dbTableName
.
isEmpty
())
{
selector
.
setTable
(
mTableConf
.
dbTableName
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
src/module/MODULELIST/user-management-custom-module/module.conf
View file @
ddc4246e
...
...
@@ -53,7 +53,7 @@ view {
"search"
:
"string"
},
{
"name"
:
"
S
tatus"
,
"name"
:
"
s
tatus"
,
"display"
:
"Status"
,
"displayRole"
:
"$status.text"
,
"size"
:
100
,
...
...
@@ -80,6 +80,6 @@ view {
# 数据库表名
db_table_name
:
"sys_user"
db_filter
:
""
db_sql
:
"
(SELECT * FROM sys_user) AS usertb
"
db_sql
:
"
SELECT * FROM sys_user
"
}
}
This diff is collapsed.
Click to expand it.
src/module/MODULELIST/user-management-module-configuration-module/module.conf
View file @
ddc4246e
...
...
@@ -32,7 +32,7 @@ default_value : {
# 主表格
view
{
# 数据项, 默认包含表头中配置的数据项
data_keys
: [
"id"
,
"username"
,
"fullname"
,
"
s
tatus"
,
"attr_data"
]
data_keys
: [
"id"
,
"username"
,
"fullname"
,
"
S
tatus"
,
"attr_data"
]
# 主键
primary_key
:
"id"
# 水平表头
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment