From bdc64848828c9fc1b8e68ac0a1f00a29f2fb37af Mon Sep 17 00:00:00 2001
From: chen <1216142052@qq.com>
Date: Fri, 2 Sep 2022 19:14:44 +0800
Subject: [PATCH] =?UTF-8?q?2022-09-22=201.1.1=20=E6=9C=8D=E8=A3=85?=
=?UTF-8?q?=E7=B1=BB=E5=9E=8B=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/process/ZyClothsTypeList.vue | 58 +++++++++++++------
.../process/modules/ZyClothsTypeForm.vue | 30 +++++++++-
.../controller/ZyClothsTypeController.java | 2 +-
.../demo/base/entity/ZyClothsType.java | 10 +++-
4 files changed, 78 insertions(+), 22 deletions(-)
diff --git a/ant-design-vue-jeecg/src/views/process/ZyClothsTypeList.vue b/ant-design-vue-jeecg/src/views/process/ZyClothsTypeList.vue
index f39ed2b3..ba3fe20b 100644
--- a/ant-design-vue-jeecg/src/views/process/ZyClothsTypeList.vue
+++ b/ant-design-vue-jeecg/src/views/process/ZyClothsTypeList.vue
@@ -4,6 +4,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
@@ -13,11 +34,11 @@
新增
导出
-
+
-
+
删除
@@ -69,21 +90,12 @@
编辑
-
-
- 更多
-
-
- 详情
-
-
- handleDelete(record.id)">
- 删除
-
-
-
-
+ 详情
+
+ handleDelete(record.id)">
+ 删除
+
@@ -121,6 +133,11 @@
return parseInt(index)+1;
}
},
+ {
+ title:'上级类型',
+ align:"center",
+ dataIndex: 'typeId_dictText'
+ },
{
title:'编号',
align:"center",
@@ -135,7 +152,12 @@
{
title:'企业',
align:"center",
- dataIndex: 'enterpriseId'
+ dataIndex: 'enterpriseId_dictText'
+ },
+ {
+ title:'创建时间',
+ align:"center",
+ dataIndex: 'createTime'
},
{
title: '操作',
diff --git a/ant-design-vue-jeecg/src/views/process/modules/ZyClothsTypeForm.vue b/ant-design-vue-jeecg/src/views/process/modules/ZyClothsTypeForm.vue
index 269444e4..0e4a62d6 100644
--- a/ant-design-vue-jeecg/src/views/process/modules/ZyClothsTypeForm.vue
+++ b/ant-design-vue-jeecg/src/views/process/modules/ZyClothsTypeForm.vue
@@ -3,6 +3,12 @@
+
+
+
+ {{ typeId }}
+
+
@@ -13,9 +19,15 @@
-
+
+
+
+
@@ -28,10 +40,11 @@
import { httpAction, getAction } from '@/api/manage'
import { validateDuplicateValue } from '@/utils/util'
-
+ import JTreeSelect from '@/components/jeecg/JTreeSelect'
export default {
name: 'ZyClothsTypeForm',
components: {
+ JTreeSelect
},
props: {
//表单禁用
@@ -45,6 +58,7 @@
return {
model:{
},
+ typeId:"",
labelCol: {
xs: { span: 24 },
sm: { span: 5 },
@@ -55,6 +69,15 @@
},
confirmLoading: false,
validatorRules: {
+ nums: [
+ { required: true, message: '请输入编号!'},
+ ],
+ typeName: [
+ { required: true, message: '请输入类型名称!'},
+ ],
+ enterpriseId: [
+ { required: true, message: '请输入企业!'},
+ ],
},
url: {
add: "/base/zyClothsType/add",
@@ -76,6 +99,9 @@
add () {
this.edit(this.modelDefault);
},
+ getTreeFieldValue(){
+ return this.form.getFieldValue("demoTree")
+ },
edit (record) {
this.model = Object.assign({}, record);
this.visible = true;
diff --git a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/controller/ZyClothsTypeController.java b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/controller/ZyClothsTypeController.java
index ba0d7362..8688b0da 100644
--- a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/controller/ZyClothsTypeController.java
+++ b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/controller/ZyClothsTypeController.java
@@ -153,7 +153,7 @@ public class ZyClothsTypeController extends JeecgController