fix(aihr): clarify organization sync controls
This commit is contained in:
@@ -7,7 +7,9 @@
|
||||
</div>
|
||||
<div class="head-actions">
|
||||
<el-switch v-model="dryRun" active-text="预检" inactive-text="写入" />
|
||||
<el-button type="danger" :icon="Refresh" :loading="syncing" @click="runSync">同步预检</el-button>
|
||||
<el-button type="danger" :icon="Refresh" :loading="syncing" @click="runSync">
|
||||
{{ dryRun ? '同步预检' : '执行同步' }}
|
||||
</el-button>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -42,13 +44,7 @@
|
||||
<el-tag v-if="orgSnapshot?.suspectText" type="danger">疑似乱码 {{ orgSnapshot.suspectText }}</el-tag>
|
||||
</div>
|
||||
</div>
|
||||
<el-alert
|
||||
v-if="orgQualityWarnings.length"
|
||||
class="quality-alert"
|
||||
type="warning"
|
||||
:closable="false"
|
||||
show-icon
|
||||
>
|
||||
<el-alert v-if="orgQualityWarnings.length" class="quality-alert" type="warning" :closable="false" show-icon>
|
||||
<template #title>
|
||||
{{ orgQualityWarnings.join(';') }}
|
||||
</template>
|
||||
@@ -302,6 +298,9 @@ const runSync = async () => {
|
||||
await loadOrgSnapshot();
|
||||
}
|
||||
} catch (error) {
|
||||
if (error === 'cancel' || error === 'close') {
|
||||
return;
|
||||
}
|
||||
ElMessage.error('组织同步接口不可用,请检查外部同步配置');
|
||||
} finally {
|
||||
syncing.value = false;
|
||||
|
||||
Reference in New Issue
Block a user