From fa2505d5a21a1780bee23cd1a9e25449a94804c2 Mon Sep 17 00:00:00 2001 From: lb Date: Mon, 21 Aug 2023 14:05:15 +0800 Subject: [PATCH] update EquipmentPIcs --- .env.dev | 4 +- .../equipment/components/EquipmentPics.vue | 53 +++++++++++++++++-- src/views/core/base/equipment/index.vue | 4 ++ 3 files changed, 55 insertions(+), 6 deletions(-) diff --git a/.env.dev b/.env.dev index a9d58fdc..8ce815d4 100644 --- a/.env.dev +++ b/.env.dev @@ -5,8 +5,8 @@ ENV = 'development' VUE_APP_TITLE = 芋道管理系统 # 芋道管理系统/开发环境 -VUE_APP_BASE_API = 'http://192.168.1.49:48080' -# VUE_APP_BASE_API = 'http://192.168.0.33:48080' +# VUE_APP_BASE_API = 'http://192.168.1.49:48080' +VUE_APP_BASE_API = 'http://192.168.0.33:48080' # VUE_APP_BASE_API = 'http://192.168.1.188:48080' # 路由懒加载 diff --git a/src/views/core/base/equipment/components/EquipmentPics.vue b/src/views/core/base/equipment/components/EquipmentPics.vue index 388407fa..b0e4e2df 100644 --- a/src/views/core/base/equipment/components/EquipmentPics.vue +++ b/src/views/core/base/equipment/components/EquipmentPics.vue @@ -7,7 +7,12 @@ @@ -20,7 +25,7 @@ export default { return { images: Array(10) .fill(1) - .map((_, index) => `../assets/eq${index + 1}.jpg`), + .map((_, index) => require(`../assets/eq${index + 1}.jpg`)), }; }, computed: {}, @@ -30,8 +35,48 @@ export default { diff --git a/src/views/core/base/equipment/index.vue b/src/views/core/base/equipment/index.vue index 73aec659..b6be3305 100644 --- a/src/views/core/base/equipment/index.vue +++ b/src/views/core/base/equipment/index.vue @@ -300,6 +300,10 @@ export default { label: '设备图片', prop: 'fileUrls', subcomponent: EquipmentPics, + pictures: async () => { + // some async request + return [] + }, style: 'overflow-x: auto;' }, ],