更新
This commit is contained in:
parent
814949729e
commit
a745552dab
@ -171,7 +171,7 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
label="操作"
|
label="操作"
|
||||||
align="center"
|
align="center"
|
||||||
width="380"
|
width="420"
|
||||||
fixed="right"
|
fixed="right"
|
||||||
>
|
>
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
@ -237,11 +237,8 @@
|
|||||||
v-perms="['company/authentication']"
|
v-perms="['company/authentication']"
|
||||||
type="primary"
|
type="primary"
|
||||||
link
|
link
|
||||||
@click="
|
@click="authBefore(row)"
|
||||||
auth_id = row;
|
>{{ auth_text }}</el-button
|
||||||
authPop = true;
|
|
||||||
"
|
|
||||||
>企业认证</el-button
|
|
||||||
>
|
>
|
||||||
<template v-if="row.is_authentication && row.is_contract == 0">
|
<template v-if="row.is_authentication && row.is_contract == 0">
|
||||||
<!-- <el-button
|
<!-- <el-button
|
||||||
@ -764,9 +761,26 @@ const handleDelete = async (id: number | any[]) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const auth_id = ref("");
|
const auth_id = ref("");
|
||||||
|
const auth_text = ref("企业认证");
|
||||||
|
let timer: any;
|
||||||
|
let time_count = 10;
|
||||||
|
const authBefore = (row: any) => {
|
||||||
|
if (timer) return ElMessage.warning("认证中,请耐心等待");
|
||||||
|
auth_id.value = row;
|
||||||
|
authPop.value = true;
|
||||||
|
};
|
||||||
const handleAuthentication = async (id: number | string | any[]) => {
|
const handleAuthentication = async (id: number | string | any[]) => {
|
||||||
await feedback.confirm("确定要认证?");
|
await feedback.confirm("确定要认证?");
|
||||||
await authentication({ id });
|
await authentication({ id });
|
||||||
|
timer = setInterval(() => {
|
||||||
|
auth_text.value = time_count + "秒后刷新";
|
||||||
|
if (time_count == 0) {
|
||||||
|
clearInterval(timer);
|
||||||
|
auth_text.value = "企业认证";
|
||||||
|
time_count = 10;
|
||||||
|
getLists();
|
||||||
|
} else time_count--;
|
||||||
|
}, 1000);
|
||||||
getLists();
|
getLists();
|
||||||
authPop.value = false;
|
authPop.value = false;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user