增加一个渠道绑定
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user