资格证图片(最多5张)
@@ -425,7 +446,7 @@ function renderTable(){
+'
| '
+'
'+(start+i+1)+' | '
+'
'+a.unit+' | '
- +'
'+a.point+' | '
+ +'
'+a.point+' | '
+'
'+typeBadge+' | '
+'
'+a.model+' | '
+'
'+a.plate+' | '
@@ -458,6 +479,29 @@ function turnPage(d){
function toggleAll(el){document.querySelectorAll('.row-check').forEach(function(c){c.checked=el.checked;});}
function checkedIds(){return [].slice.call(document.querySelectorAll('.row-check:checked')).map(function(c){return +c.value;});}
+/* ===== 年份选择控件 ===== */
+function pickYear(el){
+ var dp=el.parentElement,input=dp.parentElement.querySelector('input');
+ input.value=el.textContent;
+ dp.querySelectorAll('div').forEach(function(d){d.classList.toggle('selected',d===el);});
+ dp.classList.remove('open');
+}
+document.querySelectorAll('.year-picker>input').forEach(function(inp){
+ inp.addEventListener('click',function(e){
+ e.stopPropagation();
+ var dp=inp.parentElement.querySelector('.year-picker__dropdown');
+ var wasOpen=dp.classList.contains('open');
+ document.querySelectorAll('.year-picker__dropdown.open').forEach(function(d){d.classList.remove('open');});
+ if(!wasOpen){
+ dp.querySelectorAll('div').forEach(function(d){d.classList.toggle('selected',d.textContent===inp.value);});
+ dp.classList.add('open');
+ }
+ });
+});
+document.addEventListener('click',function(){
+ document.querySelectorAll('.year-picker__dropdown.open').forEach(function(d){d.classList.remove('open');});
+});
+
/* ===== 照片占位 ===== */
function renderPhotos(boxId,count){
var html='';
@@ -558,17 +602,19 @@ function openDetail(id){
var a=ambulances.find(function(x){return x.id===id;});
document.getElementById('detailTitle').textContent='救护车详情 · '+a.plate;
function d(k,v,full){return '
'+k+'
'+(v===''||v==null?'—':v)+'
';}
+ function dPhoto(k,tiles){return '
';}
document.getElementById('detailBody').innerHTML=
- '
归属与类型
'
- +'
'+d('所属单位',a.unit)+d('所属医疗点',a.point)+d('救护类型',a.type)+d('车型',a.model)+'
'
+ '
归属信息
'
+ +'
'+d('所属单位',a.unit)+d('所属医疗点',a.point)+'
'
+'
车辆信息
'
- +'
'+d('车牌号',a.plate)+d('年支付费用(万元)',a.fee)+d('所属机构',a.org)+d('开始服务年份',a.year)+d('链接车辆管理系统',a.link)+d('是否安装GPS',a.gps)+'
'
+ +'
'+d('救护类型',a.type)+d('车型',a.model)+d('车牌号',a.plate)+d('所属机构',a.org)+d('开始服务年份',a.year)+d('年支付费用(万元)',a.fee)+d('是否安装GPS',a.gps)+d('链接车辆管理系统',a.link)+'
'
+ +dPhoto('救护车照片','
🚑
🚑
')
+'
覆盖与急救能力
'
+'
'+d('覆盖区域',a.area)+d('覆盖人数',a.people.toLocaleString()+' 人')+d('所配急救设备',a.equip,true)+d('救护能力',a.ability,true)+'
'
- +'
驾驶员
'
+ +'
驾驶员信息
'
+'
'+d('驾驶员姓名',a.driver)+d('联系电话',a.tel)+'
'
- +'
证照与照片
'
- +'
';
+ +dPhoto('驾驶证图片','
🪪
')
+ +dPhoto('资格证图片','
📄
');
document.getElementById('detailMask').classList.add('open');
document.getElementById('detailDrawer').classList.add('open');
}
diff --git a/web-admin/frontline-medical/daily-ambulance-attendance.html b/web-admin/frontline-medical/daily-ambulance-attendance.html
index 0185099..c7de238 100644
--- a/web-admin/frontline-medical/daily-ambulance-attendance.html
+++ b/web-admin/frontline-medical/daily-ambulance-attendance.html
@@ -39,17 +39,7 @@ body{font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei
.sidebar-group.open .sidebar-group__items{display:block;}
.sidebar-item--sub{padding-left:44px;}
.main{margin-left:240px;margin-top:56px;padding:24px;min-height:calc(100vh - 56px);}
-/* 统计卡片 */
-.stat-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:16px;}
-.stat-card{background:#fff;border-radius:var(--radius-md);box-shadow:var(--shadow-sm);padding:18px 20px;display:flex;align-items:center;gap:14px;}
-.stat-card__icon{width:44px;height:44px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0;}
-.stat-card__icon--blue{background:var(--primary-light);}
-.stat-card__icon--green{background:#F6FFED;}
-.stat-card__icon--orange{background:#FFFBE6;}
-.stat-card__icon--red{background:#FFF1F0;}
-.stat-card__label{font-size:var(--font-sm);color:var(--text-secondary);}
-.stat-card__value{font-size:24px;font-weight:600;color:var(--text-primary);line-height:1.3;font-variant-numeric:tabular-nums;}
-.stat-card__extra{font-size:var(--font-xs);color:var(--text-placeholder);}
+/* 筛选栏 */
.filter-bar{background:#fff;padding:16px 24px;display:flex;align-items:center;gap:16px;flex-wrap:wrap;border-radius:var(--radius-md);box-shadow:var(--shadow-sm);}
.filter-item{display:flex;align-items:center;gap:8px;}
.filter-item label{font-size:var(--font-sm);color:var(--text-secondary);white-space:nowrap;}
@@ -158,7 +148,6 @@ select.form-control{background:#fff url("data:image/svg+xml,%3Csvg xmlns='http:/