|
@@ -5,6 +5,9 @@
|
|
|
:default-active="currentMenuKey"
|
|
|
class="menu-vertical"
|
|
|
>
|
|
|
+ <div class="el-menu-item" slot="Menu-Item" @click="expandFireNews">
|
|
|
+ 火调信息
|
|
|
+ </div>
|
|
|
<el-menu-item
|
|
|
v-for="menu in menus"
|
|
|
:key="menu.key"
|
|
@@ -87,21 +90,30 @@ onMounted(() => {
|
|
|
});
|
|
|
|
|
|
// 处理菜单点击事件
|
|
|
-const handleMenuClick = (menu) => {
|
|
|
+const handleMenuClick = async(menu) => {
|
|
|
currentMenuKey.value = menu.key;
|
|
|
-
|
|
|
- // 更新路由,保留当前的 tab 参数
|
|
|
- vueRouter.replace({
|
|
|
- path: route.path,
|
|
|
- query: {
|
|
|
- ...route.query,
|
|
|
- tab: menu.key
|
|
|
+ // 更新路由,保留当前的 tab 参数
|
|
|
+ vueRouter.replace({
|
|
|
+ path: route.path,
|
|
|
+ query: {
|
|
|
+ ...route.query,
|
|
|
+ tab: menu.key
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ // 执行菜单项的点击事件
|
|
|
+ menu.onClick();
|
|
|
+ const caseInfo = await getCaseInfo(caseId.value!);
|
|
|
+ if (caseInfo) {
|
|
|
+ // 设置页面标题,使用案件信息
|
|
|
+ pageTitle.value = caseInfo.caseTitle + " | 详情"; // 使用 pageTitle
|
|
|
+ desc.value = "";
|
|
|
}
|
|
|
- });
|
|
|
-
|
|
|
- // 执行菜单项的点击事件
|
|
|
- menu.onClick();
|
|
|
};
|
|
|
+const expandFireNews = () => {
|
|
|
+ // 不切换标签页,只打开编辑弹窗
|
|
|
+ editHandler(currentRecord.value.tmProject);
|
|
|
+}
|
|
|
|
|
|
// 开始录制方法
|
|
|
const startRecording = () => {
|
|
@@ -123,14 +135,17 @@ const menus = computed(() => {
|
|
|
const fuseLink = getFuseCodeLink(currentCaseId);
|
|
|
|
|
|
return [
|
|
|
- {
|
|
|
- key: "info",
|
|
|
- disabled: false, // 默认不禁用,与原来不同
|
|
|
- label: "火调信息",
|
|
|
- onClick: () => {
|
|
|
- editHandler(currentRecord.value.tmProject);
|
|
|
- },
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // key: "info",
|
|
|
+ // disabled: false, // 默认不禁用,与原来不同
|
|
|
+ // label: "火调信息",
|
|
|
+ // onClick: () => {
|
|
|
+ // // 不切换标签页,只打开编辑弹窗
|
|
|
+ // editHandler(currentRecord.value.tmProject);
|
|
|
+ // // 恢复之前的标签页
|
|
|
+ // currentMenuKey.value = route.query.tab as string || 'scene';
|
|
|
+ // },
|
|
|
+ // },
|
|
|
{
|
|
|
key: "scene",
|
|
|
disabled: false, // 默认不禁用,与原来不同
|
|
@@ -183,7 +198,7 @@ const menus = computed(() => {
|
|
|
key: "screenRecord", // 修改为唯一的 key,避免与勘验笔录冲突
|
|
|
label: "屏幕录制",
|
|
|
onClick: () => {
|
|
|
- // checkScenesOpen(currentCaseId, `${fuseLink}#sceneEdit/record`);
|
|
|
+ checkScenesOpen(currentCaseId, `${fuseLink}#sceneEdit/record`);
|
|
|
},
|
|
|
},
|
|
|
];
|
|
@@ -194,7 +209,11 @@ const currentMenu = computed(() => {
|
|
|
return menus.value.find(menu => menu.key === currentMenuKey.value);
|
|
|
});
|
|
|
</script>
|
|
|
-
|
|
|
+<style>
|
|
|
+.layer .content .view .main{
|
|
|
+ margin: 0!important;
|
|
|
+}
|
|
|
+</style>
|
|
|
<style lang="scss" scoped>
|
|
|
.fire-details {
|
|
|
display: flex;
|
|
@@ -203,19 +222,24 @@ const currentMenu = computed(() => {
|
|
|
.sidebar {
|
|
|
width: 200px;
|
|
|
border-right: 1px solid #e6e6e6;
|
|
|
-
|
|
|
.menu-vertical {
|
|
|
+ width: 200px;
|
|
|
+ padding-left: 30px;
|
|
|
height: 100%;
|
|
|
+ text-align: center;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.content {
|
|
|
flex: 1;
|
|
|
- padding: 20px;
|
|
|
+ padding: 0 16px 16px 16px;
|
|
|
|
|
|
.content-placeholder {
|
|
|
text-align: center;
|
|
|
- height: 100%;
|
|
|
+ background: #fff;
|
|
|
+ padding: 20px;
|
|
|
+ height: calc(100% - 40px);
|
|
|
+ overflow: auto;
|
|
|
}
|
|
|
}
|
|
|
}
|