Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
ff40cc09
提交
ff40cc09
authored
5月 30, 2022
作者:
yyf
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'yuanshop'
上级
792068d8
f6494602
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
16 行增加
和
10 行删除
+16
-10
index.vue
src/views/index.vue
+16
-10
没有找到文件。
src/views/index.vue
浏览文件 @
ff40cc09
...
@@ -133,8 +133,7 @@
...
@@ -133,8 +133,7 @@
v-model=
"value1"
v-model=
"value1"
@
change=
"dateTimechange"
@
change=
"dateTimechange"
:picker-options=
"pickerOptions"
:picker-options=
"pickerOptions"
value-format=
"timestamp"
value-format=
"yyyy-MM-dd HH:mm:ss"
:default-time=
"['00:00:00', '23:59:59']"
type=
"daterange"
type=
"daterange"
range-separator=
"至"
range-separator=
"至"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
...
@@ -432,7 +431,7 @@ export default {
...
@@ -432,7 +431,7 @@ export default {
let
curDate
=
new
Date
().
getTime
();
let
curDate
=
new
Date
().
getTime
();
let
three
=
30
*
24
*
3600
*
1000
;
let
three
=
30
*
24
*
3600
*
1000
;
let
threeMonths
=
curDate
-
three
;
let
threeMonths
=
curDate
-
three
;
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
threeMonths
;
return
time
.
getTime
()
>
Date
.
now
()
-
86400000
||
time
.
getTime
()
<
threeMonths
;
},
},
},
},
//下拉框数据
//下拉框数据
...
@@ -529,6 +528,16 @@ export default {
...
@@ -529,6 +528,16 @@ export default {
},
},
//统计店铺数据时间和排行数据
//统计店铺数据时间和排行数据
async
dateTimechange
()
{
async
dateTimechange
()
{
let
data
//因为 default-time 属性与时间限制起了冲突,加上这个属性的话,当天的日期不能置灰,故出此下策,又因为传参需要默认传23点59分59秒,只能手动修改了,望见谅,有更好的方法的话可以替换一下
if
(
this
.
value1
){
data
=
new
Date
(
this
.
value1
[
1
])
let
year
=
data
.
getFullYear
()
//因为月份转换比正常月份少一,故在此加一
let
month
=
data
.
getMonth
()
+
1
let
date
=
data
.
getDate
()
this
.
value1
[
1
]
=
`
${
year
}
-
${
month
}
-
${
date
}
23:59:59`
}
if
(
this
.
value1
==
null
)
{
if
(
this
.
value1
==
null
)
{
this
.
value1
=
[];
this
.
value1
=
[];
let
objNum
=
this
.
numberChartDataCopy
;
let
objNum
=
this
.
numberChartDataCopy
;
...
@@ -537,8 +546,8 @@ export default {
...
@@ -537,8 +546,8 @@ export default {
this
.
storeGoods
=
objStore
;
this
.
storeGoods
=
objStore
;
}
else
if
(
this
.
numSelect
==
"11"
)
{
}
else
if
(
this
.
numSelect
==
"11"
)
{
let
query
=
{};
let
query
=
{};
query
.
start_time
=
this
.
value1
[
0
]
/
1000
;
query
.
start_time
=
new
Date
(
this
.
value1
[
0
]).
getTime
()
/
1000
;
query
.
end_time
=
this
.
value1
[
1
]
/
1000
;
query
.
end_time
=
new
Date
(
this
.
value1
[
1
]).
getTime
()
/
1000
;
query
.
seller_id
=
this
.
$store
.
state
.
user
.
sellerid
;
query
.
seller_id
=
this
.
$store
.
state
.
user
.
sellerid
;
const
result
=
await
getStoreData
(
query
);
const
result
=
await
getStoreData
(
query
);
let
storeObject
=
{};
let
storeObject
=
{};
...
@@ -555,8 +564,8 @@ export default {
...
@@ -555,8 +564,8 @@ export default {
this
.
numberChartData
=
storeObject
;
this
.
numberChartData
=
storeObject
;
}
else
if
(
this
.
numSelect
==
"13"
)
{
}
else
if
(
this
.
numSelect
==
"13"
)
{
let
query
=
{};
let
query
=
{};
query
.
start_time
=
this
.
value1
[
0
]
/
1000
;
query
.
start_time
=
new
Date
(
this
.
value1
[
0
]).
getTime
()
/
1000
;
query
.
end_time
=
this
.
value1
[
1
]
/
1000
;
query
.
end_time
=
new
Date
(
this
.
value1
[
1
]).
getTime
()
/
1000
;
const
result
=
await
getGoodsSale
(
query
);
const
result
=
await
getGoodsSale
(
query
);
//对金额进行除以100修改
//对金额进行除以100修改
let
arr
=
result
.
data
;
let
arr
=
result
.
data
;
...
@@ -575,9 +584,6 @@ export default {
...
@@ -575,9 +584,6 @@ export default {
// query.start_time=this.value1[0]
// query.start_time=this.value1[0]
// query.end_time=this.value1[1]
// query.end_time=this.value1[1]
// const result=await getGoodsSale(query)
// const result=await getGoodsSale(query)
// console.log(result)
// console.log(query)
// console.log(this.value2,'热销类目选择时间')
},
},
//修改表格样式
//修改表格样式
changeCellStyle
(
row
,
column
,
rowIndex
,
columnIndex
)
{
changeCellStyle
(
row
,
column
,
rowIndex
,
columnIndex
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论