From b47b2017de99d407f0f359419889c9c20c8ca41e Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 3 Nov 2021 08:19:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_client/src/styles/index.scss | 2 +- hb_client/src/views/em/detection.vue | 4 +- hb_client/src/views/em/equipment.vue | 4 +- hb_client/src/views/em/record.vue | 4 +- hb_client/src/views/inm/fifo.vue | 6 +- hb_client/src/views/inm/fifodetail.vue | 2 +- hb_client/src/views/inm/inventory.vue | 2 +- hb_client/src/views/inm/materialbatch.vue | 2 +- hb_client/src/views/inm/warehouse.vue | 4 +- hb_client/src/views/monitor/service.vue | 391 ++++++------------- hb_client/src/views/mtm/material.vue | 4 +- hb_client/src/views/mtm/process.vue | 4 +- hb_client/src/views/mtm/stepdo.vue | 2 +- hb_client/src/views/procurement/vendor.vue | 4 +- hb_client/src/views/qm/standard.vue | 4 +- hb_client/src/views/qm/testitem.vue | 4 +- hb_client/src/views/sam/contract.vue | 4 +- hb_client/src/views/sam/customer.vue | 4 +- hb_client/src/views/sam/order.vue | 4 +- hb_client/src/views/sam/review.vue | 4 +- hb_client/src/views/system/dict.vue | 4 +- hb_client/src/views/system/file.vue | 2 +- hb_client/src/views/system/organization.vue | 2 +- hb_client/src/views/system/perm.vue | 2 +- hb_client/src/views/system/position.vue | 2 +- hb_client/src/views/system/role.vue | 2 +- hb_client/src/views/system/task.vue | 2 +- hb_client/src/views/workflow/customfield.vue | 4 +- hb_client/src/views/workflow/index.vue | 4 +- hb_client/src/views/workflow/state.vue | 6 +- hb_client/src/views/workflow/ticket.vue | 2 +- hb_client/src/views/workflow/transitions.vue | 4 +- hb_client/src/views/wpm/testitem.vue | 4 +- hb_server/apps/mtm/views.py | 1 + hb_server/apps/pm/views.py | 5 +- 35 files changed, 188 insertions(+), 317 deletions(-) diff --git a/hb_client/src/styles/index.scss b/hb_client/src/styles/index.scss index 13042e0..73e86dd 100644 --- a/hb_client/src/styles/index.scss +++ b/hb_client/src/styles/index.scss @@ -62,7 +62,7 @@ div:focus { // main-container global css .app-container { - padding: 10px; + padding: 2px; } .el-table--medium td,   .el-table--medium th { diff --git a/hb_client/src/views/em/detection.vue b/hb_client/src/views/em/detection.vue index 89d54b0..4238688 100644 --- a/hb_client/src/views/em/detection.vue +++ b/hb_client/src/views/em/detection.vue @@ -24,13 +24,13 @@ >重置 -
+
新增设备
- + 重置
-
+
新增设备
- + 重置
-
+
新增校准或检定
- +
- -
+ +
新增物料 @@ -153,7 +153,7 @@
- + + diff --git a/hb_client/src/views/inm/fifodetail.vue b/hb_client/src/views/inm/fifodetail.vue index 3f1a7aa..ba70e95 100644 --- a/hb_client/src/views/inm/fifodetail.vue +++ b/hb_client/src/views/inm/fifodetail.vue @@ -25,7 +25,7 @@ >
- +
- + - + 重置 -
+
新增仓库
- +
+ + + +
+ CPU +
+ + + + {{ cpuData.count }} + + + + {{ cpuData.lcount }} + + + + {{ cpuData.percent }}% + + +
+
+ + +
+ 内存 +
+ + + + {{ memoryData.total }}GB + + + + {{ memoryData.used }}GB + + + + {{ memoryData.percent }}% + + +
+
+ + +
+ 硬盘 +
+ + + + {{ diskData.total }}GB + + + + {{ diskData.used }}GB + + + + {{ diskData.percent }}% + + +
+
+
-
- - - - -
- CPU -
- - - 属性 - - - 值 - - - - - 逻辑核心数 - - - {{cpuData.count}} - - - - - 物理核心数 - - - {{cpuData.lcount}} - - - - - 当前使用率 - - - {{cpuData.percent}}% - - -
-
- - -
- 内存 -
- - - 属性 - - - 值 - - - - - 使用率 - - - {{memoryData.percent}}% - - - - - 总内存 - - - {{memoryData.total}} - - - - - 已用内存 - - - {{memoryData.used}} - - -
-
- - -
- 硬盘 -
- - - 属性 - - - 值 - - - - - 已用百分比 - - - {{diskData.percent}}% - - - - - 总大小 - - - {{diskData.total}} - - - - - 已用大小 - - - {{diskData.used}} - - -
-
-
-
- - +
日志列表
@@ -141,45 +83,33 @@ type="primary" icon="el-icon-search" @click="handleFilter" - >搜索 + >搜索 重置 + >重置
- - - - - + + + - +
@@ -188,121 +118,60 @@ - + getServerList() { + getServerList().then((response) => { + if (response.data) { + this.cpuData = response.data.cpu; + this.diskData = response.data.disk; + this.memoryData = response.data.memory; + } + }); + }, + handleClick(row) { + this.dialogVisible = true; + getLog(row.name).then((response) => { + if (response.data) { + this.logdec = response.data.replace(/\n/gm, "
"); + } + }); + }, + }, +}; + \ No newline at end of file diff --git a/hb_client/src/views/mtm/material.vue b/hb_client/src/views/mtm/material.vue index 9eb99f4..b781fc5 100644 --- a/hb_client/src/views/mtm/material.vue +++ b/hb_client/src/views/mtm/material.vue @@ -24,13 +24,13 @@ >重置
-
+
新增物料
- + -
+
新增工序
- + - + 新增 重置
-
+
新增供应商
- + 重置
-
+
新增标准
- + 重置
-
+
新增项目
- + 重置
-
+
新增客户
- + 重置
-
+
新增客户
- + 重置
-
+
新增订单
- + 重置
-
+
新增客户
- + @@ -52,7 +52,7 @@ v-show="listQuery.type" v-loading="listLoading" :data="dictList" - style="width: 100%;margin-top:10px;" + style="width: 100%;margin-top: 2px;" highlight-current-row row-key="id" height="100" diff --git a/hb_client/src/views/system/file.vue b/hb_client/src/views/system/file.vue index b9c70a8..02307b3 100644 --- a/hb_client/src/views/system/file.vue +++ b/hb_client/src/views/system/file.vue @@ -41,7 +41,7 @@ -
+
新增
- + 重置
-
+
新增
- +
-
+
新增
- + 添加修改 - + 搜索
-
+
新增
diff --git a/hb_client/src/views/workflow/transitions.vue b/hb_client/src/views/workflow/transitions.vue index 341fa2b..d0827f6 100644 --- a/hb_client/src/views/workflow/transitions.vue +++ b/hb_client/src/views/workflow/transitions.vue @@ -2,13 +2,13 @@
-
+
新增
- + 重置
-
+
新增项目
- +