Commit bcc32a19 by xiehao

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

1 parent 6ac8ed5f
Showing with 31 additions and 4 deletions
......@@ -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()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!