From f1174d0e7d813c142a41b8403a33a7687ec60974 Mon Sep 17 00:00:00 2001 From: zhujiyan <17812234322@163.com> Date: Wed, 24 Jul 2024 15:36:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E6=9E=90=E5=88=97=E8=A1=A8=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=9C=AA=E8=A7=A3=E6=9E=90=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../device/control/analysisList/index.vue | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/views/govern/device/control/analysisList/index.vue b/src/views/govern/device/control/analysisList/index.vue index f638abe..d743b85 100644 --- a/src/views/govern/device/control/analysisList/index.vue +++ b/src/views/govern/device/control/analysisList/index.vue @@ -39,20 +39,21 @@ const tableStore: any = new TableStore({ width: 100, render: 'tag', custom: { + 0: 'warning', 1: 'success', 2: 'danger', - 3: 'primary', - null:'' + 3: 'primary' }, replaceValue: { + 0: '未解析', 1: '解析成功', 2: '解析失败', - 3: '文件不存在', + 3: '文件不存在' } // formatter: row => { // return row.cellValue == 1 ? '未注册' : row.cellValue == 2 ? '注册' : '接入' // }, - }, + } ], beforeSearchFun: () => { @@ -68,17 +69,15 @@ provide('tableStore', tableStore) const handleBack = () => { emit('back') } -const open=()=>{ - dialogVisible.value=true +const open = () => { + dialogVisible.value = true tableStore.index() } -const close=()=>{ - dialogVisible.value=false +const close = () => { + dialogVisible.value = false } -const initTable = () => { -} -onMounted(() => { -}) +const initTable = () => {} +onMounted(() => {}) defineExpose({ open })