Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xugong
hls-xcmg-vue-app
Commits
f0ccf9bd
Commit
f0ccf9bd
authored
Nov 22, 2019
by
786817560
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'拉代码'
parent
372859e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
108 additions
and
51 deletions
+108
-51
financing-trial.vue
src/pages/financingTrial/financing-trial.vue
+108
-51
No files found.
src/pages/financingTrial/financing-trial.vue
View file @
f0ccf9bd
...
...
@@ -2,7 +2,7 @@
* @Descrip 融资试算
* @Author: your name
* @Date: 2019-09-29 17:09:49
* @LastEditTime: 2019-11-2
1 17:27:36
* @LastEditTime: 2019-11-2
2 09:15:25
* @LastEditors: Please set LastEditors
-->
<
template
>
...
...
@@ -78,11 +78,11 @@ export default {
clearTimeout
(
vm
.
timeout
)
}
vm
.
timeout
=
setTimeout
(()
=>
{
//
if (vm.fromProduct) {
//
vm.search(vm.fromProduct)
//
} else {
//
vm.search()
//
}
if
(
vm
.
fromProduct
)
{
vm
.
search
(
vm
.
fromProduct
)
}
else
{
vm
.
search
()
}
},
1000
)
},
},
...
...
@@ -122,7 +122,7 @@ export default {
},
})
},
// 试算查询
//
初始
试算查询
calculationQuery
(
val
)
{
let
vm
=
this
if
(
val
)
{
...
...
@@ -165,57 +165,114 @@ export default {
loadMore
()
{
let
vm
=
this
vm
.
pagenum
=
vm
.
pagenum
+
1
let
url
=
$config
.
basePath
+
'prd_calculation_query'
let
param
=
{
searchInput
:
vm
.
searchInput
,
pagenum
:
vm
.
pagenum
,
pagesize
:
10
,
if
(
vm
.
fromProduct
)
{
vm
.
pagenum
=
vm
.
pagenum
+
1
let
url
=
$config
.
basePath
+
'prd_product_calculation_query'
let
param
=
{
division
:
window
.
sessionStorage
.
division
,
// 收藏到试算通过产品线查询
searchInput
:
vm
.
searchInput
,
pagenum
:
vm
.
pagenum
,
pagesize
:
10
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
let
returnData
=
[]
if
(
res
.
result
===
'S'
)
{
returnData
=
res
.
lists
if
(
returnData
.
length
===
0
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
lists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
lists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
}
else
{
vm
.
pagenum
=
vm
.
pagenum
+
1
let
url
=
$config
.
basePath
+
'prd_calculation_query'
let
param
=
{
searchInput
:
vm
.
searchInput
,
pagenum
:
vm
.
pagenum
,
pagesize
:
10
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
let
returnData
=
[]
if
(
res
.
result
===
'S'
)
{
returnData
=
res
.
lists
if
(
returnData
.
length
===
0
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
lists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
lists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
let
returnData
=
[]
if
(
res
.
result
===
'S'
)
{
returnData
=
res
.
lists
if
(
returnData
.
length
===
0
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
lists
.
push
(
array
[
index
])
})
},
search
(
val
)
{
let
vm
=
this
if
(
val
)
{
vm
.
pagenum
=
1
let
url
=
$config
.
basePath
+
'prd_product_calculation_query'
let
param
=
{
pagesize
:
10
,
pagenum
:
1
,
searchInput
:
vm
.
searchInput
,
division
:
window
.
sessionStorage
.
division
,
// 收藏到试算通过产品线查询
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
lists
=
res
.
lists
if
(
vm
.
lists
.
length
>=
0
&&
vm
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
lists
.
push
(
array
[
index
])
})
}
else
if
(
vm
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
})
}
else
{
vm
.
pagenum
=
1
let
url
=
$config
.
basePath
+
'prd_calculation_query'
let
param
=
{
pagesize
:
10
,
pagenum
:
1
,
searchInput
:
vm
.
searchInput
,
}
}
)
},
search
()
{
let
vm
=
thi
s
vm
.
pagenum
=
1
let
url
=
$config
.
basePath
+
'prd_product_calculation_query'
let
param
=
{
pagesize
:
10
,
pagenum
:
1
,
searchInput
:
vm
.
searchInput
,
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
lists
=
res
.
list
s
if
(
vm
.
lists
.
length
>=
0
&&
vm
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
vm
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
.
update
(
false
)
}
})
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
lists
=
res
.
lists
if
(
vm
.
lists
.
length
>=
0
&&
vm
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
vm
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
.
update
(
false
)
}
})
},
},
}
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment