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
d0b4af02
Commit
d0b4af02
authored
Jun 06, 2023
by
caixingbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*
parent
f26896b3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
31 deletions
+14
-31
Tables.vue
dsk-operate-ui/src/views/detail/party-a/component/Tables.vue
+5
-0
customDetail.vue
.../views/detail/party-a/dealings/component/customDetail.vue
+1
-1
custom.vue
dsk-operate-ui/src/views/detail/party-a/dealings/custom.vue
+5
-29
mixin.js
dsk-operate-ui/src/views/detail/party-a/mixins/mixin.js
+3
-1
No files found.
dsk-operate-ui/src/views/detail/party-a/component/Tables.vue
View file @
d0b4af02
...
...
@@ -8,6 +8,7 @@
border
fit
highlight-current-row
:default-sort =
'defaultSort'
@
sort-change=
"sortChange"
>
<el-table-column
...
...
@@ -65,6 +66,10 @@ export default {
type
:
Boolean
,
default
:
false
},
defaultSort
:
{
type
:
Object
,
default
:
null
},
tableData
:
{
type
:
Array
,
default
:
[]
...
...
dsk-operate-ui/src/views/detail/party-a/dealings/component/customDetail.vue
View file @
d0b4af02
...
...
@@ -79,7 +79,7 @@ export default {
pageSize
:
10
}
,
formData
:
[
{
type
:
3
,
fieldName
:
'keys'
,
value
:
''
,
placeholder
:
'输入
企业
名称查询'
,
options
:
[]
}
,
{
type
:
3
,
fieldName
:
'keys'
,
value
:
''
,
placeholder
:
'输入
项目/工程
名称查询'
,
options
:
[]
}
,
],
forData
:
[
{
label
:
'合作项目/工程名称'
,
prop
:
'projectAllName'
,
width
:
'720'
,
slot
:
true
}
,
...
...
dsk-operate-ui/src/views/detail/party-a/dealings/custom.vue
View file @
d0b4af02
...
...
@@ -11,6 +11,7 @@
<tables
:indexFixed=
"true"
:defaultSort=
"defaultSort"
:tableLoading=
"tableLoading"
:tableData=
"tableData"
:forData=
"forData"
...
...
@@ -57,11 +58,12 @@ export default {
pageNum
:
1
,
pageSize
:
10
},
defaultSort
:
{
prop
:
'time'
,
order
:
'descending'
},
forData
:
[
{
label
:
'客户名称'
,
prop
:
'companyName'
,
minWidth
:
'350'
,
slot
:
true
},
{
label
:
'合作项目/工程名称'
,
prop
:
'projectAllName'
,
minWidth
:
'400'
,
s
ortable
:
'custom'
,
slot
:
true
},
{
label
:
'合作总金额(万元)'
,
prop
:
'amount'
,
minWidth
:
'150'
,
sortable
:
'custom'
},
{
label
:
'最近一次合作时间'
,
prop
:
'time'
,
minWidth
:
'140'
,
sortable
:
'custom'
}
{
label
:
'合作项目/工程名称'
,
prop
:
'projectAllName'
,
minWidth
:
'400'
,
s
lot
:
true
,
sortable
:
'custom'
,
descending
:
'5'
,
ascending
:
'6'
},
{
label
:
'合作总金额(万元)'
,
prop
:
'amount'
,
minWidth
:
'150'
,
sortable
:
'custom'
,
descending
:
'1'
,
ascending
:
'2'
},
{
label
:
'最近一次合作时间'
,
prop
:
'time'
,
minWidth
:
'140'
,
sortable
:
'custom'
,
descending
:
'3'
,
ascending
:
'4'
}
],
formData
:
[
{
type
:
3
,
fieldName
:
'keys'
,
value
:
''
,
placeholder
:
'输入企业名称查询'
,
options
:
[]},
...
...
@@ -90,32 +92,6 @@ export default {
}
this
.
tableDataTotal
=
res
.
total
},
//排序-测试
sortChange
(
e
){
this
.
tableData
=
[]
let
sortRule
=
e
.
prop
+
','
+
e
.
order
switch
(
sortRule
){
case
'amount,descending'
:
this
.
queryParams
.
sort
=
1
break
case
'amount,ascending'
:
this
.
queryParams
.
sort
=
2
break
case
'time,descending'
:
this
.
queryParams
.
sort
=
3
break
case
'time,ascending'
:
this
.
queryParams
.
sort
=
4
break
case
'projectAllName,descending'
:
this
.
queryParams
.
sort
=
5
break
case
'projectAllName,ascending'
:
this
.
queryParams
.
sort
=
6
break
}
this
.
handleSearch
()
},
handleClick
(
e
,
data
)
{
this
.
rowData
=
data
this
.
isDetails
=
true
...
...
dsk-operate-ui/src/views/detail/party-a/mixins/mixin.js
View file @
d0b4af02
...
...
@@ -70,7 +70,9 @@ export default {
},
//排序
sortChange
(
e
){
console
.
log
(
e
)
let
item
=
this
.
forData
.
find
(
item
=>
item
.
prop
===
e
.
prop
)
this
.
queryParams
.
sort
=
item
[
e
.
order
]
this
.
handleSearch
()
}
}
}
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