From da92e5bd7372d16cf5b8f5f25e02e074080472ad Mon Sep 17 00:00:00 2001
From: mors <3067699729@qq.com>
Date: Thu, 13 Oct 2022 18:15:20 +0800
Subject: [PATCH] =?UTF-8?q?2022-10-13-=E8=B5=B5=E7=8E=89=E7=91=9E-1.3.3-?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E4=BB=B6=E6=A0=B7=E6=9D=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/sample/ZyComponentSampleList.vue | 64 +++++++++++++++----
.../sample/modules/ZyComponentSampleForm.vue | 63 ++++++++++++++----
.../sample/entity/ZyComponentSample.java | 9 ++-
3 files changed, 109 insertions(+), 27 deletions(-)
diff --git a/ant-design-vue-jeecg/src/views/sample/ZyComponentSampleList.vue b/ant-design-vue-jeecg/src/views/sample/ZyComponentSampleList.vue
index f2123038..c5507bc0 100644
--- a/ant-design-vue-jeecg/src/views/sample/ZyComponentSampleList.vue
+++ b/ant-design-vue-jeecg/src/views/sample/ZyComponentSampleList.vue
@@ -4,6 +4,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
@@ -13,9 +33,9 @@
新增
导出
-
+
@@ -71,7 +91,14 @@
编辑
-
+ 详情
+
+
+ handleDelete(record.id)">
+ 删除
+
+
+
@@ -128,35 +155,45 @@
dataIndex: 'nums'
},
{
- title:'部件名称',
+ title:'款式名称',
align:"center",
- dataIndex: 'componentName'
+ dataIndex: 'styleName'
},
{
+ title:'部件名称',
+ align:"center",
+ dataIndex: 'componentName_dictText'
+ },
+ /*{
title:'描述',
align:"center",
dataIndex: 'descr'
- },
- {
+ },*/
+ /*{
title:'图片',
align:"center",
dataIndex: 'url',
scopedSlots: {customRender: 'imgSlot'}
- },
+ },*/
{
- title:'模块',
+ title:'模块样板',
align:"center",
dataIndex: 'moduleId_dictText'
},
- {
+ /*{
title:'用户',
align:"center",
dataIndex: 'userId'
- },
- {
+ },*/
+ /*{
title:'用户类型',
align:"center",
dataIndex: 'userType'
+ },*/
+ {
+ title: '创建时间',
+ align: "center",
+ dataIndex: 'createTime'
},
{
title: '操作',
@@ -199,6 +236,7 @@
fieldList.push({type:'string',value:'moduleId',text:'模块',dictCode:'zy_module_sample,module_name,id'})
fieldList.push({type:'string',value:'userId',text:'用户',dictCode:''})
fieldList.push({type:'string',value:'userType',text:'用户类型',dictCode:''})
+ fieldList.push({type:'string',value:'createTime',text:'创建时间',dictCode:''})
this.superFieldList = fieldList
}
}
diff --git a/ant-design-vue-jeecg/src/views/sample/modules/ZyComponentSampleForm.vue b/ant-design-vue-jeecg/src/views/sample/modules/ZyComponentSampleForm.vue
index e2e4f44d..8c6c6875 100644
--- a/ant-design-vue-jeecg/src/views/sample/modules/ZyComponentSampleForm.vue
+++ b/ant-design-vue-jeecg/src/views/sample/modules/ZyComponentSampleForm.vue
@@ -3,41 +3,61 @@
+
+
-
-
+
+
+
-
-
+
+
+
+
-
-
+
+
+
+
+
-
-
+
+
+
-
-
+
+
-
+
+
+
+
+
+
+
+
@@ -75,6 +95,25 @@
},
confirmLoading: false,
validatorRules: {
+ styleName: [
+ {required: true, message: '款式不能为空'},
+ ],
+ moduleId: [
+ {required: true, message: '不能为空'},
+ ],
+ componentName: [
+ {required: true, message: '不能为空'},
+ ],
+ nums: [
+ { required:true, message: '编号不能为空'},
+ { pattern: /^[0-9A-Za-z]{0,10}$/, message: '编号太长'},
+ ],
+ descr: [
+ {pattern: /^[0-9A-Za-z\u4e00-\u9fa5.,;,。;、!?]{0,200}$/, message: '文本长度过长'},
+ ],
+ userId:[
+ {required: true, message: '不能为空'},
+ ]
},
url: {
add: "/sample/zyComponentSample/add",
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/sample/entity/ZyComponentSample.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/sample/entity/ZyComponentSample.java
index ce710f4b..e309078b 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/sample/entity/ZyComponentSample.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/sample/entity/ZyComponentSample.java
@@ -39,9 +39,14 @@ public class ZyComponentSample implements Serializable {
@Excel(name = "编号", width = 15)
@ApiModelProperty(value = "编号")
private String nums;
+ /**款式名称*/
+ @Excel(name = "款式名称", width = 15)
+ @ApiModelProperty(value = "款式名称")
+ private String styleName;
/**部件名称*/
@Excel(name = "部件名称", width = 15)
@ApiModelProperty(value = "部件名称")
+ @Dict(dictTable = "zy_cloths_component", dicText = "parts_name", dicCode = "id")
private String componentName;
/**描述*/
@Excel(name = "描述", width = 15)
@@ -65,8 +70,8 @@ public class ZyComponentSample implements Serializable {
@ApiModelProperty(value = "用户类型")
private String userType;
/**创建时间*/
- @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
- @DateTimeFormat(pattern="yyyy-MM-dd")
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建时间")
private Date createTime;
}