diff --git a/smart-flow-web/src/router/flow/flow.js b/smart-flow-web/src/router/flow/flow.js
index 3531dd5..ffded59 100644
--- a/smart-flow-web/src/router/flow/flow.js
+++ b/smart-flow-web/src/router/flow/flow.js
@@ -7,7 +7,7 @@ export const flowRouters = [
permissions: ['flow:definition:design'],
children: [
{
- path: 'index/:id(\\d+)',
+ path: 'index/:id',
component: () => import('/@/views/flow/definition/warm-flow.vue'),
name: 'Design',
meta: { title: '流程设计', activeMenu: '/flow/definition' }
diff --git a/smart-flow-web/src/views/flow/definition/definition-form.vue b/smart-flow-web/src/views/flow/definition/definition-form.vue
index 6f76776..d25822a 100644
--- a/smart-flow-web/src/views/flow/definition/definition-form.vue
+++ b/smart-flow-web/src/views/flow/definition/definition-form.vue
@@ -1,262 +1,374 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 表单路径
-
-
-
-
-
-
-
-
-
-
-
-
-
- 开始
- 分派
- 完成
- 创建
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ 经典模型
+ 仿钉钉模型
+ 切换后重置节点,保存后不支持修改!
+
+
+
+
+
+
+
+
+
+
+
+
+ 否
+
+
+
+
+
+
+
+
+
+ 是
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
- 增加行
-
-
-
-
-
-
-
- 取消
- 保存
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 增加行
+
+
+
+
+
+
+
+
-
+
+
\ No newline at end of file
diff --git a/smart-flow-web/src/views/flow/definition/definition-list.vue b/smart-flow-web/src/views/flow/definition/definition-list.vue
index 5d16800..f877f62 100644
--- a/smart-flow-web/src/views/flow/definition/definition-list.vue
+++ b/smart-flow-web/src/views/flow/definition/definition-list.vue
@@ -218,6 +218,13 @@
import {useRouter} from "vue-router";
import {useUserStore} from "/@/store/modules/system/user.js";
+ // ---------------------------- 添加/修改 ----------------------------
+ const formRef = ref();
+
+ function showForm(data) {
+ formRef.value.show(data);
+ }
+
// ---------------------------- 表格列 ----------------------------
const columns = ref([
@@ -318,14 +325,7 @@
onMounted(queryData);
- // ---------------------------- 添加/修改 ----------------------------
- const formRef = ref();
-
- function showForm(data) {
- formRef.value.show(data);
- }
-
- // 响应式数据
+ // ---------------------------- 导入相关 ----------------------------
const upload = reactive({
open: false,
isUploading: false,
@@ -588,4 +588,4 @@
flowChart.value = false;
};
-
+
\ No newline at end of file
diff --git a/smart-flow-web/src/views/flow/definition/warm-flow.vue b/smart-flow-web/src/views/flow/definition/warm-flow.vue
index b34bd1c..b2715f0 100644
--- a/smart-flow-web/src/views/flow/definition/warm-flow.vue
+++ b/smart-flow-web/src/views/flow/definition/warm-flow.vue
@@ -10,7 +10,12 @@ import {useUserStore} from "/@/store/modules/system/user.js";
const { proxy } = getCurrentInstance();
import {getCurrentInstance, onMounted, onUnmounted, ref} from 'vue';
-const iframeUrl = ref(import.meta.env.VITE_APP_API_URL + `/warm-flow-ui/index.html?id=${proxy.$route.params.id}&disabled=${proxy.$route.query.disabled}&Authorization=Bearer ` + useUserStore().getToken);
+const routeId = proxy.$route.params.id;
+const isNew = routeId === 'new';
+const iframeUrl = ref(isNew
+ ? import.meta.env.VITE_APP_API_URL + `/warm-flow-ui/index.html?disabled=false&Authorization=Bearer ` + useUserStore().getToken
+ : import.meta.env.VITE_APP_API_URL + `/warm-flow-ui/index.html?id=${routeId}&disabled=false&Authorization=Bearer ` + useUserStore().getToken
+);
onMounted(() => {
window.addEventListener("message", handleMessage);
@@ -40,4 +45,4 @@ function close() {
width: 100%;
height: calc(100vh - 84px);
}
-
+
\ No newline at end of file