Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
buildbank-replica
Project
Project
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
姚珂
buildbank-replica
Commits
00b2260a
Commit
00b2260a
authored
May 05, 2026
by
饶来安
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
e7d0a00d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
384 additions
and
13 deletions
+384
-13
account_detail-long.html
account_detail-long.html
+8
-0
account_detail.html
account_detail.html
+8
-0
account_list.html
account_list.html
+48
-3
async_detail_list.html
async_detail_list.html
+320
-10
No files found.
account_detail-long.html
View file @
00b2260a
...
...
@@ -505,6 +505,14 @@
'input[name="quickDate"]:checked'
,
);
checkedQuickDate
&&
(
checkedQuickDate
.
checked
=
false
);
return
;
}
if
(
dateId
===
"dateFrom"
)
{
startDate
=
startDate
;
document
.
getElementById
(
dateId
).
value
=
startDate
;
}
else
{
endDate
=
endDate
;
document
.
getElementById
(
dateId
).
value
=
endDate
;
}
};
...
...
account_detail.html
View file @
00b2260a
...
...
@@ -541,6 +541,14 @@
'input[name="quickDate"]:checked'
,
);
checkedQuickDate
&&
(
checkedQuickDate
.
checked
=
false
);
return
;
}
if
(
dateId
===
"dateFrom"
)
{
startDate
=
startDate
;
document
.
getElementById
(
dateId
).
value
=
startDate
;
}
else
{
endDate
=
endDate
;
document
.
getElementById
(
dateId
).
value
=
endDate
;
}
};
...
...
account_list.html
View file @
00b2260a
...
...
@@ -756,7 +756,7 @@
</div>
</div>
</th>
<th
style=
"width:
95
px;"
>
<th
style=
"width:
81
px;"
>
<div
class=
"xflex"
>
<span>
备注
</span>
<div
class=
"jiantou"
>
...
...
@@ -837,7 +837,7 @@
<!-- 工具栏 -->
<div
class=
"toolbar2"
>
<div
class=
"toolbar-left"
>
<label><input
type=
"checkbox"
>
全选
</label>
<label><input
type=
"checkbox"
id=
"all_1"
onclick=
"selectAll(1);"
>
全选
</label>
<span>
本次查询时间:20250901-20260428
</span>
</div>
<div
id=
"rightType"
>
...
...
@@ -985,7 +985,7 @@
const
moreTds
=
more
?
`<td>222</td><td>222</td><td>222</td><td>222</td><td>222</td>`
:
''
;
tr
.
innerHTML
=
`
<td class="center col-select"><input type="checkbox"></td>
<td class="center col-select"><input type="checkbox"
class="row-checkbox"
></td>
<td class="center">
${
r
.
tradeTime
?.
replaceAll
(
'-'
,
''
)}
<
/td
>
<
td
class
=
"num"
>
$
{
fmtAmt
(
r
.
debit
)}
<
/td
>
<
td
class
=
"num"
>
$
{
fmtAmt
(
r
.
credit
)}
<
/td
>
...
...
@@ -1014,10 +1014,55 @@
CURRENT_RANGE.from = v.dateFrom;
CURRENT_RANGE.to = v.dateTo;
// document.getElementById('resultArea').style.display = '';
console.log('查询结果:', rows);
render(rows);
// document.getElementById('resultArea').scrollIntoView({ behavior: 'smooth', block: 'start' });
}
// 获取所有行 checkbox
function getRowCheckboxes() {
return document.querySelectorAll('.row-checkbox');
}
// 全选 / 取消全选
function selectAll() {
var isChecked = document.getElementById('all_1').checked;
document.getElementById('all_1').checked = isChecked;
var checkboxes = getRowCheckboxes();
checkboxes.forEach(function(item) {
item.checked = isChecked;
});
}
// 反选
function invertSelection() {
var checkboxes = getRowCheckboxes();
checkboxes.forEach(function(item) {
item.checked = !item.checked;
});
updateSelectAllStatus();
}
// 单个点击时,联动“全选”
function updateSelectAllStatus() {
var checkboxes = getRowCheckboxes();
var allCheckboxs = document.getElementById('all_1');
var allChecked = true;
checkboxes.forEach(function(item) {
if (!item.checked) {
allChecked = false;
}
});
allCheckboxs.checked = allChecked;
}
// 给每个子 checkbox 绑定事件(页面加载后执行)
document.addEventListener('DOMContentLoaded', function() {
var checkboxes = getRowCheckboxes();
checkboxes.forEach(function(item) {
item.addEventListener('change', updateSelectAllStatus);
});
});
function lookmore() {
const ths = document.querySelectorAll('.thmore');
ths.forEach(th => {
...
...
async_detail_list.html
View file @
00b2260a
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