|
@@ -48,8 +48,8 @@
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="安全分级" prop="level" label-width="80px" style="margin-bottom:20px;">
|
|
|
|
- <el-select v-model="form.level" placeholder="请选择安全分级" clearable style="width:180px;">
|
|
|
|
|
|
+ <el-form-item label="安全分级" prop="levelId" label-width="80px" style="margin-bottom:20px;">
|
|
|
|
+ <el-select v-model="form.levelId" placeholder="请选择安全分级" clearable style="width:180px;">
|
|
<el-option
|
|
<el-option
|
|
v-for="dict in levelList"
|
|
v-for="dict in levelList"
|
|
:key="dict.levelId"
|
|
:key="dict.levelId"
|
|
@@ -180,12 +180,12 @@
|
|
<div class="table-user-list-box">
|
|
<div class="table-user-list-box">
|
|
<el-table class="table-box" border :data="tableUserListMin">
|
|
<el-table class="table-box" border :data="tableUserListMin">
|
|
<el-table-column label="身份" align="left" prop="positionName"/>
|
|
<el-table-column label="身份" align="left" prop="positionName"/>
|
|
- <el-table-column label="名称" align="left" prop="nickName"/>
|
|
|
|
- <el-table-column label="联系方式" align="left" prop="phonenumber"/>
|
|
|
|
|
|
+ <el-table-column label="名称" align="left" prop="userName"/>
|
|
|
|
+ <el-table-column label="联系方式" align="left" prop="mobile"/>
|
|
<el-table-column label="学院" align="left" prop="deptName"/>
|
|
<el-table-column label="学院" align="left" prop="deptName"/>
|
|
- <el-table-column label="专业" align="left" prop="major">
|
|
|
|
|
|
+ <el-table-column label="专业" align="left" prop="majorName">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- {{scope.row.major ? scope.row.major : '--'}}
|
|
|
|
|
|
+ {{scope.row.majorName ? scope.row.majorName : '--'}}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="班级" align="left" prop="grade">
|
|
<el-table-column label="班级" align="left" prop="grade">
|
|
@@ -219,10 +219,11 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import {
|
|
import {
|
|
- addGradeManage,getGradeManage,
|
|
|
|
- updateGradeManage,listInfo,
|
|
|
|
- listUser
|
|
|
|
- } from "@/api/hierarchicalControl/indexDemo";
|
|
|
|
|
|
+ laboratoryGradeManageDetail,
|
|
|
|
+ systemUserSelectByPage,
|
|
|
|
+ laboratoryGradeManageAdd,
|
|
|
|
+ laboratoryGradeManageUpdate,
|
|
|
|
+ } from "@/api/hierarchicalControl/index";
|
|
import {
|
|
import {
|
|
getDeptDropList,
|
|
getDeptDropList,
|
|
laboratoryClassLevelGetList,
|
|
laboratoryClassLevelGetList,
|
|
@@ -251,7 +252,6 @@
|
|
deptId:'',
|
|
deptId:'',
|
|
deptName:"",//学院
|
|
deptName:"",//学院
|
|
subs:[],//选中实验室列表
|
|
subs:[],//选中实验室列表
|
|
- subsData:[],
|
|
|
|
ruleList:[//添加选项
|
|
ruleList:[//添加选项
|
|
{
|
|
{
|
|
name:"",//名称
|
|
name:"",//名称
|
|
@@ -343,7 +343,7 @@
|
|
this.laboratoryClassTypeGetList();
|
|
this.laboratoryClassTypeGetList();
|
|
this.laboratoryClassMoldGetList();
|
|
this.laboratoryClassMoldGetList();
|
|
if(this.propsType){
|
|
if(this.propsType){
|
|
- this.getGradeManage();
|
|
|
|
|
|
+ this.laboratoryGradeManageDetail();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -425,9 +425,9 @@
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//获取数据详情
|
|
//获取数据详情
|
|
- getGradeManage(){
|
|
|
|
|
|
+ laboratoryGradeManageDetail(){
|
|
let self = this;
|
|
let self = this;
|
|
- getGradeManage(this.propsId).then(response=>{
|
|
|
|
|
|
+ laboratoryGradeManageDetail({manageId:this.propsId}).then(response=>{
|
|
let userIds = "";
|
|
let userIds = "";
|
|
for(let i=0;i<response.data.ruleList.length;i++){
|
|
for(let i=0;i<response.data.ruleList.length;i++){
|
|
for(let o=0;o<response.data.ruleList[i].ruleUserList.length;o++){
|
|
for(let o=0;o<response.data.ruleList[i].ruleUserList.length;o++){
|
|
@@ -446,28 +446,19 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.$set(this,'form',response.data);
|
|
this.$set(this,'form',response.data);
|
|
- //获取选中实验室列表
|
|
|
|
- let subjectData = {
|
|
|
|
- pageNum:1,
|
|
|
|
- pageSize:20,
|
|
|
|
- subIds:response.data.subIds
|
|
|
|
- };
|
|
|
|
- listInfo(subjectData).then(response => {
|
|
|
|
- this.$set(this.form,'subsData',response.rows)
|
|
|
|
- });
|
|
|
|
//获取选中人员列表
|
|
//获取选中人员列表
|
|
let userData = {
|
|
let userData = {
|
|
pageNum:1,
|
|
pageNum:1,
|
|
pageSize: 1000,
|
|
pageSize: 1000,
|
|
paramIds:userIds
|
|
paramIds:userIds
|
|
}
|
|
}
|
|
- listUser(userData).then(response => {
|
|
|
|
- for(let a=0;a<response.rows.length;a++){
|
|
|
|
|
|
+ systemUserSelectByPage(userData).then(response => {
|
|
|
|
+ for(let a=0;a<response.data.records.length;a++){
|
|
for(let i=0;i<self.form.ruleList.length;i++){
|
|
for(let i=0;i<self.form.ruleList.length;i++){
|
|
for(let o=0;o<self.form.ruleList[i].ruleUserList.length;o++){
|
|
for(let o=0;o<self.form.ruleList[i].ruleUserList.length;o++){
|
|
- let text = response.rows[a].userId + '';
|
|
|
|
|
|
+ let text = response.data.records[a].userId + '';
|
|
if (self.form.ruleList[i].ruleUserList[o].userIds.indexOf(text) != -1){
|
|
if (self.form.ruleList[i].ruleUserList[o].userIds.indexOf(text) != -1){
|
|
- self.form.ruleList[i].ruleUserList[o].userList.push(response.rows[a]);
|
|
|
|
|
|
+ self.form.ruleList[i].ruleUserList[o].userList.push(response.data.records[a]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -575,23 +566,23 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(form.id){
|
|
if(form.id){
|
|
- this.updateGradeManage(form);
|
|
|
|
|
|
+ this.laboratoryGradeManageUpdate(form);
|
|
}else{
|
|
}else{
|
|
- this.addGradeManage(form);
|
|
|
|
|
|
+ this.laboratoryGradeManageAdd(form);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//编辑接口
|
|
//编辑接口
|
|
- updateGradeManage(obj){
|
|
|
|
- updateGradeManage(obj).then(response=>{
|
|
|
|
|
|
+ laboratoryGradeManageUpdate(obj){
|
|
|
|
+ laboratoryGradeManageUpdate(obj).then(response=>{
|
|
this.msgSuccess("操作成功");
|
|
this.msgSuccess("操作成功");
|
|
this.$parent.clickPageType(1);
|
|
this.$parent.clickPageType(1);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//新增接口
|
|
//新增接口
|
|
- addGradeManage(obj){
|
|
|
|
- addGradeManage(obj).then(response=>{
|
|
|
|
|
|
+ laboratoryGradeManageAdd(obj){
|
|
|
|
+ laboratoryGradeManageAdd(obj).then(response=>{
|
|
this.msgSuccess("操作成功");
|
|
this.msgSuccess("操作成功");
|
|
this.$parent.clickPageType(1);
|
|
this.$parent.clickPageType(1);
|
|
});
|
|
});
|