|
|
@ -152,7 +152,14 @@
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<!-- <el-table-column label="应急救援队伍id" align="center" prop="rescueTeamId" />-->
|
|
|
|
<!-- <el-table-column label="应急救援队伍id" align="center" prop="rescueTeamId" />-->
|
|
|
|
<el-table-column label="队伍名称" align="center" prop="rescueTeamName" />
|
|
|
|
<el-table-column label="队伍名称" align="center" prop="rescueTeamName" />
|
|
|
|
<el-table-column label="人员姓名" align="center" prop="workerName" />
|
|
|
|
<el-table-column label="人员姓名" align="center" prop="workerName" >
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<span
|
|
|
|
|
|
|
|
@click="getWorkerDetail(scope.row)"
|
|
|
|
|
|
|
|
style="color: blue; cursor: pointer"
|
|
|
|
|
|
|
|
>{{scope.row.workerName}}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="年龄" align="center" prop="workerAge" />
|
|
|
|
<el-table-column label="年龄" align="center" prop="workerAge" />
|
|
|
|
<el-table-column label="性别" align="center" prop="gender">
|
|
|
|
<el-table-column label="性别" align="center" prop="gender">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
@ -281,6 +288,11 @@
|
|
|
|
downUrl="/ehs/ehsRescueTeamWorker/importTemplate"
|
|
|
|
downUrl="/ehs/ehsRescueTeamWorker/importTemplate"
|
|
|
|
temName="应急救援队伍人员导入模板"
|
|
|
|
temName="应急救援队伍人员导入模板"
|
|
|
|
></importUpload>
|
|
|
|
></importUpload>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<workerDetail
|
|
|
|
|
|
|
|
ref="workerDetailRef"
|
|
|
|
|
|
|
|
:detailData="detailDataWorker"
|
|
|
|
|
|
|
|
></workerDetail>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -294,11 +306,13 @@ import {
|
|
|
|
getTeamInfo
|
|
|
|
getTeamInfo
|
|
|
|
} from '@/api/ehs/ehsRescueTeamWorker'
|
|
|
|
} from '@/api/ehs/ehsRescueTeamWorker'
|
|
|
|
import importUpload from "@/components/upload/upload";
|
|
|
|
import importUpload from "@/components/upload/upload";
|
|
|
|
|
|
|
|
import workerDetail from "./workerDetail.vue";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "EhsRescueTeamWorker",
|
|
|
|
name: "EhsRescueTeamWorker",
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
|
importUpload,
|
|
|
|
importUpload,
|
|
|
|
|
|
|
|
workerDetail,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
dicts: ['sys_user_sex'],
|
|
|
|
dicts: ['sys_user_sex'],
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
@ -339,6 +353,10 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 表单参数
|
|
|
|
// 表单参数
|
|
|
|
form: {},
|
|
|
|
form: {},
|
|
|
|
|
|
|
|
// 队员id
|
|
|
|
|
|
|
|
workerId: null,
|
|
|
|
|
|
|
|
// 队员详情
|
|
|
|
|
|
|
|
detailDataWorker: {},
|
|
|
|
// 表单校验
|
|
|
|
// 表单校验
|
|
|
|
rules: {
|
|
|
|
rules: {
|
|
|
|
workerName: [
|
|
|
|
workerName: [
|
|
|
@ -507,6 +525,17 @@ export default {
|
|
|
|
this.$refs.uploadRef.upload.url =
|
|
|
|
this.$refs.uploadRef.upload.url =
|
|
|
|
process.env.VUE_APP_BASE_API + "/ehs/ehsRescueTeamWorker/importData";
|
|
|
|
process.env.VUE_APP_BASE_API + "/ehs/ehsRescueTeamWorker/importData";
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
getWorkerDetail(row) {
|
|
|
|
|
|
|
|
// 获取人员详情
|
|
|
|
|
|
|
|
getEhsRescueTeamWorker(row.id).then((res) => {
|
|
|
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
|
|
|
this.detailDataWorker = res.data;
|
|
|
|
|
|
|
|
this.$refs.workerDetailRef.open = true;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.warning(res.msg);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
/** 导入成功 */
|
|
|
|
/** 导入成功 */
|
|
|
|
upLoadOk() {
|
|
|
|
upLoadOk() {
|
|
|
|
// console.log("导入成功")
|
|
|
|
// console.log("导入成功")
|
|
|
|