钉钉审批配置优化

This commit is contained in:
geht
2026-06-08 19:05:29 +08:00
parent 1d0b4c9fbb
commit fd5205e33e
44 changed files with 3730 additions and 278 deletions

View File

@@ -9,6 +9,9 @@
<!-- <j-upload-button type="primary" preIcon="ant-design:import-outlined" @click="onImportXls" v-auth="'system:user:import'">导入</j-upload-button>-->
<import-excel-progress :upload-url="getImportUrl" @success="reload"></import-excel-progress>
<a-button type="primary" @click="openModal(true, {})" preIcon="ant-design:hdd-outlined"> 回收站</a-button>
<!--update-begin---author:GHT ---date:2026-06-08 forXSLMES-20260608同步钉钉ID按钮-->
<a-button type="default" preIcon="ant-design:sync-outlined" :loading="syncDingLoading" @click="handleSyncDingUserId"> 同步钉钉ID</a-button>
<!--update-end---author:GHT ---date:2026-06-08 forXSLMES-20260608同步钉钉ID按钮-->
<a-dropdown v-if="selectedRowKeys.length > 0">
<template #overlay>
<a-menu>
@@ -66,12 +69,33 @@
import { useModal } from '/@/components/Modal';
import { useMessage } from '/@/hooks/web/useMessage';
import { columns, searchFormSchema } from './user.data';
import { listNoCareTenant, deleteUser, batchDeleteUser, getImportUrl, getExportUrl, frozenBatch, resetPassword } from './user.api';
import { listNoCareTenant, deleteUser, batchDeleteUser, getImportUrl, getExportUrl, frozenBatch, resetPassword, syncDingUserId } from './user.api';
import { usePermission } from '/@/hooks/web/usePermission';
import ImportExcelProgress from './components/ImportExcelProgress.vue';
const { createMessage, createConfirm } = useMessage();
const { isDisabledAuth, hasPermission } = usePermission();
//update-begin---author:GHT ---date:2026-06-08 for【XSLMES-20260608】同步钉钉ID-----------
const syncDingLoading = ref(false);
async function handleSyncDingUserId() {
syncDingLoading.value = true;
try {
const res: any = await syncDingUserId();
const { successCount, failCount, failDetails } = res;
let content = `同步完成:成功 ${successCount} 人,未匹配 ${failCount}`;
if (failDetails && failDetails.length > 0) {
content += `\n\n未匹配用户${failDetails.join('、')}`;
}
createMessage.info(content);
reload();
} catch (e) {
createMessage.error('同步钉钉ID失败');
} finally {
syncDingLoading.value = false;
}
}
//update-end---author:GHT ---date:2026-06-08 for【XSLMES-20260608】同步钉钉ID-----------
//注册drawer
const [registerDrawer, { openDrawer }] = useDrawer();