diff --git a/spug_web/src/pages/system/login/index.js b/spug_web/src/pages/system/login/index.js
index 5f57366..11381b7 100644
--- a/spug_web/src/pages/system/login/index.js
+++ b/spug_web/src/pages/system/login/index.js
@@ -22,6 +22,9 @@ export default observer(function () {
store.f_name = e.target.value} placeholder="请输入"/>
+
+ store.f_ip = e.target.value} placeholder="请输入"/>
+
diff --git a/spug_web/src/pages/system/login/store.js b/spug_web/src/pages/system/login/store.js
index 1ccf1d1..b3ab42b 100644
--- a/spug_web/src/pages/system/login/store.js
+++ b/spug_web/src/pages/system/login/store.js
@@ -10,11 +10,13 @@ class Store {
@observable records = [];
@observable isFetching = false;
+ @observable f_ip;
@observable f_name;
@observable f_status = '';
@computed get dataSource() {
let records = this.records;
+ if (this.f_ip) records = records.filter(x => includes(x.ip, this.f_ip));
if (this.f_name) records = records.filter(x => includes(x.username, this.f_name));
if (this.f_status) records = records.filter(x => String(x.is_success) === this.f_status);
return records