update:个人CA申请入口打开 新增查询接口
update:法人CA使用vue3.0组合式api
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
<Button type="primary" @click="onSubmit" v-if="!disableEdit"
|
||||
>前往申领</Button
|
||||
>
|
||||
<Button type="primary" @click="goCertUrl" v-if="disableEdit"
|
||||
<Button type="primary" @click="getStatus" v-if="disableEdit"
|
||||
>继续申领流程</Button
|
||||
>
|
||||
<Button style="margin-left: 10px" @click="showDrawer"
|
||||
@@ -133,6 +133,26 @@ export default {
|
||||
} else {
|
||||
message.error(res.errorMsg);
|
||||
}
|
||||
},
|
||||
async getStatus() {
|
||||
const res = await get("/api2/CA/UserApplyGetStatus", {
|
||||
id: this.currentApplyId
|
||||
});
|
||||
if (res.errorCode == 0) {
|
||||
const status = res.data;
|
||||
message.info(
|
||||
"当前状态:" +
|
||||
[
|
||||
"待审核,请耐心等待结果",
|
||||
"审核通过,请等待授权通过",
|
||||
"已授权,请等待证书发放",
|
||||
"已发放,申领已完成",
|
||||
"已拒绝,请重新申请或联系管理员"
|
||||
][status]
|
||||
);
|
||||
} else {
|
||||
await this.goCertUrl();
|
||||
}
|
||||
}
|
||||
},
|
||||
components: {
|
||||
|
||||
Reference in New Issue
Block a user