优化表格
This commit is contained in:
@@ -71,7 +71,7 @@
|
||||
v-bind="defaultAttribute"
|
||||
>
|
||||
<vxe-column type="seq" title="序号" width="80"></vxe-column>
|
||||
<vxe-column field="prjDataPath" align="center" title="名称" #default="{ row }">
|
||||
<vxe-column field="prjDataPath" align="center" title="名称" minWidth="180" #default="{ row }">
|
||||
<span
|
||||
style="cursor: pointer; color: #551a8b"
|
||||
:style="{
|
||||
@@ -91,15 +91,15 @@
|
||||
</span>
|
||||
</vxe-column>
|
||||
|
||||
<vxe-column field="startTime" align="center" title="文件时间" width="240" #default="{ row }">
|
||||
<vxe-column field="startTime" align="center" title="文件时间" minWidth="140" #default="{ row }">
|
||||
{{ row.startTime ? row.startTime : '/' }}
|
||||
</vxe-column>
|
||||
<vxe-column field="type" align="center" title="类型" width="120" #default="{ row }">
|
||||
<vxe-column field="type" align="center" title="类型" minWidth="100" #default="{ row }">
|
||||
<span>
|
||||
{{ row.type == 'dir' ? '文件夹' : row.type == 'file' ? '文件' : '/' }}
|
||||
</span>
|
||||
</vxe-column>
|
||||
<vxe-column field="size" align="center" width="120" title="大小" #default="{ row }">
|
||||
<vxe-column field="size" align="center" minWidth="100" title="大小" #default="{ row }">
|
||||
<span>
|
||||
{{ row.size && row.type == 'file' ? row.size + 'KB' : '/' }}
|
||||
</span>
|
||||
@@ -107,7 +107,7 @@
|
||||
<!--<vxe-column field="fileCheck" align="center" title="文件校验码" width="100" #default="{ row }">
|
||||
{{ row.fileCheck ? row.fileCheck : '/' }}
|
||||
</vxe-column> -->
|
||||
<vxe-column title="操作" width="200px">
|
||||
<vxe-column title="操作" width="120px" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button link size="small" type="danger" @click="handleDelDirOrFile(row)">删除</el-button>
|
||||
<el-button
|
||||
@@ -596,10 +596,10 @@ mqttRef.value.on('connect', (e: any) => {
|
||||
})
|
||||
const mqttMessage = ref<any>({})
|
||||
const status: any = ref()
|
||||
function parseStringToObject(str:string) {
|
||||
function parseStringToObject(str: string) {
|
||||
const content = str.replace(/^{|}$/g, '')
|
||||
const pairs = content.split(',')
|
||||
const result:any = {}
|
||||
const result: any = {}
|
||||
pairs.forEach(pair => {
|
||||
const [key, value] = pair.split(':')
|
||||
// 尝试将数字转换为Number类型
|
||||
@@ -612,7 +612,6 @@ mqttRef.value.on('message', (topic: any, message: any) => {
|
||||
|
||||
let str = JSON.parse(JSON.stringify(JSON.parse(new TextDecoder().decode(message))))
|
||||
|
||||
|
||||
let regex = /fileName:(.*?),allStep/
|
||||
let regex1 = /allStep:(.*?),nowStep/
|
||||
let regex2 = /nowStep:(.*?),userId/
|
||||
|
||||
Reference in New Issue
Block a user