Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
liangzhen
/
framework-tools-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bcc32a19
authored
May 27, 2024
by
xiehao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:新增项目金额和项目启动时间
1 parent
6ac8ed5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
4 deletions
src/views/projectInfoManage/index.vue
src/views/projectInfoManage/index.vue
View file @
bcc32a1
...
...
@@ -173,7 +173,9 @@
</
template
>
</el-table-column>
<el-table-column
prop=
"buildOrg"
label=
"承建单位"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
buildOrg
|
orgNameFilter
(
that
)
}}
</span>
</
template
>
</el-table-column>
<!-- <el-table-column prop="projectManager" label="项目经理" align="center"/>-->
<el-table-column
prop=
"projAmount"
label=
"项目金额"
align=
"right"
>
...
...
@@ -184,7 +186,7 @@
<!--项目启动日期-->
<el-table-column
prop=
"projectInitiationTime"
label=
"项目启动日期"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
projectInitiationTime
|
formatTime
}}
</span>
<span>
{{
scope
.
row
.
projectInitiationTime
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建时间"
width=
"120"
align=
"center"
/>
...
...
@@ -820,6 +822,7 @@ export default {
let4
:
null
,
},
jianSheLeiXingSelect
:
[],
chengJianDeptSelect
:
[],
tableData2
:
[],
loading2
:
false
,
pager2
:
{
...
...
@@ -852,15 +855,25 @@ export default {
projectDetailVisible
:
false
,
sysOrgOptions
:
[],
sysDeptOptions
:
[],
that
:
this
}
},
created
()
{
},
filters
:
{
formatMoney
(
value
)
{
if
(
!
value
&&
value
!==
0
)
return
''
;
return
new
Intl
.
NumberFormat
(
'zh-CN'
,
{
style
:
'currency'
,
currency
:
'CNY'
,
minimumFractionDigits
:
2
,
maximumFractionDigits
:
2
}).
format
(
value
);
return
new
Intl
.
NumberFormat
(
'zh-CN'
,
{
style
:
'currency'
,
currency
:
'CNY'
,
minimumFractionDigits
:
2
,
maximumFractionDigits
:
2
}).
format
(
value
);
},
orgNameFilter
(
orgId
,
that
)
{
const
org
=
that
.
chengJianDeptSelect
?.
find
(
item
=>
item
.
value
==
orgId
);
return
org
?
org
.
label
:
""
;
}
},
mounted
()
{
async
mounted
()
{
this
.
chengJianDeptSelect
=
await
this
.
getChengJianDeptSelect
();
console
.
log
(
1
,
this
.
chengJianDeptSelect
)
window
.
addEventListener
(
'resize'
,
()
=>
{
this
.
set_table_height
()
})
...
...
@@ -1412,6 +1425,20 @@ export default {
})
})
},
getChengJianDeptSelect
()
{
//承建单位下拉
const
params
=
{
key
:
'build_company'
,
}
return
new
Promise
((
resolve
,
reject
)
=>
{
getDianXingAnLiSelectData
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
resolve
(
res
.
data
)
// this.chengJianDeptSelect = res.data
}
})
})
},
set_table_height
()
{
//动态设置表格高度
const
table_container_height
=
$
(
'.table_container'
).
height
()
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment