From 8825054574bfe2c0ae232e03e624fc377f6075f4 Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 23 Dec 2021 16:59:07 +0800 Subject: [PATCH] gantt¶meter --- hb_client/src/App.vue | 3 + .../components/Gantt/components/leftMenu.vue | 22 +++--- hb_client/src/components/Gantt/index.vue | 72 +++++++------------ hb_client/src/components/customForm/index.vue | 8 ++- .../src/components/customForm/review.vue | 8 ++- hb_client/src/views/pm/management.vue | 19 +++-- hb_client/src/views/pm/plan.vue | 4 +- hb_client/src/views/wpm/operationdo.vue | 26 ++++--- 8 files changed, 87 insertions(+), 75 deletions(-) diff --git a/hb_client/src/App.vue b/hb_client/src/App.vue index 14f48dc..1698488 100644 --- a/hb_client/src/App.vue +++ b/hb_client/src/App.vue @@ -60,4 +60,7 @@ export default { #customerForm .el-form-item{ margin-bottom: 30px!important; } + .overFlowShow .el-tabs__content{ + overflow: visible; + } diff --git a/hb_client/src/components/Gantt/components/leftMenu.vue b/hb_client/src/components/Gantt/components/leftMenu.vue index 2167e1c..60d0113 100644 --- a/hb_client/src/components/Gantt/components/leftMenu.vue +++ b/hb_client/src/components/Gantt/components/leftMenu.vue @@ -19,11 +19,19 @@ @expand-change="handlerExpand" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }" > - + - - + + + + + + + + @@ -44,19 +52,12 @@ export default { BGScrollTop: { handler: function(newValue) { let table = this.$refs.tableMenu.bodyWrapper; - // console.log(newValue, table); table.scrollTo(0, newValue); - // table.scrollTo({ - // top: newValue, - // left: 0, - // behavior: "smooth" - // }); } } }, data() { return { - // tableData: [], checkList: [], isShowHeaderBox: false, menuOpen: false, @@ -68,7 +69,6 @@ export default { handlerWatchScroll() { let table = this.$refs.tableMenu.bodyWrapper; table.addEventListener("scroll", e => { - // console.log(e.srcElement.scrollTop); this.$emit("TableScrollTop", e.srcElement.scrollTop); }); }, diff --git a/hb_client/src/components/Gantt/index.vue b/hb_client/src/components/Gantt/index.vue index d804356..68c38fd 100644 --- a/hb_client/src/components/Gantt/index.vue +++ b/hb_client/src/components/Gantt/index.vue @@ -1,6 +1,6 @@ @@ -138,6 +141,7 @@ export default { listLoading: true, proList: [], + }; }, computed: {}, @@ -183,9 +187,12 @@ export default { obj.planTime = [startTime, endTime]; obj.per = item.count; obj.type = 1; + obj.productName = item.product_.name; + obj.productNum = item.product_.specification; obj.isShow = true; arr.push(obj); } + debugger; that.proList = arr; }); } diff --git a/hb_client/src/views/pm/plan.vue b/hb_client/src/views/pm/plan.vue index 049681e..8e0e12e 100644 --- a/hb_client/src/views/pm/plan.vue +++ b/hb_client/src/views/pm/plan.vue @@ -87,7 +87,7 @@ @pagination="getplanList" /> - + - + @@ -603,6 +603,7 @@ export default { }, fieldList: { count: 0, + name:'', }, listQueryfield: { page: 1, @@ -796,7 +797,9 @@ export default { this.formID = scope.row.id; recordInit( this.formID).then((response) => { if (response.data) { + debugger; this.fieldList = response.data; + this.fieldList.name = response.data.form_.name; } }); this.dialogVisibleForm = true; @@ -818,16 +821,21 @@ export default { let _this = this; _this.record_data = []; //检查项目 this.fieldList.record_data.forEach((item) => { + if(item.field_type==='int'){ + item.field_value = parseInt(item.field_value) + }else if(item.field_type==='float'){ + item.field_value = parseFloat(item.field_value) + } _this.record_data.push({ id: item.id, - field_value: item.field_value, + field_value:item.field_value, }); }); this.record.record_data = _this.record_data; createRecord(this.formID, this.record).then((res) => { if (res.code >= 200) { this.getrecordLists(); - this.$message.success("创建成功!"); + this.$message.success("提交成功!"); this.dialogVisibleForm = false; }