Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
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
fulixin
dsk-operate-sys-cscec
Commits
11fdaf24
Commit
11fdaf24
authored
Mar 12, 2024
by
tianhongyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c7498979
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
23 deletions
+29
-23
TableListColumn.vue
...src/components/CustomTable/components/TableListColumn.vue
+11
-8
index.vue
dsk-operate-ui/src/components/CustomTable/index.vue
+7
-9
index.vue
...projectCostLedger/detail/components/FeedSummary/index.vue
+9
-4
index.vue
dsk-operate-ui/src/views/projectCostLedger/detail/index.vue
+2
-2
No files found.
dsk-operate-ui/src/components/CustomTable/components/TableListColumn.vue
View file @
11fdaf24
...
@@ -4,12 +4,12 @@
...
@@ -4,12 +4,12 @@
:min-width=
"item.minWidth"
:align=
"item.align?item.align:'left'"
:fixed=
"item.fixed"
:min-width=
"item.minWidth"
:align=
"item.align?item.align:'left'"
:fixed=
"item.fixed"
:sortable=
"item.sortable ?item.sortable=='custom'? 'custom':true : false"
:resizable=
"false"
:show-overflow-tooltip=
"item.showOverflowTooltip"
>
:sortable=
"item.sortable ?item.sortable=='custom'? 'custom':true : false"
:resizable=
"false"
:show-overflow-tooltip=
"item.showOverflowTooltip"
>
<template
v-for=
"(child,index) of item.children"
>
<template
v-for=
"(child,index) of item.children"
>
<table-list-column
:key=
"child.uid
? child.uid : index
"
:item=
"child"
>
<table-list-column
:key=
"child.uid"
:item=
"child"
>
<template
v-for=
"(
index, name) in $slots"
:slot=
"n
ame"
>
<template
v-for=
"(
fnName, slotName) in $slots"
:slot=
"slotN
ame"
>
<slot
:name=
"
name"
/
>
<slot
:name=
"
slotName"
></slot
>
</
template
>
</
template
>
<
template
v-for=
"(
index, name) in $scopedSlots"
:slot=
"name"
slot-scope=
"{row,$index}
"
>
<
template
v-for=
"(
fnName, slotName) in $scopedSlots"
:slot=
"slotName"
slot-scope=
"scope
"
>
<slot
:name=
"
name"
:data=
"child"
:row=
"row"
:index=
"$i
ndex"
></slot>
<slot
:name=
"
slotName"
:row=
"scope.row"
:data=
"scope.data"
:row-index=
"scope.rowI
ndex"
></slot>
</
template
>
</
template
>
</table-list-column>
</table-list-column>
</template>
</template>
...
@@ -35,12 +35,12 @@
...
@@ -35,12 +35,12 @@
<!-- 非自定义表头 -->
<!-- 非自定义表头 -->
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<!-- 有自定义插槽 -->
<!-- 有自定义插槽 -->
<slot
v-if=
"item.slot"
:name=
"item.prop"
:row=
"scope.row"
:
index=
"scope.$index"
:data=
"item
"
>
<slot
v-if=
"item.slot"
:name=
"item.prop"
:row=
"scope.row"
:
data=
"item"
:row-index=
"scope.$index
"
>
<!-- 默认取值 -->
<!-- 默认取值 -->
{{
scope
.
row
[
item
.
prop
]
?
scope
.
row
[
item
.
prop
]
:
'-'
}}
{{
scope
.
row
[
item
.
prop
]
?
scope
.
row
[
item
.
prop
]
:
'-'
}}
</slot>
</slot>
<!-- 操作栏 不需要设置slot-->
<!-- 操作栏 不需要设置slot-->
<slot
v-else-if=
"item.prop == 'action-field-bar'"
name=
"action-field-bar"
:row=
"scope.row"
:
index=
"scope.$index"
:data=
"item
"
></slot>
<slot
v-else-if=
"item.prop == 'action-field-bar'"
name=
"action-field-bar"
:row=
"scope.row"
:
data=
"item"
:row-index=
"scope.$index
"
></slot>
<!-- 没有插槽 -->
<!-- 没有插槽 -->
<span
v-else
>
<span
v-else
>
{{
scope
.
row
[
item
.
prop
]
?
scope
.
row
[
item
.
prop
]
:
'-'
}}
{{
scope
.
row
[
item
.
prop
]
?
scope
.
row
[
item
.
prop
]
:
'-'
}}
...
@@ -63,6 +63,9 @@ export default {
...
@@ -63,6 +63,9 @@ export default {
tableData
:
{
tableData
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[]
},
columIndex
:
{
type
:
Number
,
}
}
},
},
watch
:
{
watch
:
{
...
@@ -111,7 +114,7 @@ export default {
...
@@ -111,7 +114,7 @@ export default {
}
}
// 不分页
// 不分页
return
scope
.
$index
+
1
;
return
scope
.
$index
+
1
;
}
,
}
},
},
}
}
</
script
>
</
script
>
...
...
dsk-operate-ui/src/components/CustomTable/index.vue
View file @
11fdaf24
...
@@ -12,15 +12,16 @@
...
@@ -12,15 +12,16 @@
<el-table-column
type=
"index"
v-if=
"isIndex"
label=
"序号"
:width=
"flexWidth(tableData)"
align=
"left"
:fixed=
"indexFixed"
:resizable=
"false"
>
<el-table-column
type=
"index"
v-if=
"isIndex"
label=
"序号"
:width=
"flexWidth(tableData)"
align=
"left"
:fixed=
"indexFixed"
:resizable=
"false"
>
<template
slot-scope=
"scope"
>
{{
pagingHandler
(
hasQueryParams
,
queryParams
,
scope
)
}}
</
template
>
<template
slot-scope=
"scope"
>
{{
pagingHandler
(
hasQueryParams
,
queryParams
,
scope
)
}}
</
template
>
</el-table-column>
</el-table-column>
<!-- 列二次封装 -->
<!-- 列二次封装 -->
<
template
v-for=
"(item,index) of formColum"
>
<
template
v-for=
"(item,index) of formColum"
>
<table-list-column
v-if=
"item.use !== false"
:key=
"item.uid
? item.uid : index
"
:tableData=
"tableData"
:item=
"item"
>
<table-list-column
v-if=
"item.use !== false"
:key=
"item.uid"
:tableData=
"tableData"
:item=
"item"
>
<!-- 根据透传属性创建插槽 -->
<!-- 根据透传属性创建插槽 -->
<template
v-for=
"(
index, name) in $slots"
:slot=
"n
ame"
>
<template
v-for=
"(
fn, slotName) in $slots"
:slot=
"slotN
ame"
>
<slot
:name=
"
name"
/
>
<slot
:name=
"
slotName"
></slot
>
</
template
>
</
template
>
<
template
v-for=
"(
index, name) in $scopedSlots"
:slot=
"name"
slot-scope=
"{row,index}
"
>
<
template
v-for=
"(
fn, slotName) in $scopedSlots"
:slot=
"slotName"
slot-scope=
"scope
"
>
<slot
:name=
"
name"
:data=
"item"
:row=
"row"
:index=
"i
ndex"
></slot>
<slot
:name=
"
slotName"
:data=
"scope.data"
:row=
"scope.row"
:row-index=
"scope.rowI
ndex"
></slot>
</
template
>
</
template
>
</table-list-column>
</table-list-column>
</template>
</template>
...
@@ -44,7 +45,7 @@
...
@@ -44,7 +45,7 @@
<
script
>
<
script
>
import
NoData
from
'@/components/NoData'
;
import
NoData
from
'@/components/NoData'
;
import
TableListColumn
from
"@/components/
TableListCom
/components/TableListColumn"
;
import
TableListColumn
from
"@/components/
CustomTable
/components/TableListColumn"
;
import
{
generateRandomLowerCaseLetter
}
from
"@/utils"
;
import
{
generateRandomLowerCaseLetter
}
from
"@/utils"
;
export
default
{
export
default
{
name
:
"tableListCom"
,
name
:
"tableListCom"
,
...
@@ -214,9 +215,6 @@ export default {
...
@@ -214,9 +215,6 @@ export default {
const
container
=
this
.
$el
;
const
container
=
this
.
$el
;
if
(
container
)
{
if
(
container
)
{
// console.log(container.offsetHeight, "container.offsetHeight");
// console.log(container.offsetHeight, "container.offsetHeight");
// 拿到可用视口高度
console
.
log
(
container
.
offsetHeight
);
console
.
log
(
container
.
getBoundingClientRect
());
containerMaxHeight
=
container
.
offsetHeight
;
containerMaxHeight
=
container
.
offsetHeight
;
}
}
}
}
...
...
dsk-operate-ui/src/views/projectCostLedger/detail/components/FeedSummary/index.vue
View file @
11fdaf24
...
@@ -41,9 +41,14 @@
...
@@ -41,9 +41,14 @@
<
template
slot=
"action-field-bar"
slot-scope=
"scope"
>
<
template
slot=
"action-field-bar"
slot-scope=
"scope"
>
<div
class=
"project-action-field-bar"
v-if=
"scope.row.id != '0'"
>
<div
class=
"project-action-field-bar"
v-if=
"scope.row.id != '0'"
>
<span
class=
"push-project"
>
推送工程量
</span>
<span
class=
"push-project"
>
推送工程量
</span>
{{
scope
}}
</div>
</div>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</
template
>
</
template
>
<!-- 本月工程量 -->
<
template
slot=
"quantities"
slot-scope=
"scope"
>
</
template
>
</custom-table>
</custom-table>
</el-form>
</el-form>
</div>
</div>
...
@@ -161,10 +166,10 @@ export default {
...
@@ -161,10 +166,10 @@ export default {
},
},
{
{
label
:
'实际成本'
,
prop
:
"sjcb"
,
align
:
"center"
,
uid
:
v4
(),
children
:
[
label
:
'实际成本'
,
prop
:
"sjcb"
,
align
:
"center"
,
uid
:
v4
(),
children
:
[
{
label
:
'本月工程量'
,
prop
:
"quantities"
,
minWidth
:
"
95"
,
uid
:
v4
()
},
{
label
:
'本月工程量'
,
prop
:
"quantities"
,
minWidth
:
"
150"
,
uid
:
v4
(),
slot
:
true
},
{
label
:
'截止本月工程量'
,
prop
:
"totalQuantities"
,
minWidth
:
"1
23"
,
uid
:
v4
()
},
{
label
:
'截止本月工程量'
,
prop
:
"totalQuantities"
,
minWidth
:
"1
50"
,
uid
:
v4
(),
slot
:
true
},
{
label
:
'本月采购单价'
,
prop
:
"purchaseUnitPrice"
,
minWidth
:
"1
09"
,
uid
:
v4
()
},
{
label
:
'本月采购单价'
,
prop
:
"purchaseUnitPrice"
,
minWidth
:
"1
50"
,
uid
:
v4
(),
slot
:
true
},
{
label
:
'填写时间'
,
prop
:
"createTime"
,
minWidth
:
"1
09"
,
uid
:
v4
()
},
{
label
:
'填写时间'
,
prop
:
"createTime"
,
minWidth
:
"1
50"
,
uid
:
v4
(),
slot
:
true
},
]
]
},
},
{
label
:
'推送工程量'
,
prop
:
"pushQuantities"
,
width
:
"95"
,
uid
:
v4
()
},
{
label
:
'推送工程量'
,
prop
:
"pushQuantities"
,
width
:
"95"
,
uid
:
v4
()
},
...
...
dsk-operate-ui/src/views/projectCostLedger/detail/index.vue
View file @
11fdaf24
...
@@ -193,8 +193,8 @@ export default {
...
@@ -193,8 +193,8 @@ export default {
const
detail
=
await
getProjectDetailApi
(
projectId
);
const
detail
=
await
getProjectDetailApi
(
projectId
);
if
(
detail
.
code
==
200
&&
detail
.
data
)
{
if
(
detail
.
code
==
200
&&
detail
.
data
)
{
if
(
detail
.
data
.
id
)
detail
.
data
[
"projectId"
]
=
detail
.
data
.
id
;
if
(
detail
.
data
.
id
)
detail
.
data
[
"projectId"
]
=
detail
.
data
.
id
;
detail
.
data
[
"projectId"
]
=
"1754425038355890177"
;
//
detail.data["projectId"] = "1754425038355890177";
detail
.
data
[
"cbStage"
]
=
0
;
//
detail.data["cbStage"] = 0;
this
.
detailInfo
=
detail
.
data
;
this
.
detailInfo
=
detail
.
data
;
}
}
}
catch
(
error
)
{
}
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