From a510111925707064c5a5a7dca4fc5bb0df5c5d9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Tue, 27 May 2025 10:36:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9C=8B=E6=9D=BF=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/templates/manage/model/model.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ruoyi-manage/src/main/resources/templates/manage/model/model.html b/ruoyi-manage/src/main/resources/templates/manage/model/model.html index 7ea00e9..c4b36cb 100644 --- a/ruoyi-manage/src/main/resources/templates/manage/model/model.html +++ b/ruoyi-manage/src/main/resources/templates/manage/model/model.html @@ -428,9 +428,12 @@ } } $.post(ctx + 'api/getDevice', {storeName: name.toString()}, (e) => { - $("#threeLabelContent1").css('display', 'block') - $("#threeLabelContent1").html(`
摆放桩位
设备编码
设备名称
设备类型
使用状态
设备状态
${e.data.map(v => `
${v.locationName || ''}
${v.deviceCode || ''}
${v.deviceName || ''}
${v.deviceType || ''}
${getUseState(v.useState)}
${getDevicestate(v.deviceState)}
`).join('
')}`) - + if (e.data.length > 0) { + $("#threeLabelContent1").css('display', 'block') + $("#threeLabelContent1").html(`
摆放桩位
设备编码
设备名称
设备类型
使用状态
设备状态
${e.data.map(v => `
${v.locationName || ''}
${v.deviceCode || ''}
${v.deviceName || ''}
${v.deviceType || ''}
${getUseState(v.useState)}
${getDevicestate(v.deviceState)}
`).join('
')}`) + } else { + $("#threeLabelContent1").css('display', 'none') + } }) }