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;