fix(ProblemRanking): 优化问卷调查信息导出逻辑
refactor(UserDropdown): 改进退出登录处理流程,增加错误处理 style(SalesTimelineWithTaskList): 统一"点击未支付"显示文本为"点击未付"
This commit is contained in:
@@ -319,15 +319,21 @@ const handleLogout = () => {
|
||||
const confirmLogout = () => {
|
||||
console.log('用户确认退出登录')
|
||||
|
||||
// 清除用户信息(如果有的话)
|
||||
// localStorage.removeItem('token')
|
||||
// sessionStorage.clear()
|
||||
try {
|
||||
// 清除用户状态
|
||||
userStore.logout()
|
||||
|
||||
// 关闭弹窗
|
||||
showLogoutModal.value = false
|
||||
// 关闭弹窗
|
||||
showLogoutModal.value = false
|
||||
|
||||
// 跳转到登录页面
|
||||
router.push('/login')
|
||||
// 跳转到登录页面
|
||||
router.push('/login')
|
||||
} catch (error) {
|
||||
console.error('退出登录失败:', error)
|
||||
// 即使出错也要关闭弹窗并跳转
|
||||
showLogoutModal.value = false
|
||||
router.push('/login')
|
||||
}
|
||||
}
|
||||
|
||||
// 取消退出登录
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
<div class="mini-stage" :class="{ active: getCourseStageCount(3, '点击未支付') > 0 }" @click="selectCourseStage(3, '点击未支付')">
|
||||
<div class="mini-marker"></div>
|
||||
<div class="mini-content">
|
||||
<span class="mini-title">点击未支付</span>
|
||||
<span class="mini-title">点击未付</span>
|
||||
<span class="mini-count">{{ getCourseStageCount(3, '点击未支付') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -541,7 +541,7 @@ const stages = computed(() => {
|
||||
{ id: 4, name: '待联系', displayName: '待联系', count: getStageCount('待联系'), color: '#bbdefb' },
|
||||
{ id: 5, name: '待到课', displayName: '待到课', count: getStageCount('待到课'), color: '#bbdefb'},
|
||||
{ id: 6, name: '课1-4', displayName: '课1-4', count: getStageCount('课1-4'), color: '#81c784' },
|
||||
{ id: 7, name: '点击支付', displayName: '点击支付', count: getStageCount('点击未支付'), color: '#42a5f5' },
|
||||
{ id: 7, name: '点击未支付', displayName: '点击未付', count: getStageCount('点击未支付'), color: '#42a5f5' },
|
||||
{ id: 8, name: '付定金', displayName: '付定金', count: getStageCount('付定金'), color: '#2196f3' },
|
||||
{ id: 9, name: '定金转化', displayName: '定金转化', count: getStageCount('定金转化'), color: '#1e88e5' },
|
||||
{ id: 10, name: '成交', displayName: '成交', count: getStageCount('成交'), color: '#1976d2' }
|
||||
|
||||
@@ -127,9 +127,8 @@ async function exportData() {
|
||||
|
||||
// 处理问卷调查信息
|
||||
if (customer.wechat_form && customer.wechat_form.additional_info) {
|
||||
customer.wechat_form.additional_info.forEach((item, index) => {
|
||||
flatData[`问题${index + 1}`] = item.topic || ''
|
||||
flatData[`答案${index + 1}`] = item.answer || ''
|
||||
customer.wechat_form.additional_info.forEach((item) => {
|
||||
flatData[item.topic || ''] = item.answer || ''
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user