From 01f0cd78713639315f3f6bca1b834ad6c823d7b1 Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Tue, 8 Oct 2024 20:57:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=84=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mxgraph/graphList/components/popup.vue | 2 +- src/views/govern/mxgraph/graphList/index.vue | 28 +++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/views/govern/mxgraph/graphList/components/popup.vue b/src/views/govern/mxgraph/graphList/components/popup.vue index b802b01..a318dec 100644 --- a/src/views/govern/mxgraph/graphList/components/popup.vue +++ b/src/views/govern/mxgraph/graphList/components/popup.vue @@ -106,7 +106,7 @@ const open = ref((row: any) => { dialogVisible.value = true if (row.title == '新增项目') { form.name = '' - form.projectIds = ['71e570df7e1cd3e37635c505deb19ee2'] + form.projectIds = [] form.orderBy = '100' form.remark = '' } else { diff --git a/src/views/govern/mxgraph/graphList/index.vue b/src/views/govern/mxgraph/graphList/index.vue index 3d93328..6998aad 100644 --- a/src/views/govern/mxgraph/graphList/index.vue +++ b/src/views/govern/mxgraph/graphList/index.vue @@ -105,13 +105,13 @@ const editd = (e: any) => { } // 设计 const Aclick = (e: any) => { - // window.open(window.location.origin + `/zutai/?id=${e.id}&&name=decodeURI(${e.name})&&flag=false`) - const link = document.createElement("a"); //创建下载a标签 - link.target = `_blank`; - link.href = `http://192.168.1.128:3001/zutai/?id=${e.id}&&name=decodeURI(${e.name})&&flag=false`; - link.style.display = "none"; //默认隐藏元素 - document.body.appendChild(link); // body中添加元素 - link.click(); // 执行点击事件 + window.open(window.location.origin + `/zutai/?id=${e.id}&&name=decodeURI(${e.name})&&flag=false`) + // const link = document.createElement("a"); //创建下载a标签 + // link.target = `_blank`; + // link.href = `http://192.168.1.128:3001/zutai/?id=${e.id}&&name=decodeURI(${e.name})&&flag=false`; + // link.style.display = "none"; //默认隐藏元素 + // document.body.appendChild(link); // body中添加元素 + // link.click(); // 执行点击事件 } const shejid = (e: any) => { } // 删除 @@ -146,13 +146,13 @@ const deleted = (e: any) => { } const imgData = (e: any) => { - // window.open(window.location.origin + `/zutai/?id=${e.id}&&name=decodeURI(${e.name})&&flag=true`) - const link = document.createElement("a"); //创建下载a标签 - link.target = `_blank`; - link.href = `http://192.168.1.128:3001/zutai/#/?id=${e.id}&&name=decodeURI(${e.name})&&flag=true`; - link.style.display = "none"; //默认隐藏元素 - document.body.appendChild(link); // body中添加元素 - link.click(); // 执行点击事件 + window.open(window.location.origin + `/zutai/?id=${e.id}&&name=decodeURI(${e.name})&&flag=true`) + // const link = document.createElement("a"); //创建下载a标签 + // link.target = `_blank`; + // link.href = `http://192.168.1.128:3001/zutai/#/?id=${e.id}&&name=decodeURI(${e.name})&&flag=true`; + // link.style.display = "none"; //默认隐藏元素 + // document.body.appendChild(link); // body中添加元素 + // link.click(); // 执行点击事件 } const onTableSizeChange = (val: number) => {