src/views/basicData/product/index.vue
@@ -81,6 +81,10 @@ plain> 删除 </el-button> <el-button @click="handleExportModels" style="margin-left: 10px"> 导出 </el-button> </div> <PIMTable rowKey="id" :column="tableColumn" @@ -573,6 +577,19 @@ proxy.$modal.msg("已取消"); }); }; // 导出当前产品的规格型号 const handleExportModels = () => { if (!currentId.value) { proxy.$modal.msgWarning("请先选择产品"); return; } proxy.download( "/basic/product/exportModel", { id: currentId.value }, "产品规格型号.xlsx" ); }; const debounce = (fn, delay = 300) => { let timer; return (...args) => {