From 1c06677a21c49a6c9cc798b37326c84f6441f325 Mon Sep 17 00:00:00 2001 From: wuyize Date: Thu, 14 Jul 2022 11:33:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E8=AF=A5=E8=A7=A3=E5=86=B3=E4=BA=86?= =?UTF-8?q?=E7=BB=93=E9=A1=B9=E4=B8=8D=E5=88=B7=E6=96=B0=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/OngoingProject.vue | 43 ++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/src/views/OngoingProject.vue b/src/views/OngoingProject.vue index 5fd9e4c..f9b6c5d 100644 --- a/src/views/OngoingProject.vue +++ b/src/views/OngoingProject.vue @@ -67,6 +67,7 @@ import {getCurrentInstance, onMounted, ref, watch} from "vue"; import {useRouter} from 'vue-router' import request from "../utils/request"; +import {ElMessage} from "element-plus"; const tableRef = ref(null); // table高度 @@ -164,6 +165,26 @@ watch( {immediate: true} ) +const onCloseProject = (row) => { + request({ + url: 'project/complete', + method: 'post', + data: { + projectId: row.projectId, + } + }).then(response => { + if (response.data.code === 200) { + //console.log(response.data.data.records) + ElMessage({ + message: '结项成功', + type: 'success', + }) + getProjects(); + } + }).catch(function (error) { + console.log(error) + }) +},