提交 cb781c19 作者: “kai”

WIP: 菜单项「生物多样性」改为「火情识别」(业务调整)

- menuIcons: 菜单项名称与注释
- resource: 菜单名注释同步
- controlLeft/controlRight: 菜单判断与显示条件同步
上级 11ceb171
<template> <template>
<!-- <!--
FKZX 左侧菜单图标的微应用内副本(违法取证/日常巡检/生物多样性) FKZX 左侧菜单图标的微应用内副本(违法取证/日常巡检/火情识别)
- 显示时机:与右侧工具栏/资源按钮一致——**选中(接管)无人机后才出现**(v-show 保位置不重置) - 显示时机:与右侧工具栏/资源按钮一致——**选中(接管)无人机后才出现**(v-show 保位置不重置)
- 位置:视频播放器右侧(默认 top:20%; left:calc(35%+730px),随 .player 尺寸走) - 位置:视频播放器右侧(默认 top:20%; left:calc(35%+730px),随 .player 尺寸走)
- 可整条鼠标拖动(transform 位移,不回弹) - 可整条鼠标拖动(transform 位移,不回弹)
...@@ -52,8 +52,8 @@ export default { ...@@ -52,8 +52,8 @@ export default {
icon: uavIcon, icon: uavIcon,
}, },
{ {
name: "生物多样性", name: "火情识别",
label: this.tf("common.生物多样性", "生物多样性"), label: this.tf("common.火情识别", "火情识别"),
color: "#63D18C", color: "#63D18C",
icon: uavVideoIcon, icon: uavVideoIcon,
}, },
......
...@@ -56,7 +56,7 @@ export default { ...@@ -56,7 +56,7 @@ export default {
viewer() { viewer() {
return (window.$mmc_stl && window.$mmc_stl.viewer) || null; return (window.$mmc_stl && window.$mmc_stl.viewer) || null;
}, },
// 当前左侧菜单名(日常巡检/违法取证/生物多样性) // 当前左侧菜单名(日常巡检/违法取证/火情识别)
menuName() { menuName() {
return (this.rootNode && this.rootNode.menuName) || ""; return (this.rootNode && this.rootNode.menuName) || "";
}, },
......
...@@ -38,7 +38,7 @@ export default { ...@@ -38,7 +38,7 @@ export default {
return this.rootNode && this.rootNode.menuName; return this.rootNode && this.rootNode.menuName;
}, },
isBiodiversity() { isBiodiversity() {
return this.menuName === "生物多样性"; return this.menuName === "火情识别";
}, },
// 收起列表按钮 // 收起列表按钮
listCollapse: { listCollapse: {
......
...@@ -88,7 +88,7 @@ export default { ...@@ -88,7 +88,7 @@ export default {
// 资源按钮在「日常巡检」显示(资源点位在此场景加载);用户允许在其它 name 也展示,故「违法取证」一并放行 // 资源按钮在「日常巡检」显示(资源点位在此场景加载);用户允许在其它 name 也展示,故「违法取证」一并放行
showResourceButton() { showResourceButton() {
const menu = this.rootNode && this.rootNode.menuName; const menu = this.rootNode && this.rootNode.menuName;
return menu === "日常巡检" || menu === "违法取证"|| menu === "生物多样性"; return menu === "日常巡检" || menu === "违法取证"|| menu === "火情识别";
}, },
}, },
watch: { watch: {
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论