update:登记后字段申领

This commit is contained in:
2021-01-24 21:19:22 +08:00
parent c7cfd3354e
commit e7cf8d6ee7
3 changed files with 10 additions and 1 deletions

5
src/services/util.js Normal file
View File

@@ -0,0 +1,5 @@
export function delay(ms) {
return new Promise(reslove => {
setTimeout(reslove, ms);
});
}

View File

@@ -135,6 +135,7 @@ import {
} from "ant-design-vue"; } from "ant-design-vue";
import { UploadOutlined } from "@ant-design/icons-vue"; import { UploadOutlined } from "@ant-design/icons-vue";
import { get, post } from "@/services/http"; import { get, post } from "@/services/http";
import { delay } from "@/services/util";
import regex from "@/services/regex"; import regex from "@/services/regex";
const picUploadConfig = [ const picUploadConfig = [
{ {
@@ -383,8 +384,11 @@ export default {
if (resp.errorCode != 0) { if (resp.errorCode != 0) {
message.error(resp.errorMsg); message.error(resp.errorMsg);
} else { } else {
message.success("申请成功"); message.success("登记成功");
this.disabled = true;
this.currentId = resp.data; this.currentId = resp.data;
await delay(1000);
await this.sendUnitApply();
} }
}, },
async sendUnitApply() { async sendUnitApply() {

BIN
使用说明.pdf Normal file

Binary file not shown.