This commit is contained in:
bb_pan 2025-12-03 09:34:23 +08:00
parent a8f97f4155
commit 9f3581176c
2 changed files with 15 additions and 4 deletions

View File

@ -64,7 +64,8 @@
<el-table-column align="center" show-overflow-tooltip prop="createTime" label="申请时间" /> <el-table-column align="center" show-overflow-tooltip prop="createTime" label="申请时间" />
<el-table-column align="center" show-overflow-tooltip label="操作" width="100"> <el-table-column align="center" show-overflow-tooltip label="操作" width="100">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -132,7 +133,17 @@ export default {
} }
this.getRetireApplyAuditList() this.getRetireApplyAuditList()
}, },
//
onHandleView(row) {
this.$router.push({
name: 'RetireApplyDetail',
params: { id: row.id },
query: {
taskInfo: JSON.stringify(row),
mode: 'view' // mode
}
})
},
// //
onHandleAudit(row) { onHandleAudit(row) {
this.$router.push({ this.$router.push({

View File

@ -73,8 +73,8 @@
<el-table-column align="center" show-overflow-tooltip label="操作" width="250"> <el-table-column align="center" show-overflow-tooltip label="操作" width="250">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-zoom-in" @click="onHandleView(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'" 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-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-delete" size="mini" style="color:red;" @click="onHandleDelete(scope.row)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>