From 32e51ed4e7a1ca073efb46eb1af8e1b167802d5b Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sat, 14 Jun 2025 14:16:38 +0800
Subject: [PATCH] feat:智飞工单已审核通过的工单详情,地图航线显示处理
---
src/utils/util.js | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/src/utils/util.js b/src/utils/util.js
index fc0bc9e..acf5472 100644
--- a/src/utils/util.js
+++ b/src/utils/util.js
@@ -125,9 +125,9 @@
* @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)}`
}
/**
* 浏览器判断是否全屏
@@ -438,6 +438,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