|
@@ -44,7 +44,7 @@
|
|
|
<el-card shadow="hover" class="list-card">
|
|
<el-card shadow="hover" class="list-card">
|
|
|
<div class="list-toolbar">
|
|
<div class="list-toolbar">
|
|
|
<span class="list-total">共 {{ total }} 条记录,当前 1 页</span>
|
|
<span class="list-total">共 {{ total }} 条记录,当前 1 页</span>
|
|
|
- <el-button type="primary" :icon="Plus" @click="handleAdd">新增上报</el-button>
|
|
|
|
|
|
|
+ <el-button v-hasPermi="['risk:workReport:add']" type="primary" :icon="Plus" @click="handleAdd">新增上报</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="workReportList" border stripe>
|
|
<el-table v-loading="loading" :data="workReportList" border stripe>
|
|
@@ -91,11 +91,12 @@
|
|
|
<el-button link type="primary" @click="handleView(scope.row)">查看详情</el-button>
|
|
<el-button link type="primary" @click="handleView(scope.row)">查看详情</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
v-if="scope.row.auditStatus === '0' || scope.row.auditStatus === '待审核'"
|
|
v-if="scope.row.auditStatus === '0' || scope.row.auditStatus === '待审核'"
|
|
|
|
|
+ v-hasPermi="['risk:workReport:review']"
|
|
|
link
|
|
link
|
|
|
type="primary"
|
|
type="primary"
|
|
|
@click="handleAudit(scope.row)"
|
|
@click="handleAudit(scope.row)"
|
|
|
>审核</el-button>
|
|
>审核</el-button>
|
|
|
- <el-button link type="danger" @click="handleDelete(scope.row)">删除</el-button>
|
|
|
|
|
|
|
+ <el-button v-hasPermi="['risk:workReport:remove']" link type="danger" @click="handleDelete(scope.row)">删除</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
@@ -251,7 +252,7 @@
|
|
|
<template #footer>
|
|
<template #footer>
|
|
|
<div class="dialog-footer">
|
|
<div class="dialog-footer">
|
|
|
<el-button @click="cancel">取消</el-button>
|
|
<el-button @click="cancel">取消</el-button>
|
|
|
- <el-button type="primary" @click="submitForm">确定</el-button>
|
|
|
|
|
|
|
+ <el-button v-hasPermi="[form.id ? 'risk:workReport:edit' : 'risk:workReport:add']" type="primary" @click="submitForm">确定</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -354,7 +355,7 @@
|
|
|
<template #footer>
|
|
<template #footer>
|
|
|
<div class="dialog-footer">
|
|
<div class="dialog-footer">
|
|
|
<el-button @click="cancelAudit">取消</el-button>
|
|
<el-button @click="cancelAudit">取消</el-button>
|
|
|
- <el-button type="primary" @click="submitAudit">确认审核</el-button>
|
|
|
|
|
|
|
+ <el-button v-hasPermi="['risk:workReport:review']" type="primary" @click="submitAudit">确认审核</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -572,7 +573,7 @@ const submitAudit = () => {
|
|
|
auditStatus: auditForm.value.auditStatus,
|
|
auditStatus: auditForm.value.auditStatus,
|
|
|
auditOpinion: auditForm.value.auditOpinion
|
|
auditOpinion: auditForm.value.auditOpinion
|
|
|
};
|
|
};
|
|
|
- await auditWorkReport(auditForm.value.id as string | number, data);
|
|
|
|
|
|
|
+ await auditWorkReport(data);
|
|
|
proxy?.$modal.msgSuccess('审核成功');
|
|
proxy?.$modal.msgSuccess('审核成功');
|
|
|
auditDialog.visible = false;
|
|
auditDialog.visible = false;
|
|
|
await getList();
|
|
await getList();
|