update:登记后字段申领
This commit is contained in:
5
src/services/util.js
Normal file
5
src/services/util.js
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
export function delay(ms) {
|
||||||
|
return new Promise(reslove => {
|
||||||
|
setTimeout(reslove, ms);
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user