From 3b40695ea488790bd1f8ffb53eb1820ae8bfc2f1 Mon Sep 17 00:00:00 2001 From: caofengbin <1050430934@qq.com> Date: Tue, 28 May 2024 20:30:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=89=E5=8F=96=E5=85=AC=E5=85=B1=E6=AD=A5?= =?UTF-8?q?=E9=AA=A4=E5=88=97=E8=A1=A8=E7=9A=84=E6=8E=A5=E5=8F=A3=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA=E4=B8=8D=E6=8B=89=E5=8F=96=E5=85=AC?= =?UTF-8?q?=E5=85=B1=E6=AD=A5=E9=AA=A4=E5=86=85=E7=9A=84=E5=AD=90=E6=AD=A5?= =?UTF-8?q?=E9=AA=A4=E4=BF=A1=E6=81=AF=EF=BC=8C=E5=89=8D=E7=AB=AF=E7=94=A8?= =?UTF-8?q?=E6=97=B6=E5=86=8D=E5=8D=95=E7=8B=AC=E6=9F=A5=E8=AF=A2=EF=BC=8C?= =?UTF-8?q?=E4=BB=8E=E8=80=8C=E6=8F=90=E9=AB=98=E9=A1=B5=E9=9D=A2=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/PublicStep.vue | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/src/views/PublicStep.vue b/src/views/PublicStep.vue index ede5bb3d..e1bf7c98 100644 --- a/src/views/PublicStep.vue +++ b/src/views/PublicStep.vue @@ -80,6 +80,25 @@ const deletePublicStep = (id) => { } }); }; +const curShowPublicStep = ref({ + id: null, + projectId: route.params.projectId, + platform: 0, + name: '', + steps: [], +}); +/** + * 点击列表上的某个公共元素信息之后,再拉取单个公共步骤的子步骤信息 + * @param id 公共步骤id + */ +const getPublicStepInfo = (id) => { + curShowPublicStep.value.steps = []; + axios.get('/controller/publicSteps', { params: { id } }).then((resp) => { + if (resp.code === 2000) { + curShowPublicStep.value = resp.data; + } + }); +}; onMounted(() => { getPublicStepList(); }); @@ -124,9 +143,9 @@ onMounted(() => { >