增加一个渠道绑定

This commit is contained in:
wuweihua
2026-11-10 16:21:07 +08:00
parent e6a9fcf0a2
commit 1a0483c7fe
20 changed files with 940 additions and 147 deletions
@@ -95,11 +95,19 @@ const filteredRows = computed(() => {
})
})
function formatHour(val) {
if (!val) return ''
const text = String(val).replace('T', ' ')
if (text.length >= 16) return text.slice(0, 13) + ':00'
if (text.length >= 10) return text.slice(0, 10) + ' 00:00'
return text
}
function termText(row) {
const start = row.termStart || row.effectiveDate || ''
const end = row.termEnd || '不限'
const start = formatHour(row.termStart || row.effectiveDate || '')
const end = row.termEnd ? formatHour(row.termEnd) : '不限'
if (!start) return '未设置'
return `${String(start).slice(0, 10)} ~ ${String(end).slice(0, 10)}`
return start + ' ~ ' + end
}
function termStatusText(status) {