|
@@ -3,7 +3,10 @@
|
|
|
<div class="meta">
|
|
|
<div class="header">
|
|
|
<h3>{{ project?.projectName }}</h3>
|
|
|
- <div class="actions">
|
|
|
+ <div
|
|
|
+ v-if="project?.projectStatus === ProjectStatus.undone"
|
|
|
+ class="actions"
|
|
|
+ >
|
|
|
<a-button @click="updateProject">修改项目</a-button>
|
|
|
<a-button @click="deleteProject">删除项目</a-button>
|
|
|
<a-button type="primary" @click="finishProject"> 完成项目 </a-button>
|
|
@@ -40,7 +43,7 @@ import { Modal } from 'ant-design-vue'
|
|
|
import { HeadPanl, BodyPanl } from '@/layout/panl'
|
|
|
import { router, RoutesName, routesMetas } from '@/router'
|
|
|
import { computed, toRef } from 'vue'
|
|
|
-import { useProject } from '@/store'
|
|
|
+import { useProject, ProjectStatus } from '@/store'
|
|
|
import { useRealtime } from '@/hook'
|
|
|
import { renderModal } from '@/helper'
|
|
|
import { uploadFile } from '@/api'
|