From 71bd417a0d713a8e2201a8e615d2432b053a68e8 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Sat, 22 Nov 2025 17:24:42 +0800
Subject: [PATCH] feat:智飞工单
---
.env.development | 4 ++--
src/views/tickets/orderLog.vue | 5 ++++-
src/views/tickets/component/SearchBox.vue | 13 ++++++++-----
3 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/.env.development b/.env.development
index a5d9135..c452ea6 100644
--- a/.env.development
+++ b/.env.development
@@ -20,9 +20,9 @@
VITE_APP_BASE=/manage
# 服务地址
-# VITE_APP_URL = https://wrj.shuixiongit.com/api
+VITE_APP_URL = https://wrj.shuixiongit.com/api
#VITE_APP_URL= http://192.168.1.168
-VITE_APP_URL= http://192.168.1.33
+# VITE_APP_URL= http://192.168.1.33
#VITE_APP_URL= http://192.168.1.204
#新大屏地址
VITE_APP_DASHBOARD_URL = 'https://wrj.shuixiongit.com/command-center-dashboard/'
diff --git a/src/views/tickets/component/SearchBox.vue b/src/views/tickets/component/SearchBox.vue
index c327166..1e808b0 100644
--- a/src/views/tickets/component/SearchBox.vue
+++ b/src/views/tickets/component/SearchBox.vue
@@ -139,6 +139,9 @@
if (!dateRange.value) {
dateRange.value = [];
}
+ if (!cycleDateRange.value) {
+ cycleDateRange.value = [];
+ }
// if (dateRange.value && dateRange.value.length) {
// checked.value = '';
// searchForm.date_enum = '';
@@ -149,14 +152,14 @@
create_start_date: dateRange.value.length
? dayjs(dateRange?.value[0]).startOf('day').format(timeFormat)
: null,
- create_end_date: dateRange.value.length
+ create_end_date: dateRange?.value.length
? dayjs(dateRange?.value[1]).endOf('day').format(timeFormat)
: null,
- start_date: cycleDateRange.value.length
- ? dayjs(dateRange?.value[0]).startOf('day').format(timeFormat)
+ start_date: cycleDateRange?.value.length
+ ? dayjs(cycleDateRange?.value[0]).startOf('day').format(timeFormat)
: null,
- end_date: cycleDateRange.value.length
- ? dayjs(dateRange?.value[1]).startOf('day').format(timeFormat)
+ end_date: cycleDateRange?.value.length
+ ? dayjs(cycleDateRange?.value[1]).startOf('day').format(timeFormat)
: null,
};
emit('search', params);
diff --git a/src/views/tickets/orderLog.vue b/src/views/tickets/orderLog.vue
index 65a50d3..336c76a 100644
--- a/src/views/tickets/orderLog.vue
+++ b/src/views/tickets/orderLog.vue
@@ -110,6 +110,9 @@
import { cloneDeep } from 'lodash';
import { computed, onMounted } from 'vue';
import { ElMessage, ElMessageBox } from 'element-plus'
+import dayjs from 'dayjs'
+import 'dayjs/locale/zh-cn' // 导入中文语言包
+import weekday from 'dayjs/plugin/weekday'
import { aiImagesPage } from '@/api/dataCenter/dataCenter';
const store = useStore()
@@ -332,7 +335,7 @@
...cloneDeep(orderListParams.searchParams)
}
const res = await orderLogExport(apiParams)
-
+ console.log(res, '导出')
downloadXls(res.data, `智飞工单${dayjs().format('YYYY-MM-DD')}.xlsx`)
ElMessage.success('导出成功')
--
Gitblit v1.9.3