diff --git a/api/renyuan.js b/api/renyuan.js index 2eb4f44..375690d 100644 --- a/api/renyuan.js +++ b/api/renyuan.js @@ -90,6 +90,14 @@ export function cxcRyDatAstatistics(parm) { // 员工分组统计 }) } +export function cxcRyDatAstatisticsCertificate(parm) { // 员工按证件分组统计 + return https({ + url: '/cxc_rlzy.zb/cxcRlzyZb/getStatisticsCertificate', + method: 'get', + data: parm + }) +} + export function cxcRyDatAstatisticsDetails(parm) { // 员工信息统计 return https({ url: '/cxc_rlzy.zb/cxcRlzyZb/details', diff --git a/pages/views/renliziyuan/renyuanxinxi/detail.vue b/pages/views/renliziyuan/renyuanxinxi/detail.vue index d399ae9..d223072 100644 --- a/pages/views/renliziyuan/renyuanxinxi/detail.vue +++ b/pages/views/renliziyuan/renyuanxinxi/detail.vue @@ -28,16 +28,16 @@ - + {{index+1}} - + {{item.nf}} - + {{item.khcj+"---"+item.khcj_dictText}} @@ -69,20 +69,20 @@ - + {{item.kssj}} - + {{item.jssj}} - + {{item.jlms}} - + {{item.jlms2}} @@ -125,30 +125,30 @@ - + {{item.xllb}} - + {{item.byyx}} - + {{item.sxzy}} - + {{item.qdxl}} - + {{item.qdxw}} - + {{item.bytime}} @@ -185,25 +185,25 @@ - + {{item.zjmc}} - + {{item.zsdj}} - + {{item.fzrq}} - + {{item.fssj}} - + {{item.bz}} @@ -241,25 +241,25 @@ - + {{item.ybrgx}} - + {{item.gxname}} - + {{item.cstime}} - + {{item.cyzzmm}} - + {{item.cygzdw}} @@ -403,123 +403,146 @@ } } + + // adjustFontSize() }).catch((err) => { console.log(err); }) } + + function getJbxx() { cellData.value.push({ "title": "姓名", "value": renyuanData.value.xm, "titleSpan": 3, - "valueSpan": 3 + "valueSpan": 3, + "class": "dataStyle" }) cellData.value.push({ "title": "性别", "value": renyuanData.value.xb_dictText, "titleSpan": 3, - "valueSpan": 4 + "valueSpan": 4, + "class": "dataStyle" }) cellData.value.push({ "title": "出生年月", "value": renyuanData.value.cssj, "titleSpan": 4, - "valueSpan": 4 + "valueSpan": 4, + "class": "dataStyle" }) cellData.value.push({ "title": "民族", "value": renyuanData.value.mz, "titleSpan": 3, - "valueSpan": 3 + "valueSpan": 3, + "class": "dataStyle" }) cellData.value.push({ "title": "籍贯", "value": renyuanData.value.jg, "titleSpan": 3, - "valueSpan": 5 + "valueSpan": 5, + "class": "dataStyle" }) cellData.value.push({ "title": "出生地", "value": renyuanData.value.csd, "titleSpan": 3, - "valueSpan": 4 + "valueSpan": 4, + "class": "dataStyle" }) cellData.value.push({ "title": "工作时间", "value": renyuanData.value.cjgzsj, "titleSpan": 4, - "valueSpan": 5 + "valueSpan": 5, + "class": "dataStyle" }) cellData.value.push({ "title": "政治面貌", - "value": renyuanData.value.zzmm + renyuanData.value.jrsj, + "value": renyuanData.value.zzmm === "群众" ? renyuanData.value.zzmm : renyuanData.value.zzmm + + renyuanData.value.jrsj, "titleSpan": 4, - "valueSpan": 4 + "valueSpan": 4, + "class": "dataStyle1" }) cellData.value.push({ "title": "现专业", "value": "", "titleSpan": 3, - "valueSpan": 8 + "valueSpan": 8, + "class": "dataStyle" }) cellData.value.push({ "title": "用工形式", "value": renyuanData.value.rylb1_dictText, "titleSpan": 4, - "valueSpan": 5 + "valueSpan": 5, + "class": "dataStyle" }) cellData.value.push({ "title": "健康状况", "value": "", "titleSpan": 4, - "valueSpan": 4 + "valueSpan": 4, + "class": "dataStyle" }) cellData.value.push({ "title": "所在单位", "value": renyuanData.value.orgCode_dictText, "titleSpan": 4, - "valueSpan": 6 + "valueSpan": 6, + "class": "dataStyle" }) cellData.value.push({ "title": "专业技术资格", - "value": gbxxList.value.zc + gbxxList.value.zcsj, + "value": gbxxList.value.zc === 0 ? "/" : gbxxList.value.zc + gbxxList.value.zcsj, "titleSpan": 5, - "valueSpan": 7 + "valueSpan": 7, + "class": "dataStyle1" }) cellData.value.push({ "title": "职业资格等级", - "value": zyzgdjList.value.ztgz + zyzgdjList.value.ztgzdj, + "value": zyzgdjList.value.ztgz === "0" ? "/" : zyzgdjList.value.ztgz + zyzgdjList.value.ztgzdj, "titleSpan": 5, - "valueSpan": 7 + "valueSpan": 7, + "class": "dataStyle" }) cellData.value.push({ "title": "", "value": "", "titleSpan": 0, - "valueSpan": 0 + "valueSpan": 0, + "class": "dataStyle" }) cellData.value.push({ "title": "职务(岗位)", "value": gbxxList.value.zw, "titleSpan": 5, - "valueSpan": 7 + "valueSpan": 7, + "class": "dataStyle" }) cellData.value.push({ "title": "职位级别", "value": gbxxList.value.zwcj, "titleSpan": 5, - "valueSpan": 7 + "valueSpan": 7, + "class": "dataStyle" }) cellData.value.push({ "title": "", "value": "", "titleSpan": 0, - "valueSpan": 0 + "valueSpan": 0, + "class": "dataStyle" }) } @@ -553,22 +576,20 @@ .titleStyle { font-size: 12px; color: #747474; - line-height: 50px; - height: 50px; + line-height: 35px; + height: 35px; background: #F2F9FC; text-align: center; vertical-align: middle; border-left: 1px solid #919191; border-bottom: 1px solid #919191; ; + ; } /* 内容样式 */ .dataStyle { - max-font-size: 14px; - /* 最大字体限制 */ - min-font-size: 10px; - /* 最小字体限制 */ + font-size: 14px; color: #00007f; line-height: 25px; @@ -583,4 +604,42 @@ overflow-wrap: break-word; } + + + /* 内容样式 */ + .dataStyle1 { + max-font-size: 14px; + /* 最大字体限制 */ + min-font-size: 10px; + /* 最小字体限制 */ + font-size: 14px; + color: #00007f; + line-height: 30px; + height: 30px; + font-weight: 500; + text-align: center; + vertical-align: middle; + border-bottom: 1px solid #919191; + border-left: 1px solid #919191; + text-align: center; + word-wrap: break-word; + overflow-wrap: break-word; + + } + + /* 内容样式 */ + .dataStyle2 { + font-size: 12px; + color: #00007f; + line-height: 15px; + height: 30px; + font-weight: 500; + text-align: center; + vertical-align: middle; + border-bottom: 1px solid #919191; + border-left: 1px solid #919191; + text-align: center; + word-wrap: break-word; + overflow-wrap: break-word; + } \ No newline at end of file diff --git a/pages/views/renliziyuan/renyuanxinxi/qttongji.vue b/pages/views/renliziyuan/renyuanxinxi/qttongji.vue index b391d50..b07f190 100644 --- a/pages/views/renliziyuan/renyuanxinxi/qttongji.vue +++ b/pages/views/renliziyuan/renyuanxinxi/qttongji.vue @@ -5,14 +5,16 @@ - + - + @@ -24,7 +26,8 @@ - + @@ -82,201 +85,219 @@ + .titleStyle { + font-size: 12px; + color: #747474; + line-height: 30px; + height: 30px; + background: #f2f9fc; + text-align: center; + vertical-align: middle; + border-left: 1px solid #919191; + border-bottom: 1px solid #919191; + } + + /* 内容样式 */ + .dataStyle { + max-font-size: 14px; + /* 最大字体限制 */ + min-font-size: 10px; + /* 最小字体限制 */ + font-size: 12px; + color: #00007f; + line-height: 30px; + height: 30px; + font-weight: 500; + text-align: center; + vertical-align: middle; + border-bottom: 1px solid #919191; + border-left: 1px solid #919191; + text-overflow: ellipsis; + } + + /* 滚动区域 */ + scroll-view { + background: #ffffff; + border-radius: 0 0 16rpx 16rpx; + box-shadow: 0 8rpx 24rpx rgba(0, 35, 111, 0.08); + } + + /* 输入框聚焦效果 */ + .trq-depart-select:focus-within { + box-shadow: 0 0 0 4rpx rgba(64, 158, 255, 0.2); + border-color: var(--primary-blue); + } + + /* 加载动画优化 */ + @keyframes fadeIn { + from { + opacity: 0; + transform: translateY(20rpx); + } + + to { + opacity: 1; + transform: translateY(0); + } + } + + .container>* { + animation: fadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1); + } + + /* 自定义滚动条美化 */ + ::-webkit-scrollbar { + width: 8rpx; + background: rgba(64, 158, 255, 0.05); + } + + ::-webkit-scrollbar-thumb { + background: linear-gradient(45deg, var(--primary-blue), var(--deep-blue)); + border-radius: 12rpx; + border: 2rpx solid white; + } + + /* 筛选行间距优化 */ + .filter-row { + margin: 30rpx 0; + padding: 20rpx 0; + border-radius: 16rpx; + } + + /* 响应式调整优化 */ + @media (max-width: 768px) { + .chart-container { + height: 250px; + border-radius: 20rpx; + } + } + + /* 数据行高亮效果 */ + .data-row:nth-child(even) { + background: rgba(236, 245, 255, 0.3); + } + + .data-row:hover { + box-shadow: 0 4rpx 12rpx rgba(64, 158, 255, 0.1); + } + \ No newline at end of file diff --git a/uni_modules/yjly-row-cell/components/yjly-row-cell/yjly-row-cell.vue b/uni_modules/yjly-row-cell/components/yjly-row-cell/yjly-row-cell.vue index 35e4e17..61652c2 100644 --- a/uni_modules/yjly-row-cell/components/yjly-row-cell/yjly-row-cell.vue +++ b/uni_modules/yjly-row-cell/components/yjly-row-cell/yjly-row-cell.vue @@ -7,7 +7,7 @@ - + {{ doEmptyString(item.value) }} @@ -77,8 +77,8 @@ .titleStyle { font-size: 12px; color: #747474; - line-height: 50px; - height: 50px; + line-height: 30px; + height: 30px; background: #F2F9FC; text-align: center; vertical-align: middle; @@ -90,14 +90,26 @@ /* 内容样式 */ .dataStyle { - max-font-size: 14px; - /* 最大字体限制 */ - min-font-size: 10px; - /* 最小字体限制 */ + font-size: 14px; color: #00007f; - line-height: 25px; - height: 50px; + line-height: 35px; + height: 30px; + font-weight: 500; + text-align: center; + vertical-align: middle; + border-bottom: 1px solid #919191; + text-overflow: ellipsis; + overflow: hidden; + } + + /* 内容样式 */ + .dataStyle1 { + + font-size: 12px; + color: #00007f; + line-height: 15px; + height: 30px; font-weight: 500; text-align: center; vertical-align: middle;