From 95b6a6388e4cc4e6ed0f54cc04212a86cd8cf829 Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期五, 23 五月 2025 13:37:09 +0800 Subject: [PATCH] 1、用户管理新增和编辑用户时设置工单为必填项 2、新增终端登录、首页、设备点检、故障上报、上下班打卡、停机原因维护页面(未与后端联调且客户未确定页面设计)并调整全局路由守卫相关逻辑 3、调整设备结构树设备层级和车间层级区分的判断条件 4、调整电子样板检索与部件借用弹窗列表与搜索区域样式 --- src/views/eam/repair/modules/ImagesPreviewModal.vue | 75 ++++++++++++++++++++----------------- 1 files changed, 40 insertions(+), 35 deletions(-) diff --git a/src/views/eam/repair/modules/ImagesPreviewModal.vue b/src/views/eam/repair/modules/ImagesPreviewModal.vue index 9b017db..37ac715 100644 --- a/src/views/eam/repair/modules/ImagesPreviewModal.vue +++ b/src/views/eam/repair/modules/ImagesPreviewModal.vue @@ -1,56 +1,61 @@ <template> <a-modal title="棰勮" :visible="visible" width="50%" :footer="null" @cancel="visible=false"> - <template v-for="(item,index) in imageListUrl.split(',')"> + <template v-for="(item,index) in imageUrlArr"> <img :src="getImageItemUrl(item)" width="100%;"/> - <a-divider v-if="index+1<imageListUrl.split(',').length" style="margin:20px 0;background-color: #000"></a-divider> + <a-divider v-if="index+1<imageUrlArr.length" style="margin:20px 0;background-color: #000"></a-divider> </template> </a-modal> </template> <script> -export default { - name: 'ImagesPreviewModal', - props: { - imageListUrl: { - type: String, - default: '' - } - }, - data() { - return { - visible: false - } - }, - methods: { - getImageItemUrl(imageItemSrcSuffix) { - return `${window._CONFIG['domianURL']}/${imageItemSrcSuffix}` + export default { + name: 'ImagesPreviewModal', + props: { + imageListUrl: { + type: String, + default: '' + } + }, + data() { + return { + visible: false + } + }, + computed: { + imageUrlArr() { + return JSON.parse(this.imageListUrl).map(item => item.filePath) + } + }, + methods: { + getImageItemUrl(imageItemSrcSuffix) { + return `${window._CONFIG['domianURL']}/${imageItemSrcSuffix}` + } } } -} </script> <style scoped lang="less"> -/deep/ .ant-modal { - height: 70%; - overflow: hidden; - - .ant-modal-content { - height: 100%; - display: flex; - flex-direction: column; + /deep/ .ant-modal { + height: 70%; overflow: hidden; - ::-webkit-scrollbar { - width: 8px; - height: 8px; - } + .ant-modal-content { + height: 100%; + display: flex; + flex-direction: column; + overflow: hidden; - .ant-modal-body { - flex: 1; - overflow: auto; + ::-webkit-scrollbar { + width: 8px; + height: 8px; + } + + .ant-modal-body { + flex: 1; + overflow: auto; + } } } -} </style> \ No newline at end of file -- Gitblit v1.9.3