员工入职填写优化
This commit is contained in:
@@ -542,6 +542,7 @@ import {
|
||||
import type { ColumnProps, ProTableInstance } from "@/components/ProTable/interface";
|
||||
import { isMessageBoxConfirmed } from "@/utils/messageBox";
|
||||
import { useOnboardingPermission } from "@/utils/onboardingPermission";
|
||||
import { copyToClipboard } from "@/utils";
|
||||
|
||||
const { canManage, disabledReason } = useOnboardingPermission("onboardingContractManageAll");
|
||||
|
||||
@@ -997,9 +998,13 @@ function formatPlaceholder(code: string) {
|
||||
return `{{${code}}}`;
|
||||
}
|
||||
|
||||
function copyPlaceholder(code: string) {
|
||||
navigator.clipboard.writeText(`{{${code}}}`);
|
||||
ElMessage.success(`占位符 {{${code}}} 已复制到剪贴板`);
|
||||
async function copyPlaceholder(code: string) {
|
||||
const ok = await copyToClipboard(`{{${code}}}`);
|
||||
if (ok) {
|
||||
ElMessage.success(`占位符 {{${code}}} 已复制到剪贴板`);
|
||||
} else {
|
||||
ElMessage.warning(`自动复制失败,请手动复制 {{${code}}}`);
|
||||
}
|
||||
}
|
||||
|
||||
async function openVariables(row: OnboardingContractVersion) {
|
||||
|
||||
Reference in New Issue
Block a user