This commit is contained in:
parent
a8f97f4155
commit
9f3581176c
|
|
@ -64,7 +64,8 @@
|
|||
<el-table-column align="center" show-overflow-tooltip prop="createTime" label="申请时间" />
|
||||
<el-table-column align="center" show-overflow-tooltip label="操作" width="100">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" type="text" icon="el-icon-edit" @click="onHandleAudit(scope.row)">审核</el-button>
|
||||
<el-button size="mini" type="text" icon="el-icon-zoom-in" @click="onHandleView(scope.row)">查看</el-button>
|
||||
<el-button v-if="scope.row.reviewStatus == 0" size="mini" type="text" icon="el-icon-edit" @click="onHandleAudit(scope.row)">审核</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
|
@ -132,7 +133,17 @@ export default {
|
|||
}
|
||||
this.getRetireApplyAuditList()
|
||||
},
|
||||
|
||||
// 查看
|
||||
onHandleView(row) {
|
||||
this.$router.push({
|
||||
name: 'RetireApplyDetail',
|
||||
params: { id: row.id },
|
||||
query: {
|
||||
taskInfo: JSON.stringify(row),
|
||||
mode: 'view' // 增加 mode 参数,标识为查看模式
|
||||
}
|
||||
})
|
||||
},
|
||||
// 审核
|
||||
onHandleAudit(row) {
|
||||
this.$router.push({
|
||||
|
|
|
|||
|
|
@ -73,8 +73,8 @@
|
|||
<el-table-column align="center" show-overflow-tooltip label="操作" width="250">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" type="text" icon="el-icon-zoom-in" @click="onHandleView(scope.row)">查看</el-button>
|
||||
<el-button v-if="scope.row.reviewStatus === '0'" type="text" icon="el-icon-edit" size="mini" @click="onHandleEdit(scope.row)">编辑</el-button>
|
||||
<el-button v-if="scope.row.reviewStatus === '0'" type="text" icon="el-icon-delete" size="mini" style="color:red;" @click="onHandleDelete(scope.row)">删除</el-button>
|
||||
<el-button v-if="scope.row.reviewStatus == '0' || scope.row.reviewStatus == '3'" type="text" icon="el-icon-edit" size="mini" @click="onHandleEdit(scope.row)">编辑</el-button>
|
||||
<el-button v-if="scope.row.reviewStatus == '0' || scope.row.reviewStatus == '3'" type="text" icon="el-icon-delete" size="mini" style="color:red;" @click="onHandleDelete(scope.row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
|
|
|||
Loading…
Reference in New Issue