From e205cad00ed14b91f7c7395146941ade750982bb Mon Sep 17 00:00:00 2001
From: zhuzhuanzhuan
Date: 星期三, 17 一月 2024 15:29:13 +0800
Subject: [PATCH] 1、扭矩配置页面更名为参数配置,增加字段“进给参数” 2、设备监控页面设备表增加状态异常说明字段以及操作列状态反馈功能(具备鉴权功能) 3、设备加工工件报表页面取消分页器及日期字段 4、设备日志页面增加扭矩及进给参数工作曲线 5、设备运行参数报警页面新增至mdc模块数据报表菜单下并完成所有布局及功能实现 6、优化车间看板页面代码,手动设置拖拽区域高度以试图解决进入页面后无法随意拖拽问题(未在现场调试),全屏模式下无法使用功能,从全屏模式切换至普通模式下刷新页面以及优化设备详情弹窗样式

---
 src/views/mdc/base/modules/deviceBaseInfo/EquipmentList.vue |   31 +++++++++++++++++++++++++++----
 1 files changed, 27 insertions(+), 4 deletions(-)

diff --git a/src/views/mdc/base/modules/deviceBaseInfo/EquipmentList.vue b/src/views/mdc/base/modules/deviceBaseInfo/EquipmentList.vue
index fc8afcb..6f83625 100644
--- a/src/views/mdc/base/modules/deviceBaseInfo/EquipmentList.vue
+++ b/src/views/mdc/base/modules/deviceBaseInfo/EquipmentList.vue
@@ -57,16 +57,24 @@
 
       <a-table ref="table" bordered size="middle" rowKey="equipmentId" :columns="columns" :dataSource="dataSource"
                :pagination="false" :loading="loading" :scroll="{x:'max-content',y:scrollY}">
+        <template slot="equipmentStatus" slot-scope="text">
+          {{text===0?'姝e父':'寮傚父'}}
+        </template>
+        <template slot="action" slot-scope="text, record">
+          <a @click="$emit('editEquipmentStatus',record)" v-has="'deiveBaseInfo:responseStatus'">鐘舵�佸弽棣�</a>
+        </template>
       </a-table>
+
     </div>
   </a-card>
 </template>
 
 <script>
+  import { postAction } from '@/api/manage'
 
   export default {
     name: 'EquipmentLayout',
-    components: {},
+    components: {   },
     data() {
       return {
         loading:false,
@@ -78,7 +86,7 @@
             title: '璁惧ID',
             align: "center",
             dataIndex: 'equipmentId',
-            width:250
+            width:210
           },
           {
             title: '璁惧鍚嶇О',
@@ -90,7 +98,14 @@
             title: '鐘舵��',
             align: "center",
             dataIndex: 'oporationDict',
-            width:150
+            width:200
+          },
+          {
+            title: '璁惧寮傚父',
+            align: "center",
+            dataIndex: 'equipmentStatus',
+            scopedSlots: {customRender: 'equipmentStatus'},
+            width:200
           },
           {
             title: '閲囬泦鏃堕棿',
@@ -100,6 +115,14 @@
             sorter: (a, b) => {return a.collecttime>b.collecttime?1:-1},
             width:350
           },
+          {
+            title: '鎿嶄綔',
+            dataIndex: 'action',
+            scopedSlots: {customRender: 'action'},
+            align: "center",
+            width: 150,
+            fixed:'right'
+          }
         ],
         scrollY:465,
       }
@@ -116,7 +139,7 @@
         const boxHeight = +window.getComputedStyle(document.getElementById('DeviceList')).height.slice(0,-2)
         const tableHeadHeight = +window.getComputedStyle(document.querySelector('.ant-table-thead th')).height.slice(0,-2)
         this.scrollY = boxHeight - tableHeadHeight
-      }
+      },
     },
     mounted(){
       window.addEventListener('resize',this.handleWindowResize)

--
Gitblit v1.9.3