|
@@ -45,6 +45,7 @@
|
|
v-model="seleched"
|
|
v-model="seleched"
|
|
:render-content="renderFunc"
|
|
:render-content="renderFunc"
|
|
:data="data"
|
|
:data="data"
|
|
|
|
+ :class="{hideReturn: !canDelUser}"
|
|
>
|
|
>
|
|
<template #left-footer>
|
|
<template #left-footer>
|
|
<div class="footer line">
|
|
<div class="footer line">
|
|
@@ -84,6 +85,9 @@ export default {
|
|
gender: genderType[item.gender],
|
|
gender: genderType[item.gender],
|
|
}));
|
|
}));
|
|
},
|
|
},
|
|
|
|
+ canDelUser() {
|
|
|
|
+ return this.$route.query.type !== 'resetTeam' || !this.isOnlyChangeUser
|
|
|
|
+ }
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -97,16 +101,14 @@ export default {
|
|
watch: {
|
|
watch: {
|
|
activeListStudent() {
|
|
activeListStudent() {
|
|
this.setSelectedUser()
|
|
this.setSelectedUser()
|
|
- }
|
|
|
|
|
|
+ },
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- console.log(this.isOnlyChangeUser)
|
|
|
|
this.setSelectedUser()
|
|
this.setSelectedUser()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
setSelectedUser() {
|
|
setSelectedUser() {
|
|
const ids = this.activeListStudent.map(item => item.userId)
|
|
const ids = this.activeListStudent.map(item => item.userId)
|
|
- console.log(ids, this.data)
|
|
|
|
this.seleched = [...ids]
|
|
this.seleched = [...ids]
|
|
},
|
|
},
|
|
filterStudent(query, item) {
|
|
filterStudent(query, item) {
|
|
@@ -130,7 +132,7 @@ export default {
|
|
this.$listeners.searchStudent()
|
|
this.$listeners.searchStudent()
|
|
},
|
|
},
|
|
submit() {
|
|
submit() {
|
|
- if (this.activeType == 'HIGH_ONLINE' && (this.seleched.length < 3 || this.seleched.length > 5)) {
|
|
|
|
|
|
+ if (!this.isOnlyChangeUser && this.activeType == 'HIGH_ONLINE' && (this.seleched.length < 3 || this.seleched.length > 5)) {
|
|
return this.$message.error('线上技能班必须为3-5人')
|
|
return this.$message.error('线上技能班必须为3-5人')
|
|
}
|
|
}
|
|
if (this.seleched.length < 1) {
|
|
if (this.seleched.length < 1) {
|
|
@@ -184,6 +186,11 @@ export default {
|
|
height: 40px;
|
|
height: 40px;
|
|
line-height: 40px;
|
|
line-height: 40px;
|
|
}
|
|
}
|
|
|
|
+.hideReturn{
|
|
|
|
+ /deep/ .el-transfer__buttons button:first-child{
|
|
|
|
+ display: none;
|
|
|
|
+ }
|
|
|
|
+}
|
|
/deep/ .line {
|
|
/deep/ .line {
|
|
width: 220px;
|
|
width: 220px;
|
|
display: flex;
|
|
display: flex;
|