From 6bf5df5bcad4cb35ce5c458c9b196da1d70eed4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Tue, 30 Aug 2022 00:45:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=95=86=E5=93=81=E5=A4=9A?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E7=9A=84=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/material/MaterialAttributeList.vue | 51 +++++++++++++++++-- .../src/views/material/MaterialList.vue | 2 +- .../views/material/modules/MaterialModal.vue | 7 +-- 3 files changed, 52 insertions(+), 8 deletions(-) diff --git a/jshERP-web/src/views/material/MaterialAttributeList.vue b/jshERP-web/src/views/material/MaterialAttributeList.vue index 2dca29b1..8489f313 100644 --- a/jshERP-web/src/views/material/MaterialAttributeList.vue +++ b/jshERP-web/src/views/material/MaterialAttributeList.vue @@ -3,6 +3,37 @@ + +
+ + + + + + + + + + + 查询 + 重置 + + + + +
+ +
+ 新增 + + + 删除 + + + 批量操作 + + +
编辑 + + + 删除 +
@@ -48,7 +84,7 @@ offset: 1 }, // 查询条件 - queryParam: {attributeField:''}, + queryParam: {attributeName:''}, // 表头 columns: [ { @@ -61,8 +97,8 @@ return parseInt(index)+1; } }, - {title: '属性名', dataIndex: 'attributeName', width: 100}, - {title: '属性值(用竖线隔开)', dataIndex: 'attributeValue', width: 400}, + {title: '属性名', dataIndex: 'attributeName', width: 200}, + {title: '属性值(用竖线隔开)', dataIndex: 'attributeValue', width: 500}, { title: '操作', dataIndex: 'action', @@ -82,7 +118,14 @@ }, methods: { - + handleEdit: function (record) { + this.$refs.modalForm.edit(record); + this.$refs.modalForm.title = "编辑"; + this.$refs.modalForm.disableSubmit = false; + if(this.btnEnableList.indexOf(1)===-1) { + this.$refs.modalForm.isReadOnly = true + } + } } } diff --git a/jshERP-web/src/views/material/MaterialList.vue b/jshERP-web/src/views/material/MaterialList.vue index 429e5df9..c81a3e67 100644 --- a/jshERP-web/src/views/material/MaterialList.vue +++ b/jshERP-web/src/views/material/MaterialList.vue @@ -83,7 +83,7 @@
新增 - +