diff --git a/jshERP-web/src/views/material/MaterialAttributeList.vue b/jshERP-web/src/views/material/MaterialAttributeList.vue index 5f8deac4..950eac5a 100644 --- a/jshERP-web/src/views/material/MaterialAttributeList.vue +++ b/jshERP-web/src/views/material/MaterialAttributeList.vue @@ -47,6 +47,9 @@ 删除 + @@ -97,8 +100,10 @@ align:"center", scopedSlots: { customRender: 'action' }, }, - {title: '属性名', dataIndex: 'attributeName', width: 200}, - {title: '属性值(用竖线隔开)', dataIndex: 'attributeValue', width: 500} + {title: '属性名', dataIndex: 'attributeName', width: 150}, + {title: '属性值', dataIndex: 'attributeValue', width: 750, + scopedSlots: { customRender: 'customRenderAttributeValue' } + } ], url: { list: "/materialAttribute/list", @@ -111,6 +116,9 @@ }, methods: { + getTagArr(attributeValue) { + return attributeValue.split('|') + }, handleEdit: function (record) { this.$refs.modalForm.edit(record); this.$refs.modalForm.title = "编辑"; diff --git a/jshERP-web/src/views/material/modules/MaterialAttributeModal.vue b/jshERP-web/src/views/material/modules/MaterialAttributeModal.vue index 6b32cddb..30b3bfa2 100644 --- a/jshERP-web/src/views/material/modules/MaterialAttributeModal.vue +++ b/jshERP-web/src/views/material/modules/MaterialAttributeModal.vue @@ -14,7 +14,7 @@ @cancel="handleCancel" cancelText="取消" okText="保存" - style="top:100px;height: 50%;"> + style="top:100px;height: 60%;">