Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
Project
Project
Details
Activity
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
Administrator
dsk-cr20g
Commits
b429f045
Commit
b429f045
authored
Oct 12, 2023
by
tianhongyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页数限制 样式更改
parent
967b7fdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
71 deletions
+38
-71
index.vue
.../views/enterpriseData/components/searchTheOwner/index.vue
+38
-71
No files found.
dsk-operate-ui/src/views/enterpriseData/components/searchTheOwner/index.vue
View file @
b429f045
...
...
@@ -194,14 +194,14 @@
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"土地交易"
width
=
"107"
:
resizable
=
"false"
:
sortable
=
"'custom'"
prop
=
"landMarketCount"
>
<
!--
<
el
-
table
-
column
label
=
"土地交易"
width
=
"107"
:
resizable
=
"false"
:
sortable
=
"'custom'"
prop
=
"landMarketCount"
>
<
template
slot
-
scope
=
"scope"
>
<
router
-
link
v
-
if
=
"scope.row.landMarketCount"
:
to
=
"scope.row.other ? `/enterprise/${encodeStr(scope.row.id)
}
?path=landtransaction` : `/company/${encodeStr(scope.row.id)
}
?path=landtransaction`"
tag
=
"a"
class
=
"list-titel-a"
>
{{
`${scope.row.landMarketCount
}
个`
}}
<
/router-link
>
<
span
v
-
else
>--<
/span
>
<
/template
>
<
/el-table-column
>
<
/el-table-column>
--
>
<
el
-
table
-
column
label
=
"拟建项目"
width
=
"107"
:
resizable
=
"false"
:
sortable
=
"'custom'"
prop
=
"approvalProjectCount"
>
<
template
slot
-
scope
=
"scope"
>
...
...
@@ -389,33 +389,8 @@ export default {
}
}
,
methods
:
{
// 排序
sortChange
({
column
,
prop
,
order
}
)
{
// 有order排序 无order默认排序
this
.
sort
=
order
?
toLine
(
prop
)
:
""
;
// 升序
if
(
order
==
"ascending"
)
{
this
.
order
=
"asc"
;
}
// 降序
if
(
order
==
"descending"
||
!
order
)
{
this
.
order
=
"desc"
;
}
this
.
sortSearch
(
this
.
pageNum
);
}
,
// 排序搜索
async
sortSearch
(
num
,
size
)
{
this
.
dialogVisible
=
false
;
if
(
!
num
)
{
this
.
pageNum
=
1
;
}
if
(
!
size
)
{
this
.
pageSize
=
20
;
}
if
(
!
num
&&
!
size
)
{
this
.
reloadPage
();
}
// 生成查询条件
createSearchConditions
()
{
// 默认传递参数
let
params
=
{
aptitudeQueryDto
:
{
}
,
...
...
@@ -455,11 +430,42 @@ export default {
params
.
aptitudeQueryDto
[
"tagCodeQueryType"
]
=
this
.
tagCodeQueryType
;
}
return
params
;
}
,
// 排序
sortChange
({
column
,
prop
,
order
}
)
{
// 有order排序 无order默认排序
this
.
sort
=
order
?
toLine
(
prop
)
:
""
;
// 升序
if
(
order
==
"ascending"
)
{
this
.
order
=
"asc"
;
}
// 降序
if
(
order
==
"descending"
||
!
order
)
{
this
.
order
=
"desc"
;
}
this
.
sortSearch
(
this
.
pageNum
);
}
,
// 排序搜索
async
sortSearch
(
num
,
size
)
{
this
.
dialogVisible
=
false
;
if
(
!
num
)
{
this
.
pageNum
=
1
;
}
if
(
!
size
)
{
this
.
pageSize
=
20
;
}
if
(
!
num
&&
!
size
)
{
this
.
reloadPage
();
}
const
params
=
this
.
createSearchConditions
();
try
{
const
result
=
await
api
.
searchOwnerUnitListApi
(
params
);
if
(
result
.
code
==
200
)
{
this
.
tableData
=
result
.
data
?.
list
?
result
.
data
.
list
:
[];
this
.
total
=
res
ult
.
data
?.
total
?
result
.
data
?.
total
:
0
;
this
.
total
=
res
.
data
?.
total
?
(
res
.
data
?.
total
>
10000
?
10000
:
res
.
data
?.
total
)
:
0
;
this
.
addHeaderListener
();
}
}
catch
(
error
)
{
...
...
@@ -716,53 +722,14 @@ export default {
this
.
reloadPage
();
}
// 默认传递参数
let
params
=
{
aptitudeQueryDto
:
{
}
,
page
:
{
page
:
this
.
pageNum
,
limit
:
this
.
pageSize
,
order
:
this
.
order
,
field
:
this
.
sort
}
}
;
var
data
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
jskBidQueryDto
));
// 搜索关键词处理
if
(
this
.
keys
)
{
params
.
aptitudeQueryDto
[
'ename'
]
=
this
.
keys
;
}
// 处理地区选择
if
(
data
.
provinceIds
.
length
>
0
)
{
params
.
aptitudeQueryDto
[
'province'
]
=
data
.
provinceIds
.
join
(
","
);
}
if
(
data
.
cityIds
.
length
>
0
)
{
params
.
aptitudeQueryDto
[
'city'
]
=
data
.
cityIds
.
join
(
","
);
}
if
(
data
.
areaIds
.
length
>
0
)
{
params
.
aptitudeQueryDto
[
'county'
]
=
data
.
areaIds
.
join
(
","
);
}
// 业主标签选中处理
if
(
this
.
currentOwnerLabels
.
length
>
0
)
{
params
.
aptitudeQueryDto
[
"tagCode"
]
=
this
.
currentOwnerLabels
.
join
(
","
);
}
// 选中大于等于两个业主标签 添加 任意均可 或 同时具备条件
if
(
this
.
currentOwnerLabels
.
length
>=
2
)
{
params
.
aptitudeQueryDto
[
"tagCodeQueryType"
]
=
this
.
tagCodeQueryType
;
}
const
params
=
this
.
createSearchConditions
();
this
.
isSkeleton
=
true
;
api
.
searchOwnerUnitListApi
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
isSkeleton
=
false
;
this
.
tableData
=
res
.
data
?.
list
?
res
.
data
.
list
:
[];
this
.
total
=
res
.
data
?.
total
?
res
.
data
?.
total
:
0
;
this
.
total
=
res
.
data
?.
total
?
(
res
.
data
?.
total
>
10000
?
10000
:
res
.
data
?.
total
)
:
0
;
this
.
addHeaderListener
();
}
}
).
catch
(
error
=>
{
...
...
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