wenhongquan 3 жил өмнө
parent
commit
bed5471f0b

+ 9 - 0
src/views/task/list/index.vue

@@ -143,6 +143,9 @@
                   <el-button text size="small" @click.stop="">删除</el-button>
                 </template>
               </el-popconfirm>
+               <el-button text size="small" @click.stop="exportexcel(scope.row)"
+                >导出工单
+              </el-button>
             </template>
           </el-table-column>
         </el-table>
@@ -367,6 +370,12 @@ const deltask = (row) => {
     getList();
   });
 };
+const exportexcel = (row) => {
+  proxy.download("system/task/export", {
+    ...{ "taskId": row.taskId},
+  }, `${row.taskCode}工单.xlsx`);
+
+}
 
 onMounted(() => {});
 </script>