|
@@ -293,7 +293,7 @@ export default {
|
|
|
handler(val) {
|
|
|
if (val.length == 0) {
|
|
|
const res = this.FormData.Unuselists;
|
|
|
- this.FormData.Unuselist = res;
|
|
|
+ this.FormData.Unuselist = JSON.parse(JSON.stringify(res));
|
|
|
}
|
|
|
},
|
|
|
},
|
|
@@ -301,8 +301,7 @@ export default {
|
|
|
handler(val) {
|
|
|
if (val.length == 0) {
|
|
|
const res = this.FormData.UseLists;
|
|
|
- this.FormData.UseList = res;
|
|
|
- console.log(this.FormData.UseLists);
|
|
|
+ this.FormData.UseList = JSON.parse(JSON.stringify(res));
|
|
|
}
|
|
|
},
|
|
|
},
|
|
@@ -332,7 +331,7 @@ export default {
|
|
|
const search = this.keyWordsUp;
|
|
|
if (search) {
|
|
|
let res = this.FormData.UseLists;
|
|
|
- this.FormData.UseList = res;
|
|
|
+ this.FormData.UseList = JSON.parse(JSON.stringify(res));
|
|
|
this.FormData.UseList = findarrays(
|
|
|
this.FormData.UseList,
|
|
|
"UserName",
|
|
@@ -340,7 +339,7 @@ export default {
|
|
|
);
|
|
|
} else {
|
|
|
const res = this.FormData.UseLists;
|
|
|
- this.FormData.UseList = res;
|
|
|
+ this.FormData.UseList = JSON.parse(JSON.stringify(res));
|
|
|
}
|
|
|
},
|
|
|
queryData() {
|
|
@@ -348,7 +347,7 @@ export default {
|
|
|
const search = this.keyWords;
|
|
|
if (search) {
|
|
|
let res = this.FormData.Unuselists;
|
|
|
- this.FormData.Unuselist = res;
|
|
|
+ this.FormData.Unuselist = JSON.parse(JSON.stringify(res));
|
|
|
this.FormData.Unuselist = findarrays(
|
|
|
this.FormData.Unuselist,
|
|
|
"UserName",
|
|
@@ -468,8 +467,9 @@ export default {
|
|
|
res.indexname = index;
|
|
|
});
|
|
|
const res = that.FormData.UseList;
|
|
|
- that.FormData.UseLists = res;
|
|
|
- that.FormData.Unuselists = that.FormData.Unuselist;
|
|
|
+ that.FormData.UseLists = JSON.parse(JSON.stringify(res));
|
|
|
+ const rel = that.FormData.Unuselist;
|
|
|
+ that.FormData.Unuselists = JSON.parse(JSON.stringify(rel));
|
|
|
that.Unuselist = that.FormData.Unuselist;
|
|
|
that.boxArr = _.cloneDeep(that.FormData.Unuselist);
|
|
|
}
|
|
@@ -492,7 +492,9 @@ export default {
|
|
|
// });
|
|
|
// const res = this.FormData.UseList;
|
|
|
// this.FormData.UseLists = res;
|
|
|
- this.FormData.Unuselist.splice(index, 1);
|
|
|
+ this.FormData.Unuselist = this.FormData.Unuselist.filter(
|
|
|
+ (i) => i.UserId !== val.UserId
|
|
|
+ );
|
|
|
this.FormData.Unuselists = this.FormData.Unuselists.filter(
|
|
|
(i) => i.UserId !== val.UserId
|
|
|
);
|
|
@@ -505,6 +507,8 @@ export default {
|
|
|
this.compare("indexname")
|
|
|
);
|
|
|
this.FormData.Unuselists.push(val);
|
|
|
+ // this.FormData.Unuselist = this.RemoveArr(this.FormData.Unuselist);
|
|
|
+ // this.FormData.Unuselists = this.RemoveArr(this.FormData.Unuselists);
|
|
|
this.FormData.Unuselists = this.FormData.Unuselists.sort(
|
|
|
this.compare("indexname")
|
|
|
);
|