This commit is contained in:
刘旋 2023-04-23 20:39:40 +08:00
parent 8e47d830bf
commit c492cdd552
1 changed files with 10 additions and 10 deletions

View File

@ -3,7 +3,7 @@
<el-config-provider :locale="en">
<div class="system-role-padding layout-padding-auto layout-padding-view">
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick" style="margin-left: 20px">
<el-tab-pane label="Not reviewed" name="first">
<el-tab-pane label="Awaiting approval" name="first">
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%">
<el-table-column type="index" label="ID" width="50" />
<el-table-column prop="username" label="User name" show-overflow-tooltip></el-table-column>
@ -27,13 +27,13 @@
<!-- <el-table-column prop="responseTime" label="Response time" show-overflow-tooltip></el-table-column> -->
<el-table-column prop="respondStatus" label="Response status" show-overflow-tooltip>
<template #default="scope">
<el-tag type="info" v-if="scope.row.respondStatus === 0">Not reviewed</el-tag>
<el-tag type="info" v-if="scope.row.respondStatus === 1">Reviewed failed</el-tag>
<el-tag type="info" v-if="scope.row.respondStatus === 0">Unapproved</el-tag>
<el-tag type="info" v-if="scope.row.respondStatus === 1">Rejected</el-tag>
</template>
</el-table-column>
<el-table-column prop="Operate" label="Operate" show-overflow-tooltip>
<template #default="scope">
<el-button size="small" text type="primary" @click="onOpenEditRole('edit', scope.row)">Review</el-button>
<el-button size="small" text type="primary" @click="onOpenEditRole('edit', scope.row)">Approve</el-button>
</template>
</el-table-column>
@ -62,7 +62,7 @@
:total="state.tableData.total">
</el-pagination>
</el-tab-pane>
<el-tab-pane label="Reviewed" name="second">
<el-tab-pane label="Approved" name="second">
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%">
<el-table-column type="index" label="ID" width="50" />
<el-table-column prop="username" label="User name" show-overflow-tooltip></el-table-column>
@ -98,9 +98,9 @@
<template #default="scope">
<el-tag type="info"
v-if="scope.row.respondStatus === 2">Reviewed</el-tag>
v-if="scope.row.respondStatus === 2">Approved</el-tag>
<el-tag type="info"
v-if="scope.row.respondStatus === 1">Failed</el-tag>
v-if="scope.row.respondStatus === 1">Rejected</el-tag>
</template>
</el-table-column>
@ -131,7 +131,7 @@
</el-tabs>
</div>
<el-dialog v-model="state.dialogVisible"
title="Review"
title="Approval"
width="30%">
<el-container style="margin-top: -2%;margin-bottom: 2%;">
<el-radio v-model="state.radio"
@ -174,11 +174,11 @@
<el-button @click="dialogVisible = false">Cancel</el-button>
<el-button type="danger"
@click="reviews(1)">
Not Review
Reject
</el-button>
<el-button type="primary"
@click="reviews(2)">
Review
Approve
</el-button>
</span>
</template>