JSelectLine.vue
1004 Bytes
<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: 'startLandmark',
returnKeys: ['id', 'id'],
listUrl: '/taskLine/taskline/list',
queryParamCode: 'startLandmark',
queryParamText: '起始点',
columns: [
{ title: '生成线路起始点', dataIndex: 'startLandmark', align: 'center', width: '40%' },
{ title: '生成线路目标点', dataIndex: 'endLandmark', align: 'center', width: '40%' },
]
}
}
},
computed: {
configs() {
return Object.assign({ value: this.value }, this.settings, this.$attrs)
}
}
}
</script>
<style lang="less" scoped></style>