Commit b9a8d9f0 by cocomilk2012

update

parent 72a37477
Showing with 6 additions and 0 deletions
...@@ -44,6 +44,7 @@ export default class SelectIdentity extends Vue { ...@@ -44,6 +44,7 @@ export default class SelectIdentity extends Vue {
private id_no: string = ""; private id_no: string = "";
private dispatch_list: any[] = []; private dispatch_list: any[] = [];
private no_data: boolean = false; private no_data: boolean = false;
private loading:any;
get id_no_encrytion(): string { get id_no_encrytion(): string {
return encodeURI(window.btoa(this.id_no)); return encodeURI(window.btoa(this.id_no));
...@@ -122,6 +123,7 @@ export default class SelectIdentity extends Vue { ...@@ -122,6 +123,7 @@ export default class SelectIdentity extends Vue {
.then(res => { .then(res => {
console.log("getDispatchList res=", res); console.log("getDispatchList res=", res);
this.dispatch_list = res; this.dispatch_list = res;
this.loading.clear();
}) })
.catch(err => { .catch(err => {
console.log("err=", err); console.log("err=", err);
...@@ -129,6 +131,10 @@ export default class SelectIdentity extends Vue { ...@@ -129,6 +131,10 @@ export default class SelectIdentity extends Vue {
} }
async created() { async created() {
this.loading=Toast.loading({
message: "加载中...",
forbidClick: true
});
await this.getUserInfo(); await this.getUserInfo();
if (this.id_no) { if (this.id_no) {
await this.getDispatchList(); await this.getDispatchList();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment