提交代码
This commit is contained in:
parent
50ae0ea62d
commit
b69ef1dd92
|
|
@ -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
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue