diff --git a/public/static/libs/mapbox/style/HaiMianScreen.json b/public/static/libs/mapbox/style/HaiMianScreen.json index 21ebc8e..6ca769f 100644 --- a/public/static/libs/mapbox/style/HaiMianScreen.json +++ b/public/static/libs/mapbox/style/HaiMianScreen.json @@ -474,6 +474,43 @@ "columns": "起始点号,连接点号,类型,st_asText(geometrys) as geometry" }, { + "id": "pipeLineLabel", + "key": "hn_kf_hm_pipeline", + "source-layer": "hn_kf_hm_pipeline", + "type": "symbol", + "filter": [ + "in", + "类型", + "" + ], + "layout": { + "text-field": [ + "get", + "管径" + ], + "text-font": [ + "KlokanTech Noto Sans Regular" + ], + "text-rotation-alignment": "map", + "text-size": 15, + "text-transform": "uppercase", + "symbol-placement": "line", + "text-offset": [ + 0, + -0.5 + ], + "text-allow-overlap": true, + "text-letter-spacing": 1.1 + }, + "paint": { + "text-color": "rgba(255, 255, 255, 1)", + "text-halo-color": "rgba(36, 94, 122, 1)", + "text-halo-width": 2 + }, + "mType": "mvt", + "columns": "起始点号,连接点号,类型,管径,st_asText(geometrys) as geometry" + }, + { "id": "hn_kf_hm_dltb", "key": "hn_kf_hm_dltb", "source-layer": "hn_kf_hm_dltb", @@ -748,6 +785,9 @@ "pipeline_point" ], [ + "pipeLineLabel" + ], + [ "poi_label" ], [ @@ -767,7 +807,8 @@ "wsLine1": { "layerName": [ "pipeline_info", - "pipeline_point" + "pipeline_point", + "pipeLineLabel" ], "filter": [ [ @@ -775,13 +816,17 @@ ], [ "ws" + ], + [ + "ws" ] ] }, "hsLine1": { "layerName": [ "pipeline_info", - "pipeline_point" + "pipeline_point", + "pipeLineLabel" ], "filter": [ [ @@ -789,13 +834,17 @@ ], [ "hs" + ], + [ + "hs" ] ] }, "ysLine1": { "layerName": [ "pipeline_info", - "pipeline_point" + "pipeline_point", + "pipeLineLabel" ], "filter": [ [ @@ -803,6 +852,9 @@ ], [ "ys" + ], + [ + "ys" ] ] }, diff --git a/public/static/libs/mapbox/style/HaiMianScreen.json b/public/static/libs/mapbox/style/HaiMianScreen.json index 21ebc8e..6ca769f 100644 --- a/public/static/libs/mapbox/style/HaiMianScreen.json +++ b/public/static/libs/mapbox/style/HaiMianScreen.json @@ -474,6 +474,43 @@ "columns": "起始点号,连接点号,类型,st_asText(geometrys) as geometry" }, { + "id": "pipeLineLabel", + "key": "hn_kf_hm_pipeline", + "source-layer": "hn_kf_hm_pipeline", + "type": "symbol", + "filter": [ + "in", + "类型", + "" + ], + "layout": { + "text-field": [ + "get", + "管径" + ], + "text-font": [ + "KlokanTech Noto Sans Regular" + ], + "text-rotation-alignment": "map", + "text-size": 15, + "text-transform": "uppercase", + "symbol-placement": "line", + "text-offset": [ + 0, + -0.5 + ], + "text-allow-overlap": true, + "text-letter-spacing": 1.1 + }, + "paint": { + "text-color": "rgba(255, 255, 255, 1)", + "text-halo-color": "rgba(36, 94, 122, 1)", + "text-halo-width": 2 + }, + "mType": "mvt", + "columns": "起始点号,连接点号,类型,管径,st_asText(geometrys) as geometry" + }, + { "id": "hn_kf_hm_dltb", "key": "hn_kf_hm_dltb", "source-layer": "hn_kf_hm_dltb", @@ -748,6 +785,9 @@ "pipeline_point" ], [ + "pipeLineLabel" + ], + [ "poi_label" ], [ @@ -767,7 +807,8 @@ "wsLine1": { "layerName": [ "pipeline_info", - "pipeline_point" + "pipeline_point", + "pipeLineLabel" ], "filter": [ [ @@ -775,13 +816,17 @@ ], [ "ws" + ], + [ + "ws" ] ] }, "hsLine1": { "layerName": [ "pipeline_info", - "pipeline_point" + "pipeline_point", + "pipeLineLabel" ], "filter": [ [ @@ -789,13 +834,17 @@ ], [ "hs" + ], + [ + "hs" ] ] }, "ysLine1": { "layerName": [ "pipeline_info", - "pipeline_point" + "pipeline_point", + "pipeLineLabel" ], "filter": [ [ @@ -803,6 +852,9 @@ ], [ "ys" + ], + [ + "ys" ] ] }, diff --git a/src/layout/components/HeaderSys/index.vue b/src/layout/components/HeaderSys/index.vue index 3c5ed9c..785f4c4 100644 --- a/src/layout/components/HeaderSys/index.vue +++ b/src/layout/components/HeaderSys/index.vue @@ -75,7 +75,7 @@ import bus from '@/utils/mitt'; import { ElMessageBox } from 'element-plus'; import usePermissionStore from '@/store/modules/permission'; - +import { getUserProfile } from '@/api/system/user'; const permissionStore = usePermissionStore(); const { proxy } = getCurrentInstance(); const dialogShow = ref(false); @@ -149,7 +149,7 @@ } /** 获取搜索数据列表 */ const getDataListA = async () => { - projectNoticeUserPage().then(response => { + projectNoticeUserPage({ noticeUserId: Userid.value }).then(response => { tableData.value = response.data; }); }; @@ -167,6 +167,12 @@ dialogNews.value = false; getDataListB(); } +const Userid = ref(''); +function getUser() { + getUserProfile().then(response => { + Userid.value = response.data.user.userId; + }); +} onMounted(() => { // 动态获取路由返回子菜单 permissionStore.sidebarRouters.map(item => { @@ -187,6 +193,7 @@ getDataListB(); }); getDataListB(); + getUser(); }); onBeforeUnmount(() => { bus.off('closeUserCenter'); diff --git a/public/static/libs/mapbox/style/HaiMianScreen.json b/public/static/libs/mapbox/style/HaiMianScreen.json index 21ebc8e..6ca769f 100644 --- a/public/static/libs/mapbox/style/HaiMianScreen.json +++ b/public/static/libs/mapbox/style/HaiMianScreen.json @@ -474,6 +474,43 @@ "columns": "起始点号,连接点号,类型,st_asText(geometrys) as geometry" }, { + "id": "pipeLineLabel", + "key": "hn_kf_hm_pipeline", + "source-layer": "hn_kf_hm_pipeline", + "type": "symbol", + "filter": [ + "in", + "类型", + "" + ], + "layout": { + "text-field": [ + "get", + "管径" + ], + "text-font": [ + "KlokanTech Noto Sans Regular" + ], + "text-rotation-alignment": "map", + "text-size": 15, + "text-transform": "uppercase", + "symbol-placement": "line", + "text-offset": [ + 0, + -0.5 + ], + "text-allow-overlap": true, + "text-letter-spacing": 1.1 + }, + "paint": { + "text-color": "rgba(255, 255, 255, 1)", + "text-halo-color": "rgba(36, 94, 122, 1)", + "text-halo-width": 2 + }, + "mType": "mvt", + "columns": "起始点号,连接点号,类型,管径,st_asText(geometrys) as geometry" + }, + { "id": "hn_kf_hm_dltb", "key": "hn_kf_hm_dltb", "source-layer": "hn_kf_hm_dltb", @@ -748,6 +785,9 @@ "pipeline_point" ], [ + "pipeLineLabel" + ], + [ "poi_label" ], [ @@ -767,7 +807,8 @@ "wsLine1": { "layerName": [ "pipeline_info", - "pipeline_point" + "pipeline_point", + "pipeLineLabel" ], "filter": [ [ @@ -775,13 +816,17 @@ ], [ "ws" + ], + [ + "ws" ] ] }, "hsLine1": { "layerName": [ "pipeline_info", - "pipeline_point" + "pipeline_point", + "pipeLineLabel" ], "filter": [ [ @@ -789,13 +834,17 @@ ], [ "hs" + ], + [ + "hs" ] ] }, "ysLine1": { "layerName": [ "pipeline_info", - "pipeline_point" + "pipeline_point", + "pipeLineLabel" ], "filter": [ [ @@ -803,6 +852,9 @@ ], [ "ys" + ], + [ + "ys" ] ] }, diff --git a/src/layout/components/HeaderSys/index.vue b/src/layout/components/HeaderSys/index.vue index 3c5ed9c..785f4c4 100644 --- a/src/layout/components/HeaderSys/index.vue +++ b/src/layout/components/HeaderSys/index.vue @@ -75,7 +75,7 @@ import bus from '@/utils/mitt'; import { ElMessageBox } from 'element-plus'; import usePermissionStore from '@/store/modules/permission'; - +import { getUserProfile } from '@/api/system/user'; const permissionStore = usePermissionStore(); const { proxy } = getCurrentInstance(); const dialogShow = ref(false); @@ -149,7 +149,7 @@ } /** 获取搜索数据列表 */ const getDataListA = async () => { - projectNoticeUserPage().then(response => { + projectNoticeUserPage({ noticeUserId: Userid.value }).then(response => { tableData.value = response.data; }); }; @@ -167,6 +167,12 @@ dialogNews.value = false; getDataListB(); } +const Userid = ref(''); +function getUser() { + getUserProfile().then(response => { + Userid.value = response.data.user.userId; + }); +} onMounted(() => { // 动态获取路由返回子菜单 permissionStore.sidebarRouters.map(item => { @@ -187,6 +193,7 @@ getDataListB(); }); getDataListB(); + getUser(); }); onBeforeUnmount(() => { bus.off('closeUserCenter'); diff --git a/src/views/floodSys/floodOneMap/tabRightWL.vue b/src/views/floodSys/floodOneMap/tabRightWL.vue index cc788a6..230e395 100644 --- a/src/views/floodSys/floodOneMap/tabRightWL.vue +++ b/src/views/floodSys/floodOneMap/tabRightWL.vue @@ -178,10 +178,9 @@