JSelectStation.vue
1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<template>
<j-select-biz-component :width="1000" v-bind="configs" v-on="$listeners"/>
</template>
<script>
import JSelectBizComponent from './JSelectBizComponent'
export default {
name: 'JSelectPosition',
components: { JSelectBizComponent },
props: ['value'],
data() {
return {
settings: {
name: '工位信息',
displayKey: 'code',
returnKeys: ['code', 'code'],
listUrl: '/station/info/list',
queryParamCode: 'code',
queryParamText: '编号',
columns: [
{ title: '编号', dataIndex: 'code', align: 'center', width: '20%' },
{ title: '行数', dataIndex: 'row', align: 'center', width: '20%' },
{ title: '列数', dataIndex: 'col', align: 'center', width: '20%' },
{ title: '层数', dataIndex: 'layer', align: 'center', width: '20%' },
{ title: '状态', dataIndex: 'status', align: 'center', width: '20%' },
]
}
}
},
computed: {
configs() {
return Object.assign({ value: this.value }, this.settings, this.$attrs)
}
}
}
</script>
<style lang="less" scoped></style>