|
|
@@ -123,25 +123,12 @@
|
|
|
border-radius: 4px;
|
|
|
box-shadow: 0 18px 55px rgba(20, 28, 38, .28);
|
|
|
}
|
|
|
- .drill-head {
|
|
|
+ .drill-foot {
|
|
|
display: flex;
|
|
|
- align-items: flex-start;
|
|
|
- justify-content: space-between;
|
|
|
- gap: 16px;
|
|
|
- padding: 13px 16px 12px;
|
|
|
+ justify-content: flex-end;
|
|
|
+ padding: 10px 16px;
|
|
|
background: #f7f8fa;
|
|
|
- border-bottom: 1px solid #e5e7eb;
|
|
|
- }
|
|
|
- .drill-title {
|
|
|
- margin: 0;
|
|
|
- font-size: 18px;
|
|
|
- line-height: 1.4;
|
|
|
- }
|
|
|
- .drill-breadcrumb {
|
|
|
- margin-top: 6px;
|
|
|
- color: #777;
|
|
|
- font-size: 12px;
|
|
|
- line-height: 1.5;
|
|
|
+ border-top: 1px solid #e5e7eb;
|
|
|
}
|
|
|
.drill-actions {
|
|
|
display: flex;
|
|
|
@@ -169,8 +156,8 @@
|
|
|
.drill-body {
|
|
|
overflow: auto;
|
|
|
flex: 1 1 auto;
|
|
|
- min-height: 220px;
|
|
|
- max-height: calc(100vh - 150px);
|
|
|
+ min-height: 120px;
|
|
|
+ max-height: calc(100vh - 106px);
|
|
|
padding: 14px 16px 18px;
|
|
|
background: #fff;
|
|
|
}
|
|
|
@@ -350,17 +337,13 @@
|
|
|
|
|
|
<div class="drill-mask" id="drillMask">
|
|
|
<aside class="drill-panel" role="dialog" aria-modal="true">
|
|
|
- <div class="drill-head">
|
|
|
- <div>
|
|
|
- <h2 class="drill-title" id="drillTitle">明细</h2>
|
|
|
- <div class="drill-breadcrumb" id="drillBreadcrumb"></div>
|
|
|
- </div>
|
|
|
+ <div class="drill-body" id="drillBody"></div>
|
|
|
+ <div class="drill-foot">
|
|
|
<div class="drill-actions">
|
|
|
<button type="button" id="drillBackButton">返回上一层</button>
|
|
|
<button type="button" id="drillCloseButton">关闭</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="drill-body" id="drillBody"></div>
|
|
|
</aside>
|
|
|
</div>
|
|
|
|
|
|
@@ -384,8 +367,6 @@
|
|
|
const starFilter = document.getElementById("starFilter");
|
|
|
const monthFilter = document.getElementById("monthFilter");
|
|
|
const drillMask = document.getElementById("drillMask");
|
|
|
- const drillTitle = document.getElementById("drillTitle");
|
|
|
- const drillBreadcrumb = document.getElementById("drillBreadcrumb");
|
|
|
const drillBody = document.getElementById("drillBody");
|
|
|
const drillBackButton = document.getElementById("drillBackButton");
|
|
|
const drillCloseButton = document.getElementById("drillCloseButton");
|
|
|
@@ -591,11 +572,7 @@
|
|
|
return result.ssData;
|
|
|
}
|
|
|
|
|
|
- function setDrillLoading(title) {
|
|
|
- drillTitle.textContent = title || "明细";
|
|
|
- drillBreadcrumb.textContent = report
|
|
|
- ? (report.month + " 星级班报表")
|
|
|
- : "";
|
|
|
+ function setDrillLoading() {
|
|
|
drillBody.innerHTML = '<div class="drill-loading">加载中...</div>';
|
|
|
drillMask.classList.add("open");
|
|
|
drillBackButton.disabled = drillHistory.length === 0;
|
|
|
@@ -637,8 +614,6 @@
|
|
|
}
|
|
|
|
|
|
function renderList(title, breadcrumb, listRows, emptyText, updateState) {
|
|
|
- drillTitle.textContent = title;
|
|
|
- drillBreadcrumb.textContent = breadcrumb || "";
|
|
|
drillBackButton.disabled = drillHistory.length === 0;
|
|
|
drillBody.innerHTML = "";
|
|
|
if (!listRows.length) {
|
|
|
@@ -857,9 +832,6 @@
|
|
|
function renderTrace(data, updateState) {
|
|
|
const record = data.record || {};
|
|
|
const items = Array.isArray(data.items) ? data.items : [];
|
|
|
- drillTitle.textContent = data.title || "明细详情";
|
|
|
- drillBreadcrumb.textContent = (data.bjmc || "")
|
|
|
- + (report ? " / " + report.month : "");
|
|
|
drillBackButton.disabled = drillHistory.length === 0;
|
|
|
drillBody.innerHTML = "";
|
|
|
|