修改调取的限制

This commit is contained in:
qq787203167
2022-04-27 20:14:33 +08:00
parent e76f21d526
commit 3a6cc08d1e
@@ -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'))