This commit is contained in:
Your Name
2026-09-01 11:26:47 +08:00
parent 5bd5eae62d
commit 398f9f3726
357 changed files with 733 additions and 343 deletions
@@ -1,6 +1,6 @@
<template>
<div class="automation-form">
<el-alert class="automation-note" type="info" show-icon :closable="false" title="自动化设置作用于之后新添加的客户,不会立即推送给存量客户。" description="欢迎语依赖企微回调与常驻任务消费进程在 welcome_code 的 20 秒有效期内处理;分钟任务用于接待调度及标签、备注等补偿。请确认服务端已部署这些任务。" />
<el-alert class="automation-note" type="info" show-icon :closable="false" title="自动化设置作用于之后新添加的客户,不会写入企微获客链接详情中的“欢迎语/客户标签”配置。" description="系统会在客户添加回调中立即发送渠道欢迎语并添加标签,后台任务负责失败重试及其他补偿。测试时请使用系统复制的、带渠道参数的链接。" />
<h3 class="form-section-title">接待设置</h3>
<el-form-item label="接待模式">
@@ -50,7 +50,7 @@
<el-button :icon="Refresh" :disabled="disabled || tagsCreating" :loading="tagsLoading" @click="loadTags">{{ tagsError ? '重试' : '刷新标签' }}</el-button>
</div>
<p v-if="tagsError" role="alert" class="inline-error">{{ tagsError }} 已保留原有标签点击重试重新加载</p>
<p v-else class="field-help">每个方案只选一个标签可选择已有企业微信标签也可自定义创建标签在企微后台修改后请刷新</p>
<p v-else class="field-help">每个方案只选一个标签可选择已有企业微信标签也可自定义创建客户添加成功后由系统调用企微接口打标不会显示在企微获客链接详情的客户标签配置中</p>
<div v-if="showCustomTag" class="custom-tag-editor">
<label for="promotion-custom-tag-name">自定义标签名称</label>
<div class="custom-tag-row">
@@ -86,7 +86,7 @@
</el-radio-group>
<p v-if="config.welcome_mode === 'default'" class="field-help">沿用企业微信后台配置本系统不发送欢迎语</p>
<p v-else-if="config.welcome_mode === 'none'" class="field-help warning-help">仅关闭本系统欢迎语无法覆盖或关闭企业微信后台已配置的欢迎语</p>
<p v-else class="field-help warning-help">企微后台欢迎语可能优先发送需要使用此渠道内容时请核查企微后台配置避免本系统无法发送</p>
<p v-else class="field-help warning-help">渠道欢迎语由客户添加回调即时发送不会显示在企微获客链接详情中同一接待成员若已配置企微原生欢迎语企微可能不再下发欢迎码请先关闭冲突配置</p>
</el-form-item>
<template v-if="config.welcome_mode === 'channel'">
<div class="welcome-block"><h4>基础渠道欢迎语</h4><p class="field-help">未开启分时欢迎语或新客户添加时间未匹配任何时段时使用以下内容</p>
@@ -806,7 +806,10 @@ async function savePool() {
fallback_url: poolForm.fallback_url.trim(),
...(overview.automation_installed ? { automation_config: serializeAutomationConfig(automation) } : {})
})
poolDialogVisible.value = false
if (overview.automation_installed && result?.automation_saved !== true) {
throw new Error('方案已提交,但服务端未确认标签和欢迎语配置保存成功,请刷新后重试')
}
poolDialogVisible.value = false
await loadOverview()
if (result?.id) selectedPoolId.value = Number(result.id)
result?.sync_error