diff --git a/ant-design-vue-jeecg/src/views/fieldx/FieldxList.vue b/ant-design-vue-jeecg/src/views/fieldx/FieldxList.vue
index 3100bb4..8d4a655 100644
--- a/ant-design-vue-jeecg/src/views/fieldx/FieldxList.vue
+++ b/ant-design-vue-jeecg/src/views/fieldx/FieldxList.vue
@@ -30,18 +30,8 @@
@pageChange="handlePageChange"
@valueChange="valueChange"
@added="added">
-
-
- 注意: 编辑后请点击保存按钮保存数据
-
-
-
+
+
保存
@@ -70,7 +60,7 @@
import {filterObj} from '@/utils/util'
import moment from "dayjs";
import { httpAction, getAction } from '@/api/manage'
-
+ import axios from 'axios';
export default {
name: 'FieldxList',
mixins: [JeecgListMixin, mixinDevice],
@@ -238,7 +228,7 @@
delete: "/fieldx/fieldx/delete",
deleteBatch: "/fieldx/fieldx/deleteBatch",
exportXlsUrl: "/fieldx/fieldx/exportXls",
- importExcelUrl: "fieldx/fieldx/importExcel",
+ importExcelUrl: "/fieldx/fieldx/importExcel",
getFieldByTableId:"/fieldx/fieldx/getFieldByTableId",
},
diff --git a/ant-design-vue-jeecg/src/views/modulex/ModulexList.vue b/ant-design-vue-jeecg/src/views/modulex/ModulexList.vue
index 79f62fd..b20bd0e 100644
--- a/ant-design-vue-jeecg/src/views/modulex/ModulexList.vue
+++ b/ant-design-vue-jeecg/src/views/modulex/ModulexList.vue
@@ -82,10 +82,13 @@
导入实体
- 导入字段
+
返回
导出综合表
+
+ 导入字段
+
@@ -197,7 +200,7 @@ import store from "@/store"
import { filterObj } from "@/utils/util"
import FieldxList from "@views/fieldx/FieldxList.vue"
import TablexList from "@views/tablex/TablexList.vue"
-
+import axios from 'axios';
export default {
name: 'ModulexList',
mixins: [JeecgListMixin, mixinDevice],
@@ -401,6 +404,8 @@ export default {
delete: "/modulex/modulex/delete",
deleteBatch: "/modulex/modulex/deleteBatch",
exportXlsUrl: "/modulex/modulex/exportXls",
+ importExcelUrlf: "fieldx/fieldx/importExcel",
+
importExcelUrl: "modulex/modulex/importExcel",
functionImportExcelUrl: "/functionx/functionx/importExcel",
tablexImportExcelUrl: "tablex/tablex/importExcel",
@@ -427,6 +432,9 @@ export default {
importExcelUrl: function () {
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
},
+ importExcelUrlf: function () {
+ return `${window._CONFIG['domianURL']}/${this.url.importExcelUrlf}`
+ },
// 用计算属性取出columns的dataIndex,作为多选框的选项数据
checkColumn: function () {
return this.columns.map(item => item.title)
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/fieldx/controller/FieldxController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/fieldx/controller/FieldxController.java
index d15a2a8..ef5344e 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/fieldx/controller/FieldxController.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/fieldx/controller/FieldxController.java
@@ -1,18 +1,26 @@
package org.jeecg.modules.fieldx.controller;
+import java.io.IOException;
+import java.io.InputStream;
+import java.lang.reflect.Field;
import java.util.*;
import java.util.stream.Collectors;
-import java.io.IOException;
-import java.io.UnsupportedEncodingException;
-import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import org.apache.ibatis.annotations.Param;
+import com.aliyuncs.utils.StringUtils;
+import org.apache.poi.hssf.usermodel.HSSFRow;
+import org.apache.poi.hssf.usermodel.HSSFSheet;
+import org.apache.poi.hssf.usermodel.HSSFWorkbook;
+import org.apache.poi.ss.usermodel.Row;
+import org.apache.poi.xssf.usermodel.XSSFRow;
+import org.apache.poi.xssf.usermodel.XSSFSheet;
+import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
-import org.jeecg.common.util.oConvertUtils;
+import org.jeecg.modules.fieldx.dto.ExcelInfo;
import org.jeecg.modules.fieldx.entity.Fieldx;
+import org.jeecg.modules.fieldx.entity.Fieldx222;
+import org.jeecg.modules.fieldx.service.IFieldx222Service;
import org.jeecg.modules.fieldx.service.IFieldxService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
@@ -22,18 +30,11 @@ import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.tablex.entity.Tablex;
import org.jeecg.modules.tablex.service.ITablexService;
-import org.jeecgframework.poi.excel.ExcelImportUtil;
-import org.jeecgframework.poi.excel.def.NormalExcelConstants;
-import org.jeecgframework.poi.excel.entity.ExportParams;
-import org.jeecgframework.poi.excel.entity.ImportParams;
-import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
-import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
-import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog;
@@ -49,251 +50,376 @@ import org.jeecg.common.aspect.annotation.AutoLog;
@RequestMapping("/fieldx/fieldx")
@Slf4j
public class FieldxController extends JeecgController {
- @Autowired
- private IFieldxService fieldxService;
- @Autowired
- private ITablexService tablexService;
-
- /**
- * 分页列表查询
- *
- * @param fieldx
- * @param pageNo
- * @param pageSize
- * @param req
- * @return
- */
- @AutoLog(value = "字段管理-分页列表查询")
- @ApiOperation(value="字段管理-分页列表查询", notes="字段管理-分页列表查询")
- @GetMapping(value = "/list")
- public Result> queryPageList(Fieldx fieldx,
- @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
- @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
- HttpServletRequest req) {
- QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(fieldx, req.getParameterMap());
- Page page = new Page(pageNo, pageSize);
- IPage pageList = fieldxService.page(page, queryWrapper);
- return Result.OK(pageList);
- }
+ @Autowired
+ private IFieldxService fieldxService;
+ @Autowired
+ private ITablexService tablexService;
+ @Autowired
+ private IFieldx222Service fieldx222Service;
/**
- * 通过实体查询字段
+ * 分页列表查询
*
+ * @param fieldx
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ @AutoLog(value = "字段管理-分页列表查询")
+ @ApiOperation(value = "字段管理-分页列表查询", notes = "字段管理-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(Fieldx fieldx,
+ @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
+ @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
+ HttpServletRequest req) {
+ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(fieldx, req.getParameterMap());
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = fieldxService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 通过实体查询字段
*/
@AutoLog(value = "字段管理-通过实体查询字段")
- @ApiOperation(value="字段管理-通过实体查询字段", notes="字段管理-通过实体查询字段")
+ @ApiOperation(value = "字段管理-通过实体查询字段", notes = "字段管理-通过实体查询字段")
@GetMapping(value = "/getFieldByTableId")
- public Result> getFieldByTableId(@RequestParam(name="tableId",required=true) String tableId) {
- if (tableId != null){
- List fieldxList = fieldxService.list(new QueryWrapper().eq("table_id", tableId));
- ArrayList hashMaps = new ArrayList<>();
- for (Fieldx fieldx:fieldxList){
- HashMap