提交代码
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">
|
<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
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue