修改token刷新 及修改询单详情展示

This commit is contained in:
浅念
2025-07-24 10:17:22 +08:00
parent c333b907e6
commit 858147fbbd
3 changed files with 26 additions and 13 deletions
-2
View File
@@ -29,11 +29,9 @@
zh: zh,
en: en
}
onBeforeMount(() => {
setThemeTransitionClass(true)
setCompanyFromUrl()
useUserStore().restoreTokenTimer()
})
onMounted(() => {
+4 -1
View File
@@ -194,7 +194,10 @@ export const useUserStore = defineStore(
{
persist: {
key: 'user',
storage: localStorage
storage: localStorage,
afterRestore: (ctx) => {
ctx.store.restoreTokenTimer()
}
}
}
)
+22 -10
View File
@@ -176,31 +176,36 @@
<div class="detail-info-table">
<div class="row">
<div>客户名称:{{ detailRow.contacts }}</div>
<div>电话:{{ detailRow.phone }}</div>
<div>国家:{{ detailRow.country }}</div>
<div>电话:{{ detailRow.tel }}</div>
<div>国家:{{ detailRow.country? detailRow.country.cn_addr:'' }}</div>
</div>
<div class="row">
<div>渠道:{{ detailRow.channel }}</div>
<div>渠道:{{ detailRow.channel?detailRow.channel.name:'' }}</div>
<div>邮箱:{{ detailRow.email }}</div>
<div>WhatsApp:{{ detailRow.whatsapp }}</div>
</div>
<div class="row">
<div>发布人:{{ detailRow.publisher }}</div>
<div>跟单人:{{ detailRow.follower }}</div>
<div>发布人:{{ detailRow.enter? detailRow.enter.name : ''}}</div>
<div>跟单人:{{ detailRow.recipient? detailRow.recipient.name : ''}}</div>
<div>录单时间:{{ detailRow.created_at }}</div>
</div>
<div class="row">
<div>
等级:
<span :style="{ color: detailRow.levelColor || '#FF0000' }">{{ detailRow.level }}</span>
<span :style="detailRow.quality==0 ? { color: '#F5AB00' } : detailRow.quality==1 ? { color: '#8495B8' }: { color: '#9B7200' }">
{{detailRow.quality==0 ? '金牌商机' : detailRow.quality==1 ? '银牌商机' : '铜牌商机'}}
</span>
</div>
<div
>状态:<span>{{ detailRow.status }}</span></div
>状态:<span>{{ detailRow.status== 0 ? '未发布' : detailRow.status== 1 ? '待跟踪' : '已跟踪' }}</span></div
>
<div>SN:{{ detailRow.sn }}</div>
<div>SN:{{ detailRow.order_no }}</div>
</div>
</div>
<div v-if="detailRow" v-html="detailRow.desc_collect"> </div>
<div class="dtitle">详情内容</div>
<div v-if="detailRow" v-html="detailRow.content">
</div>
</el-dialog>
<el-dialog
:title="dialogType === 'add' ? '录单' : '编辑'"
@@ -321,7 +326,7 @@
})
const pagination = reactive({
currentPage: 1,
pageSize: 20,
pageSize: 10,
total: 0
})
const editorHtml = ref('') // 编辑器内容
@@ -542,6 +547,7 @@
whatsapp: row.whatsapp,
content: row.content
})
editorHtml.value = row.content
// 这里可以添加编辑逻辑
// 例如打开编辑对话框或跳转到编辑页面
}
@@ -794,4 +800,10 @@
padding: 0px 4px;
color: #00a43f;
}
.dtitle {
line-height: 40px;
color: #333;
font-size: 16px;
font-weight: bold;
}
</style>