提交代码

This commit is contained in:
jiang 2024-12-20 11:22:12 +08:00
parent 50ae0ea62d
commit b69ef1dd92
3 changed files with 17 additions and 9 deletions

View File

@ -76,15 +76,16 @@
<el-table-column label="操作" align="center" min-width="140" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
v-if="scope.row.annotatorIds.split(',').includes(getUserId)"
v-if="scope.row.annotatorIds.split(',').map(Number).includes(getUserId)"
size="mini"
type="text"
@click="handleExamine(scope.row)"
v-hasPermi="['dataCenter:sample:edit']"
:disabled="scope.row.status1Count ===0"
>审核
</el-button>
<el-button
v-if="scope.row.reviewerIds.split(',').includes(getUserId)"
v-if="scope.row.reviewerIds.split(',').map(Number).includes(getUserId)"
:disabled="scope.row.status0Count ===0"
size="mini"
type="text"
@ -93,7 +94,7 @@
>智能标注
</el-button>
<el-button
v-if="scope.row.reviewerIds.split(',').includes(getUserId)"
v-if="scope.row.reviewerIds.split(',').map(Number).includes(getUserId)"
size="mini"
type="text"
@click="handleAnnotation(scope.row)"
@ -106,6 +107,7 @@
type="text"
@click="handleRelease(scope.row)"
v-hasPermi="['dataCenter:sample:edit']"
:disabled="scope.row.status2Count ===0"
>发布
</el-button>
</template>
@ -194,6 +196,8 @@ export default {
},
computed: {
getUserId() {
console.log('1,2'.split(',').includes(store.state.user.id + ''))
return store.state.user.id
}
},

View File

@ -76,15 +76,16 @@
<el-table-column label="操作" align="center" min-width="140" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
v-if="scope.row.annotatorIds.split(',').includes(getUserId)"
v-if="scope.row.annotatorIds.split(',').map(Number).includes(getUserId)"
size="mini"
type="text"
@click="handleExamine(scope.row)"
v-hasPermi="['dataCenter:sample:edit']"
:disabled="scope.row.status1Count ===0"
>审核
</el-button>
<el-button
v-if="scope.row.reviewerIds.split(',').includes(getUserId)"
v-if="scope.row.reviewerIds.split(',').map(Number).includes(getUserId)"
:disabled="scope.row.status0Count ===0"
size="mini"
type="text"
@ -93,7 +94,7 @@
>智能标注
</el-button>
<el-button
v-if="scope.row.reviewerIds.split(',').includes(getUserId)"
v-if="scope.row.reviewerIds.split(',').map(Number).includes(getUserId)"
size="mini"
type="text"
@click="handleAnnotation(scope.row)"
@ -106,6 +107,7 @@
type="text"
@click="handleRelease(scope.row)"
v-hasPermi="['dataCenter:sample:edit']"
:disabled="scope.row.status2Count ===0"
>发布
</el-button>
</template>

View File

@ -76,15 +76,16 @@
<el-table-column label="操作" align="center" min-width="140" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
v-if="scope.row.annotatorIds.split(',').includes(getUserId)"
v-if="scope.row.annotatorIds.split(',').map(Number).includes(getUserId)"
size="mini"
type="text"
@click="handleExamine(scope.row)"
v-hasPermi="['dataCenter:sample:edit']"
:disabled="scope.row.status1Count ===0"
>审核
</el-button>
<el-button
v-if="scope.row.reviewerIds.split(',').includes(getUserId)"
v-if="scope.row.reviewerIds.split(',').map(Number).includes(getUserId)"
:disabled="scope.row.status0Count ===0"
size="mini"
type="text"
@ -93,7 +94,7 @@
>智能标注
</el-button>
<el-button
v-if="scope.row.reviewerIds.split(',').includes(getUserId)"
v-if="scope.row.reviewerIds.split(',').map(Number).includes(getUserId)"
size="mini"
type="text"
@click="handleAnnotation(scope.row)"
@ -106,6 +107,7 @@
type="text"
@click="handleRelease(scope.row)"
v-hasPermi="['dataCenter:sample:edit']"
:disabled="scope.row.status2Count ===0"
>发布
</el-button>
</template>