|
@@ -116,7 +116,7 @@
|
|
|
<!--插槽:table标题-->
|
|
|
<template #tableTitle>
|
|
|
<a-button type="primary" @click="handleAdd" preIcon="ant-design:plus-outlined" v-auth="'purCode:pur_inquiry_form:add'"> 新增(add)</a-button>
|
|
|
- <a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls" v-auth="'purCode:pur_inquiry_form:exportXls'"> 导出(export)</a-button>
|
|
|
+ <a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXlsNow" v-auth="'purCode:pur_inquiry_form:exportXls'"> 导出(export)</a-button>
|
|
|
<a-button type="primary" @click="submit" > 提交(submit)</a-button>
|
|
|
<a-button type="primary" @click="cancelSubmit" > 取消提交(cancelSubmit)</a-button>
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
|
@@ -392,6 +392,15 @@
|
|
|
}
|
|
|
return queryParamClone;
|
|
|
}
|
|
|
+ async function onExportXlsNow(){
|
|
|
+ if(selectedRowKeys.value.length!==1){
|
|
|
+ message.warning('请选择一条数据')
|
|
|
+ }else{
|
|
|
+ queryParam.id=selectedRowKeys.value[0]
|
|
|
+ await onExportXls();
|
|
|
+ queryParam.id=''
|
|
|
+ }
|
|
|
+ }
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|
|
|
.jeecg-basic-table-form-container {
|