From f9efa974c01106d0621408ab9e821741f43e6e58 Mon Sep 17 00:00:00 2001 From: ag <2663588772@qq.com> Date: Tue, 11 Mar 2025 09:17:51 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E8=AE=BE=E5=A4=87=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=B0=83=E6=95=B4=202=E3=80=81emit=E4=BA=8B=E4=BB=B6=E5=A3=B0?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- artSystem.js | 3 ++- components/Signature/write.vue | 1 + equipment.js | 14 ++++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/artSystem.js b/artSystem.js index 96ce754..cf00ea3 100644 --- a/artSystem.js +++ b/artSystem.js @@ -611,7 +611,7 @@ class ArtSystem { } //查询设备列表 - static queryEquipment(params) { + static queryEquipment(params = {}) { let query = new Query(); let { filter, pageInfo, order } = params; if (filter) { @@ -648,6 +648,7 @@ class ArtSystem { }); }); } + //查询设备数据 static viewArtworkEquipmentData(params) { let query = new Query(); let { filter, pageInfo, order } = params; diff --git a/components/Signature/write.vue b/components/Signature/write.vue index 5cbaeb1..ba1c177 100644 --- a/components/Signature/write.vue +++ b/components/Signature/write.vue @@ -40,6 +40,7 @@ import { VueSignaturePad } from 'vue-signature-pad'; export default { name: 'write', components: { VueSignaturePad }, + emits: ['save', 'close'], props: { role: String, id: Number, diff --git a/equipment.js b/equipment.js index ba7e3eb..35d2422 100644 --- a/equipment.js +++ b/equipment.js @@ -98,5 +98,19 @@ class Equipment { }); return ArtSystem.queryLaboratoryList({ filter, pageInfo }); } + + //查询设备数据 + queryEquipmentDatas(params = {}) { + let { filter, pageInfo } = params; + if (!filter) { + filter = []; + } + filter.push({ + name: 'equipment_id', + operator: '=', + value: this.id, + }); + return ArtSystem.viewArtworkEquipmentData({ filter, pageInfo }); + } } export default Equipment;