|
@@ -4,31 +4,31 @@
|
|
|
@close="addDialogAllOff" width="1303px" append-to-body>
|
|
|
<div class="add-max-box" v-if="addDialogBoxType == 1">
|
|
|
<el-form :model="dialogForm" :rules="rules" label-width="100px" class="add-form-box">
|
|
|
- <el-form-item label="是否启用:" prop="data1">
|
|
|
+ <el-form-item label="是否启用:" prop="enable">
|
|
|
<el-switch
|
|
|
v-if="!lookInfoType"
|
|
|
- @click.native="changeIsNeedCaptcha(dialogForm.data1)"
|
|
|
+ @click.native="changeIsNeedCaptcha(dialogForm.enable)"
|
|
|
class="switch captcha-img"
|
|
|
:active-value="1"
|
|
|
:inactive-value="0"
|
|
|
active-color="#0183FA"
|
|
|
inactive-color="#999"
|
|
|
- v-model="dialogForm.data1"
|
|
|
+ v-model="dialogForm.enable"
|
|
|
active-text="启用"
|
|
|
inactive-text="停用"
|
|
|
></el-switch>
|
|
|
- <p v-if="lookInfoType" :class="dialogForm.data1==1?'switchFontColor':''" style="line-height:40px;">{{dialogForm.data1==1?'启用':'停用'}}</p>
|
|
|
+ <p v-if="lookInfoType" :class="dialogForm.enable==1?'switchFontColor':''" style="line-height:40px;">{{dialogForm.enable==1?'启用':'停用'}}</p>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="巡查组名称:" prop="data2">
|
|
|
- <el-input :disabled="lookInfoType" v-model="dialogForm.data2" placeholder="未选择指标" maxLength="10" style="width:450px;"/>
|
|
|
+ <el-form-item label="巡查组名称:" prop="groupName">
|
|
|
+ <el-input :disabled="lookInfoType" v-model="dialogForm.groupName" placeholder="请输入巡查组名称" maxLength="20" style="width:450px;"/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="巡查层级:" prop="data3">
|
|
|
- <el-select :disabled="lookInfoType" v-model="dialogForm.data3" placeholder="请选择检查范围" style="width:450px;">
|
|
|
+ <el-form-item label="巡查层级:" prop="checkLevel">
|
|
|
+ <el-select :disabled="lookInfoType" v-model="dialogForm.checkLevel" placeholder="请选择巡查层级" style="width:450px;">
|
|
|
<el-option
|
|
|
v-for="item in dialogRangeOptions"
|
|
|
- :key="item.value"
|
|
|
+ :key="item.key"
|
|
|
:label="item.label"
|
|
|
- :value="item.value">
|
|
|
+ :value="item.key">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -38,13 +38,14 @@
|
|
|
<img src="@/assets/ZDimages/safetyCheck/icon_xyxc_cy.png">
|
|
|
<p class="dialog-table-title-p">巡查成员</p>
|
|
|
<p v-if="!lookInfoType" class="inquire-button-one dialog-table-title-button" @click="dialogClickType(2)">+ 添加</p>
|
|
|
+ <p v-if="lookInfoType" class="dialog-table-title-text">{{dialogTableList[0]?dialogTableList.length+'人':'0人'}}</p>
|
|
|
</div>
|
|
|
<el-table border :data="dialogTableList">
|
|
|
<el-table-column label="序号" align="center" type="index" width="140"/>
|
|
|
- <el-table-column label="姓名" align="center" prop="deptName" show-overflow-tooltip/>
|
|
|
- <el-table-column label="工号" align="center" prop="deptName" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="姓名" align="center" prop="name" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="工号" align="center" prop="jobNum" show-overflow-tooltip/>
|
|
|
<el-table-column label="所在部门" align="center" prop="deptName" show-overflow-tooltip/>
|
|
|
- <el-table-column label="是否启用" align="center" prop="deptName" width="150">
|
|
|
+ <el-table-column label="是否启用" align="center" prop="enable" width="150">
|
|
|
<template slot-scope="scope">
|
|
|
<el-switch
|
|
|
v-if="!lookInfoType"
|
|
@@ -54,11 +55,11 @@
|
|
|
:inactive-value="0"
|
|
|
active-color="#0183FA"
|
|
|
inactive-color="#999"
|
|
|
- v-model="scope.row.deptName"
|
|
|
+ v-model="scope.row.enable"
|
|
|
active-text="启用"
|
|
|
inactive-text="停用"
|
|
|
></el-switch>
|
|
|
- <p v-if="lookInfoType" :class="scope.row.deptName==1?'switchFontColor':''">{{scope.row.deptName==1?'启用':'停用'}}</p>
|
|
|
+ <p v-if="lookInfoType" :class="scope.row.enable==1?'switchFontColor':''">{{scope.row.enable==1?'启用':'停用'}}</p>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" align="center" prop="deptName" width="150" v-if="!lookInfoType">
|
|
@@ -85,15 +86,15 @@
|
|
|
<el-select v-model="userQueryParamsLeft.deptId" clearable placeholder="选择部门" style="width: 110px">
|
|
|
<el-option
|
|
|
v-for="item in deptSelectList"
|
|
|
- :key="item.key"
|
|
|
- :label="item.label"
|
|
|
- :value="item.key">
|
|
|
+ :key="item.deptId"
|
|
|
+ :label="item.deptName"
|
|
|
+ :value="item.deptId">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="" prop="searchValue" class="form-index">
|
|
|
<el-input
|
|
|
- maxLength="30"
|
|
|
+ maxLength="20"
|
|
|
v-model="userQueryParamsLeft.searchValue"
|
|
|
placeholder="搜索姓名/工号"
|
|
|
clearable
|
|
@@ -105,17 +106,18 @@
|
|
|
<p class="reset-button-one" @click="userResetQueryLeft" style="width:60px;">重置</p>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <el-table border :data="userTableListLeft" @selection-change="userChangeLeft" :row-key="getRowKeys">
|
|
|
+ <el-table ref="leftUserTable" border :data="userTableListLeft" @selection-change="userChangeLeft" :row-key="getRowKeys">
|
|
|
<el-table-column type="selection" width="50" :reserve-selection="true" align="center"/>
|
|
|
- <el-table-column label="姓名" align="center" prop="deptName" show-overflow-tooltip/>
|
|
|
- <el-table-column label="工号" align="center" prop="deptName" show-overflow-tooltip width="150"/>
|
|
|
+ <el-table-column label="姓名" align="center" prop="nickName" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="工号" align="center" prop="userName" show-overflow-tooltip width="150"/>
|
|
|
<el-table-column label="所在部门" align="center" prop="deptName" show-overflow-tooltip width="168"/>
|
|
|
</el-table>
|
|
|
- <pagination :page-sizes="[20, 30, 40, 50]"
|
|
|
+ <pagination layout="total, prev, pager, next, jumper"
|
|
|
v-show="userTotalLeft>0"
|
|
|
:total="userTotalLeft"
|
|
|
- :page.sync="userTableListLeft.pageNum"
|
|
|
- :limit.sync="userTableListLeft.pageSize"
|
|
|
+ :pager-count="5"
|
|
|
+ :page.sync="userQueryParamsLeft.pageNum"
|
|
|
+ :limit.sync="userQueryParamsLeft.pageSize"
|
|
|
@pagination="userGetListLeft"/>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -134,15 +136,15 @@
|
|
|
<el-select v-model="userQueryParamsRight.deptId" clearable placeholder="选择部门" style="width: 110px">
|
|
|
<el-option
|
|
|
v-for="item in deptSelectList"
|
|
|
- :key="item.key"
|
|
|
- :label="item.label"
|
|
|
- :value="item.key">
|
|
|
+ :key="item.deptId"
|
|
|
+ :label="item.deptName"
|
|
|
+ :value="item.deptId">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="" prop="searchValue" class="form-index">
|
|
|
<el-input
|
|
|
- maxLength="30"
|
|
|
+ maxLength="20"
|
|
|
v-model="userQueryParamsRight.searchValue"
|
|
|
placeholder="搜索姓名/工号"
|
|
|
clearable
|
|
@@ -154,17 +156,18 @@
|
|
|
<p class="reset-button-one" @click="userResetQueryRight" style="width:60px;">重置</p>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <el-table border :data="userTableListRight" @selection-change="userChangeRight" :row-key="getRowKeys">
|
|
|
+ <el-table ref="rightUserTable" border :data="userTableListRight" @selection-change="userChangeRight" :row-key="getRowKeys">
|
|
|
<el-table-column type="selection" width="50" :reserve-selection="true" align="center"/>
|
|
|
- <el-table-column label="姓名" align="center" prop="deptName" show-overflow-tooltip/>
|
|
|
- <el-table-column label="工号" align="center" prop="deptName" show-overflow-tooltip width="150"/>
|
|
|
+ <el-table-column label="姓名" align="center" prop="nickName" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="工号" align="center" prop="userName" show-overflow-tooltip width="150"/>
|
|
|
<el-table-column label="所在部门" align="center" prop="deptName" show-overflow-tooltip width="168"/>
|
|
|
</el-table>
|
|
|
- <pagination :page-sizes="[20, 30, 40, 50]"
|
|
|
+ <pagination layout="total, prev, pager, next, jumper"
|
|
|
v-show="userTotalRight>0"
|
|
|
:total="userTotalRight"
|
|
|
- :page.sync="userTableListRight.pageNum"
|
|
|
- :limit.sync="userTableListRight.pageSize"
|
|
|
+ :pager-count="5"
|
|
|
+ :page.sync="userQueryParamsRight.pageNum"
|
|
|
+ :limit.sync="userQueryParamsRight.pageSize"
|
|
|
@pagination="userGetListRight"/>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -172,7 +175,7 @@
|
|
|
<div slot="footer" class="dialog-footer dialog-footer-box" style="display: flex">
|
|
|
<p class="dialog-footer-button-null"></p>
|
|
|
<p class="dialog-footer-button-info" @click="addDialogOff">{{addDialogBoxType==1?'取消':'返回'}}</p>
|
|
|
- <p class="dialog-footer-button-primary" v-if="!lookInfoType">确定</p>
|
|
|
+ <p class="dialog-footer-button-primary" v-if="!lookInfoType" @click="addUserButton">确定</p>
|
|
|
<p class="dialog-footer-button-null"></p>
|
|
|
</div>
|
|
|
|
|
@@ -180,6 +183,8 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import { listDepartments } from "@/api/system/dept";
|
|
|
+ import { checkGroupFind,findUserList,checkGroupAdd,checkGroupUpdate } from '@/api/safetyCheck/index'
|
|
|
export default {
|
|
|
name: 'addDialog',
|
|
|
props:{
|
|
@@ -191,40 +196,50 @@
|
|
|
addDialogType:true,
|
|
|
addDialogBoxType:1,
|
|
|
lookInfoType:false,
|
|
|
- dialogForm:{},
|
|
|
- dialogRangeOptions:[],
|
|
|
+ dialogForm:{
|
|
|
+ enable:1,
|
|
|
+ groupName:"",
|
|
|
+ checkLevel:"",
|
|
|
+ },
|
|
|
//层级
|
|
|
+ dialogRangeOptions:[{key:1,label:"校级"},{key:2,label:"院级"}],
|
|
|
+ //院系
|
|
|
deptSelectList:[],
|
|
|
//选中巡查人员列表
|
|
|
- dialogTableList:[{userId:1,deptName:1},{userId:2,deptName:2},{userId:3},{userId:4},{userId:5},{userId:6},{userId:7},{userId:8},{userId:9},{userId:10}],
|
|
|
-
|
|
|
+ dialogTableList:[],
|
|
|
+ //选中页面人员列表数据
|
|
|
+ dialogTableDataList:[],
|
|
|
//弹窗内容状态
|
|
|
userQueryParamsLeft:{
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 20,
|
|
|
deptId:"",
|
|
|
searchValue:"",
|
|
|
},
|
|
|
- userTableListLeft:[{}],
|
|
|
+ userTableListLeft:[],
|
|
|
userTotalLeft:0,
|
|
|
userNumLeft:0,
|
|
|
userIdsLeft:[],
|
|
|
userQueryParamsRight:{
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 20,
|
|
|
deptId:"",
|
|
|
searchValue:"",
|
|
|
},
|
|
|
- userTableListRight:[{}],
|
|
|
+ userTableListRight:[],
|
|
|
userTotalRight:0,
|
|
|
userNumRight:0,
|
|
|
userIdsRight:[],
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
- data1: [
|
|
|
+ enable: [
|
|
|
{ required: true, message: "请选择是否启用", trigger: "change" },
|
|
|
],
|
|
|
- data2: [
|
|
|
+ groupName: [
|
|
|
{ required: true, message: "请输入巡查组名称", trigger: "change" },
|
|
|
{ required: true, message: "请输入巡查组名称", validator: this.spaceJudgment, trigger: "change" },
|
|
|
],
|
|
|
- data4: [
|
|
|
+ checkLevel: [
|
|
|
{ required: true, message: "请选择巡查层级", trigger: "change" },
|
|
|
],
|
|
|
},
|
|
@@ -236,13 +251,24 @@
|
|
|
if(this.addDialogData.addType){
|
|
|
//新增
|
|
|
}else{
|
|
|
- //编辑
|
|
|
+ //详情-编辑
|
|
|
+ this.checkGroupFind();
|
|
|
}
|
|
|
},
|
|
|
mounted(){
|
|
|
-
|
|
|
+ this.listDepartments();
|
|
|
},
|
|
|
methods:{
|
|
|
+ //获取详情
|
|
|
+ checkGroupFind(){
|
|
|
+ checkGroupFind({id:this.addDialogData.id}).then(response => {
|
|
|
+ this.$set(this.dialogForm,'id',response.data.id?response.data.id:'');
|
|
|
+ this.$set(this.dialogForm,'enable',response.data.enable);
|
|
|
+ this.$set(this.dialogForm,'groupName',response.data.groupName);
|
|
|
+ this.$set(this.dialogForm,'checkLevel',response.data.checkLevel);
|
|
|
+ this.$set(this,'dialogTableList',response.data.checkGroupMemberList);
|
|
|
+ });
|
|
|
+ },
|
|
|
//弹窗关闭
|
|
|
addDialogAllOff(){
|
|
|
this.$parent.addDialogOpen(4)
|
|
@@ -254,9 +280,93 @@
|
|
|
this.dialogClickType(1);
|
|
|
}
|
|
|
},
|
|
|
+ //添加人员
|
|
|
+ addUserButton(){
|
|
|
+ let self = this;
|
|
|
+ if(this.addDialogBoxType == 1){
|
|
|
+ if(this.dialogForm.id){
|
|
|
+ //编辑
|
|
|
+ let obj = this.dialogForm;
|
|
|
+ obj.checkGroupMemberList = this.dialogTableList
|
|
|
+ checkGroupUpdate(obj).then(response => {
|
|
|
+ this.msgSuccess(response.msg);
|
|
|
+ this.$parent.addDialogOpen(5)
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ //新增
|
|
|
+ let obj = this.dialogForm;
|
|
|
+ obj.checkGroupMemberList = this.dialogTableList
|
|
|
+ checkGroupAdd(obj).then(response => {
|
|
|
+ this.msgSuccess(response.msg);
|
|
|
+ this.$parent.addDialogOpen(5)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ let list = [];
|
|
|
+ let newObj = {};
|
|
|
+ for(let o=0;o<self.dialogTableDataList.length;o++){
|
|
|
+ let num = 0;
|
|
|
+ for(let i=0;i<self.dialogTableList.length;i++){
|
|
|
+ if(self.dialogTableList[i].userId == self.dialogTableDataList[o].userId){
|
|
|
+ num++
|
|
|
+ newObj = JSON.parse(JSON.stringify(self.dialogTableList[i]))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(num == 0){
|
|
|
+ let obj = {
|
|
|
+ userId:self.dialogTableDataList[o].userId,
|
|
|
+ name:self.dialogTableDataList[o].name,
|
|
|
+ jobNum:self.dialogTableDataList[o].jobNum,
|
|
|
+ deptName:self.dialogTableDataList[o].deptName,
|
|
|
+ deptId:self.dialogTableDataList[o].deptId,
|
|
|
+ userType:self.dialogTableDataList[o].userType,
|
|
|
+ enable:1,
|
|
|
+ };
|
|
|
+ list.push(obj)
|
|
|
+ }else{
|
|
|
+ let obj = {
|
|
|
+ userId:self.dialogTableDataList[o].userId,
|
|
|
+ name:self.dialogTableDataList[o].name,
|
|
|
+ jobNum:self.dialogTableDataList[o].jobNum,
|
|
|
+ deptName:self.dialogTableDataList[o].deptName,
|
|
|
+ deptId:self.dialogTableDataList[o].deptId,
|
|
|
+ userType:self.dialogTableDataList[o].userType,
|
|
|
+ enable:newObj.enable,
|
|
|
+ };
|
|
|
+ list.push(obj)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$set(this,'dialogTableList',list);
|
|
|
+ this.dialogClickType(1);
|
|
|
+ }
|
|
|
+ },
|
|
|
//弹窗状态切换
|
|
|
- dialogClickType(type,item){
|
|
|
- this.$set(this,'addDialogBoxType',type);
|
|
|
+ dialogClickType(type){
|
|
|
+ let self = this;
|
|
|
+ if(type == 2){
|
|
|
+ this.$set(self,'dialogTableDataList',JSON.parse(JSON.stringify(this.dialogTableList)));
|
|
|
+ let leftObj = JSON.parse(JSON.stringify(this.userQueryParamsLeft));
|
|
|
+ let rightObj = JSON.parse(JSON.stringify(this.userQueryParamsRight));
|
|
|
+ rightObj.userIds = [];
|
|
|
+ leftObj.selectedUserIds = [];
|
|
|
+ for(let i=0;i<self.dialogTableDataList.length;i++){
|
|
|
+ leftObj.selectedUserIds.push(self.dialogTableDataList[i].userId);
|
|
|
+ rightObj.userIds.push(self.dialogTableDataList[i].userId);
|
|
|
+ }
|
|
|
+ if(rightObj.userIds[0]){
|
|
|
+ findUserList(rightObj).then(response => {
|
|
|
+ this.userTotalRight = response.total;
|
|
|
+ this.userTableListRight = response.rows;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ findUserList(leftObj).then(response => {
|
|
|
+ this.userTotalLeft = response.total;
|
|
|
+ this.userTableListLeft = response.rows;
|
|
|
+ });
|
|
|
+ this.$set(this,'addDialogBoxType',type);
|
|
|
+ }else{
|
|
|
+ this.$set(this,'addDialogBoxType',type);
|
|
|
+ }
|
|
|
},
|
|
|
//删除弹窗列表
|
|
|
delTable(row){
|
|
@@ -275,12 +385,26 @@
|
|
|
},
|
|
|
//重置
|
|
|
userResetQueryLeft(){
|
|
|
- this.$set(this,'userQueryParamsLeft',{ searchValue:"", });
|
|
|
+ this.$set(this,'userQueryParamsLeft',{
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 20,
|
|
|
+ deptId:"",
|
|
|
+ searchValue:"",
|
|
|
+ });
|
|
|
this.userHandleQueryLeft();
|
|
|
},
|
|
|
//查询接口
|
|
|
userGetListLeft(){
|
|
|
-
|
|
|
+ let self = this;
|
|
|
+ let leftObj = JSON.parse(JSON.stringify(this.userQueryParamsLeft));
|
|
|
+ leftObj.selectedUserIds = [];
|
|
|
+ for(let i=0;i<self.dialogTableDataList.length;i++){
|
|
|
+ leftObj.selectedUserIds.push(self.dialogTableDataList[i].userId);
|
|
|
+ }
|
|
|
+ findUserList(leftObj).then(response => {
|
|
|
+ this.userTotalLeft = response.total;
|
|
|
+ this.userTableListLeft = response.rows;
|
|
|
+ });
|
|
|
},
|
|
|
//查询
|
|
|
userHandleQueryRight(){
|
|
@@ -290,10 +414,8 @@
|
|
|
//重置
|
|
|
userResetQueryRight(){
|
|
|
this.$set(this,'userQueryParamsRight',{
|
|
|
- pageNum:1,
|
|
|
- pageSize:20,
|
|
|
- classType:"",
|
|
|
- classified:"",
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 20,
|
|
|
deptId:"",
|
|
|
searchValue:"",
|
|
|
});
|
|
@@ -301,18 +423,66 @@
|
|
|
},
|
|
|
//查询接口
|
|
|
userGetListRight(){
|
|
|
-
|
|
|
+ let self = this;
|
|
|
+ let rightObj = JSON.parse(JSON.stringify(this.userQueryParamsRight));
|
|
|
+ rightObj.userIds = [];
|
|
|
+ for(let i=0;i<self.dialogTableDataList.length;i++){
|
|
|
+ rightObj.userIds.push(self.dialogTableDataList[i].userId);
|
|
|
+ }
|
|
|
+ findUserList(rightObj).then(response => {
|
|
|
+ this.userTotalRight = response.total;
|
|
|
+ this.userTableListRight = response.rows;
|
|
|
+ });
|
|
|
},
|
|
|
+ //穿梭按钮
|
|
|
userArrowButton(type){
|
|
|
+ let self = this;
|
|
|
if(type == 1){
|
|
|
+ //右至左
|
|
|
if(this.userIdsRight[0]){
|
|
|
-
|
|
|
+ let list = JSON.parse(JSON.stringify(this.dialogTableDataList));
|
|
|
+ for(let i=0;i<self.userIdsRight.length;i++){
|
|
|
+ for(let s=0;s<list.length;s++){
|
|
|
+ if(self.userIdsRight[i] == list[s].userId){
|
|
|
+ list.splice(s,1);
|
|
|
+ s--
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$set(this,'dialogTableDataList',list);
|
|
|
+ this.userGetListLeft();
|
|
|
+ this.userGetListRight();
|
|
|
+ }else{
|
|
|
+ this.msgError('请先勾选右侧列表')
|
|
|
}
|
|
|
}else if(type == 2){
|
|
|
+ //左至右
|
|
|
if(this.userIdsLeft[0]){
|
|
|
-
|
|
|
+ let list = JSON.parse(JSON.stringify(this.dialogTableDataList));
|
|
|
+ for(let i=0;i<self.userIdsLeft.length;i++){
|
|
|
+ for(let o=0;o<self.userTableListLeft.length;o++){
|
|
|
+ if(self.userIdsLeft[i] == self.userTableListLeft[o].userId){
|
|
|
+ let obj = {
|
|
|
+ userId:self.userTableListLeft[o].userId,
|
|
|
+ name:self.userTableListLeft[o].nickName,
|
|
|
+ jobNum:self.userTableListLeft[o].userName,
|
|
|
+ deptName:self.userTableListLeft[o].deptName,
|
|
|
+ deptId:self.userTableListLeft[o].deptId,
|
|
|
+ userType:self.userTableListLeft[o].userType,
|
|
|
+ }
|
|
|
+ list.push(obj);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$set(this,'dialogTableDataList',list);
|
|
|
+ this.userGetListLeft();
|
|
|
+ this.userGetListRight();
|
|
|
+ }else{
|
|
|
+ this.msgError('请先勾选左侧列表')
|
|
|
}
|
|
|
}
|
|
|
+ this.$refs.leftUserTable.clearSelection();
|
|
|
+ this.$refs.rightUserTable.clearSelection();
|
|
|
},
|
|
|
/*===记录勾选数据===
|
|
|
需要再el-table 添加 :row-key="getRowKeys"
|
|
@@ -336,6 +506,12 @@
|
|
|
data = data == 1?0:1;
|
|
|
this.$forceUpdate()
|
|
|
},
|
|
|
+ //获取学院列表
|
|
|
+ listDepartments(){
|
|
|
+ listDepartments().then(response => {
|
|
|
+ this.deptSelectList = response.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -454,6 +630,11 @@
|
|
|
line-height:28px;
|
|
|
margin:10px 26px;
|
|
|
}
|
|
|
+ .dialog-table-title-text{
|
|
|
+ height:30px;
|
|
|
+ line-height:28px;
|
|
|
+ margin:10px 26px;
|
|
|
+ }
|
|
|
}
|
|
|
.switch .el-switch__label {
|
|
|
position: absolute;
|