Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
8a951039
Commit
8a951039
authored
Jul 22, 2021
by
季圣华
Browse files
增加多属性设置模块
parent
c72972c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/material/MaterialAttributeList.vue
0 → 100644
View file @
8a951039
<
template
>
<a-row
:gutter=
"24"
>
<a-col
:md=
"24"
>
<a-card
:bordered=
"false"
>
<!-- table区域-begin -->
<div>
<a-table
ref=
"table"
size=
"middle"
bordered
rowKey=
"id"
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:loading=
"loading"
@
change=
"handleTableChange"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
</span>
</a-table>
</div>
<!-- table区域-end -->
</a-card>
</a-col>
</a-row>
</
template
>
<
script
>
import
{
JeecgListMixin
}
from
'
@/mixins/JeecgListMixin
'
import
JDate
from
'
@/components/jeecg/JDate
'
export
default
{
name
:
"
MaterialAttributeList
"
,
mixins
:[
JeecgListMixin
],
components
:
{
JDate
},
data
()
{
return
{
labelCol
:
{
span
:
5
},
wrapperCol
:
{
span
:
18
,
offset
:
1
},
// 查询条件
queryParam
:
{
attributeField
:
''
},
// 表头
columns
:
[
{
title
:
'
#
'
,
dataIndex
:
''
,
key
:
'
rowIndex
'
,
width
:
40
,
align
:
"
center
"
,
customRender
:
function
(
t
,
r
,
index
)
{
return
parseInt
(
index
)
+
1
;
}
},
{
title
:
'
属性名
'
,
dataIndex
:
'
attributeName
'
,
width
:
100
},
{
title
:
'
属性值
'
,
dataIndex
:
'
attributeValue
'
,
width
:
400
},
{
title
:
'
操作
'
,
dataIndex
:
'
action
'
,
width
:
100
,
align
:
"
center
"
,
scopedSlots
:
{
customRender
:
'
action
'
},
}
],
url
:
{
list
:
"
/materialAttribute/list
"
,
delete
:
"
/materialAttribute/delete
"
,
deleteBatch
:
"
/materialAttribute/deleteBatch
"
}
}
},
computed
:
{
},
methods
:
{
}
}
</
script
>
<
style
scoped
>
@import
'~@assets/less/common.less'
</
style
>
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment