diff --git a/docker-compose.yml b/docker-compose.yml index 92de87e..c247f5e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -89,6 +89,7 @@ services: - "25000:5000" environment: - FLASK_ENV=production + - PYTHONUNBUFFERED=1 # 禁用 Python 输出缓冲 volumes: - ./crawler_files:/app/downloaded_files diff --git a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/controller/CnasTestController.java b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/controller/CnasTestController.java new file mode 100644 index 0000000..5ff3121 --- /dev/null +++ b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/controller/CnasTestController.java @@ -0,0 +1,178 @@ +package org.jeecg.modules.database.controller; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URLDecoder; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import org.jeecg.common.api.vo.Result; +import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.common.util.oConvertUtils; +import org.jeecg.modules.database.entity.CnasTest; +import org.jeecg.modules.database.service.ICnasTestService; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import lombok.extern.slf4j.Slf4j; + +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.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.jeecg.common.aspect.annotation.AutoLog; +import org.apache.shiro.authz.annotation.RequiresPermissions; + + /** + * @Description: cnas测试参数列表 + * @Author: jeecg-boot + * @Date: 2024-10-23 + * @Version: V1.0 + */ +@Tag(name="cnas测试参数列表") +@RestController +@RequestMapping("/database/cnasTest") +@Slf4j +public class CnasTestController extends JeecgController { + @Autowired + private ICnasTestService cnasTestService; + + /** + * 分页列表查询 + * + * @param cnasTest + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "cnas测试参数列表-分页列表查询") + @Operation(summary="cnas测试参数列表-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(CnasTest cnasTest, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(cnasTest, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = cnasTestService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param cnasTest + * @return + */ + @AutoLog(value = "cnas测试参数列表-添加") + @Operation(summary="cnas测试参数列表-添加") + @RequiresPermissions("database:cnas_test:add") + @PostMapping(value = "/add") + public Result add(@RequestBody CnasTest cnasTest) { + cnasTestService.save(cnasTest); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param cnasTest + * @return + */ + @AutoLog(value = "cnas测试参数列表-编辑") + @Operation(summary="cnas测试参数列表-编辑") + @RequiresPermissions("database:cnas_test:edit") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody CnasTest cnasTest) { + cnasTestService.updateById(cnasTest); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "cnas测试参数列表-通过id删除") + @Operation(summary="cnas测试参数列表-通过id删除") + @RequiresPermissions("database:cnas_test:delete") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + cnasTestService.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "cnas测试参数列表-批量删除") + @Operation(summary="cnas测试参数列表-批量删除") + @RequiresPermissions("database:cnas_test:deleteBatch") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.cnasTestService.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + //@AutoLog(value = "cnas测试参数列表-通过id查询") + @Operation(summary="cnas测试参数列表-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + CnasTest cnasTest = cnasTestService.getById(id); + if(cnasTest==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(cnasTest); + } + + /** + * 导出excel + * + * @param request + * @param cnasTest + */ + @RequiresPermissions("database:cnas_test:exportXls") + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, CnasTest cnasTest) { + return super.exportXls(request, cnasTest, CnasTest.class, "cnas测试参数列表"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequiresPermissions("database:cnas_test:importExcel") + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, CnasTest.class); + } + +} diff --git a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/entity/CnasTest.java b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/entity/CnasTest.java new file mode 100644 index 0000000..990999e --- /dev/null +++ b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/entity/CnasTest.java @@ -0,0 +1,75 @@ +package org.jeecg.modules.database.entity; + +import java.io.Serializable; +import java.io.UnsupportedEncodingException; +import java.util.Date; +import java.math.BigDecimal; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableLogic; +import lombok.Data; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.springframework.format.annotation.DateTimeFormat; +import org.jeecgframework.poi.excel.annotation.Excel; +import org.jeecg.common.aspect.annotation.Dict; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * @Description: cnas测试参数列表 + * @Author: jeecg-boot + * @Date: 2024-10-23 + * @Version: V1.0 + */ +@Data +@TableName("cnas_test") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@Schema(description="cnas测试参数列表") +public class CnasTest implements Serializable { + private static final long serialVersionUID = 1L; + + /**主键*/ + @TableId(type = IdType.ASSIGN_ID) + @Schema(description = "主键") + private String id; + /**创建人*/ + @Schema(description = "创建人") + private String createBy; + /**创建日期*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @Schema(description = "创建日期") + private Date createTime; + /**更新人*/ + @Schema(description = "更新人") + private String updateBy; + /**更新日期*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @Schema(description = "更新日期") + private Date updateTime; + /**所属部门*/ + @Schema(description = "所属部门") + private String sysOrgCode; + /**检测对象*/ + @Excel(name = "检测对象", width = 15) + @Schema(description = "检测对象") + private String testTarget; + /**参数*/ + @Excel(name = "参数", width = 15) + @Schema(description = "参数") + private String parameter; + /**检测标准*/ + @Excel(name = "检测标准", width = 15) + @Schema(description = "检测标准") + private String testStandard; + /**创建时间*/ + @Excel(name = "创建时间", width = 15, format = "yyyy-MM-dd") + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") + @DateTimeFormat(pattern="yyyy-MM-dd") + @Schema(description = "创建时间") + private Date time; +} diff --git a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/entity/ExperimentReport.java b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/entity/ExperimentReport.java index a7b98b2..3a180c5 100644 --- a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/entity/ExperimentReport.java +++ b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/entity/ExperimentReport.java @@ -20,7 +20,7 @@ import lombok.experimental.Accessors; /** * @Description: 试验报告 * @Author: jeecg-boot - * @Date: 2024-08-30 + * @Date: 2024-10-23 * @Version: V1.0 */ @Data @@ -58,4 +58,28 @@ public class ExperimentReport implements Serializable { @Excel(name = "试验ID", width = 15) @Schema(description = "试验ID") private String experimentId; + /**样品信息*/ + @Excel(name = "样品信息", width = 15) + @Schema(description = "样品信息") + private String sampleInfo; + /**偏置原理图*/ + @Excel(name = "偏置原理图", width = 15) + @Schema(description = "偏置原理图") + private String imgUrls; + /**偏置原理说明*/ + @Excel(name = "偏置原理说明", width = 15) + @Schema(description = "偏置原理说明") + private String description; + /**审核员*/ + @Excel(name = "审核员", width = 15) + @Schema(description = "审核员") + private String auditor; + /**校对员*/ + @Excel(name = "校对员", width = 15) + @Schema(description = "校对员") + private String proofreader; + /**确认员*/ + @Excel(name = "确认员", width = 15) + @Schema(description = "确认员") + private String confirmer; } diff --git a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/mapper/CnasTestMapper.java b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/mapper/CnasTestMapper.java new file mode 100644 index 0000000..eb1ae2d --- /dev/null +++ b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/mapper/CnasTestMapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.database.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.database.entity.CnasTest; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: cnas测试参数列表 + * @Author: jeecg-boot + * @Date: 2024-10-23 + * @Version: V1.0 + */ +public interface CnasTestMapper extends BaseMapper { + +} diff --git a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/mapper/xml/CnasTestMapper.xml b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/mapper/xml/CnasTestMapper.xml new file mode 100644 index 0000000..4738cd1 --- /dev/null +++ b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/mapper/xml/CnasTestMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/service/ICnasTestService.java b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/service/ICnasTestService.java new file mode 100644 index 0000000..2d702da --- /dev/null +++ b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/service/ICnasTestService.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.database.service; + +import org.jeecg.modules.database.entity.CnasTest; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: cnas测试参数列表 + * @Author: jeecg-boot + * @Date: 2024-10-23 + * @Version: V1.0 + */ +public interface ICnasTestService extends IService { + +} diff --git a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/service/impl/CnasTestServiceImpl.java b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/service/impl/CnasTestServiceImpl.java new file mode 100644 index 0000000..50bde12 --- /dev/null +++ b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/service/impl/CnasTestServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.database.service.impl; + +import org.jeecg.modules.database.entity.CnasTest; +import org.jeecg.modules.database.mapper.CnasTestMapper; +import org.jeecg.modules.database.service.ICnasTestService; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: cnas测试参数列表 + * @Author: jeecg-boot + * @Date: 2024-10-23 + * @Version: V1.0 + */ +@Service +public class CnasTestServiceImpl extends ServiceImpl implements ICnasTestService { + +} diff --git a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/uniapp/CnasTestForm.vue b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/uniapp/CnasTestForm.vue new file mode 100644 index 0000000..9fcea34 --- /dev/null +++ b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/uniapp/CnasTestForm.vue @@ -0,0 +1,96 @@ + + + diff --git a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/uniapp/CnasTestList.vue b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/uniapp/CnasTestList.vue new file mode 100644 index 0000000..384cc23 --- /dev/null +++ b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/uniapp/CnasTestList.vue @@ -0,0 +1,44 @@ + + + + diff --git a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/vue3/CnasTest.api.ts b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/vue3/CnasTest.api.ts new file mode 100644 index 0000000..6f5b14f --- /dev/null +++ b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/vue3/CnasTest.api.ts @@ -0,0 +1,64 @@ +import {defHttp} from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/database/cnasTest/list', + save='/database/cnasTest/add', + edit='/database/cnasTest/edit', + deleteOne = '/database/cnasTest/delete', + deleteBatch = '/database/cnasTest/deleteBatch', + importExcel = '/database/cnasTest/importExcel', + exportXls = '/database/cnasTest/exportXls', +} +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; +/** + * 列表接口 + * @param params + */ +export const list = (params) => + defHttp.get({url: Api.list, params}); + +/** + * 删除单个 + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} +/** + * 批量删除 + * @param params + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} +/** + * 保存或者更新 + * @param params + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({url: url, params}); +} diff --git a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/vue3/CnasTest.data.ts b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/vue3/CnasTest.data.ts new file mode 100644 index 0000000..2e0140a --- /dev/null +++ b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/vue3/CnasTest.data.ts @@ -0,0 +1,100 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '检测对象', + align:"center", + dataIndex: 'testTarget' + }, + { + title: '参数', + align:"center", + dataIndex: 'parameter' + }, + { + title: '检测标准', + align:"center", + dataIndex: 'testStandard' + }, + { + title: '创建时间', + align:"center", + dataIndex: 'time', + customRender:({text}) =>{ + text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text); + return text; + }, + }, +]; +//查询数据 +export const searchFormSchema: FormSchema[] = [ + { + label: "检测对象", + field: 'testTarget', + component: 'Input', + //colProps: {span: 6}, + }, + { + label: "创建时间", + field: 'time', + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD' + }, + //colProps: {span: 6}, + }, +]; +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '检测对象', + field: 'testTarget', + component: 'Input', + }, + { + label: '参数', + field: 'parameter', + component: 'Input', + }, + { + label: '检测标准', + field: 'testStandard', + component: 'Input', + }, + { + label: '创建时间', + field: 'time', + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD' + }, + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + testTarget: {title: '检测对象',order: 0,view: 'text', type: 'string',}, + parameter: {title: '参数',order: 1,view: 'text', type: 'string',}, + testStandard: {title: '检测标准',order: 2,view: 'text', type: 'string',}, + time: {title: '创建时间',order: 3,view: 'date', type: 'string',}, +}; + +/** +* 流程表单调用这个方法获取formSchema +* @param param +*/ +export function getBpmFormSchema(_formData): FormSchema[]{ + // 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema + return formSchema; +} \ No newline at end of file diff --git a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/vue3/CnasTestList.vue b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/vue3/CnasTestList.vue new file mode 100644 index 0000000..a2d0f01 --- /dev/null +++ b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/vue3/CnasTestList.vue @@ -0,0 +1,188 @@ + + + + + \ No newline at end of file diff --git a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/vue3/V20241023_1__menu_insert_CnasTest.sql b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/vue3/V20241023_1__menu_insert_CnasTest.sql new file mode 100644 index 0000000..44daaeb --- /dev/null +++ b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/vue3/V20241023_1__menu_insert_CnasTest.sql @@ -0,0 +1,26 @@ +-- 注意:该页面对应的前台目录为views/database文件夹下 +-- 如果你想更改到其他目录,请修改sql中component字段对应的值 + + +INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external) +VALUES ('2024102302416200540', NULL, 'cnas测试参数列表', '/database/cnasTestList', 'database/CnasTestList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2024-10-23 14:41:54', NULL, NULL, 0); + +-- 权限控制sql +-- 新增 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024102302416200541', '2024102302416200540', '添加cnas测试参数列表', NULL, NULL, 0, NULL, NULL, 2, 'database:cnas_test:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-10-23 14:41:54', NULL, NULL, 0, 0, '1', 0); +-- 编辑 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024102302416200542', '2024102302416200540', '编辑cnas测试参数列表', NULL, NULL, 0, NULL, NULL, 2, 'database:cnas_test:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-10-23 14:41:54', NULL, NULL, 0, 0, '1', 0); +-- 删除 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024102302416200543', '2024102302416200540', '删除cnas测试参数列表', NULL, NULL, 0, NULL, NULL, 2, 'database:cnas_test:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-10-23 14:41:54', NULL, NULL, 0, 0, '1', 0); +-- 批量删除 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024102302416200544', '2024102302416200540', '批量删除cnas测试参数列表', NULL, NULL, 0, NULL, NULL, 2, 'database:cnas_test:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-10-23 14:41:54', NULL, NULL, 0, 0, '1', 0); +-- 导出excel +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024102302416210545', '2024102302416200540', '导出excel_cnas测试参数列表', NULL, NULL, 0, NULL, NULL, 2, 'database:cnas_test:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-10-23 14:41:54', NULL, NULL, 0, 0, '1', 0); +-- 导入excel +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024102302416210546', '2024102302416200540', '导入excel_cnas测试参数列表', NULL, NULL, 0, NULL, NULL, 2, 'database:cnas_test:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-10-23 14:41:54', NULL, NULL, 0, 0, '1', 0); \ No newline at end of file diff --git a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/vue3/components/CnasTestForm.vue b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/vue3/components/CnasTestForm.vue new file mode 100644 index 0000000..a9273f4 --- /dev/null +++ b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/vue3/components/CnasTestForm.vue @@ -0,0 +1,70 @@ + + + \ No newline at end of file diff --git a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/vue3/components/CnasTestModal.vue b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/vue3/components/CnasTestModal.vue new file mode 100644 index 0000000..f5b1649 --- /dev/null +++ b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/vue3/components/CnasTestModal.vue @@ -0,0 +1,68 @@ + + + + + \ No newline at end of file