Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
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 0b317108
authored
Apr 18, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
请求标识
1 parent
f054a4db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
pages/tab/output/components/client/client.js
pages/tab/output/components/client/client.js
View file @
0b31710
...
@@ -44,7 +44,11 @@ Component({
...
@@ -44,7 +44,11 @@ Component({
},
},
busiObj
:
{},
busiObj
:
{},
busiTotalList
:
[],
busiTotalList
:
[],
crowdOrderObj
:
{}
crowdOrderObj
:
{},
isAsk
:
{
client
:
false
,
business
:
false
}
},
},
lifetimes
:
{
lifetimes
:
{
attached
()
{
attached
()
{
...
@@ -136,6 +140,11 @@ Component({
...
@@ -136,6 +140,11 @@ Component({
},
},
getBusiStatistics
(
isReset
=
false
,
isBusiTab
=
false
)
{
getBusiStatistics
(
isReset
=
false
,
isBusiTab
=
false
)
{
let
{
isAsk
:
{
business
}
}
=
this
.
data
let
_this
=
this
if
(
business
)
{
return
true
}
let
totalTabModule
=
this
.
selectComponent
(
'#totalTab'
)
let
totalTabModule
=
this
.
selectComponent
(
'#totalTab'
)
let
busiSearchData
=
totalTabModule
?
totalTabModule
.
dealParams
()
:
{}
let
busiSearchData
=
totalTabModule
?
totalTabModule
.
dealParams
()
:
{}
let
sortTabModule
=
this
.
selectComponent
(
'#sortTab'
)
let
sortTabModule
=
this
.
selectComponent
(
'#sortTab'
)
...
@@ -153,6 +162,9 @@ Component({
...
@@ -153,6 +162,9 @@ Component({
...
sortSearchData
,
...
sortSearchData
,
serviceMerchantId
:
userInfo
.
subLoginUser
.
merchantId
serviceMerchantId
:
userInfo
.
subLoginUser
.
merchantId
}
}
this
.
setData
({
[
'isAsk.business'
]:
true
})
outputApi
.
getBusiStatistics
(
params
).
then
(
res
=>
{
outputApi
.
getBusiStatistics
(
params
).
then
(
res
=>
{
this
.
resetBusiData
()
this
.
resetBusiData
()
if
(
isReset
)
{
if
(
isReset
)
{
...
@@ -215,6 +227,10 @@ Component({
...
@@ -215,6 +227,10 @@ Component({
busiTotalList
:
_list
busiTotalList
:
_list
})
})
}
}
}).
finally
(
function
()
{
_this
.
setData
({
[
'isAsk.business'
]:
false
})
})
})
},
},
...
@@ -260,7 +276,14 @@ Component({
...
@@ -260,7 +276,14 @@ Component({
})
})
},
},
getList
()
{
getList
()
{
let
{
sceneCodeList
}
=
this
.
data
let
{
sceneCodeList
,
isAsk
:
{
client
}
}
=
this
.
data
let
_this
=
this
if
(
client
)
{
return
true
}
this
.
setData
({
[
'isAsk.client'
]:
true
})
outputApi
.
getCustomerPageList
({
merchantId
:
this
.
data
.
pMerchantId
,
...
this
.
data
.
pageObj
}).
then
(
res
=>
{
outputApi
.
getCustomerPageList
({
merchantId
:
this
.
data
.
pMerchantId
,
...
this
.
data
.
pageObj
}).
then
(
res
=>
{
var
list
=
this
.
data
.
list
var
list
=
this
.
data
.
list
list
=
list
.
concat
(
res
.
list
)
list
=
list
.
concat
(
res
.
list
)
...
@@ -279,6 +302,10 @@ Component({
...
@@ -279,6 +302,10 @@ Component({
list
:
list
,
list
:
list
,
totalPages
:
res
.
pages
totalPages
:
res
.
pages
})
})
}).
finally
(
function
()
{
_this
.
setData
({
[
'isAsk.client'
]:
false
})
})
})
},
},
onReachBottom
()
{
onReachBottom
()
{
...
...
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