修改调取的限制

This commit is contained in:
qq787203167
2022-04-27 20:14:33 +08:00
parent e76f21d526
commit 3a6cc08d1e
@@ -63,14 +63,12 @@
export default { export default {
name: 'transferList', name: 'transferList',
components: { components: {},
props: ['url'],
},
props:['url'],
data() { data() {
return { return {
visible: false, visible: false,
queryParam:{}, queryParam: {},
confirmLoading: false, confirmLoading: false,
selectedRowKeys: [], selectedRowKeys: [],
columns: [ columns: [
@@ -97,14 +95,14 @@
dataIndex: 'createByCn', dataIndex: 'createByCn',
align: 'center', align: 'center',
ellipsis: true ellipsis: true
}, }
], ],
dataList: [], dataList: [],
content: [], content: [],
loading: false, loading: false,
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
total: 0, total: 0
} }
}, },
mounted() { mounted() {
@@ -154,6 +152,9 @@
}, },
onSelectChange(value) { onSelectChange(value) {
this.selectedRowKeys = value this.selectedRowKeys = value
if (this.selectedRowKeys.length > 1) {
this.selectedRowKeys.shift()
}
}, },
handleCancel() { handleCancel() {
this.visible = false this.visible = false
@@ -162,7 +163,7 @@
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.confirmLoading = true this.confirmLoading = true
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys)) 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) { if (res.success) {
this.confirmLoading = false this.confirmLoading = false
this.$message.success(this.$t('OperationSuccessful')) this.$message.success(this.$t('OperationSuccessful'))