Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
portalhtml
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
rex
portalhtml
Commits
b11f4991
Commit
b11f4991
authored
Oct 14, 2021
by
jiangqihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企查查
parent
f64b5c9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
7 deletions
+28
-7
index.vue
src/components/Lov/index.vue
+27
-7
index.vue
src/views/customers/customers-add/index.vue
+1
-0
No files found.
src/components/Lov/index.vue
View file @
b11f4991
...
...
@@ -54,7 +54,7 @@
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
>
{{
btnTitle
}}
</el-button>
<el-button
plain
@
click=
"handleReset"
...
...
@@ -75,7 +75,7 @@
highlight-current-row
:header-cell-style=
"dialogHeaderCellStyle"
style=
"width: 100%;"
@
row-
dbl
click=
"handleSelect"
@
row-click=
"handleSelect"
@
selection-change=
"(rows) => (selectedRows = rows)"
>
<el-table-column
...
...
@@ -180,6 +180,10 @@ export default {
placeholder
:
{
type
:
String
,
default
:
''
},
btnTitle
:
{
type
:
String
,
default
:
'查询'
}
},
data
:
function
()
{
...
...
@@ -204,7 +208,7 @@ export default {
selectedRows
:
[],
hovering
:
false
,
focused
:
false
,
loading
:
tru
e
loading
:
fals
e
}
},
computed
:
{
...
...
@@ -231,15 +235,17 @@ export default {
var
formConfig
=
Object
.
assign
(
this
.
defaultFormConfig
,
lovData
[
this
.
code
])
this
.
formConfig
=
formConfig
this
.
dialogTableVisible
=
true
this
.
handleSearch
()
//
this.handleSearch()
},
handleSearch
()
{
this
.
pageData
.
currentPage
=
1
this
.
fetchTable
()
},
handleReset
()
{
this
.
tableData
=
[]
this
.
pageData
.
total
=
0
this
.
searchData
=
{}
this
.
handleSearch
()
//
this.handleSearch()
},
fetchTable
()
{
this
.
loading
=
true
...
...
@@ -247,10 +253,24 @@ export default {
const
data
=
Object
.
assign
({},
this
.
initialParams
,
this
.
searchData
,
this
.
pageData
)
const
params
=
this
.
$translateToC4CData
(
data
)
delete
params
.
total
console
.
log
(
params
)
if
(
this
.
code
===
'qcc'
)
{
params
.
searchKey
=
params
.
name
delete
params
.
name
}
console
.
log
(
"后"
,
params
)
this
.
$request
(
url
,
params
).
then
(
res
=>
{
this
.
tableData
=
res
.
results
.
Result
||
[]
this
.
pageData
.
total
=
Number
(
res
.
results
.
Paging
.
TotalRecords
||
0
)
// this.pageData.total = 100
if
(
this
.
code
===
'qcc'
){
if
(
res
.
results
.
Paging
===
null
)
{
this
.
pageData
.
total
=
0
}
else
{
this
.
pageData
.
total
=
Number
(
res
.
results
.
Paging
.
TotalRecords
||
0
)
}
}
else
{
this
.
pageData
.
total
=
Number
(
res
.
results
.
Paging
.
TotalRecords
||
0
)
}
// this.pageData.total = Number(res.results.Paging.TotalRecords || 0)
this
.
loading
=
false
})
},
...
...
src/views/customers/customers-add/index.vue
View file @
b11f4991
...
...
@@ -51,6 +51,7 @@ export default {
layout
:
16
,
code
:
'qcc'
,
displayKey
:
'Name'
,
btnTitle
:
'获取企查查信息'
,
returnFn
:
function
(
row
)
{
return
{
Name
:
row
.
Name
,
...
...
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