Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gh
/
data-view
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3b8ae41a
authored
Jun 29, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
2a9b6e7d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
2 deletions
src/components/ViewControl.vue
src/components/ViewTabs.vue
src/store/modules/app.js
src/utils/qs.js
src/components/ViewControl.vue
View file @
3b8ae41
...
@@ -94,7 +94,7 @@ export default {
...
@@ -94,7 +94,7 @@ export default {
emit
()
{
emit
()
{
let
{
reportIndex
,
tabIndex
,
brands
}
=
this
let
{
reportIndex
,
tabIndex
,
brands
}
=
this
let
params
=
{
let
params
=
{
reportType
:
reportIndex
reportType
:
reportIndex
==
0
?
1
:
0
//月表0,日表1
}
}
if
(
tabIndex
==
1
)
brands
.
map
(
e
=>
{
if
(
tabIndex
==
1
)
brands
.
map
(
e
=>
{
if
(
e
.
active
)
params
.
brand
=
e
if
(
e
.
active
)
params
.
brand
=
e
...
@@ -177,6 +177,9 @@ export default {
...
@@ -177,6 +177,9 @@ export default {
&:hover
{
&:hover
{
display
:
block
;
display
:
block
;
}
}
&
:hover
.brand
{
background-color
:
#096
;
}
.options-item
{
.options-item
{
height
:
2.9vh
;
height
:
2.9vh
;
font-size
:
12px
;
font-size
:
12px
;
...
...
src/components/ViewTabs.vue
View file @
3b8ae41
...
@@ -22,6 +22,12 @@ export default {
...
@@ -22,6 +22,12 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
window
.
$HTTP
.
post
(
'brandmonthly/monthly/overallbase'
,
{
queryTime
:
'2022-06-23'
,
queryItem
:
'total'
}).
then
(
res
=>
{
console
.
log
(
res
)
})
},
},
methods
:
{
methods
:
{
}
}
...
...
src/store/modules/app.js
View file @
3b8ae41
...
@@ -7,7 +7,9 @@
...
@@ -7,7 +7,9 @@
* @LastEditTime: 2021-07-06 12:02:21
* @LastEditTime: 2021-07-06 12:02:21
*/
*/
const
state
=
{
const
state
=
{
reportParams
:
{}
reportParams
:
{
reportType
:
0
//月表0,日表1
}
}
}
const
mutations
=
{
const
mutations
=
{
SET_PAGE_META
(
state
,
meta
)
{
SET_PAGE_META
(
state
,
meta
)
{
...
...
src/utils/qs.js
0 → 100644
View file @
3b8ae41
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment