Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fgqyxxlr
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaru
fgqyxxlr
Commits
33788ecd
Commit
33788ecd
authored
Dec 28, 2018
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ry-ui新增序列号生成方法
parent
3d301780
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
+7
-0
ruoyi-admin/src/main/resources/templates/monitor/online/online.html
+7
-0
ruoyi-admin/src/main/resources/templates/tool/gen/gen.html
+7
-0
No files found.
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
View file @
33788ecd
...
...
@@ -67,6 +67,13 @@
return
{
rows
:
[],
total
:
0
};
}
},
// 序列号生成
serialNumber
:
function
(
index
)
{
var
table
=
$
(
'#bootstrap-table'
).
bootstrapTable
(
'getOptions'
);
var
pageSize
=
table
.
pageSize
;
var
pageNumber
=
table
.
pageNumber
;
return
pageSize
*
(
pageNumber
-
1
)
+
index
+
1
;
},
// 搜索-默认第一个form
search
:
function
(
formId
)
{
var
currentId
=
$
.
common
.
isEmpty
(
formId
)
?
$
(
'form'
).
attr
(
'id'
)
:
formId
;
...
...
ruoyi-admin/src/main/resources/templates/monitor/online/online.html
View file @
33788ecd
...
...
@@ -54,6 +54,13 @@
checkbox
:
true
},
{
title
:
"序号"
,
align
:
"center"
,
formatter
:
function
(
value
,
row
,
index
)
{
return
$
.
table
.
serialNumber
(
index
);
}
},
{
field
:
'sessionId'
,
title
:
'会话编号'
},
...
...
ruoyi-admin/src/main/resources/templates/tool/gen/gen.html
View file @
33788ecd
...
...
@@ -56,6 +56,13 @@
checkbox
:
true
},
{
title
:
"序号"
,
align
:
"center"
,
formatter
:
function
(
value
,
row
,
index
)
{
return
$
.
table
.
serialNumber
(
index
);
}
},
{
field
:
'tableName'
,
title
:
'表名称'
,
width
:
'20%'
,
...
...
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