1、设备数据调整

2、emit事件声明
This commit is contained in:
ag 2025-03-11 09:17:51 +08:00
parent d477c36d9b
commit f9efa974c0
3 changed files with 17 additions and 1 deletions

View File

@ -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;

View File

@ -40,6 +40,7 @@ import { VueSignaturePad } from 'vue-signature-pad';
export default {
name: 'write',
components: { VueSignaturePad },
emits: ['save', 'close'],
props: {
role: String,
id: Number,

View File

@ -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;