From 2269796070a6c0c3e986b9567f7b1627b4d6b106 Mon Sep 17 00:00:00 2001 From: limengnan <420004014@qq.com> Date: Thu, 15 Jan 2026 08:47:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E6=9E=90=E8=AE=BE=E8=AE=A1=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=96=B0=E5=A2=9E=E6=A8=A1=E6=8B=9F=E5=88=86=E6=9E=90?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E6=A8=A1=E6=8B=9F=E5=88=86=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/Hamburger/index.vue | 2 +- .../frontend/src/components/antvx6/index.vue | 50 +++-- business-css/frontend/src/styles/sidebar.scss | 2 +- .../src/views/business/project/index.vue | 2 +- .../component/scenario/createscenario.vue | 187 ++++++++++++++++++ .../src/views/component/scenario/index.vue | 16 +- .../src/components/Hamburger/index.vue | 2 +- framework/frontend/src/styles/sidebar.scss | 2 +- 8 files changed, 237 insertions(+), 26 deletions(-) create mode 100644 business-css/frontend/src/views/component/scenario/createscenario.vue diff --git a/business-css/frontend/src/components/Hamburger/index.vue b/business-css/frontend/src/components/Hamburger/index.vue index 490d427..e840501 100644 --- a/business-css/frontend/src/components/Hamburger/index.vue +++ b/business-css/frontend/src/components/Hamburger/index.vue @@ -2,7 +2,7 @@
diff --git a/business-css/frontend/src/components/antvx6/index.vue b/business-css/frontend/src/components/antvx6/index.vue index a5adf17..217d70e 100644 --- a/business-css/frontend/src/components/antvx6/index.vue +++ b/business-css/frontend/src/components/antvx6/index.vue @@ -16,7 +16,8 @@ import { // @ts-ignore import insertCss from 'insert-css' import { updateProjects} from "@/api/business/project"; - +import Createscenario from '@/views/component/scenario/createscenario.vue' +import ScenarioModel from '@/views/component/scenario/index.vue' import img1 from '@/assets/x6/1.png' import img2 from '@/assets/x6/2.png' import img3 from '@/assets/x6/3.png' @@ -39,7 +40,8 @@ const props = defineProps({ default: {} }, }) -const projectInfo:any = ref(props.projectInfo) +const projectInfo:any = ref(props.projectInfo) // 项目信息 +const isScenario = ref(false) //是否展示历史模拟场景 const isDisplay = ref(true) // 是否显示 // 为了协助代码演示 let graph: Graph @@ -810,6 +812,20 @@ function bigClick(){ function smallClick(){ graph.zoom(-0.1) } +function analysisAdd(){ + dialogVisible.value = true; +} +const dialogVisible = ref(false) +function closeCreatescenario(){ // 关闭新增模拟分析弹窗 + dialogVisible.value = false; +} +function simulationClick() { // 打开模拟分析 + isScenario.value = true; +} +//取消按钮 +function handleClose() { + isScenario.value = false; +} @@ -1025,7 +1045,7 @@ function smallClick(){ .context-menu { position: absolute; - z-index: 9999; + z-index: 100; background-color: #fff; border: 1px solid #dfe3e8; border-radius: 4px; diff --git a/business-css/frontend/src/styles/sidebar.scss b/business-css/frontend/src/styles/sidebar.scss index a0e5c74..f42a815 100644 --- a/business-css/frontend/src/styles/sidebar.scss +++ b/business-css/frontend/src/styles/sidebar.scss @@ -21,7 +21,7 @@ svg { top: 60px; bottom: 0; left: 0; - z-index: 98; + z-index: 10; overflow: hidden; // reset element-ui css diff --git a/business-css/frontend/src/views/business/project/index.vue b/business-css/frontend/src/views/business/project/index.vue index cb7350f..248823f 100644 --- a/business-css/frontend/src/views/business/project/index.vue +++ b/business-css/frontend/src/views/business/project/index.vue @@ -277,7 +277,7 @@ function closeAntvx6() { -
+
diff --git a/business-css/frontend/src/views/component/scenario/createscenario.vue b/business-css/frontend/src/views/component/scenario/createscenario.vue new file mode 100644 index 0000000..997833d --- /dev/null +++ b/business-css/frontend/src/views/component/scenario/createscenario.vue @@ -0,0 +1,187 @@ + + + + + \ No newline at end of file diff --git a/business-css/frontend/src/views/component/scenario/index.vue b/business-css/frontend/src/views/component/scenario/index.vue index 142bc41..a16374c 100644 --- a/business-css/frontend/src/views/component/scenario/index.vue +++ b/business-css/frontend/src/views/component/scenario/index.vue @@ -10,7 +10,8 @@ import { ElForm, ElMessage, ElMessageBox } from "element-plus"; import { searchScenariosLsit,addScenarios,updateScenarios,deleteScenarios,deleteBatchScenarios} from "@/api/business/scenario"; import Page from '@/components/Pagination/page.vue' import { getDictItemById } from '@/api/dict'; -import ConditionModel from '@/views/component/scenario/condition.vue' +// import ConditionModel from '@/views/component/scenario/condition.vue' +import Createscenario from '@/views/component/scenario/createscenario.vue' import { eventsBatchSave } from '@/api/business/event'; const algorithmTypeData: any = ref([]); // 算法类型数据 const stepsActive = ref(0); // 步骤导航栏当前激活的步骤索引 @@ -263,6 +264,10 @@ onMounted(() => { getAlgorithmType() gettableData(); }); +function closeCreatescenario(){ + dialogVisible.value = false; + gettableData(); +} diff --git a/framework/frontend/src/components/Hamburger/index.vue b/framework/frontend/src/components/Hamburger/index.vue index 490d427..e840501 100644 --- a/framework/frontend/src/components/Hamburger/index.vue +++ b/framework/frontend/src/components/Hamburger/index.vue @@ -2,7 +2,7 @@
diff --git a/framework/frontend/src/styles/sidebar.scss b/framework/frontend/src/styles/sidebar.scss index a0e5c74..f42a815 100644 --- a/framework/frontend/src/styles/sidebar.scss +++ b/framework/frontend/src/styles/sidebar.scss @@ -21,7 +21,7 @@ svg { top: 60px; bottom: 0; left: 0; - z-index: 98; + z-index: 10; overflow: hidden; // reset element-ui css