From c832bf2e80ac465e71b7a1c1f7a59d4252030989 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 05 Aug 2025 17:33:08 +0800
Subject: [PATCH] feat:事件工单滚动条

---
 src/utils/util.js |   26 +++++++++++++++++++++++---
 1 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/src/utils/util.js b/src/utils/util.js
index fc0bc9e..f2b2e09 100644
--- a/src/utils/util.js
+++ b/src/utils/util.js
@@ -125,9 +125,19 @@
  * @returns {string}
  */
 export const getSmallImg = url => {
-  if (!url) return ''
-  const lastDotIndex = url.lastIndexOf('.')
-  return `${url.substring(0, lastDotIndex)}_small${url.substring(lastDotIndex)}`
+	if (!url) return ''
+	const lastDotIndex = url.lastIndexOf('.')
+	return `${url.substring(0, lastDotIndex)}_small${url.substring(lastDotIndex)}`
+}
+/**
+ * 获取正射路径
+ * @param url
+ * @returns {string}
+ */
+export const getzsSmallImg = url => {
+	if (!url) return ''
+	const lastDotIndex = url.lastIndexOf('.')
+	return `${url.substring(0, lastDotIndex)}_small.jpeg`
 }
 /**
  * 浏览器判断是否全屏
@@ -438,6 +448,16 @@
   // 设置默认范围 [上个月, 当前月]
   return [new Date(lastMonthYear, lastMonth, 1), new Date(currentYear, currentMonth, 1)]
 }
+/**
+ * 获取中等缩略图路径
+ * @param url
+ * @returns {string}
+ */
+export const getShowImg = url => {
+	if (!url) return ''
+	const lastDotIndex = url.lastIndexOf('.')
+	return `${url.substring(0, lastDotIndex)}_show${url.substring(lastDotIndex)}`
+}
 
 // key驼峰转换为下划线
 export function camelToSnake (obj) {

--
Gitblit v1.9.3