解析列表添加未解析状态

This commit is contained in:
zhujiyan
2024-07-24 15:36:40 +08:00
parent 26136c79e6
commit f1174d0e7d

View File

@@ -39,20 +39,21 @@ const tableStore: any = new TableStore({
width: 100, width: 100,
render: 'tag', render: 'tag',
custom: { custom: {
0: 'warning',
1: 'success', 1: 'success',
2: 'danger', 2: 'danger',
3: 'primary', 3: 'primary'
null:''
}, },
replaceValue: { replaceValue: {
0: '未解析',
1: '解析成功', 1: '解析成功',
2: '解析失败', 2: '解析失败',
3: '文件不存在', 3: '文件不存在'
} }
// formatter: row => { // formatter: row => {
// return row.cellValue == 1 ? '未注册' : row.cellValue == 2 ? '注册' : '接入' // return row.cellValue == 1 ? '未注册' : row.cellValue == 2 ? '注册' : '接入'
// }, // },
}, }
], ],
beforeSearchFun: () => { beforeSearchFun: () => {
@@ -68,17 +69,15 @@ provide('tableStore', tableStore)
const handleBack = () => { const handleBack = () => {
emit('back') emit('back')
} }
const open=()=>{ const open = () => {
dialogVisible.value=true dialogVisible.value = true
tableStore.index() tableStore.index()
} }
const close=()=>{ const close = () => {
dialogVisible.value=false dialogVisible.value = false
} }
const initTable = () => { const initTable = () => {}
} onMounted(() => {})
onMounted(() => {
})
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scoped></style> <style lang="scss" scoped></style>