first commit
This commit is contained in:
71
陈海波/投标平台/qiyeduan/src/application/logic/page/Index.logic.ts
Normal file
71
陈海波/投标平台/qiyeduan/src/application/logic/page/Index.logic.ts
Normal file
@@ -0,0 +1,71 @@
|
||||
import { BaseLogic, Methods } from "@logic/Base.logic";
|
||||
import { Inject } from "@ann/Ioc.annotation";
|
||||
import { UserServiceImpl } from "@impl/User.service.impl";
|
||||
|
||||
export class IndexLogic extends BaseLogic implements Methods {
|
||||
|
||||
@Inject()
|
||||
public readonly UserServiceImpl!: UserServiceImpl;
|
||||
public info = {
|
||||
"id" : 0,
|
||||
"username" : "",
|
||||
"role_id" : 0,
|
||||
"status" : 0,
|
||||
"company_status" : 0,
|
||||
"reg_ip" : {
|
||||
"ip" : "",
|
||||
"country" : "",
|
||||
"province" : "",
|
||||
"city" : "",
|
||||
"county" : "",
|
||||
"isp" : "",
|
||||
"area" : ""
|
||||
},
|
||||
"login_ip" : null,
|
||||
"login_time" : null,
|
||||
"last_login_ip" : {
|
||||
"ip" : "",
|
||||
"country" : "",
|
||||
"province" : "",
|
||||
"city" : "",
|
||||
"county" : "",
|
||||
"isp" : "",
|
||||
"area" : ""
|
||||
},
|
||||
"last_login_time" : null,
|
||||
"delete_time" : 0,
|
||||
"create_time" : 0,
|
||||
"update_time" : 0,
|
||||
"route" : [],
|
||||
"user" : {
|
||||
"id" : 0,
|
||||
"full_name" : "",
|
||||
"cellphone" : "",
|
||||
"update_time" : 0
|
||||
},
|
||||
"role_info" : {
|
||||
"role" : {
|
||||
"id" : 0,
|
||||
"title" : ""
|
||||
},
|
||||
"department" : {
|
||||
"id" : 0,
|
||||
"title" : ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
constructor(point: any) {
|
||||
super();
|
||||
this.VueApp = point;
|
||||
}
|
||||
|
||||
public async StartUp(): Promise<void> {
|
||||
this.userGetUserInfo()
|
||||
}
|
||||
|
||||
public async userGetUserInfo() {
|
||||
let res = await this.UserServiceImpl.userGetUserInfo({})
|
||||
this.info = res
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user