修改调取的限制
This commit is contained in:
@@ -63,14 +63,12 @@
|
||||
|
||||
export default {
|
||||
name: 'transferList',
|
||||
components: {
|
||||
|
||||
},
|
||||
props:['url'],
|
||||
components: {},
|
||||
props: ['url'],
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
queryParam:{},
|
||||
queryParam: {},
|
||||
confirmLoading: false,
|
||||
selectedRowKeys: [],
|
||||
columns: [
|
||||
@@ -97,14 +95,14 @@
|
||||
dataIndex: 'createByCn',
|
||||
align: 'center',
|
||||
ellipsis: true
|
||||
},
|
||||
}
|
||||
],
|
||||
dataList: [],
|
||||
content: [],
|
||||
loading: false,
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
total: 0,
|
||||
total: 0
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -154,6 +152,9 @@
|
||||
},
|
||||
onSelectChange(value) {
|
||||
this.selectedRowKeys = value
|
||||
if (this.selectedRowKeys.length > 1) {
|
||||
this.selectedRowKeys.shift()
|
||||
}
|
||||
},
|
||||
handleCancel() {
|
||||
this.visible = false
|
||||
@@ -162,7 +163,7 @@
|
||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||
this.confirmLoading = true
|
||||
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||
postAction(this.url.addModel, { ids: selectedRowKeys.join(','),projectLibraryId: this.$route.query.id }).then((res) => {
|
||||
postAction(this.url.addModel, { dummyInventoryBaseId: selectedRowKeys.join(',') }).then((res) => {
|
||||
if (res.success) {
|
||||
this.confirmLoading = false
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
|
||||
Reference in New Issue
Block a user