|
@@ -308,6 +308,7 @@ export default {
|
|
|
teamListTime: null,
|
|
|
teamListLoading: null,
|
|
|
isDisabled: false,
|
|
|
+ rowId: "",
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -351,7 +352,12 @@ export default {
|
|
|
checkStatus: 1
|
|
|
})
|
|
|
.then(response => {
|
|
|
- this.teamList = response.data.rows;
|
|
|
+ let teamArr = response.data.rows || []
|
|
|
+ if(teamArr.length != 0) {
|
|
|
+ this.teamList = teamArr.filter(ele => ele.id != this.rowId)
|
|
|
+ } else {
|
|
|
+ this.teamList = []
|
|
|
+ }
|
|
|
this.teamListLoading = false;
|
|
|
}
|
|
|
).catch(()=>{
|
|
@@ -396,6 +402,7 @@ export default {
|
|
|
const id = row.id
|
|
|
getSelectById(id).then(response => {
|
|
|
const obj = response.data;
|
|
|
+ this.rowId = obj.id;
|
|
|
if(obj.bindTeamId) {
|
|
|
let index = obj.bindTeamName.indexOf("(");
|
|
|
let resVal = index === -1 ? obj.bindTeamName : obj.bindTeamName.substring(0, index);
|
|
@@ -448,7 +455,6 @@ export default {
|
|
|
// 团队解绑 // bindTeamName
|
|
|
removeBind() {
|
|
|
removeBindApi(this.form.id).then(res => {
|
|
|
- console.log(res,'res');
|
|
|
if(res.code === 200) {
|
|
|
this.$message.success("解绑成功!");
|
|
|
this.$set(this.form, 'bindTeamId', '');
|