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