wenhongquan 3 yıl önce
ebeveyn
işleme
bed5471f0b
1 değiştirilmiş dosya ile 9 ekleme ve 0 silme
  1. 9 0
      src/views/task/list/index.vue

+ 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>