|
@@ -142,7 +142,6 @@
|
|
|
<el-input
|
|
|
placeholder="请输入内容"
|
|
|
clearable
|
|
|
- @clear="clearData"
|
|
|
v-model.trim="keyWords"
|
|
|
@keyup.enter.native="getUserData"
|
|
|
></el-input>
|
|
@@ -223,6 +222,7 @@ export default {
|
|
|
UseList: [],
|
|
|
UseLists: [],
|
|
|
Unuselist: [],
|
|
|
+ Unuselists: [],
|
|
|
Date: null,
|
|
|
Time: null,
|
|
|
},
|
|
@@ -287,11 +287,7 @@ export default {
|
|
|
watch: {
|
|
|
keyWords() {
|
|
|
if (this.keyWords.length == 0) {
|
|
|
- this.getUserList({
|
|
|
- QueryName: this.keyWords,
|
|
|
- PageSize: this.PageSize,
|
|
|
- PageIndex: this.pageNum,
|
|
|
- });
|
|
|
+ this.FormData.Unuselist = this.FormData.Unuselists;
|
|
|
}
|
|
|
},
|
|
|
keyWordsUp() {
|
|
@@ -373,13 +369,22 @@ export default {
|
|
|
const arrs = this.arrList.flat();
|
|
|
const msgs = _.unionBy(arrs, "UserId");
|
|
|
this.FormData.Unuselist = msgs;
|
|
|
+ this.FormData.Unuselists = msgs;
|
|
|
this.copyList = msgs;
|
|
|
this.FormData.Unuselist = this.FormData.Unuselist.filter(
|
|
|
(i) => i.UserName
|
|
|
);
|
|
|
+
|
|
|
this.FormData.Unuselist.forEach((res, index) => {
|
|
|
res.indexname = index;
|
|
|
});
|
|
|
+ this.FormData.Unuselists = this.FormData.Unuselists.filter(
|
|
|
+ (i) => i.UserName
|
|
|
+ );
|
|
|
+
|
|
|
+ this.FormData.Unuselists.forEach((res, index) => {
|
|
|
+ res.indexname = index;
|
|
|
+ });
|
|
|
this.dataList = msgs;
|
|
|
this.total = num;
|
|
|
this.loading = false;
|
|
@@ -397,6 +402,10 @@ export default {
|
|
|
this.FormData.UseList.push(val);
|
|
|
this.FormData.UseLists = this.FormData.UseList;
|
|
|
this.FormData.Unuselist.splice(index, 1);
|
|
|
+ this.FormData.Unuselists.splice(index, 1);
|
|
|
+ // this.FormData.Unuselists = this.FormData.Unuselists.filter(
|
|
|
+ // (i) => i.UserName !== val.UserName
|
|
|
+ // );
|
|
|
},
|
|
|
compare(property) {
|
|
|
return function (a, b) {
|
|
@@ -412,10 +421,10 @@ export default {
|
|
|
this.compare("indexname")
|
|
|
);
|
|
|
this.FormData.UseList.splice(index, 1);
|
|
|
- // this.FormData.UseLists.splice(index, 1);
|
|
|
- this.FormData.UseLists = this.FormData.UseLists.filter(
|
|
|
- (i) => i.UserName !== val.UserName
|
|
|
- );
|
|
|
+ this.FormData.UseLists.splice(index, 1);
|
|
|
+ // this.FormData.UseLists = this.FormData.UseLists.filter(
|
|
|
+ // (i) => i.UserName !== val.UserName
|
|
|
+ // );
|
|
|
},
|
|
|
dataChange: function (data) {
|
|
|
this.FormData.DateBegin = data[0];
|
|
@@ -447,14 +456,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
getUserData(val) {
|
|
|
- // this.arrList = [];
|
|
|
- // this.FormData.Unuselist = [];
|
|
|
- // this.pageNum = 1;
|
|
|
- // this.getUserList({
|
|
|
- // QueryName: this.keyWords,
|
|
|
- // PageSize: this.PageSize,
|
|
|
- // PageIndex: this.pageNum,
|
|
|
- // });
|
|
|
this.keyWords = this.keyWords.replace(/\s+/g, "");
|
|
|
const search = this.keyWords;
|
|
|
if (search) {
|
|
@@ -463,13 +464,6 @@ export default {
|
|
|
"UserName",
|
|
|
search
|
|
|
);
|
|
|
- } else {
|
|
|
- this.getUserList({
|
|
|
- QueryName: this.keyWords,
|
|
|
- PageSize: this.PageSize,
|
|
|
- PageIndex: this.pageNum,
|
|
|
- });
|
|
|
- // this.getWarningList();
|
|
|
}
|
|
|
},
|
|
|
clearData() {
|