🔖 Releasing / Version tags. v3.6

This commit is contained in:
lbw 2022-10-05 14:23:56 +08:00
parent c8fc4ebb33
commit 1cee70a6ca
3 changed files with 14 additions and 9 deletions

View File

@ -27,6 +27,7 @@ import java.io.StringWriter;
import java.nio.charset.StandardCharsets;
import java.util.*;
import java.util.zip.ZipEntry;
import java.util.zip.ZipException;
import java.util.zip.ZipOutputStream;
/**
@ -87,9 +88,13 @@ public interface GenCodeService {
map.get("moduleName").toString());
if (zip != null) {
zip.putNextEntry(new ZipEntry(Objects.requireNonNull(fileName)));
IoUtil.write(zip, StandardCharsets.UTF_8, false, sw.toString());
IoUtil.close(sw);
try {
zip.putNextEntry(new ZipEntry(Objects.requireNonNull(fileName)));
IoUtil.write(zip, StandardCharsets.UTF_8, false, sw.toString());
IoUtil.close(sw);
}
catch (ZipException zipException) {
}
zip.closeEntry();
}
resultMap.put(template, sw.toString());

View File

@ -18,7 +18,7 @@
<div class="execution">
<basic-container>
<avue-crud ref="crud"
v-model="page"
v-model:page="page"
:data="tableData"
:permission="permissionList"
:table-loading="tableLoading"
@ -60,9 +60,9 @@
...mapGetters(['permissions']),
permissionList() {
return {
addBtn: this.vaildData(this.permissions.${moduleName}_${pathName}_add, false),
delBtn: this.vaildData(this.permissions.${moduleName}_${pathName}_del, false),
editBtn: this.vaildData(this.permissions.${moduleName}_${pathName}_edit, false)
addBtn: this.validData(this.permissions.${moduleName}_${pathName}_add, false),
delBtn: this.validData(this.permissions.${moduleName}_${pathName}_del, false),
editBtn: this.validData(this.permissions.${moduleName}_${pathName}_edit, false)
};
}
},

View File

@ -28,7 +28,7 @@
header-align="center"
align="center"
label="操作">
<template slot-scope="scope">
<template #="scope">
<el-button v-if="permissions.${moduleName}_${pathName}_edit" type="text" size="small" icon="el-icon-edit" @click="addOrUpdateHandle(scope.row.${pk.lowerAttrName})">修改</el-button>
<el-button v-if="permissions.${moduleName}_${pathName}_del" type="text" size="small" icon="el-icon-delete" @click="deleteHandle(scope.row.${pk.lowerAttrName})">删除</el-button>
</template>
@ -56,7 +56,7 @@
<script>
import {fetchList, delObj} from '@/api/${pathName}'
import TableForm from './${pathName}-form'
import TableForm from './${pathName}-form.vue'
import {mapGetters} from 'vuex'
export default {
data () {