|
@@ -439,8 +439,9 @@ export default {
|
|
|
changeChecked(val, index) {
|
|
|
this.checkList = false;
|
|
|
this.FormData.UseList.push(val);
|
|
|
- const res = this.FormData.UseList;
|
|
|
- this.FormData.UseLists = res;
|
|
|
+ this.FormData.UseLists.push(val);
|
|
|
+ // const res = this.FormData.UseList;
|
|
|
+ // this.FormData.UseLists = res;
|
|
|
this.FormData.Unuselist.splice(index, 1);
|
|
|
// this.FormData.Unuselists.splice(index, 1);
|
|
|
this.FormData.Unuselists = this.FormData.Unuselists.filter(
|
|
@@ -464,7 +465,9 @@ export default {
|
|
|
this.FormData.Unuselists = this.FormData.Unuselists.sort(
|
|
|
this.compare("indexname")
|
|
|
);
|
|
|
- this.FormData.UseList.splice(index, 1);
|
|
|
+ this.FormData.UseList = this.FormData.UseList.filter(
|
|
|
+ (i) => i.UserId !== val.UserId
|
|
|
+ );
|
|
|
// this.FormData.UseLists.splice(index, 1);
|
|
|
this.FormData.UseLists = this.FormData.UseLists.filter(
|
|
|
(i) => i.UserId !== val.UserId
|