|
@@ -186,6 +186,7 @@
|
|
|
<script>
|
|
|
import { GetUserList } from "@/api/apiAuthority";
|
|
|
import { SaveTac } from "@/api/systemConfiguration";
|
|
|
+import { findarrays } from "@/utils/validate";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -259,6 +260,17 @@ export default {
|
|
|
return this.loading || this.noMore;
|
|
|
},
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ keyWords() {
|
|
|
+ if (this.keyWords.length == 0) {
|
|
|
+ this.getUserList({
|
|
|
+ QueryName: this.keyWords,
|
|
|
+ PageSize: this.PageSize,
|
|
|
+ PageIndex: this.pageNum,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
methods: {
|
|
|
isValidIP: function (ip) {
|
|
|
let reg =
|
|
@@ -370,15 +382,30 @@ export default {
|
|
|
PageIndex: this.pageNum,
|
|
|
});
|
|
|
},
|
|
|
- getUserData() {
|
|
|
- this.arrList = [];
|
|
|
- this.FormData.Unuselist = [];
|
|
|
- this.pageNum = 1;
|
|
|
- this.getUserList({
|
|
|
- QueryName: this.keyWords,
|
|
|
- PageSize: this.PageSize,
|
|
|
- PageIndex: this.pageNum,
|
|
|
- });
|
|
|
+ getUserData(val) {
|
|
|
+ // this.arrList = [];
|
|
|
+ // this.FormData.Unuselist = [];
|
|
|
+ // this.pageNum = 1;
|
|
|
+ // this.getUserList({
|
|
|
+ // QueryName: this.keyWords,
|
|
|
+ // PageSize: this.PageSize,
|
|
|
+ // PageIndex: this.pageNum,
|
|
|
+ // });
|
|
|
+ const search = this.keyWords;
|
|
|
+ if (search) {
|
|
|
+ this.FormData.Unuselist = findarrays(
|
|
|
+ this.FormData.Unuselist,
|
|
|
+ "UserName",
|
|
|
+ search
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ this.getUserList({
|
|
|
+ QueryName: this.keyWords,
|
|
|
+ PageSize: this.PageSize,
|
|
|
+ PageIndex: this.pageNum,
|
|
|
+ });
|
|
|
+ // this.getWarningList();
|
|
|
+ }
|
|
|
},
|
|
|
clearData() {
|
|
|
this.arrList = [];
|