|
@@ -347,8 +347,12 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="操作" width="200" sortable>
|
|
<el-table-column label="操作" width="200" sortable>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button size="small" @click="checkUpdate(scope.row.id, true)" type="primary">通过</el-button>
|
|
|
|
- <el-button size="small" @click="checkUpdate(scope.row.id, false)" type="danger">拒绝</el-button>
|
|
|
|
|
|
+ <el-button size="small" @click="checkUpdate(scope.row.id, true)" type="primary"
|
|
|
|
+ v-if="approve == 1 && (scope.row.state == 0 || (scope.row.state == 1 && user.subordinateType == 1) || (scope.row.state == 2 && user.subordinateType == 0))"
|
|
|
|
+ >通过</el-button>
|
|
|
|
+ <el-button size="small" @click="checkUpdate(scope.row.id, false)" type="danger"
|
|
|
|
+ v-if="approve == 1 && (scope.row.state == 0 || (scope.row.state == 1 && user.subordinateType == 1) || (scope.row.state == 2 && user.subordinateType == 0))"
|
|
|
|
+ >拒绝</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|