Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
cfd7ca6a
提交
cfd7ca6a
authored
3月 06, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(task): 修复默认显示今日任务时间
同上
上级
6354302f
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
11 行增加
和
7 行删除
+11
-7
task.js
src/api/promotion/task.js
+2
-2
date.js
src/hooks/date.js
+6
-0
index.vue
src/views/promotion/plan/index.vue
+0
-1
index.vue
src/views/promotion/task/index.vue
+3
-4
没有找到文件。
src/api/promotion/task.js
浏览文件 @
cfd7ca6a
...
@@ -44,9 +44,9 @@ export const getTaskListAPI = (queryParams) => {
...
@@ -44,9 +44,9 @@ export const getTaskListAPI = (queryParams) => {
"pageSize"
:
queryParams
.
pageSize
,
"pageSize"
:
queryParams
.
pageSize
,
"queryParams"
:
{
"queryParams"
:
{
"deptQcId"
:
queryParams
.
zoneId
,
"deptQcId"
:
queryParams
.
zoneId
,
"createDateStart"
:
parseTime
(
queryParams
.
date
[
0
],
'{y}-{m}-{d}'
),
"createDateStart"
:
queryParams
.
date
&&
parseTime
(
queryParams
.
date
[
0
],
'{y}-{m}-{d}'
),
// "createDateStart": '2025-01-12 00:00:00',
// "createDateStart": '2025-01-12 00:00:00',
"createDateEnd"
:
parseTime
(
queryParams
.
date
[
1
],
'{y}-{m}-{d}'
),
"createDateEnd"
:
queryParams
.
date
&&
parseTime
(
queryParams
.
date
[
1
],
'{y}-{m}-{d}'
),
// "createDateEnd": '2025-01-14 23:59:59',
// "createDateEnd": '2025-01-14 23:59:59',
"province"
:
queryParams
.
province
,
"province"
:
queryParams
.
province
,
"city"
:
queryParams
.
city
,
"city"
:
queryParams
.
city
,
...
...
src/hooks/date.js
浏览文件 @
cfd7ca6a
...
@@ -7,9 +7,14 @@ export const useDatePickerOptions = (type = -1) => {
...
@@ -7,9 +7,14 @@ export const useDatePickerOptions = (type = -1) => {
const
last30Date
=
[
new
Date
().
setDate
((
new
Date
().
getDate
()
-
(
30
-
1
))),
new
Date
().
setDate
((
new
Date
().
getDate
()
+
type
))]
const
last30Date
=
[
new
Date
().
setDate
((
new
Date
().
getDate
()
-
(
30
-
1
))),
new
Date
().
setDate
((
new
Date
().
getDate
()
+
type
))]
const
last7Date
=
[
new
Date
().
setDate
((
new
Date
().
getDate
()
-
(
7
-
1
))),
new
Date
().
setDate
((
new
Date
().
getDate
()
+
type
))]
const
last7Date
=
[
new
Date
().
setDate
((
new
Date
().
getDate
()
-
(
7
-
1
))),
new
Date
().
setDate
((
new
Date
().
getDate
()
+
type
))]
const
lastDate
=
[
new
Date
().
setDate
((
new
Date
().
getDate
()
+
type
)),
new
Date
().
setDate
((
new
Date
().
getDate
()
+
type
))]
const
lastDate
=
[
new
Date
().
setDate
((
new
Date
().
getDate
()
+
type
)),
new
Date
().
setDate
((
new
Date
().
getDate
()
+
type
))]
const
todayDate
=
[
new
Date
(),
new
Date
()]
// 今年的 1.1 号到 12.31号
// 今年的 1.1 号到 12.31号
const
thisYearDate
=
[
new
Date
(
new
Date
().
getFullYear
(),
0
,
1
),
new
Date
(
new
Date
().
getFullYear
(),
11
,
31
)]
const
thisYearDate
=
[
new
Date
(
new
Date
().
getFullYear
(),
0
,
1
),
new
Date
(
new
Date
().
getFullYear
(),
11
,
31
)]
const
recentPickerOptions
=
ref
([
// 日期选项配置
const
recentPickerOptions
=
ref
([
// 日期选项配置
{
text
:
'今天'
,
value
:
todayDate
},
{
{
text
:
'最近一周'
,
text
:
'最近一周'
,
value
()
{
value
()
{
...
@@ -50,6 +55,7 @@ export const useDatePickerOptions = (type = -1) => {
...
@@ -50,6 +55,7 @@ export const useDatePickerOptions = (type = -1) => {
}
}
])
])
return
{
return
{
todayDate
,
// 今天
lastDate
,
// 昨天
lastDate
,
// 昨天
last30Date
,
// 前 30 天
last30Date
,
// 前 30 天
last7Date
,
// 前 7 天
last7Date
,
// 前 7 天
...
...
src/views/promotion/plan/index.vue
浏览文件 @
cfd7ca6a
...
@@ -10,7 +10,6 @@
...
@@ -10,7 +10,6 @@
prop=
"activityDate"
>
prop=
"activityDate"
>
<el-date-picker
v-model=
"queryParams.activityDate"
<el-date-picker
v-model=
"queryParams.activityDate"
type=
"daterange"
type=
"daterange"
value-format=
"YYYY-MM-DD"
clearable
clearable
range-separator=
"至"
range-separator=
"至"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
...
...
src/views/promotion/task/index.vue
浏览文件 @
cfd7ca6a
...
@@ -9,7 +9,6 @@
...
@@ -9,7 +9,6 @@
prop=
"date"
>
prop=
"date"
>
<el-date-picker
v-model=
"queryParams.date"
<el-date-picker
v-model=
"queryParams.date"
type=
"daterange"
type=
"daterange"
value-format=
"YYYY-MM-DD"
clearable
clearable
range-separator=
"至"
range-separator=
"至"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
...
@@ -168,9 +167,8 @@ import { parseTime } from '@/utils'
...
@@ -168,9 +167,8 @@ import { parseTime } from '@/utils'
import
store
from
'@/store'
import
store
from
'@/store'
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
;
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
;
const
{
recentPickerOptions
:
pickerOptions
,
last7Date
}
=
useDatePickerOptions
(
0
)
const
{
recentPickerOptions
:
pickerOptions
,
last7Date
,
todayDate
}
=
useDatePickerOptions
(
0
)
const
queryParams
=
reactive
({
const
queryParams
=
reactive
({
date
:
last7Date
,
taskStatus
:
''
,
taskStatus
:
''
,
region
:
'全国'
,
region
:
'全国'
,
provinceId
:
undefined
,
provinceId
:
undefined
,
...
@@ -179,7 +177,8 @@ const queryParams = reactive({
...
@@ -179,7 +177,8 @@ const queryParams = reactive({
managerId
:
undefined
,
managerId
:
undefined
,
storeName
:
undefined
,
storeName
:
undefined
,
page
:
1
,
page
:
1
,
pageSize
:
20
pageSize
:
20
,
date
:
todayDate
})
})
const
photoDialogVisible
=
ref
(
false
)
const
photoDialogVisible
=
ref
(
false
)
const
photoDialogList
=
ref
([])
const
photoDialogList
=
ref
([])
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论