From eac1aba41e98b968938800aa41552949608c27c9 Mon Sep 17 00:00:00 2001
From: mors <3067699729@qq.com>
Date: Mon, 14 Nov 2022 23:10:26 +0800
Subject: [PATCH] 2022-11-14
---
.../views/zyclothsstyle/ZyClothsStyleList.vue | 6 ++--
.../zystylemodular/ZyStyleModularList.vue | 34 +++++++++++++------
.../modules/ZyStyleModularForm.vue | 14 +++++---
.../modules/ZyStyleModularModal.vue | 29 ++++++++++++++--
.../ZyStyleModularModal__Style#Drawer.vue | 4 +--
.../controller/ZyStyleModularController.java | 25 ++++++++++----
.../zyStyleModular/entity/ZyStyleModular.java | 2 ++
7 files changed, 86 insertions(+), 28 deletions(-)
diff --git a/ant-design-vue-jeecg/src/views/zyclothsstyle/ZyClothsStyleList.vue b/ant-design-vue-jeecg/src/views/zyclothsstyle/ZyClothsStyleList.vue
index 00df2f55..2bdaabae 100644
--- a/ant-design-vue-jeecg/src/views/zyclothsstyle/ZyClothsStyleList.vue
+++ b/ant-design-vue-jeecg/src/views/zyclothsstyle/ZyClothsStyleList.vue
@@ -225,6 +225,7 @@
importExcelUrl: "zyclothsstyle/zyClothsStyle/importExcel",
},
+ styleId:'',
dictOptions:{},
superFieldList:[],
}
@@ -279,9 +280,10 @@
//管理工序
jumpPage5(record) {
this.$router.push({
- path: '/process/ZyProcessList',
+ //path: '/process/ZyProcessList',
+ path: '/zystylemodular/ZyStyleModularList',
query: { // 路由携带参数
- 'styleId': record.id,
+ 'id': record.id,
}
});
},
diff --git a/ant-design-vue-jeecg/src/views/zystylemodular/ZyStyleModularList.vue b/ant-design-vue-jeecg/src/views/zystylemodular/ZyStyleModularList.vue
index 3f8ffb08..1eddb854 100644
--- a/ant-design-vue-jeecg/src/views/zystylemodular/ZyStyleModularList.vue
+++ b/ant-design-vue-jeecg/src/views/zystylemodular/ZyStyleModularList.vue
@@ -89,7 +89,7 @@
-
+
@@ -124,12 +124,12 @@
{
title:'款式id',
align:"center",
- dataIndex: 'styleId'
+ dataIndex: 'styleId_dictText'
},
{
title:'工序id',
align:"center",
- dataIndex: 'processId'
+ dataIndex: 'processId_dictText'
},
{
title: '操作',
@@ -140,14 +140,14 @@
scopedSlots: { customRender: 'action' }
}
],
- // url: {
- // list: "/zyStyleModular/zyStyleModular/list",
- // delete: "/zyStyleModular/zyStyleModular/delete",
- // deleteBatch: "/zyStyleModular/zyStyleModular/deleteBatch",
- // exportXlsUrl: "/zyStyleModular/zyStyleModular/exportXls",
- // importExcelUrl: "zyStyleModular/zyStyleModular/importExcel",
- //
- // },
+ url: {
+ list: "/zyStyleModular/zyStyleModular/list",
+ delete: "/zyStyleModular/zyStyleModular/delete",
+ deleteBatch: "/zyStyleModular/zyStyleModular/deleteBatch",
+ exportXlsUrl: "/zyStyleModular/zyStyleModular/exportXls",
+ importExcelUrl: "zyStyleModular/zyStyleModular/importExcel",
+
+ },
dictOptions:{},
superFieldList:[],
}
@@ -161,8 +161,20 @@
},
},
methods: {
+ loadParameter() {
+ if (this.loadRouteType === false) {
+ //this.id = this.$route.query.id;
+ this.styleId = this.$route.query.id;
+ console.log('********id对应的为款式style_id: '+this.styleId);
+ //console.log('******typeId此为类型typeId: '+this.typeId);
+ this.loadRouteType = true;
+ }
+ },
initDictConfig(){
},
+ valueChange(value){
+ if (value) this.loadData()
+ },
getSuperFieldList(){
let fieldList=[];
fieldList.push({type:'string',value:'styleId',text:'款式id',dictCode:''})
diff --git a/ant-design-vue-jeecg/src/views/zystylemodular/modules/ZyStyleModularForm.vue b/ant-design-vue-jeecg/src/views/zystylemodular/modules/ZyStyleModularForm.vue
index 9b0613e2..36e6fb0a 100644
--- a/ant-design-vue-jeecg/src/views/zystylemodular/modules/ZyStyleModularForm.vue
+++ b/ant-design-vue-jeecg/src/views/zystylemodular/modules/ZyStyleModularForm.vue
@@ -5,12 +5,16 @@
-
+
+
-
+
+
@@ -39,6 +43,7 @@
data () {
return {
model:{
+ styleId:'',
},
labelCol: {
xs: { span: 24 },
@@ -68,8 +73,9 @@
this.modelDefault = JSON.parse(JSON.stringify(this.model));
},
methods: {
- add () {
+ add1 (id) {
this.edit(this.modelDefault);
+ this.model.styleId = id;
},
edit (record) {
this.model = Object.assign({}, record);
@@ -101,7 +107,7 @@
that.confirmLoading = false;
})
}
-
+
})
},
}
diff --git a/ant-design-vue-jeecg/src/views/zystylemodular/modules/ZyStyleModularModal.vue b/ant-design-vue-jeecg/src/views/zystylemodular/modules/ZyStyleModularModal.vue
index 2a25cefc..5b8ff636 100644
--- a/ant-design-vue-jeecg/src/views/zystylemodular/modules/ZyStyleModularModal.vue
+++ b/ant-design-vue-jeecg/src/views/zystylemodular/modules/ZyStyleModularModal.vue
@@ -9,12 +9,15 @@
@cancel="handleCancel"
cancelText="关闭">
+