提交代码

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

View File

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