|
|
@ -205,7 +205,7 @@
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="队伍级别" prop="teamLevel">
|
|
|
|
<el-form-item label="队伍级别" prop="teamLevel">
|
|
|
|
<!--<el-input v-model="form.teamLevel" placeholder="请输入队伍级别" />-->
|
|
|
|
<!--<el-input v-model="form.teamLevel" placeholder="请输入队伍级别" />-->
|
|
|
|
<el-select v-model="form.teamLevel" allow-create filterable placeholder="请选择所属单位" clearable>
|
|
|
|
<el-select v-model="form.teamLevel" allow-create filterable placeholder="请选择队伍级别" clearable>
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="dict in dict.type.team_level"
|
|
|
|
v-for="dict in dict.type.team_level"
|
|
|
|
:key="dict.label"
|
|
|
|
:key="dict.label"
|
|
|
@ -225,7 +225,7 @@
|
|
|
|
<el-form-item label="所属单位" prop="unit">
|
|
|
|
<el-form-item label="所属单位" prop="unit">
|
|
|
|
<el-select v-model="form.unit" allow-create filterable placeholder="请选择所属单位" clearable>
|
|
|
|
<el-select v-model="form.unit" allow-create filterable placeholder="请选择所属单位" clearable>
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="dict in allDeptList"
|
|
|
|
v-for="dict in partDeptInfo"
|
|
|
|
:key="dict.deptName"
|
|
|
|
:key="dict.deptName"
|
|
|
|
:label="dict.deptName"
|
|
|
|
:label="dict.deptName"
|
|
|
|
:value="dict.deptName"
|
|
|
|
:value="dict.deptName"
|
|
|
@ -281,7 +281,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";
|
|
|
|
import {listAllDept,selectPartDept } from "@/api/system/dept";
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "EhsRescueTeam",
|
|
|
|
name: "EhsRescueTeam",
|
|
|
|
dicts: ['team_property','team_level'],
|
|
|
|
dicts: ['team_property','team_level'],
|
|
|
@ -310,6 +310,8 @@ export default {
|
|
|
|
deptShow: false,
|
|
|
|
deptShow: false,
|
|
|
|
//所有部门列表字典
|
|
|
|
//所有部门列表字典
|
|
|
|
allDeptList: [],
|
|
|
|
allDeptList: [],
|
|
|
|
|
|
|
|
// 部分部门数据(根据客户需求查询部分的部门数据)
|
|
|
|
|
|
|
|
partDeptInfo: [],
|
|
|
|
// 弹出层标题
|
|
|
|
// 弹出层标题
|
|
|
|
title: "",
|
|
|
|
title: "",
|
|
|
|
// 是否显示弹出层
|
|
|
|
// 是否显示弹出层
|
|
|
@ -346,6 +348,7 @@ export default {
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
this.getListAllDept();
|
|
|
|
this.getListAllDept();
|
|
|
|
|
|
|
|
this.getPartDeptInfo();
|
|
|
|
this.deptShow = this.$store.state.user.parentId==0 ?true :false;
|
|
|
|
this.deptShow = this.$store.state.user.parentId==0 ?true :false;
|
|
|
|
this.curDeptId = this.$store.state.user.deptId;
|
|
|
|
this.curDeptId = this.$store.state.user.deptId;
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -362,7 +365,7 @@ export default {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 单位信息列表 */
|
|
|
|
/** 单位信息列表,查询所有部门的数据 */
|
|
|
|
getListAllDept() {
|
|
|
|
getListAllDept() {
|
|
|
|
console.log(this.$store.state.user.deptId);
|
|
|
|
console.log(this.$store.state.user.deptId);
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
@ -372,6 +375,16 @@ export default {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 部分部门数据(根据客户需求查询部分部门的数据) */
|
|
|
|
|
|
|
|
getPartDeptInfo() {
|
|
|
|
|
|
|
|
// console.log(this.$store.state.user.deptId);
|
|
|
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
|
|
selectPartDept().then(response => {
|
|
|
|
|
|
|
|
this.partDeptInfo = response.data;
|
|
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
// 取消按钮
|
|
|
|
// 取消按钮
|
|
|
|
cancel() {
|
|
|
|
cancel() {
|
|
|
|
this.open = false;
|
|
|
|
this.open = false;
|
|
|
@ -421,6 +434,10 @@ export default {
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
this.open = true;
|
|
|
|
this.open = true;
|
|
|
|
this.title = "添加应急救援队伍管理";
|
|
|
|
this.title = "添加应急救援队伍管理";
|
|
|
|
|
|
|
|
if (this.curDeptId != 100){
|
|
|
|
|
|
|
|
console.log("hello:"+this.partDeptInfo[0]);
|
|
|
|
|
|
|
|
this.form.unit = this.partDeptInfo[0].deptName;
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
handleUpdate(row) {
|
|
|
|
handleUpdate(row) {
|
|
|
|