@@ -56,6 +56,7 @@
共计 {{total}} 条数据
性别
金币数量 |
注册时间 |
- 状态 |
+ 状态 |
操作 |
diff --git a/src/app/admin/user/user-list/user-list.component.ts b/src/app/admin/user/user-list/user-list.component.ts
index 914625d..740ebba 100644
--- a/src/app/admin/user/user-list/user-list.component.ts
+++ b/src/app/admin/user/user-list/user-list.component.ts
@@ -50,6 +50,7 @@ export class UserListComponent implements OnInit {
whereObject['regTimeStart'] = whereObject['regTime'][0].getTime();
whereObject['regTimeEnd'] = whereObject['regTime'][1].getTime();
}
+
this.loading = false;
if (reset) {
this.pageNum = 1;
@@ -57,7 +58,6 @@ export class UserListComponent implements OnInit {
whereObject['pageNum'] = this.pageNum;
whereObject['pageSize'] = this.pageSize;
this.user.getListUser(whereObject, data => {
- console.log(data);
if (data['return_code'] === '000000') {
this.requestData = data['return_data'].list;
this.total = data['return_data'].total;
@@ -78,7 +78,6 @@ export class UserListComponent implements OnInit {
this.common.showConfirm(message, data => {
if (data) {
this.user.forbiddenUser(id, dataUser => {
- console.log(dataUser);
this.getRequest(false , this.searchForm.value);
});
}
diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts
index 4370925..a362f3a 100644
--- a/src/app/app-routing.module.ts
+++ b/src/app/app-routing.module.ts
@@ -26,6 +26,11 @@ const routes: Routes = [
loadChildren: () => import('./admin/user/user.module').then(m => m.UserModule),
canActivate: [InitGuardService]
},
+ {
+ path: 'merchant',
+ loadChildren: () => import('./admin/merchant/merchant.module').then(m => m.MerchantModule),
+ canActivate: [InitGuardService]
+ },
{
path: 'system',
loadChildren: () => import('./admin/system/system.module').then(m => m.SystemModule),
diff --git a/src/app/services/merchant.service.ts b/src/app/services/merchant.service.ts
new file mode 100644
index 0000000..67cb29c
--- /dev/null
+++ b/src/app/services/merchant.service.ts
@@ -0,0 +1,53 @@
+import { Injectable } from '@angular/core';
+import {HttpClient} from '@angular/common/http';
+import {CommonsService} from './commons.service';
+import {environment} from '../../environments/environment';
+
+@Injectable({
+ providedIn: 'root'
+})
+export class MerchantService {
+
+ constructor(
+ private http: HttpClient,
+ private common: CommonsService
+ ) { }
+
+ /**
+ * 查询商户列表
+ *
+ * @param paramsObject 对象
+ * @param callBack 回调
+ */
+ public getMerchantList(paramsObject: object, callBack) {
+ this.http.get(environment.baseUrl + 'highMerchant/getMerchantList?' + this.common.getWhereCondition(paramsObject)).subscribe(data => {
+ callBack(data);
+ });
+ }
+
+ /**
+ * 新增商户
+ *
+ * @param params 上传对象
+ * @param callBack 回调
+ * @return data 返回结果
+ */
+ public insertMerchant(params: object, callBack) {
+ this.http.post(environment.baseUrl + 'highMerchant/insertMerchant', params).subscribe(data => {
+ callBack(data);
+ });
+ }
+
+ /**
+ * 根据id查询详情
+ *
+ * @param merchantId 职位id
+ * @param callBack 回调
+ */
+ public getMerchantById(merchantId: number, callBack) {
+ this.http.get(environment.baseUrl + 'highMerchant/getMerchantById?id=' + merchantId).subscribe(data => {
+ callBack(data);
+ });
+ }
+
+}
diff --git a/src/styles.scss b/src/styles.scss
index 17ddbc8..263d7f5 100644
--- a/src/styles.scss
+++ b/src/styles.scss
@@ -40,3 +40,16 @@
.operating-button button {
margin-bottom: 15px;
}
+.table {
+ margin-top: 20px;
+}
+
+.search-area {
+ text-align: center;
+}
+.ant-advanced-search-form {
+ padding: 24px;
+ background: #fbfbfb;
+ border: 1px solid #d9d9d9;
+ border-radius: 6px;
+}