|
|
@@ -62,15 +62,18 @@
|
|
|
|
|
|
<el-table-column fixed="right" min-width="240" label="操作">
|
|
|
<template #default="scope">
|
|
|
+
|
|
|
<el-button v-if="scope.row.status === 1" type="primary" link @click="handleSendApproval(scope)"
|
|
|
>提交</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
link
|
|
|
+ v-if="scope.row.status === 1"
|
|
|
@click="$router.push({ name: 'hazardApprovalManageEdit', query: { id: scope.row.id } })"
|
|
|
>编辑</el-button
|
|
|
>
|
|
|
+
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
link
|
|
|
@@ -78,19 +81,21 @@
|
|
|
>查看</el-button
|
|
|
>
|
|
|
|
|
|
- <el-popconfirm title="确定要删除吗?" @confirm="handleConfirmDeleteRow(scope)">
|
|
|
+ <el-popconfirm title="确定要删除吗?" @confirm="handleConfirmDeleteRow(scope)" v-if="scope.row.status === 1">
|
|
|
<template #reference>
|
|
|
<el-button type="primary" link>删除</el-button>
|
|
|
</template>
|
|
|
</el-popconfirm>
|
|
|
|
|
|
- <el-button type="primary" link>审批</el-button>
|
|
|
+ <!-- <el-button type="primary" link>审批</el-button> -->
|
|
|
<el-button
|
|
|
+ v-if="scope.row.status === 3"
|
|
|
type="primary"
|
|
|
link
|
|
|
@click="$router.push({ name: 'hazardApprovalManageMonitor', query: { id: scope.row.id } })"
|
|
|
>视频监控</el-button
|
|
|
>
|
|
|
+
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|