|
|
@@ -100,13 +100,15 @@ const state = reactive({
|
|
|
exportConfig: {},
|
|
|
columns: [
|
|
|
// {type: 'selection', width: 60, align: 'center', fixed: 'left'},
|
|
|
- {label: '设备名称', prop: 'deviceName', width: 180, query: true, type: 'text', resizable: true, fixed: 'left'},
|
|
|
- {label: '状态', prop: 'state', width: 180,query: true, type: 'dict', conf: {dict: 'WashDevice.status'}, resizable: true},
|
|
|
- {label: '网点ID', prop: 'stationId', width: 180,query: true, type: 'text', resizable: true},
|
|
|
- {label: '产品key', prop: 'productKey', width: 180, query: true, type: 'text', resizable: true},
|
|
|
- {label: '设备主机状态', prop: 'fsmState', width: 180, query: true, type: 'text', resizable: true},
|
|
|
+ {label: '站点ID', prop: 'stationId', width: 80,query: true, type: 'text', resizable: true},
|
|
|
+ {label: '站点名称', prop: 'stationName', width: 150,query: true, type: 'text', resizable: true},
|
|
|
+ {label: '设备编号', prop: 'shortId', width: 100, query: true, type: 'text', resizable: true, fixed: 'left'},
|
|
|
+ // {label: '设备名称', prop: 'deviceName', width: 180, query: true, type: 'text', resizable: true, fixed: 'left'},
|
|
|
+ // {label: '产品key', prop: 'productKey', width: 180, query: true, type: 'text', resizable: true},
|
|
|
+ {label: '状态', prop: 'state', width: 90,query: true, type: 'dict', conf: {dict: 'WashDevice.status'}, resizable: true},
|
|
|
+ {label: '设备状态', prop: 'fsmState', width: 90, query: true, type: 'text', resizable: true},
|
|
|
{
|
|
|
- label: '本次运行时长', prop: 'uptimeMs', width: 180, query: false, type: 'render', resizable: true,
|
|
|
+ label: '运行时长', prop: 'uptimeMs', width: 100, query: false, type: 'render', resizable: true,
|
|
|
render: (h: any, row: any) => {
|
|
|
return (
|
|
|
h('div', null,u.fmt.fmtDuration(row))
|
|
|
@@ -116,7 +118,7 @@ const state = reactive({
|
|
|
{label: '功能', prop: 'functions', width: 180, query: true, type: 'text', resizable: true},
|
|
|
{label: '是否有泡沫', prop: 'hasFoam', width: 180, query: true, type: 'dict', conf: {dict: 'WashDevice.foam'}, resizable: true},
|
|
|
{label: '是否有水', prop: 'hasWater', width: 180, query: true, type: 'dict', conf: {dict: 'WashDevice.water'}, resizable: true},
|
|
|
- {label: '当前温度', prop: 'temperatureChip', width: 180, query: false, type: 'text', resizable: true},
|
|
|
+ // {label: '当前温度', prop: 'temperatureChip', width: 180, query: false, type: 'text', resizable: true},
|
|
|
{label: '创建时间', prop: 'createTime', query: false, sortable: 'custom', type: 'datetime', resizable: true, conf: {format: (val: any) => u.fmt.fmtDateTime(val)}},
|
|
|
{label: '更新时间', prop: 'updateTime', query: false, sortable: 'custom', type: 'datetime', resizable: true, conf: {format: (val: any) => u.fmt.fmtDateTime(val)}},
|
|
|
{
|
|
|
@@ -233,4 +235,4 @@ const handleRowDelete = (row: any) => {
|
|
|
// defineExpose({
|
|
|
// loadData,
|
|
|
// });
|
|
|
-</script>
|
|
|
+</script>
|