bl-common-vue3 3.8.106 → 3.8.108
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/package.json
CHANGED
|
@@ -816,7 +816,7 @@
|
|
|
816
816
|
<template #title>
|
|
817
817
|
{{ i18nMapShow(item, ["name"], ["name"]) }}
|
|
818
818
|
</template>
|
|
819
|
-
<template v-for="(child
|
|
819
|
+
<template v-for="(child) in item.children" :key="child.key">
|
|
820
820
|
<a-menu-item v-if="child?.show ?? true" :key="child.key">
|
|
821
821
|
<a-button v-bind="{ ...(child?.props || {}), }" @click.stop="child?.onClick">
|
|
822
822
|
<template #icon v-if="buttonIconSlots.indexOf(`${child.key}`) > -1">
|
|
@@ -4056,7 +4056,7 @@ export default defineComponent({
|
|
|
4056
4056
|
'dateTimeRangePicker': 'date_time',
|
|
4057
4057
|
'timeRangePicker': 'time',
|
|
4058
4058
|
}
|
|
4059
|
-
|
|
4059
|
+
|
|
4060
4060
|
if(singleDateInputTypes.includes(input_type)) {
|
|
4061
4061
|
valueShow = dateFormatMaps[inputTypeFormatMaps[input_type]]?dayjs(value).format(dateFormatMaps[inputTypeFormatMaps[input_type]]):value
|
|
4062
4062
|
}
|
|
@@ -900,23 +900,8 @@ export default defineComponent({
|
|
|
900
900
|
if (build) {
|
|
901
901
|
/* 处理没有楼层的情况 */
|
|
902
902
|
if (noLayer.value) {
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
);
|
|
906
|
-
if (room) {
|
|
907
|
-
getSubRooms(room, true).then(() => {
|
|
908
|
-
if (refreshParams.selected && refreshParams.selected.roomId) {
|
|
909
|
-
setSelected(room);
|
|
910
|
-
}
|
|
911
|
-
state.loadingTree = false;
|
|
912
|
-
});
|
|
913
|
-
}
|
|
914
|
-
} else {
|
|
915
|
-
const layer = build.children.find(
|
|
916
|
-
(item) => item.id == refreshParams.layerId
|
|
917
|
-
);
|
|
918
|
-
if (layer) {
|
|
919
|
-
const room = build.children.find(
|
|
903
|
+
getRoomList(build, true).then(() => {
|
|
904
|
+
const room = (build.children || []).find(
|
|
920
905
|
(item) => item.id == refreshParams.roomId
|
|
921
906
|
);
|
|
922
907
|
if (room) {
|
|
@@ -926,8 +911,35 @@ export default defineComponent({
|
|
|
926
911
|
}
|
|
927
912
|
state.loadingTree = false;
|
|
928
913
|
});
|
|
914
|
+
} else {
|
|
915
|
+
state.loadingTree = false;
|
|
929
916
|
}
|
|
930
|
-
}
|
|
917
|
+
});
|
|
918
|
+
} else {
|
|
919
|
+
getLayerList(build, true).then(() => {
|
|
920
|
+
const layer = (build.children || []).find(
|
|
921
|
+
(item) => item.id == refreshParams.layerId
|
|
922
|
+
);
|
|
923
|
+
if (layer) {
|
|
924
|
+
getRoomList(layer, true).then(() => {
|
|
925
|
+
const room = (layer.children || []).find(
|
|
926
|
+
(item) => item.id == refreshParams.roomId
|
|
927
|
+
);
|
|
928
|
+
if (room) {
|
|
929
|
+
getSubRooms(room, true).then(() => {
|
|
930
|
+
if (refreshParams.selected && refreshParams.selected.roomId) {
|
|
931
|
+
setSelected(room);
|
|
932
|
+
}
|
|
933
|
+
state.loadingTree = false;
|
|
934
|
+
});
|
|
935
|
+
} else {
|
|
936
|
+
state.loadingTree = false;
|
|
937
|
+
}
|
|
938
|
+
});
|
|
939
|
+
} else {
|
|
940
|
+
state.loadingTree = false;
|
|
941
|
+
}
|
|
942
|
+
});
|
|
931
943
|
}
|
|
932
944
|
|
|
933
945
|
}
|
|
@@ -949,17 +961,21 @@ export default defineComponent({
|
|
|
949
961
|
}
|
|
950
962
|
})
|
|
951
963
|
if (build) {
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
964
|
+
getLayerList(build, true).then(() => {
|
|
965
|
+
const layer = (build.children || []).find(
|
|
966
|
+
(item) => item.id == refreshParams.layerId
|
|
967
|
+
);
|
|
968
|
+
if (layer) {
|
|
969
|
+
getRoomList(layer, true).then(() => {
|
|
970
|
+
if (refreshParams.selected && refreshParams.selected.layerId) {
|
|
971
|
+
setSelected(layer);
|
|
972
|
+
}
|
|
973
|
+
state.loadingTree = false;
|
|
974
|
+
});
|
|
975
|
+
} else {
|
|
960
976
|
state.loadingTree = false;
|
|
961
|
-
}
|
|
962
|
-
}
|
|
977
|
+
}
|
|
978
|
+
});
|
|
963
979
|
}
|
|
964
980
|
}
|
|
965
981
|
} else if (refreshParams.buildId) {
|