diff --git a/ruoyi-ui/src/views/ehs/ehsRescueTeam/tabs_first.vue b/ruoyi-ui/src/views/ehs/ehsRescueTeam/tabs_first.vue
index d2a6a29..edec254 100644
--- a/ruoyi-ui/src/views/ehs/ehsRescueTeam/tabs_first.vue
+++ b/ruoyi-ui/src/views/ehs/ehsRescueTeam/tabs_first.vue
@@ -88,7 +88,14 @@
-
+
+
+ {{scope.row.workerName}}
+
+
@@ -104,6 +111,10 @@
+
import { getWorkerInfo } from '@/api/ehs/realdata'
+import { getEhsRescueTeamWorker } from '@/api/ehs/ehsRescueTeamWorker'
+import workerDetail from '@/views/ehs/ehsRescueTeamWorker/workerDetail.vue'
export default {
+ components: { workerDetail },
dicts: ['team_property','team_level','sys_user_sex'],
props: {
detailData: {
@@ -136,6 +150,8 @@ export default {
total: 0,
pageNum: 1,
pageSize: 10,
+ // 队员详情
+ detailDataWorker: {},
}
},
@@ -150,7 +166,18 @@ export default {
this.workerList = res.rows;
this.loading = false;
})
- }
+ },
+ 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);
+ }
+ })
+ },
}
};
diff --git a/ruoyi-ui/src/views/ehs/ehsRescueTeamWorker/index.vue b/ruoyi-ui/src/views/ehs/ehsRescueTeamWorker/index.vue
index 682423c..df9cd55 100644
--- a/ruoyi-ui/src/views/ehs/ehsRescueTeamWorker/index.vue
+++ b/ruoyi-ui/src/views/ehs/ehsRescueTeamWorker/index.vue
@@ -152,7 +152,14 @@
-
+
+
+ {{scope.row.workerName}}
+
+
@@ -281,6 +288,11 @@
downUrl="/ehs/ehsRescueTeamWorker/importTemplate"
temName="应急救援队伍人员导入模板"
>
+
+
@@ -294,11 +306,13 @@ import {
getTeamInfo
} from '@/api/ehs/ehsRescueTeamWorker'
import importUpload from "@/components/upload/upload";
+import workerDetail from "./workerDetail.vue";
export default {
name: "EhsRescueTeamWorker",
components: {
importUpload,
+ workerDetail,
},
dicts: ['sys_user_sex'],
data() {
@@ -339,6 +353,10 @@ export default {
},
// 表单参数
form: {},
+ // 队员id
+ workerId: null,
+ // 队员详情
+ detailDataWorker: {},
// 表单校验
rules: {
workerName: [
@@ -507,6 +525,17 @@ export default {
this.$refs.uploadRef.upload.url =
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() {
// console.log("导入成功")