|
|
@ -1,6 +1,17 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="app-container">
|
|
|
|
<div class="app-container">
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
|
|
|
|
<el-form-item label="创建者部门" prop="deptId" v-show="deptShow">
|
|
|
|
|
|
|
|
<el-select v-model="queryParams.deptId" filterable placeholder="请选择部门" clearable>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="dict in allDeptList"
|
|
|
|
|
|
|
|
:key="dict.deptId"
|
|
|
|
|
|
|
|
:label="dict.deptName"
|
|
|
|
|
|
|
|
:value="dict.deptId"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="队伍名称" prop="teamName">
|
|
|
|
<el-form-item label="队伍名称" prop="teamName">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.teamName"
|
|
|
|
v-model="queryParams.teamName"
|
|
|
@ -34,7 +45,7 @@
|
|
|
|
v-hasPermi="['ehs:ehsRescueTeam:add']"
|
|
|
|
v-hasPermi="['ehs:ehsRescueTeam:add']"
|
|
|
|
>新增</el-button>
|
|
|
|
>新增</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<!-- <el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="success"
|
|
|
|
type="success"
|
|
|
|
plain
|
|
|
|
plain
|
|
|
@ -44,8 +55,8 @@
|
|
|
|
@click="handleUpdate"
|
|
|
|
@click="handleUpdate"
|
|
|
|
v-hasPermi="['ehs:ehsRescueTeam:edit']"
|
|
|
|
v-hasPermi="['ehs:ehsRescueTeam:edit']"
|
|
|
|
>修改</el-button>
|
|
|
|
>修改</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>-->
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<!-- <el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="danger"
|
|
|
|
type="danger"
|
|
|
|
plain
|
|
|
|
plain
|
|
|
@ -55,7 +66,7 @@
|
|
|
|
@click="handleDelete"
|
|
|
|
@click="handleDelete"
|
|
|
|
v-hasPermi="['ehs:ehsRescueTeam:remove']"
|
|
|
|
v-hasPermi="['ehs:ehsRescueTeam:remove']"
|
|
|
|
>删除</el-button>
|
|
|
|
>删除</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>-->
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="warning"
|
|
|
|
type="warning"
|
|
|
@ -92,14 +103,15 @@
|
|
|
|
<el-table-column label="救援人员数量" align="center" prop="rescueWorkerNum" />
|
|
|
|
<el-table-column label="救援人员数量" align="center" prop="rescueWorkerNum" />
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" />
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" />
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
|
|
|
|
<template slot-scope="scope" v-if="curDeptId == scope.row.deptId">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
icon="el-icon-edit"
|
|
|
|
icon="el-icon-edit"
|
|
|
|
@click="getWorker(scope.row)"
|
|
|
|
@click="getWorker(scope.row)"
|
|
|
|
>人员信息</el-button>
|
|
|
|
>人员信息</el-button>
|
|
|
|
<!-- <el-button
|
|
|
|
<el-button
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
icon="el-icon-edit"
|
|
|
|
icon="el-icon-edit"
|
|
|
@ -112,7 +124,7 @@
|
|
|
|
icon="el-icon-delete"
|
|
|
|
icon="el-icon-delete"
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
v-hasPermi="['ehs:ehsRescueTeam:remove']"
|
|
|
|
v-hasPermi="['ehs:ehsRescueTeam:remove']"
|
|
|
|
>删除</el-button>-->
|
|
|
|
>删除</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
@ -168,6 +180,7 @@ import { listEhsRescueTeam, getEhsRescueTeam, delEhsRescueTeam, addEhsRescueTeam
|
|
|
|
import { listEhsRescueTeamWorker, getEhsRescueTeamWorker, delEhsRescueTeamWorker, addEhsRescueTeamWorker, updateEhsRescueTeamWorker } from "@/api/ehs/ehsRescueTeamWorker";
|
|
|
|
import { listEhsRescueTeamWorker, getEhsRescueTeamWorker, delEhsRescueTeamWorker, addEhsRescueTeamWorker, updateEhsRescueTeamWorker } from "@/api/ehs/ehsRescueTeamWorker";
|
|
|
|
import importUpload from "@/components/upload/upload";
|
|
|
|
import importUpload from "@/components/upload/upload";
|
|
|
|
import tdh from "../ehsRescueTeamWorker/index.vue"
|
|
|
|
import tdh from "../ehsRescueTeamWorker/index.vue"
|
|
|
|
|
|
|
|
import {listAllDept } from "@/api/system/dept";
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "EhsRescueTeam",
|
|
|
|
name: "EhsRescueTeam",
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
@ -186,10 +199,15 @@ export default {
|
|
|
|
multiple: true,
|
|
|
|
multiple: true,
|
|
|
|
// 显示搜索条件
|
|
|
|
// 显示搜索条件
|
|
|
|
showSearch: true,
|
|
|
|
showSearch: true,
|
|
|
|
|
|
|
|
curDeptId:-1,//当前部门
|
|
|
|
// 总条数
|
|
|
|
// 总条数
|
|
|
|
total: 0,
|
|
|
|
total: 0,
|
|
|
|
// 应急救援队伍管理表格数据
|
|
|
|
// 应急救援队伍管理表格数据
|
|
|
|
ehsRescueTeamList: [],
|
|
|
|
ehsRescueTeamList: [],
|
|
|
|
|
|
|
|
//是否显示部门列表查询条件
|
|
|
|
|
|
|
|
deptShow: false,
|
|
|
|
|
|
|
|
//所有部门列表字典
|
|
|
|
|
|
|
|
allDeptList: [],
|
|
|
|
// 弹出层标题
|
|
|
|
// 弹出层标题
|
|
|
|
title: "",
|
|
|
|
title: "",
|
|
|
|
// 是否显示弹出层
|
|
|
|
// 是否显示弹出层
|
|
|
@ -203,6 +221,7 @@ export default {
|
|
|
|
pageSize: 10,
|
|
|
|
pageSize: 10,
|
|
|
|
teamName: null,
|
|
|
|
teamName: null,
|
|
|
|
teamLevel: null,
|
|
|
|
teamLevel: null,
|
|
|
|
|
|
|
|
deptId: null,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 表单参数
|
|
|
|
// 表单参数
|
|
|
|
form: {},
|
|
|
|
form: {},
|
|
|
@ -213,6 +232,9 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
this.getListAllDept();
|
|
|
|
|
|
|
|
this.deptShow = this.$store.state.user.parentId==0 ?true :false;
|
|
|
|
|
|
|
|
this.curDeptId = this.$store.state.user.deptId;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
rescue() {
|
|
|
|
rescue() {
|
|
|
@ -227,6 +249,15 @@ export default {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
/** 单位信息列表 */
|
|
|
|
|
|
|
|
getListAllDept() {
|
|
|
|
|
|
|
|
console.log(this.$store.state.user.deptId);
|
|
|
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
|
|
listAllDept().then(response => {
|
|
|
|
|
|
|
|
this.allDeptList = response.data;
|
|
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
// 取消按钮
|
|
|
|
// 取消按钮
|
|
|
|
cancel() {
|
|
|
|
cancel() {
|
|
|
|
this.open = false;
|
|
|
|
this.open = false;
|
|
|
|