From 831cfa4c439c6d073d706a82d2a439f8b1818498 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期二, 18 十一月 2025 16:59:50 +0800
Subject: [PATCH] Merge branch 'new' of http://www.beijingsoft.cn:9090/r/smart-web into new
---
src/views/mdc/first-workpiece-detail.vue | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/src/views/mdc/first-workpiece-detail.vue b/src/views/mdc/first-workpiece-detail.vue
index e6c7a69..b61d80c 100644
--- a/src/views/mdc/first-workpiece-detail.vue
+++ b/src/views/mdc/first-workpiece-detail.vue
@@ -2,7 +2,7 @@
* @Author: lzhe lzhe@example.com
* @Date: 2024-04-26 09:36:18
* @LastEditors: lzhe lzhe@example.com
- * @LastEditTime: 2024-11-25 14:32:50
+ * @LastEditTime: 2024-12-20 15:06:05
* @FilePath: /smart-web/src/views/mdc/status-record.vue
* @Description: 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
@@ -36,14 +36,12 @@
<process-charts :index="index" :tableData="tableData"></process-charts>
<div class="modelBtn">
<el-button type="primary" @click="goFirstWorkProcess(item,index)">杩囩▼鍒嗘瀽</el-button>
+ <el-button type="primary" @click="exportBtn(item,index)">杈撳嚭</el-button>
</div>
</el-card>
</div>
</div>
</div>
- <el-footer>
- <el-button type="primary">杈撳嚭</el-button>
- </el-footer>
</el-card>
</el-main>
</template>
@@ -69,8 +67,8 @@
{title:'闆朵欢鍙�',width: '80px'},
{title:'宸ュ簭鍙�',width: '80px'},
{title:'鐗堟',width: '60px'},
- {title:'鏈哄簥',width: '100px'},
- {title:'寮�鏈烘椂闂�',width: '145px'},
+ {title:'宸ヤ綅',width: '100px'},
+ {title:'寮�濮嬫椂闂�',width: '145px'},
{title:'缁撴潫鏃堕棿',width: '145px'},
{title:'鍗犳満鏃堕棿',width: '100px'},
{title:'瑁呭す璋冭瘯鏃堕棿',width: '100px'},
@@ -94,6 +92,14 @@
})
},
methods: {
+ exportBtn(item,index) {
+ var id = this.tableData[index - 1].id;
+ this.$HTTP.get(`/api/workinghour/export?id=${id}`).then(res => {
+ if (res.code == 200) {
+ this.$TOOL.downFile(res.data.link,res.data.originalName);
+ }
+ })
+ },
convertSeconds(seconds) { //杞崲鏃堕棿
// 瀹氫箟鏃堕棿鍗曚綅杞崲鍏崇郴
const daysInSeconds = 24 * 60 * 60;
--
Gitblit v1.9.3