From 50111114eb8254fe4d6fc15e9781f2c47e3db74a Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期三, 24 七月 2024 00:12:52 +0800 Subject: [PATCH] 删除工艺路线绑定 --- src/views/tigerprojects/system/lowcode/composition/index.vue | 21 ++++++++++++++++----- 1 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/views/tigerprojects/system/lowcode/composition/index.vue b/src/views/tigerprojects/system/lowcode/composition/index.vue index 5422a86..8b4d180 100644 --- a/src/views/tigerprojects/system/lowcode/composition/index.vue +++ b/src/views/tigerprojects/system/lowcode/composition/index.vue @@ -4,7 +4,7 @@ * @version: * @Date: 2024-06-18 23:30:30 * @LastEditors: Ben Lin - * @LastEditTime: 2024-07-22 16:25:39 + * @LastEditTime: 2024-07-23 23:16:58 --> <template> <PageWrapper @@ -17,7 +17,7 @@ @back="goBack" > <Suspense class="w-1/4 xl:w-1/5"> - <LeftTree @select="NodeSelect" /> + <LeftTree @select="NodeSelect" @deletenode="delCallback" /> </Suspense> <Suspense> <div class="w-3/4 xl:w-4/5 p-5"> @@ -98,7 +98,7 @@ const { notification, createErrorModal } = useMessage(); const go = useGo(); const route = useRoute(); - const { setTitle } = useTabs(); + const { setTitle, refreshPage } = useTabs(); // const objParams = ref(JSON.parse(decodeURI(route.params?.id as string))); //ref(JSON.parse(history.state.obj)) const routeParams = ref(JSON.parse(decodeURI(route.params?.id as string))); // 浠巗essionStorage涓鍙栧弬鏁板苟杞崲鍥炲璞� @@ -139,7 +139,7 @@ if (!isNullOrUnDef(custImport.value)) { const [{ GetHomeUrl }] = custImport.value['default'](); // 鏈緥鐨勬晥鏋滄椂鐐瑰嚮杩斿洖濮嬬粓璺宠浆鍒拌处鍙峰垪琛ㄩ〉锛屽疄闄呭簲鐢ㄦ椂鍙繑鍥炰笂涓�椤� - go(GetHomeUrl({colSlots:colSlots.value})); + go(GetHomeUrl({ colSlots: colSlots.value })); } } @@ -185,7 +185,18 @@ nodes: [], edges: [], }; - initRoute(currlf, e.nodes[0].id, routeData, currlf); + if ((e.nodes[0].type == 'Route')) { + initRoute(currlf, e.nodes[0].code, routeData, currlf); + } + } + + /** + * @description: 鍒犻櫎鑺傜偣鍚庡洖璋� + * @param {*} node + * @return {*} + */ + function delCallback(node) { + refreshPage(); } /** -- Gitblit v1.9.3