From 087655aea328ee984f02687df4b67ac08ac21f88 Mon Sep 17 00:00:00 2001 From: yinq Date: Thu, 21 Mar 2024 17:52:27 +0800 Subject: [PATCH] =?UTF-8?q?update=20-=20=E8=AE=BE=E5=A4=87=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/deviceLedger.js | 9 ++++ src/views/base/deviceLedger/index.vue | 69 +++++++++++++-------------- src/views/base/deviceParam/index.vue | 43 ++++++++++++++--- 3 files changed, 80 insertions(+), 41 deletions(-) diff --git a/src/api/base/deviceLedger.js b/src/api/base/deviceLedger.js index f8c2239..9e3ddf4 100644 --- a/src/api/base/deviceLedger.js +++ b/src/api/base/deviceLedger.js @@ -51,3 +51,12 @@ export function getDeviceCode(query) { params: query }) } + +// 查询设备台账列表 +export function getDeviceLedgerList(query) { + return request({ + url: '/base/deviceLedger/getDeviceLedgerList', + method: 'get', + params: query + }) +} diff --git a/src/views/base/deviceLedger/index.vue b/src/views/base/deviceLedger/index.vue index 76492b5..73328bf 100644 --- a/src/views/base/deviceLedger/index.vue +++ b/src/views/base/deviceLedger/index.vue @@ -230,7 +230,7 @@ v-for="dict in dict.type.device_type" :key="dict.value" :label="dict.label" - :value="parseInt(dict.value)" + :value="dict.value" > @@ -239,19 +239,32 @@ - - - + + + + - - + + + + - - - - + + - - - - + + @@ -296,18 +295,18 @@ > + + + {{ dict.label }} + + + - - - {{ dict.label }} - - - @@ -450,7 +449,7 @@ export default { deviceCode: null, deviceName: null, deviceModel: null, - deviceType: null, + deviceType: '1', deviceAddress: null, deviceStatus: 0, usedDepartment: null, diff --git a/src/views/base/deviceParam/index.vue b/src/views/base/deviceParam/index.vue index 4614b53..d4b16e2 100644 --- a/src/views/base/deviceParam/index.vue +++ b/src/views/base/deviceParam/index.vue @@ -9,6 +9,16 @@ + + + + + + + @@ -91,9 +103,12 @@ - - + + +