From 64f1b0dae7d6646e8004b0d74bd9732b82f86a37 Mon Sep 17 00:00:00 2001
From: limengnan <420004014@qq.com>
Date: Fri, 26 Dec 2025 11:33:50 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=9C=BA=E6=99=AF=E6=A8=A1?=
=?UTF-8?q?=E5=9D=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/business/project/index.vue | 27 +-
.../src/views/component/scenario/index.vue | 355 ++++++++++++++++++
.../frontend/src/views/system/menu/index.vue | 2 +-
3 files changed, 377 insertions(+), 7 deletions(-)
create mode 100644 business-css/frontend/src/views/component/scenario/index.vue
diff --git a/business-css/frontend/src/views/business/project/index.vue b/business-css/frontend/src/views/business/project/index.vue
index fd8ab7e..af0168b 100644
--- a/business-css/frontend/src/views/business/project/index.vue
+++ b/business-css/frontend/src/views/business/project/index.vue
@@ -9,8 +9,9 @@ import { onMounted, ref, nextTick } from "vue";
import { ElForm, ElMessage, ElMessageBox } from "element-plus";
import { searchProjectsLsit,addProjects,updateProjects,deleteProjects,deleteBatchProjects} from "@/api/business/project";
import Page from '@/components/Pagination/page.vue'
+import Scenario from '@/views/component/scenario/index.vue'
-
+const isScenario = ref(false) //是否展示历史模拟场景
// 搜索框
const queryParams = ref({
current: 1,
@@ -115,7 +116,10 @@ function editClick(row: any) {
info.value = JSON.parse(JSON.stringify(row));
dialogVisible.value = true;
}
-
+function simulationClick(row: any) {
+ info.value = JSON.parse(JSON.stringify(row));
+ isScenario.value = true;
+}
//删除项目
function delAloneClick(row: any) {
ElMessageBox.confirm("确定删除此项目吗?", "删除提示", {
@@ -219,9 +223,10 @@ onMounted(() => {
-
@@ -245,7 +250,7 @@ onMounted(() => {
-
+
+
+
+
+
+
+
@@ -284,6 +298,7 @@ onMounted(() => {
border: none;
border-radius: 3px;
box-sizing: border-box;
+ padding-bottom: 10px;
}
.line {
@@ -339,10 +354,10 @@ onMounted(() => {
--el-input-inner-height: 38px
}
.project-box .el-button{
- height: 40px;
+ height: 36px;
}
.el-dialog .el-button{
- height: 38px;
+ height: 40px;
}
\ 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
new file mode 100644
index 0000000..00eed13
--- /dev/null
+++ b/business-css/frontend/src/views/component/scenario/index.vue
@@ -0,0 +1,355 @@
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+ 新增
+ 删除
+
+
+
+
+
+
+
+
+
+ {{ dateFormat(scope.row.updatedAt) }}
+ --
+
+
+
+
+
+ {{ dateFormat(scope.row.updatedAt) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/business-css/frontend/src/views/system/menu/index.vue b/business-css/frontend/src/views/system/menu/index.vue
index 2b93f52..50ee024 100644
--- a/business-css/frontend/src/views/system/menu/index.vue
+++ b/business-css/frontend/src/views/system/menu/index.vue
@@ -593,7 +593,7 @@ onMounted(() => {