sun-biz 0.0.2-beta.27 → 0.0.2-beta.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.js +80 -40
- package/dist/index.js +80 -40
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -2510,42 +2510,56 @@ const BANNER_COMPONENT_CONFIG = {
|
|
|
2510
2510
|
}
|
|
2511
2511
|
};
|
|
2512
2512
|
const BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_1 = {
|
|
2513
|
-
class: "
|
|
2513
|
+
class: "mr-4 flex min-w-48 items-start justify-start border-r border-[#C9C9C9] pr-4"
|
|
2514
2514
|
};
|
|
2515
2515
|
const BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_2 = {
|
|
2516
|
-
class: "
|
|
2516
|
+
class: "ml-[17px]"
|
|
2517
2517
|
};
|
|
2518
2518
|
const BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_3 = {
|
|
2519
|
-
|
|
2519
|
+
key: 0,
|
|
2520
|
+
class: "mb-[11px] flex items-end gap-2 font-bold text-center"
|
|
2520
2521
|
};
|
|
2521
2522
|
const BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_4 = {
|
|
2522
|
-
class: "
|
|
2523
|
+
class: "text-lg min-w-8"
|
|
2523
2524
|
};
|
|
2524
2525
|
const BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_5 = {
|
|
2525
|
-
|
|
2526
|
-
class: "flex items-center gap-8 pl-12 pt-2 text-center"
|
|
2526
|
+
class: "min-w-7"
|
|
2527
2527
|
};
|
|
2528
2528
|
const _hoisted_6 = {
|
|
2529
|
-
class: "
|
|
2529
|
+
class: "min-w-7"
|
|
2530
2530
|
};
|
|
2531
2531
|
const _hoisted_7 = {
|
|
2532
|
-
key:
|
|
2532
|
+
key: 1,
|
|
2533
|
+
class: "min-w-32 text-center font-bold mb-[6px]"
|
|
2533
2534
|
};
|
|
2534
2535
|
const _hoisted_8 = {
|
|
2535
|
-
|
|
2536
|
+
key: 2,
|
|
2537
|
+
class: "rounded-full bg-[#00AB44] px-1.5 text-center text-white"
|
|
2536
2538
|
};
|
|
2537
2539
|
const _hoisted_9 = {
|
|
2538
|
-
class: "
|
|
2540
|
+
class: "mr-2"
|
|
2541
|
+
};
|
|
2542
|
+
const _hoisted_10 = {
|
|
2543
|
+
class: "mr-2 text-[#666666]"
|
|
2544
|
+
};
|
|
2545
|
+
const _hoisted_11 = {
|
|
2546
|
+
class: "mx-2 w-full"
|
|
2539
2547
|
};
|
|
2540
2548
|
/* ESM default export */ const BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
|
|
2541
2549
|
__name: 'BannerInfo',
|
|
2542
2550
|
props: {
|
|
2543
2551
|
code: {},
|
|
2544
|
-
bizId: {}
|
|
2552
|
+
bizId: {},
|
|
2553
|
+
isBg: {
|
|
2554
|
+
type: Boolean,
|
|
2555
|
+
default: true
|
|
2556
|
+
}
|
|
2545
2557
|
},
|
|
2546
2558
|
setup (__props) {
|
|
2547
2559
|
const loading = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(false);
|
|
2548
2560
|
const bannerInfo = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
2561
|
+
const initBannerInfo = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
2562
|
+
const isTextOverflowing = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(false);
|
|
2549
2563
|
// 确保布局列数为有效数字
|
|
2550
2564
|
const parseLayoutColumns = (value)=>{
|
|
2551
2565
|
const parsed = parseInt(value, 10);
|
|
@@ -2557,14 +2571,20 @@ const _hoisted_9 = {
|
|
|
2557
2571
|
/** 如果是住院就诊,返回就诊状态和天数 */ const encounterInfo = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>{
|
|
2558
2572
|
if (BANNER_COMPONENT_CONFIG[__props.code].bizIdTypeCode !== __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.BIZ_ID_TYPE_CODE.IENC_ENCOUNTER) return null;
|
|
2559
2573
|
const bannerItems = bannerInfo.value?.bannerItemList ?? [];
|
|
2574
|
+
const statusItem = bannerItems.find((item)=>"inEncStatusDesc" === item.bindingFieldNo);
|
|
2575
|
+
const daysItem = bannerItems.find((item)=>"inpatientDays" === item.bindingFieldNo);
|
|
2560
2576
|
return {
|
|
2561
|
-
inEncStatusDesc:
|
|
2562
|
-
inpatientDays:
|
|
2577
|
+
inEncStatusDesc: statusItem?.dataValue ?? "--",
|
|
2578
|
+
inpatientDays: daysItem?.dataValue ? `(${daysItem.dataValue})` : "--"
|
|
2563
2579
|
};
|
|
2564
2580
|
});
|
|
2565
2581
|
/** 获取banner配置 */ const queryBannerConfig = async ()=>{
|
|
2566
2582
|
loading.value = true;
|
|
2567
|
-
|
|
2583
|
+
if (!__props.bizId && initBannerInfo.value) {
|
|
2584
|
+
bannerInfo.value = initBannerInfo.value;
|
|
2585
|
+
loading.value = false;
|
|
2586
|
+
return;
|
|
2587
|
+
}
|
|
2568
2588
|
const [, res] = await getBannerDataByBizId({
|
|
2569
2589
|
bizId: __props.bizId ?? void 0,
|
|
2570
2590
|
bizIdTypeCode: BANNER_COMPONENT_CONFIG[__props.code].bizIdTypeCode,
|
|
@@ -2573,9 +2593,17 @@ const _hoisted_9 = {
|
|
|
2573
2593
|
loading.value = false;
|
|
2574
2594
|
if (res?.success) {
|
|
2575
2595
|
res.data.bannerItemList = (res?.data?.bannerItemList ?? [])?.filter((item)=>item.displayFlag);
|
|
2596
|
+
if (!__props.bizId) initBannerInfo.value = res?.data;
|
|
2576
2597
|
bannerInfo.value = res?.data;
|
|
2577
2598
|
}
|
|
2578
2599
|
};
|
|
2600
|
+
// 修改检查文字溢出的逻辑
|
|
2601
|
+
const checkTextOverflow = (event)=>{
|
|
2602
|
+
const target = event.currentTarget;
|
|
2603
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.nextTick)(()=>{
|
|
2604
|
+
isTextOverflowing.value = target.offsetWidth < target.scrollWidth;
|
|
2605
|
+
});
|
|
2606
|
+
};
|
|
2579
2607
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.watch)(()=>__props.bizId, async ()=>{
|
|
2580
2608
|
await queryBannerConfig();
|
|
2581
2609
|
});
|
|
@@ -2584,40 +2612,38 @@ const _hoisted_9 = {
|
|
|
2584
2612
|
});
|
|
2585
2613
|
return (_ctx, _cache)=>{
|
|
2586
2614
|
const _component_el_avatar = (0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-avatar");
|
|
2615
|
+
const _component_el_tooltip = (0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-tooltip");
|
|
2587
2616
|
const _directive_loading = (0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective)("loading");
|
|
2588
2617
|
return (0, __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives)(((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("div", {
|
|
2589
2618
|
class: (0, __WEBPACK_EXTERNAL_MODULE_vue__.normalizeClass)([
|
|
2590
|
-
"grid items-center gap-3 bg-table-header py-1 text-base",
|
|
2591
2619
|
{
|
|
2592
|
-
[
|
|
2593
|
-
}
|
|
2620
|
+
['bg-table-header']: _ctx.isBg
|
|
2621
|
+
},
|
|
2622
|
+
"flex px-8 py-3.5 text-base text-black items-center"
|
|
2594
2623
|
])
|
|
2595
2624
|
}, [
|
|
2596
2625
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_1, [
|
|
2626
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(_component_el_avatar, {
|
|
2627
|
+
size: 32,
|
|
2628
|
+
icon: "User"
|
|
2629
|
+
}),
|
|
2597
2630
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_2, [
|
|
2598
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.
|
|
2603
|
-
|
|
2604
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
])
|
|
2609
|
-
]),
|
|
2610
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(BANNER_COMPONENT_CONFIG)[_ctx.code].bizIdTypeCode === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.BIZ_ID_TYPE_CODE).IENC_ENCOUNTER ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_5, [
|
|
2611
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_6, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(encounterInfo.value?.inEncStatusDesc), 1),
|
|
2612
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", null, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(encounterInfo.value?.inpatientDays), 1)
|
|
2613
|
-
])) : (0, __WEBPACK_EXTERNAL_MODULE_vue__.createCommentVNode)("", true)
|
|
2631
|
+
bannerInfo.value?.personName || bannerInfo.value?.age || bannerInfo.value?.genderDesc ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_3, [
|
|
2632
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_4, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(bannerInfo.value?.personName ?? "--"), 1),
|
|
2633
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_5, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(bannerInfo.value?.age ?? "--"), 1),
|
|
2634
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_6, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(bannerInfo.value?.genderDesc ?? "--"), 1)
|
|
2635
|
+
])) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("div", _hoisted_7, "--")),
|
|
2636
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(BANNER_COMPONENT_CONFIG)[_ctx.code].bizIdTypeCode === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.BIZ_ID_TYPE_CODE).IENC_ENCOUNTER ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("div", _hoisted_8, [
|
|
2637
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_9, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(encounterInfo.value?.inEncStatusDesc), 1),
|
|
2638
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", null, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(encounterInfo.value?.inpatientDays), 1)
|
|
2639
|
+
])) : (0, __WEBPACK_EXTERNAL_MODULE_vue__.createCommentVNode)("", true)
|
|
2640
|
+
])
|
|
2614
2641
|
]),
|
|
2615
2642
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", {
|
|
2616
2643
|
class: (0, __WEBPACK_EXTERNAL_MODULE_vue__.normalizeClass)([
|
|
2617
|
-
"grid gap-3",
|
|
2644
|
+
"grid gap-3 flex-1",
|
|
2618
2645
|
{
|
|
2619
|
-
[`grid-cols-${layoutColumns.value}`]: true
|
|
2620
|
-
[`col-span-${layoutColumns.value + 1}`]: true
|
|
2646
|
+
[`grid-cols-${layoutColumns.value}`]: true
|
|
2621
2647
|
}
|
|
2622
2648
|
])
|
|
2623
2649
|
}, [
|
|
@@ -2627,10 +2653,24 @@ const _hoisted_9 = {
|
|
|
2627
2653
|
[`col-span-${Math.floor(item.displayWidthRatio * Number(layoutColumns.value))}`]: true
|
|
2628
2654
|
})
|
|
2629
2655
|
}, [
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2656
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", {
|
|
2657
|
+
class: "w-full overflow-hidden text-ellipsis whitespace-nowrap",
|
|
2658
|
+
onMouseenter: checkTextOverflow
|
|
2659
|
+
}, [
|
|
2660
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_10, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(item.labelNameDisplay) + ":", 1),
|
|
2661
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(_component_el_tooltip, {
|
|
2662
|
+
disabled: !isTextOverflowing.value,
|
|
2663
|
+
content: item.dataValue
|
|
2664
|
+
}, {
|
|
2665
|
+
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
2666
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_11, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(item.dataValue || "--"), 1)
|
|
2667
|
+
]),
|
|
2668
|
+
_: 2
|
|
2669
|
+
}, 1032, [
|
|
2670
|
+
"disabled",
|
|
2671
|
+
"content"
|
|
2672
|
+
])
|
|
2673
|
+
], 32)
|
|
2634
2674
|
], 2))), 128))
|
|
2635
2675
|
], 2)
|
|
2636
2676
|
], 2)), [
|
package/dist/index.js
CHANGED
|
@@ -2908,42 +2908,56 @@ const BANNER_COMPONENT_CONFIG = {
|
|
|
2908
2908
|
}
|
|
2909
2909
|
};
|
|
2910
2910
|
const BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_1 = {
|
|
2911
|
-
class: "
|
|
2911
|
+
class: "mr-4 flex min-w-48 items-start justify-start border-r border-[#C9C9C9] pr-4"
|
|
2912
2912
|
};
|
|
2913
2913
|
const BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_2 = {
|
|
2914
|
-
class: "
|
|
2914
|
+
class: "ml-[17px]"
|
|
2915
2915
|
};
|
|
2916
2916
|
const BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_3 = {
|
|
2917
|
-
|
|
2917
|
+
key: 0,
|
|
2918
|
+
class: "mb-[11px] flex items-end gap-2 font-bold text-center"
|
|
2918
2919
|
};
|
|
2919
2920
|
const BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_4 = {
|
|
2920
|
-
class: "
|
|
2921
|
+
class: "text-lg min-w-8"
|
|
2921
2922
|
};
|
|
2922
2923
|
const BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_5 = {
|
|
2923
|
-
|
|
2924
|
-
class: "flex items-center gap-8 pl-12 pt-2 text-center"
|
|
2924
|
+
class: "min-w-7"
|
|
2925
2925
|
};
|
|
2926
2926
|
const _hoisted_6 = {
|
|
2927
|
-
class: "
|
|
2927
|
+
class: "min-w-7"
|
|
2928
2928
|
};
|
|
2929
2929
|
const _hoisted_7 = {
|
|
2930
|
-
key:
|
|
2930
|
+
key: 1,
|
|
2931
|
+
class: "min-w-32 text-center font-bold mb-[6px]"
|
|
2931
2932
|
};
|
|
2932
2933
|
const _hoisted_8 = {
|
|
2933
|
-
|
|
2934
|
+
key: 2,
|
|
2935
|
+
class: "rounded-full bg-[#00AB44] px-1.5 text-center text-white"
|
|
2934
2936
|
};
|
|
2935
2937
|
const _hoisted_9 = {
|
|
2936
|
-
class: "
|
|
2938
|
+
class: "mr-2"
|
|
2939
|
+
};
|
|
2940
|
+
const _hoisted_10 = {
|
|
2941
|
+
class: "mr-2 text-[#666666]"
|
|
2942
|
+
};
|
|
2943
|
+
const _hoisted_11 = {
|
|
2944
|
+
class: "mx-2 w-full"
|
|
2937
2945
|
};
|
|
2938
2946
|
/* ESM default export */ const BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
|
|
2939
2947
|
__name: 'BannerInfo',
|
|
2940
2948
|
props: {
|
|
2941
2949
|
code: {},
|
|
2942
|
-
bizId: {}
|
|
2950
|
+
bizId: {},
|
|
2951
|
+
isBg: {
|
|
2952
|
+
type: Boolean,
|
|
2953
|
+
default: true
|
|
2954
|
+
}
|
|
2943
2955
|
},
|
|
2944
2956
|
setup (__props) {
|
|
2945
2957
|
const loading = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(false);
|
|
2946
2958
|
const bannerInfo = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
2959
|
+
const initBannerInfo = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)();
|
|
2960
|
+
const isTextOverflowing = (0, __WEBPACK_EXTERNAL_MODULE_vue__.ref)(false);
|
|
2947
2961
|
// 确保布局列数为有效数字
|
|
2948
2962
|
const parseLayoutColumns = (value)=>{
|
|
2949
2963
|
const parsed = parseInt(value, 10);
|
|
@@ -2955,14 +2969,20 @@ const _hoisted_9 = {
|
|
|
2955
2969
|
/** 如果是住院就诊,返回就诊状态和天数 */ const encounterInfo = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>{
|
|
2956
2970
|
if (BANNER_COMPONENT_CONFIG[__props.code].bizIdTypeCode !== __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.BIZ_ID_TYPE_CODE.IENC_ENCOUNTER) return null;
|
|
2957
2971
|
const bannerItems = bannerInfo.value?.bannerItemList ?? [];
|
|
2972
|
+
const statusItem = bannerItems.find((item)=>"inEncStatusDesc" === item.bindingFieldNo);
|
|
2973
|
+
const daysItem = bannerItems.find((item)=>"inpatientDays" === item.bindingFieldNo);
|
|
2958
2974
|
return {
|
|
2959
|
-
inEncStatusDesc:
|
|
2960
|
-
inpatientDays:
|
|
2975
|
+
inEncStatusDesc: statusItem?.dataValue ?? "--",
|
|
2976
|
+
inpatientDays: daysItem?.dataValue ? `(${daysItem.dataValue})` : "--"
|
|
2961
2977
|
};
|
|
2962
2978
|
});
|
|
2963
2979
|
/** 获取banner配置 */ const queryBannerConfig = async ()=>{
|
|
2964
2980
|
loading.value = true;
|
|
2965
|
-
|
|
2981
|
+
if (!__props.bizId && initBannerInfo.value) {
|
|
2982
|
+
bannerInfo.value = initBannerInfo.value;
|
|
2983
|
+
loading.value = false;
|
|
2984
|
+
return;
|
|
2985
|
+
}
|
|
2966
2986
|
const [, res] = await getBannerDataByBizId({
|
|
2967
2987
|
bizId: __props.bizId ?? void 0,
|
|
2968
2988
|
bizIdTypeCode: BANNER_COMPONENT_CONFIG[__props.code].bizIdTypeCode,
|
|
@@ -2971,9 +2991,17 @@ const _hoisted_9 = {
|
|
|
2971
2991
|
loading.value = false;
|
|
2972
2992
|
if (res?.success) {
|
|
2973
2993
|
res.data.bannerItemList = (res?.data?.bannerItemList ?? [])?.filter((item)=>item.displayFlag);
|
|
2994
|
+
if (!__props.bizId) initBannerInfo.value = res?.data;
|
|
2974
2995
|
bannerInfo.value = res?.data;
|
|
2975
2996
|
}
|
|
2976
2997
|
};
|
|
2998
|
+
// 修改检查文字溢出的逻辑
|
|
2999
|
+
const checkTextOverflow = (event)=>{
|
|
3000
|
+
const target = event.currentTarget;
|
|
3001
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.nextTick)(()=>{
|
|
3002
|
+
isTextOverflowing.value = target.offsetWidth < target.scrollWidth;
|
|
3003
|
+
});
|
|
3004
|
+
};
|
|
2977
3005
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.watch)(()=>__props.bizId, async ()=>{
|
|
2978
3006
|
await queryBannerConfig();
|
|
2979
3007
|
});
|
|
@@ -2982,40 +3010,38 @@ const _hoisted_9 = {
|
|
|
2982
3010
|
});
|
|
2983
3011
|
return (_ctx, _cache)=>{
|
|
2984
3012
|
const _component_el_avatar = (0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-avatar");
|
|
3013
|
+
const _component_el_tooltip = (0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-tooltip");
|
|
2985
3014
|
const _directive_loading = (0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective)("loading");
|
|
2986
3015
|
return (0, __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives)(((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("div", {
|
|
2987
3016
|
class: (0, __WEBPACK_EXTERNAL_MODULE_vue__.normalizeClass)([
|
|
2988
|
-
"grid items-center gap-3 bg-table-header py-1 text-base",
|
|
2989
3017
|
{
|
|
2990
|
-
[
|
|
2991
|
-
}
|
|
3018
|
+
['bg-table-header']: _ctx.isBg
|
|
3019
|
+
},
|
|
3020
|
+
"flex px-8 py-3.5 text-base text-black items-center"
|
|
2992
3021
|
])
|
|
2993
3022
|
}, [
|
|
2994
3023
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_1, [
|
|
3024
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(_component_el_avatar, {
|
|
3025
|
+
size: 32,
|
|
3026
|
+
icon: "User"
|
|
3027
|
+
}),
|
|
2995
3028
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_2, [
|
|
2996
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.
|
|
3001
|
-
|
|
3002
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
])
|
|
3007
|
-
]),
|
|
3008
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(BANNER_COMPONENT_CONFIG)[_ctx.code].bizIdTypeCode === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.BIZ_ID_TYPE_CODE).IENC_ENCOUNTER ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_5, [
|
|
3009
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_6, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(encounterInfo.value?.inEncStatusDesc), 1),
|
|
3010
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", null, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(encounterInfo.value?.inpatientDays), 1)
|
|
3011
|
-
])) : (0, __WEBPACK_EXTERNAL_MODULE_vue__.createCommentVNode)("", true)
|
|
3029
|
+
bannerInfo.value?.personName || bannerInfo.value?.age || bannerInfo.value?.genderDesc ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("div", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_3, [
|
|
3030
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_4, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(bannerInfo.value?.personName ?? "--"), 1),
|
|
3031
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", BannerInfovue_type_script_setup_true_lang_ts_name_bannerComponent_hoisted_5, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(bannerInfo.value?.age ?? "--"), 1),
|
|
3032
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_6, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(bannerInfo.value?.genderDesc ?? "--"), 1)
|
|
3033
|
+
])) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("div", _hoisted_7, "--")),
|
|
3034
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(BANNER_COMPONENT_CONFIG)[_ctx.code].bizIdTypeCode === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.BIZ_ID_TYPE_CODE).IENC_ENCOUNTER ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("div", _hoisted_8, [
|
|
3035
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_9, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(encounterInfo.value?.inEncStatusDesc), 1),
|
|
3036
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", null, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(encounterInfo.value?.inpatientDays), 1)
|
|
3037
|
+
])) : (0, __WEBPACK_EXTERNAL_MODULE_vue__.createCommentVNode)("", true)
|
|
3038
|
+
])
|
|
3012
3039
|
]),
|
|
3013
3040
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", {
|
|
3014
3041
|
class: (0, __WEBPACK_EXTERNAL_MODULE_vue__.normalizeClass)([
|
|
3015
|
-
"grid gap-3",
|
|
3042
|
+
"grid gap-3 flex-1",
|
|
3016
3043
|
{
|
|
3017
|
-
[`grid-cols-${layoutColumns.value}`]: true
|
|
3018
|
-
[`col-span-${layoutColumns.value + 1}`]: true
|
|
3044
|
+
[`grid-cols-${layoutColumns.value}`]: true
|
|
3019
3045
|
}
|
|
3020
3046
|
])
|
|
3021
3047
|
}, [
|
|
@@ -3025,10 +3051,24 @@ const _hoisted_9 = {
|
|
|
3025
3051
|
[`col-span-${Math.floor(item.displayWidthRatio * Number(layoutColumns.value))}`]: true
|
|
3026
3052
|
})
|
|
3027
3053
|
}, [
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3054
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("div", {
|
|
3055
|
+
class: "w-full overflow-hidden text-ellipsis whitespace-nowrap",
|
|
3056
|
+
onMouseenter: checkTextOverflow
|
|
3057
|
+
}, [
|
|
3058
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_10, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(item.labelNameDisplay) + ":", 1),
|
|
3059
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(_component_el_tooltip, {
|
|
3060
|
+
disabled: !isTextOverflowing.value,
|
|
3061
|
+
content: item.dataValue
|
|
3062
|
+
}, {
|
|
3063
|
+
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
3064
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode)("span", _hoisted_11, (0, __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString)(item.dataValue || "--"), 1)
|
|
3065
|
+
]),
|
|
3066
|
+
_: 2
|
|
3067
|
+
}, 1032, [
|
|
3068
|
+
"disabled",
|
|
3069
|
+
"content"
|
|
3070
|
+
])
|
|
3071
|
+
], 32)
|
|
3032
3072
|
], 2))), 128))
|
|
3033
3073
|
], 2)
|
|
3034
3074
|
], 2)), [
|