|
@@ -15,7 +15,7 @@
|
|
|
<span class="tw-mr-4"></span>
|
|
|
<a-button @click="search">查询</a-button>
|
|
|
|
|
|
- <div class="tw-mt-4">
|
|
|
+ <div v-if="store.isGreaterThanEqualRootOrgAdmin" class="tw-mt-4">
|
|
|
<a-button @click="newProject">新增</a-button>
|
|
|
<a-button @click="handleDeleteProjects(selectIds)"> 批量删除 </a-button>
|
|
|
</div>
|
|
@@ -43,18 +43,31 @@
|
|
|
</template>
|
|
|
<template #action="{ record }">
|
|
|
<span>
|
|
|
- <a-button @click="showModal(record)">编辑</a-button>
|
|
|
- <a-button @click="handleDeleteProjects([record.id])">
|
|
|
+ <a-button
|
|
|
+ v-if="store.isGreaterThanEqualRootOrgAdmin"
|
|
|
+ @click="showModal(record)"
|
|
|
+ >编辑</a-button
|
|
|
+ >
|
|
|
+ <a-button
|
|
|
+ v-if="store.isGreaterThanEqualRootOrgAdmin"
|
|
|
+ @click="handleDeleteProjects([record.id])"
|
|
|
+ >
|
|
|
删除
|
|
|
</a-button>
|
|
|
<a-button
|
|
|
- v-if="record.status === 'PROCESSING'"
|
|
|
+ v-if="
|
|
|
+ record.status === 'PROCESSING' &&
|
|
|
+ store.isGreaterThanEqualRootOrgAdmin
|
|
|
+ "
|
|
|
@click="handleCancelProject(record.id)"
|
|
|
>
|
|
|
取消计算
|
|
|
</a-button>
|
|
|
<a-button
|
|
|
- v-if="record.status === 'FINISH'"
|
|
|
+ v-if="
|
|
|
+ record.status === 'FINISH' &&
|
|
|
+ store.isGreaterThanEqualRootOrgAdmin
|
|
|
+ "
|
|
|
@click="handleRestartProject(record.id)"
|
|
|
>
|
|
|
重新计算
|
|
@@ -63,7 +76,10 @@
|
|
|
错误报告
|
|
|
</a-button>
|
|
|
<a-button
|
|
|
- v-if="record.status !== 'PROCESSING'"
|
|
|
+ v-if="
|
|
|
+ record.status !== 'PROCESSING' &&
|
|
|
+ store.isGreaterThanEqualRootOrgAdmin
|
|
|
+ "
|
|
|
@click="goProjectDataSource(record.id)"
|
|
|
>
|
|
|
数据管理
|