Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 181b575f
authored
Feb 12, 2022
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
a6bf4bf6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
linkwe-ui/src/components/SelectUser.vue
linkwe-ui/src/views/redPacketTool/spendStatistics.vue
linkwe-ui/src/components/SelectUser.vue
View file @
181b575
...
@@ -34,7 +34,8 @@ export default {
...
@@ -34,7 +34,8 @@ export default {
data
()
{
data
()
{
return
{
return
{
treeData
:
[],
treeData
:
[],
userList
:
[]
userList
:
[],
defaultKeys
:
[]
}
}
},
},
watch
:
{
watch
:
{
...
@@ -79,7 +80,9 @@ export default {
...
@@ -79,7 +80,9 @@ export default {
}
}
}
}
},
},
created
()
{},
created
()
{
this
.
defaultKeys
=
this
.
defaultValues
.
map
((
e
)
=>
(
isOnlyLeaf
?
e
.
userId
:
e
.
userId
||
e
.
id
))
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
treeFormat
(
list
)
{
treeFormat
(
list
)
{
...
@@ -138,6 +141,7 @@ export default {
...
@@ -138,6 +141,7 @@ export default {
},
},
// 选择变化
// 选择变化
handleCheckChange
(
data
,
checked
,
indeterminate
)
{
handleCheckChange
(
data
,
checked
,
indeterminate
)
{
debugger
// console.log(arguments)
// console.log(arguments)
if
(
checked
)
{
if
(
checked
)
{
if
(
this
.
isSigleSelect
)
{
if
(
this
.
isSigleSelect
)
{
...
@@ -205,9 +209,7 @@ export default {
...
@@ -205,9 +209,7 @@ export default {
show-checkbox
show-checkbox
:check-on-click-node=
"false"
:check-on-click-node=
"false"
:expand-on-click-node=
"true"
:expand-on-click-node=
"true"
:default-checked-keys=
"
:default-checked-keys=
"defaultKeys"
defaultValues.map((e) => (isOnlyLeaf ? e.userId : e.userId || e.id))
"
:load=
"loadNode"
:load=
"loadNode"
:props=
"defaultProps"
:props=
"defaultProps"
:check-strictly=
"isOnlyLeaf"
:check-strictly=
"isOnlyLeaf"
...
...
linkwe-ui/src/views/redPacketTool/spendStatistics.vue
View file @
181b575
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
import
*
as
echarts
from
'echarts'
import
*
as
echarts
from
'echarts'
import
{
parseTime
}
from
'@/utils/common'
import
{
parseTime
}
from
'@/utils/common'
import
CardGroupIndex
from
'@/components/CardGroupIndex'
import
CardGroupIndex
from
'@/components/CardGroupIndex'
import
TabContent
from
'./components/TabContent'
//
import TabContent from './components/TabContent'
import
{
getAnalysis
,
countLineChart
,
exportGroup
}
from
'@/api/redPacketTool/sendRecord'
import
{
getAnalysis
,
countLineChart
,
exportGroup
}
from
'@/api/redPacketTool/sendRecord'
function
generateMockData
()
{
function
generateMockData
()
{
...
@@ -95,7 +95,7 @@ function generateMockData() {
...
@@ -95,7 +95,7 @@ function generateMockData() {
export
default
{
export
default
{
name
:
'total-data'
,
name
:
'total-data'
,
components
:
{
CardGroupIndex
,
TabContent
},
components
:
{
CardGroupIndex
},
data
()
{
data
()
{
return
{
return
{
timeRange
:
7
,
timeRange
:
7
,
...
...
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