From 1ca3f1a1b91ddd07e1d69e046c7a4b62fa6634c4 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期二, 04 十一月 2025 14:43:56 +0800
Subject: [PATCH] 修改开发环境服务端地址

---
 src/views/mdc/first-workpiece-process.vue |   53 +++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 39 insertions(+), 14 deletions(-)

diff --git a/src/views/mdc/first-workpiece-process.vue b/src/views/mdc/first-workpiece-process.vue
index cfb10fc..4339266 100644
--- a/src/views/mdc/first-workpiece-process.vue
+++ b/src/views/mdc/first-workpiece-process.vue
@@ -2,22 +2,22 @@
  * @Author: lzhe lzhe@example.com
  * @Date: 2024-04-26 09:36:18
  * @LastEditors: lzhe lzhe@example.com
- * @LastEditTime: 2024-11-22 18:45:06
+ * @LastEditTime: 2024-12-20 14:52:10
  * @FilePath: /smart-web/src/views/mdc/status-record.vue
  * @Description: 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 -->
 <template>
     <el-main style="height: 100%;" class="timeAnalysis">
         <el-card body-style="height: 100%;padding: 0;" style="margin-bottom: 12px;">
-            <el-table :data="tableData" border @selection-change="handleSelectionChange">
-                <el-table-column prop="test" label="绋嬪簭鍚嶇О"></el-table-column>
-                <el-table-column prop="test" label="寮�鏈烘椂闂�"></el-table-column>
-                <el-table-column prop="test" label="缁撴潫鏃堕棿"></el-table-column>
-                <el-table-column prop="test" label="鎸佺画鏃堕暱"></el-table-column>
-                <el-table-column prop="test" label="鐘舵��"></el-table-column>
+            <el-table :data="tableData" border>
+                <el-table-column prop="progName" label="绋嬪簭鍚嶇О"></el-table-column>
+                <el-table-column prop="startTime" label="寮�濮嬫椂闂�"></el-table-column>
+                <el-table-column prop="endTime" label="缁撴潫鏃堕棿"></el-table-column>
+                <el-table-column prop="duration" label="鎸佺画鏃堕暱"></el-table-column>
+                <el-table-column prop="deviceStatus" label="鐘舵��"></el-table-column>
             </el-table>
             <el-footer>
-                <el-button type="primary">杈撳嚭</el-button>
+                <el-button type="primary" @click="exportBtn">杈撳嚭</el-button>
             </el-footer>
         </el-card>
     </el-main>
@@ -40,16 +40,41 @@
         }
     },
     created() {
-        for(var i=0;i<10;i++) {
-            this.tableData.push({test: 1})
-        }
+        
     },
     mounted() {
+        this.getTableData();
     },
     methods: {
-        handleSelectionChange() {
-
-        }
+        exportBtn() {
+            this.$HTTP.get(`/api/workinghour/working-process-export?id=${this.$route.query.id}`).then(res => {
+                if (res.code == 200) {
+                    this.$TOOL.downFile(res.data.link,res.data.originalName);
+                }
+            })
+        },
+        getTableData() {
+            this.$HTTP.get(`/api/workinghour/working-process`, {id: this.$route.query.id}).then(res => {
+                if (res.code === 200) {
+                    this.getprocess(res);
+                }
+            })
+        },
+        getprocess(res) {  //棰滆壊鐘舵��
+            this.$HTTP.get(`/api/smis/global_wcs/list?code=&name=`).then(resp => {
+                if (resp.code == 200) {
+                    res.data.forEach(item=> {
+                        resp.data.forEach(item1=> {
+                            if(item.deviceStatus == item1.code) {
+                                item.deviceStatus = item1.name;
+                            }
+                        })
+                    })
+                    this.tableData = res.data;
+                    console.log(JSON.stringify(res.data),111)
+                }
+            })
+        },
     }
 }
 </script>

--
Gitblit v1.9.3