|
|
@@ -1,25 +1,34 @@
|
|
|
<template>
|
|
|
<div class="safety-platform-container">
|
|
|
<header class="safety-platform-container__header">
|
|
|
- <el-tabs v-model="activeTab" @tab-change="handleTabChange">
|
|
|
+ <div class="breadcrumb-title">{{ $route.meta.title }}</div>
|
|
|
+ <!-- <el-tabs v-model="activeTab" @tab-change="handleTabChange">
|
|
|
<el-tab-pane label="公共区域" :name="1" />
|
|
|
<el-tab-pane label="非公共区域" :name="2" />
|
|
|
- </el-tabs>
|
|
|
+ </el-tabs> -->
|
|
|
</header>
|
|
|
<main class="safety-platform-container__main">
|
|
|
+ <div style="margin-bottom: 20px">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="
|
|
|
+ $router.push({
|
|
|
+ name: 'addResponsibilities:nonPublic',
|
|
|
+ })
|
|
|
+ "
|
|
|
+ >添加
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
<div class="search-form">
|
|
|
<el-form :inline="true">
|
|
|
<el-form-item label="功能名称">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.queryParam.nameFunction"
|
|
|
- placeholder="搜索安全责任书名称"
|
|
|
- style="width: 170px"
|
|
|
- />
|
|
|
+ <el-input v-model="queryParams.queryParam.nameFunction" placeholder="搜索功能名称" style="width: 170px" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="状态">
|
|
|
<el-select v-model="queryParams.queryParam.status" clearable placeholder="状态" style="width: 170px">
|
|
|
<el-option :value="1" label="正常" />
|
|
|
<el-option :value="2" label="待确认" />
|
|
|
+ <el-option :value="3" label="已拒绝" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
|
@@ -51,15 +60,7 @@
|
|
|
<div>
|
|
|
<!-- <el-button @click="batchImportVisible = true">导入</el-button>
|
|
|
<el-button type="primary" @click="handleDownload">导出</el-button> -->
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- @click="
|
|
|
- $router.push({
|
|
|
- name: 'addResponsibilities:nonPublic',
|
|
|
- })
|
|
|
- "
|
|
|
- >添加
|
|
|
- </el-button>
|
|
|
+
|
|
|
<el-button type="primary" @click="queryTableList">查询</el-button>
|
|
|
<el-button @click="handleRestParams">重置</el-button>
|
|
|
</div>
|
|
|
@@ -82,7 +83,7 @@
|
|
|
<el-table-column label="状态" prop="statusName" width="100" />
|
|
|
<el-table-column fixed="right" min-width="240" label="操作">
|
|
|
<template #default="scope">
|
|
|
- <div v-if="scope.row.status === 1">
|
|
|
+ <template v-if="scope.row.status === 1">
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
link
|
|
|
@@ -102,19 +103,6 @@
|
|
|
</template>
|
|
|
</el-popconfirm>
|
|
|
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- link
|
|
|
- @click="
|
|
|
- $router.push({
|
|
|
- name: 'viewResponsibilities:nonPublic',
|
|
|
- query: {
|
|
|
- id: scope.row.id,
|
|
|
- },
|
|
|
- })
|
|
|
- "
|
|
|
- >查看</el-button
|
|
|
- >
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
link
|
|
|
@@ -128,15 +116,35 @@
|
|
|
"
|
|
|
>变更</el-button
|
|
|
>
|
|
|
- </div>
|
|
|
- <div v-if="scope.row.canChange === true">
|
|
|
+ </template>
|
|
|
+ <template v-if="scope.row.canChange === true">
|
|
|
<el-button type="primary" link @click="handleAreaCheckListApprove(scope, 1)">确认</el-button>
|
|
|
<el-button type="primary" link @click="handleAreaCheckListApprove(scope, 0)">拒绝</el-button>
|
|
|
- </div>
|
|
|
- <div v-if="scope.row.status === 3">
|
|
|
+ </template>
|
|
|
+ <template v-if="scope.row.status === 3">
|
|
|
<el-button type="primary" link>变更</el-button>
|
|
|
- <el-button type="primary" link>查看</el-button>
|
|
|
- </div>
|
|
|
+ </template>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ link
|
|
|
+ @click="
|
|
|
+ $router.push({
|
|
|
+ name: 'viewResponsibilities:nonPublic',
|
|
|
+ query: {
|
|
|
+ id: scope.row.id,
|
|
|
+ },
|
|
|
+ })
|
|
|
+ "
|
|
|
+ >查看</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ link
|
|
|
+ type="primary"
|
|
|
+ v-if="scope.row.safetySpecificPerson === id"
|
|
|
+ @click="handleAreaCheckListApprove(scope, 0)"
|
|
|
+ >
|
|
|
+ 撤回
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -144,9 +152,11 @@
|
|
|
<div class="pagination-container" v-if="tableData.total > 0">
|
|
|
<el-pagination
|
|
|
background
|
|
|
+ layout="prev, pager, next, jumper,sizes, total"
|
|
|
:current-page="queryParams.pageNumber"
|
|
|
:page-size="queryParams.pageSize"
|
|
|
:total="tableData.total"
|
|
|
+ :page-sizes="[10, 20, 50, 100]"
|
|
|
@size-change="handleSizeChange"
|
|
|
@current-change="handleCurrentChange"
|
|
|
/>
|
|
|
@@ -181,6 +191,9 @@
|
|
|
import { useGlobSetting } from '@/hooks/setting';
|
|
|
import { formatDeptTree } from '@/views/disaster/utils/formatDeptTree';
|
|
|
import { getAllDepartments } from '@/api/auth/dept';
|
|
|
+ import { useUserInfoHook } from '@/views/disaster/hooks';
|
|
|
+
|
|
|
+ const { id: userId } = useUserInfoHook();
|
|
|
const router = useRouter();
|
|
|
const activeTab = ref(2);
|
|
|
const queryParams = reactive<any>({
|
|
|
@@ -266,7 +279,11 @@
|
|
|
approveType,
|
|
|
refuseReason: null,
|
|
|
}).then(() => {
|
|
|
- ElMessage.success('操作成功!');
|
|
|
+ if (approveType === 1) {
|
|
|
+ ElMessage.success('请尽快修改该责任清单的安全责任所/中心、安全责任部门及相关负责人信息');
|
|
|
+ } else {
|
|
|
+ ElMessage.success('操作成功!');
|
|
|
+ }
|
|
|
queryTableList();
|
|
|
});
|
|
|
};
|
|
|
@@ -286,7 +303,10 @@
|
|
|
});
|
|
|
};
|
|
|
|
|
|
- const handleSizeChange = (value) => {};
|
|
|
+ const handleSizeChange = (value) => {
|
|
|
+ queryParams.pageSize = value;
|
|
|
+ queryTableList();
|
|
|
+ };
|
|
|
const handleCurrentChange = (value) => {
|
|
|
queryParams.pageNumber = value;
|
|
|
queryTableList();
|
|
|
@@ -362,7 +382,7 @@
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
- align-items: center;
|
|
|
+ align-items: flex-end;
|
|
|
margin-bottom: 20px;
|
|
|
}
|
|
|
|
|
|
@@ -378,4 +398,9 @@
|
|
|
display: flex;
|
|
|
justify-content: flex-end;
|
|
|
}
|
|
|
+ .pagination-container {
|
|
|
+ margin-top: 20px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-end;
|
|
|
+ }
|
|
|
</style>
|