From ffb7b6ece2babf494d01ed6def9d319f084091bd Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 18 Feb 2022 10:51:10 +0800 Subject: [PATCH] styleAdjust --- hb_client/src/api/hrm.js | 7 + hb_client/src/views/bigScreen/index.vue | 13 + hb_client/src/views/dashboard/index.vue | 10 +- hb_client/src/views/mtm/process.vue | 433 +++--- hb_client/src/views/pm/plan.vue | 32 +- .../views/statistics/materialStatistics.vue | 10 +- .../views/statistics/progressStatistics.vue | 10 +- hb_client/src/views/wpm/worktask.vue | 1160 ++++++++--------- 8 files changed, 837 insertions(+), 838 deletions(-) diff --git a/hb_client/src/api/hrm.js b/hb_client/src/api/hrm.js index beca22f..e3378a4 100644 --- a/hb_client/src/api/hrm.js +++ b/hb_client/src/api/hrm.js @@ -13,3 +13,10 @@ export function clockRecord(data) { data }) } +export function getEmployee(data) { + return request({ + url: '/hrm/employee/', + method: 'get', + data + }) +} diff --git a/hb_client/src/views/bigScreen/index.vue b/hb_client/src/views/bigScreen/index.vue index d07274d..2a0fcf1 100644 --- a/hb_client/src/views/bigScreen/index.vue +++ b/hb_client/src/views/bigScreen/index.vue @@ -98,6 +98,7 @@ import center from './center' import bottomLeft from './bottomLeft' import bottomRight from './bottomRight' + import { getPlanGantt } from "@/api/srm"; export default { mixins: [ drawMixin ], @@ -108,6 +109,7 @@ dateDay: null, dateYear: null, dateWeek: null, + planGanttList:[], weekday: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'] } }, @@ -122,6 +124,7 @@ mounted() { this.timeFn(); this.cancelLoading(); + this.getPageData(); let bigHeight = document.getElementsByClassName('host-body')[0].clientHeight; let firstHeight = document.getElementById('firstLine').clientHeight; let secondHeight = document.getElementsByClassName('jc-between')[0].clientHeight; @@ -139,6 +142,16 @@ this.dateWeek = this.weekday[new Date().getDay()] }, 1000) }, + getPageData(){ + let that = this; + getPlanGantt({Authorization:'big_screen'}).then(res => { + if (res.code === 200) { + this.planGanttList = res.data.results; + } else { + that.$message.error(res.msg); + } + }) + }, cancelLoading() { setTimeout(() => { this.loading = false diff --git a/hb_client/src/views/dashboard/index.vue b/hb_client/src/views/dashboard/index.vue index dcac59e..74b0ecc 100644 --- a/hb_client/src/views/dashboard/index.vue +++ b/hb_client/src/views/dashboard/index.vue @@ -240,7 +240,8 @@ - + + @@ -338,7 +339,8 @@ diff --git a/hb_client/src/views/pm/plan.vue b/hb_client/src/views/pm/plan.vue index 3b75c6c..7900b38 100644 --- a/hb_client/src/views/pm/plan.vue +++ b/hb_client/src/views/pm/plan.vue @@ -114,60 +114,50 @@ stripe style="width: 100%" height="250" - - > - - + - - + - + - + - + - + - - + - - - + diff --git a/hb_client/src/views/statistics/materialStatistics.vue b/hb_client/src/views/statistics/materialStatistics.vue index d32d704..80a9fc9 100644 --- a/hb_client/src/views/statistics/materialStatistics.vue +++ b/hb_client/src/views/statistics/materialStatistics.vue @@ -9,14 +9,14 @@
废料原因统计
-
+
@@ -56,7 +56,7 @@ :id="chartId1" :options="barOptions" :className="chartsName" - height="400px" + height="45vh" width="600px" > @@ -69,7 +69,7 @@ :id="chartId2" :options="barOptions" :className="chartsName" - height="400px" + height="45vh" width="600px" > @@ -111,7 +111,7 @@ :id="chartId3" :options="barOptions" :className="chartsName" - height="400px" + height="45vh" > diff --git a/hb_client/src/views/statistics/progressStatistics.vue b/hb_client/src/views/statistics/progressStatistics.vue index 4b1942d..0e5ee33 100644 --- a/hb_client/src/views/statistics/progressStatistics.vue +++ b/hb_client/src/views/statistics/progressStatistics.vue @@ -7,7 +7,7 @@ @@ -18,7 +18,7 @@ :id="chartId1" :options="barOptions" :className="chartsName" - height="400px" + height="45vh" width="100%" > @@ -31,7 +31,7 @@ :id="chartId2" :options="barOptions1" :className="chartsName" - height="400px" + height="45vh" width="100%" > @@ -55,10 +55,10 @@ > - + - + diff --git a/hb_client/src/views/wpm/worktask.vue b/hb_client/src/views/wpm/worktask.vue index 1cdc21a..acaf939 100644 --- a/hb_client/src/views/wpm/worktask.vue +++ b/hb_client/src/views/wpm/worktask.vue @@ -17,92 +17,96 @@ highlight-current-row @current-change="handleCurrentChange" > - - - + + - - + + - + - - + + - - + + - - - + + - - + - + - + + {{ state_[scope.row.state] }} + - + - - + - - + @@ -127,79 +131,74 @@ :label="item.name" :value="item.number" @click="handlework(item)" - >{{ item.name }} - + - - 显示全部 - - - - + 报废 + + + + 显示全部 + + - - - - + + + + > + - - - + + - - - + + - - - + + - - + + - - - - - + + + + + - - - - @@ -214,21 +213,21 @@ style="width: 100%" max-height="300" > - - - + + + - - + + - + @@ -242,13 +241,13 @@ - - + - + @@ -293,8 +292,9 @@ 领半成品 + 领半成品 + @@ -303,7 +303,6 @@ 确 定 - - - - + + - - - - + + @@ -341,7 +337,6 @@ 确 定 - 确认领料 + 确认领料 + @@ -449,23 +445,20 @@ max-height="600" @selection-change="handleSelectionChanges" > - - + + - + - - + - + - - +