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 @@ 编辑 - - - 更多 - - - 详情 - - - - 删除 - - - - + 详情 + + + 删除 + @@ -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