Commit ad7add2d authored by tianhongyang's avatar tianhongyang

merge

parent e3d006d9
...@@ -143,7 +143,7 @@ export default { ...@@ -143,7 +143,7 @@ export default {
comMaxHeight: null, comMaxHeight: null,
hasQueryParams: false, hasQueryParams: false,
comMaxBodyHeight: 0, comMaxBodyHeight: 0,
headerLastBlockHeight: 40, headerLastBlockHeight: 0,
observer: null, observer: null,
resizeTimer: null resizeTimer: null
}; };
...@@ -234,14 +234,15 @@ export default { ...@@ -234,14 +234,15 @@ export default {
const bodyMaxHeight = containerMaxHeight - headerHeight - 16; const bodyMaxHeight = containerMaxHeight - headerHeight - 16;
// console.log(bodyMaxHeight, "bodyMaxHeight"); // console.log(bodyMaxHeight, "bodyMaxHeight");
this.comMaxBodyHeight = bodyMaxHeight; this.comMaxBodyHeight = bodyMaxHeight;
} } else {
// 正常情况下 计算默认header高度 // 没有固定列 正常情况下 计算默认header高度
const defaultHeader = this.$el.querySelector(".el-table__header-wrapper"); const defaultHeader = this.$el.querySelector(".el-table__header-wrapper");
if (defaultHeader) { if (defaultHeader) {
const headerHeight = parseInt(window.getComputedStyle(defaultHeader).height); const headerHeight = parseInt(window.getComputedStyle(defaultHeader).height);
this.headerLastBlockHeight = headerHeight; this.headerLastBlockHeight = headerHeight;
} }
} }
}
} catch (error) { } catch (error) {
console.log(error); console.log(error);
} }
......
...@@ -158,7 +158,7 @@ export default { ...@@ -158,7 +158,7 @@ export default {
menuDetails:{}, menuDetails:{},
menuOptions: { menuOptions: {
nodeName: "menuName", nodeName: "menuName",
nodeValue: "menuName", nodeValue: "menuId",
children : "childrenList" children : "childrenList"
}, },
detailsId:'', detailsId:'',
...@@ -206,7 +206,7 @@ export default { ...@@ -206,7 +206,7 @@ export default {
this.menuTreeList.push(_tempArray); this.menuTreeList.push(_tempArray);
const defaultCurrent = this.findMenuNode(this.menuTreeList, "土石方部分"); const defaultCurrent = this.findMenuNode(this.menuTreeList, "土石方部分");
if (defaultCurrent) { if (defaultCurrent) {
this.defaultActive = defaultCurrent.menuName; this.defaultActive = defaultCurrent.menuId;
this.menuId = defaultCurrent.menuId; this.menuId = defaultCurrent.menuId;
} }
this.getCbDirectExpenseList(defaultCurrent.menuId) this.getCbDirectExpenseList(defaultCurrent.menuId)
...@@ -233,8 +233,8 @@ export default { ...@@ -233,8 +233,8 @@ export default {
}, },
handleSelect(menuPath, menuPathArray){ handleSelect(menuPath, menuPathArray){
this.defaultActive=menuPath; this.defaultActive=menuPath;
this.menuId=menuPathArray.originData.menuId this.menuId=menuPath
this.getCbDirectExpenseList(menuPathArray.originData.menuId) this.getCbDirectExpenseList(menuPath)
}, },
tableRowClassName({row, rowIndex}) { tableRowClassName({row, rowIndex}) {
if (row.expenseCategoryTag === '清') { if (row.expenseCategoryTag === '清') {
...@@ -286,7 +286,7 @@ export default { ...@@ -286,7 +286,7 @@ export default {
}); });
}, },
findMenuNode(tree, nodeName) { findMenuNode(tree, nodeName) {
console.log(tree) // console.log(tree)
for (const item of tree) { for (const item of tree) {
if (item.menuName == nodeName) return item; if (item.menuName == nodeName) return item;
if (item.childrenList instanceof Array) { if (item.childrenList instanceof Array) {
......
...@@ -104,7 +104,7 @@ export default { ...@@ -104,7 +104,7 @@ export default {
{ label: '截至本月总费用', prop: "jzbyzfy", minWidth: "175", uid: v4() }, { label: '截至本月总费用', prop: "jzbyzfy", minWidth: "175", uid: v4() },
], ],
"其他费用(包含建设其他费)": [ "其他费用(包含建设其他费)": [
{ label: '序号', prop: "number", width: "53", fixed: false, uid: v4() }, { label: '序号', prop: "number", width: "60", fixed: false, uid: v4() },
{ label: '名称', prop: "expenseName", width: "121", uid: v4(), showOverflowTooltip: true }, { label: '名称', prop: "expenseName", width: "121", uid: v4(), showOverflowTooltip: true },
{ label: '单位', prop: "unit", width: "121", uid: v4() }, { label: '单位', prop: "unit", width: "121", uid: v4() },
{ label: '成本数量', prop: "cbCount", width: "121", uid: v4() }, { label: '成本数量', prop: "cbCount", width: "121", uid: v4() },
...@@ -119,7 +119,7 @@ export default { ...@@ -119,7 +119,7 @@ export default {
{ label: '截止本月总费用', prop: "jzbyzfy", width: "129", uid: v4() }, { label: '截止本月总费用', prop: "jzbyzfy", width: "129", uid: v4() },
], ],
"工资统筹": [ "工资统筹": [
{ label: '序号', prop: "number", width: "53", fixed: false, uid: v4() }, { label: '序号', prop: "number", width: "60", fixed: false, uid: v4() },
{ label: '名称', prop: "expenseName", minWidth: "121", uid: v4(), showOverflowTooltip: true }, { label: '名称', prop: "expenseName", minWidth: "121", uid: v4(), showOverflowTooltip: true },
{ label: '单位', prop: "unit", width: "121", uid: v4() }, { label: '单位', prop: "unit", width: "121", uid: v4() },
{ label: '成本数量', prop: "cbCount", width: "121", uid: v4() }, { label: '成本数量', prop: "cbCount", width: "121", uid: v4() },
...@@ -133,7 +133,7 @@ export default { ...@@ -133,7 +133,7 @@ export default {
{ label: '截止本月总费用', prop: "jzbyzfy", width: "128", uid: v4() }, { label: '截止本月总费用', prop: "jzbyzfy", width: "128", uid: v4() },
], ],
"现场管理费": [ "现场管理费": [
{ label: '序号', prop: "number", width: "53", fixed: false, uid: v4() }, { label: '序号', prop: "number", width: "60", fixed: false, uid: v4() },
{ label: '名称', prop: "expenseName", minWidth: "121", uid: v4(), showOverflowTooltip: true }, { label: '名称', prop: "expenseName", minWidth: "121", uid: v4(), showOverflowTooltip: true },
{ label: '单位', prop: "unit", width: "121", uid: v4() }, { label: '单位', prop: "unit", width: "121", uid: v4() },
{ label: '工程量', prop: "engineeringVolume", width: "121", uid: v4() }, { label: '工程量', prop: "engineeringVolume", width: "121", uid: v4() },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment