commit
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
<commons-io.version>2.4</commons-io.version>
|
<commons-io.version>2.4</commons-io.version>
|
||||||
<jsoup.veision>1.12.1</jsoup.veision>
|
<jsoup.veision>1.12.1</jsoup.veision>
|
||||||
<poitl.version>1.9.1</poitl.version>
|
<poitl.version>1.9.1</poitl.version>
|
||||||
<easypoi.version>4.5.0</easypoi.version>
|
<easypoi.version>4.2.0</easypoi.version>
|
||||||
<jetty.version>9.4.47.v20220610</jetty.version>
|
<jetty.version>9.4.47.v20220610</jetty.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import cn.afterturn.easypoi.excel.annotation.Excel;
|
|||||||
import cn.afterturn.easypoi.excel.entity.ExportParams;
|
import cn.afterturn.easypoi.excel.entity.ExportParams;
|
||||||
import cn.afterturn.easypoi.excel.entity.enmus.ExcelType;
|
import cn.afterturn.easypoi.excel.entity.enmus.ExcelType;
|
||||||
import cn.afterturn.easypoi.excel.entity.params.ExcelExportEntity;
|
import cn.afterturn.easypoi.excel.entity.params.ExcelExportEntity;
|
||||||
|
import cn.afterturn.easypoi.excel.export.ExcelExportService;
|
||||||
import cn.hutool.core.convert.Convert;
|
import cn.hutool.core.convert.Convert;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
@@ -731,7 +732,7 @@ public class WelfareSingleServiceImpl extends ViServiceImpl<WelfareProject> impl
|
|||||||
excelExportEntity.setHeight(20);
|
excelExportEntity.setHeight(20);
|
||||||
excelExportEntity.setWidth(20);
|
excelExportEntity.setWidth(20);
|
||||||
excelExportEntity.setType(2);
|
excelExportEntity.setType(2);
|
||||||
excelExportEntity.setExportImageType(2);
|
excelExportEntity.setExportImageType(1);
|
||||||
exportEntities.add(excelExportEntity);
|
exportEntities.add(excelExportEntity);
|
||||||
|
|
||||||
List<String> loginnames = list.stream().map(v -> v.getString("loginname")).distinct().collect(Collectors.toList());
|
List<String> loginnames = list.stream().map(v -> v.getString("loginname")).distinct().collect(Collectors.toList());
|
||||||
@@ -774,6 +775,13 @@ public class WelfareSingleServiceImpl extends ViServiceImpl<WelfareProject> impl
|
|||||||
Workbook workbook = ExcelExportUtil.exportExcel(exportParams, exportEntities, dataList);
|
Workbook workbook = ExcelExportUtil.exportExcel(exportParams, exportEntities, dataList);
|
||||||
workbook.write(outputStream);
|
workbook.write(outputStream);
|
||||||
|
|
||||||
|
/*Workbook workbook = new XSSFWorkbook();
|
||||||
|
ExcelExportService service = new ExcelExportService();
|
||||||
|
ExportParams exportParams = new ExportParams();
|
||||||
|
exportParams.setType(ExcelType.XSSF);
|
||||||
|
service.createSheetForMap(workbook, exportParams, exportEntities, dataList);
|
||||||
|
workbook.write(outputStream);*/
|
||||||
|
|
||||||
// List<NutMap> result = new ArrayList<>();
|
// List<NutMap> result = new ArrayList<>();
|
||||||
// //查询这个福利下有哪些礼品
|
// //查询这个福利下有哪些礼品
|
||||||
// WelfareProject welfareProject = dao().fetch(WelfareProject.class, projectId);
|
// WelfareProject welfareProject = dao().fetch(WelfareProject.class, projectId);
|
||||||
|
|||||||
@@ -81,8 +81,8 @@ module.exports = {
|
|||||||
clearInterval(signatureInterval)
|
clearInterval(signatureInterval)
|
||||||
const ts = new Date().getTime() + (Math.floor(Math.random() * (1000 - 1 + 1)) + 1).toString()
|
const ts = new Date().getTime() + (Math.floor(Math.random() * (1000 - 1 + 1)) + 1).toString()
|
||||||
console.log(ts)
|
console.log(ts)
|
||||||
// this.postAddress = location.protocol + '//' + location.host + '/signature?prefix=' + this.prefix + '&id=' + ts + "&is_value_base64=" + this.is_value_base64
|
this.postAddress = location.protocol + '//' + location.host + '/signature?prefix=' + this.prefix + '&id=' + ts + "&is_value_base64=" + this.is_value_base64
|
||||||
this.postAddress = 'https://zhgh.hmc.edu.cn/signature?prefix=' + this.prefix + '&id=' + ts + "&is_value_base64=" + this.is_value_base64
|
//this.postAddress = 'https://zhgh.hmc.edu.cn/signature?prefix=' + this.prefix + '&id=' + ts + "&is_value_base64=" + this.is_value_base64
|
||||||
|
|
||||||
this.showQrCode = true
|
this.showQrCode = true
|
||||||
|
|
||||||
|
|||||||
@@ -883,7 +883,7 @@ layout("/layouts/platform.html"){
|
|||||||
const sum = selectNums.reduce((accumulator, currentValue) => accumulator + currentValue, 0)
|
const sum = selectNums.reduce((accumulator, currentValue) => accumulator + currentValue, 0)
|
||||||
|
|
||||||
if (sum > multiSelectNum) {
|
if (sum > multiSelectNum) {
|
||||||
this.$set(this.welfareOptions[optionIndex], 'selectNum', value - 1)
|
this.$set(this.welfareOptions[optionIndex], 'selectNum', multiSelectNum)
|
||||||
this.$message('此次福利最多只能选择' + multiSelectNum + '份');
|
this.$message('此次福利最多只能选择' + multiSelectNum + '份');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user