|
@@ -20,6 +20,7 @@
|
|
|
width="1100"
|
|
width="1100"
|
|
|
ref="modal_search"
|
|
ref="modal_search"
|
|
|
v-model="showModal"
|
|
v-model="showModal"
|
|
|
|
|
+ :loading="loading"
|
|
|
@modalOk="ok"
|
|
@modalOk="ok"
|
|
|
@modalCancel="cancel"
|
|
@modalCancel="cancel"
|
|
|
@on-visible-change="onVisibleChange"
|
|
@on-visible-change="onVisibleChange"
|
|
@@ -205,6 +206,7 @@ export default {
|
|
|
const vm = window.vm
|
|
const vm = window.vm
|
|
|
let self = this
|
|
let self = this
|
|
|
return {
|
|
return {
|
|
|
|
|
+ loading:false,
|
|
|
tabIndex: 0,
|
|
tabIndex: 0,
|
|
|
tabsOptions: [
|
|
tabsOptions: [
|
|
|
{label: '选择列表', name: 'name1', index: 0},
|
|
{label: '选择列表', name: 'name1', index: 0},
|
|
@@ -715,6 +717,7 @@ export default {
|
|
|
if (!this.check()) {
|
|
if (!this.check()) {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
+ this.loading = true;
|
|
|
let param = {...this.$refs['table-select'].pageInfo}
|
|
let param = {...this.$refs['table-select'].pageInfo}
|
|
|
param.currentPage = this.pageInfo.currentPage?this.pageInfo.currentPage:1
|
|
param.currentPage = this.pageInfo.currentPage?this.pageInfo.currentPage:1
|
|
|
param.pageSize = this.pageInfo.pageSize
|
|
param.pageSize = this.pageInfo.pageSize
|
|
@@ -764,8 +767,10 @@ export default {
|
|
|
// this.$refs['table-select'].batchRows = this.batchRowsPage
|
|
// this.$refs['table-select'].batchRows = this.batchRowsPage
|
|
|
// }
|
|
// }
|
|
|
this.$refs['table-select'].pageInfo.total = res.data.total
|
|
this.$refs['table-select'].pageInfo.total = res.data.total
|
|
|
|
|
+ this.loading = false;
|
|
|
} else {
|
|
} else {
|
|
|
this.$Message.error(res.message)
|
|
this.$Message.error(res.message)
|
|
|
|
|
+ this.loading = false;
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|