Merge remote-tracking branch 'origin/main'

This commit is contained in:
2026-02-14 23:17:55 +08:00

View File

@@ -33,6 +33,10 @@
<!-- icon="el-icon-download"-->
<!-- @click="handleExport">导 出-->
<!-- </el-button>-->
<el-button type="success" plain icon="el-icon-upload" @click="importBenefitPackage"
>批量导入福利包
</el-button>
</template>
<template #menu="{ row }">
@@ -51,6 +55,16 @@
ref="stateCrud"
/>
</el-dialog>
<el-dialog title="用户福利包导入" append-to-body v-model="excelBox" width="555px">
<avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter">
<template #excelTemplate>
<el-button type="primary" @click="handleTemplate">
点击下载<i class="el-icon-download el-icon--right"></i>
</el-button>
</template>
</avue-form>
</el-dialog>
</basic-container>
</template>
@@ -118,6 +132,29 @@ export default {
givePackFrom: {
id: '',
},
excelBox: false,
excelForm: {},
excelOption: {
submitBtn: false,
emptyBtn: false,
column: [
{
label: '上传用户福利包',
labelWidth: 200,
prop: 'excelFile',
type: 'upload',
drag: true,
loadText: '模板上传中,请稍等',
span: 24,
propsHttp: {
res: 'data',
},
tip: '请上传 .xls,.xlsx 标准格式文件',
action: '/market/benefit-package-template/import-benefit-package',
},
],
},
};
},
computed: {
@@ -314,6 +351,10 @@ export default {
}
);
},
importBenefitPackage() {
this.excelBox = true;
},
},
};
</script>