Commit bcc32a19 by xiehao

add:新增项目金额和项目启动时间

1 parent 6ac8ed5f
Showing with 31 additions and 4 deletions
...@@ -173,7 +173,9 @@ ...@@ -173,7 +173,9 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="buildOrg" label="承建单位" align="center"> <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>
<!-- <el-table-column prop="projectManager" label="项目经理" align="center"/>--> <!-- <el-table-column prop="projectManager" label="项目经理" align="center"/>-->
<el-table-column prop="projAmount" label="项目金额" align="right"> <el-table-column prop="projAmount" label="项目金额" align="right">
...@@ -184,7 +186,7 @@ ...@@ -184,7 +186,7 @@
<!--项目启动日期--> <!--项目启动日期-->
<el-table-column prop="projectInitiationTime" label="项目启动日期" align="center"> <el-table-column prop="projectInitiationTime" label="项目启动日期" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.projectInitiationTime | formatTime }}</span> <span>{{ scope.row.projectInitiationTime }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="createTime" label="创建时间" width="120" align="center"/> <el-table-column prop="createTime" label="创建时间" width="120" align="center"/>
...@@ -820,6 +822,7 @@ export default { ...@@ -820,6 +822,7 @@ export default {
let4: null, let4: null,
}, },
jianSheLeiXingSelect: [], jianSheLeiXingSelect: [],
chengJianDeptSelect: [],
tableData2: [], tableData2: [],
loading2: false, loading2: false,
pager2: { pager2: {
...@@ -852,15 +855,25 @@ export default { ...@@ -852,15 +855,25 @@ export default {
projectDetailVisible: false, projectDetailVisible: false,
sysOrgOptions: [], sysOrgOptions: [],
sysDeptOptions: [], sysDeptOptions: [],
that: this
} }
}, },
created() {
},
filters: { filters: {
formatMoney(value) { formatMoney(value) {
if (!value && value !== 0) return ''; 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', () => { window.addEventListener('resize', () => {
this.set_table_height() this.set_table_height()
}) })
...@@ -1412,6 +1425,20 @@ export default { ...@@ -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() { set_table_height() {
//动态设置表格高度 //动态设置表格高度
const table_container_height = $('.table_container').height() const table_container_height = $('.table_container').height()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!