update 拆分已入库文本-请求方式修改
This commit is contained in:
@@ -150,34 +150,6 @@ export default {
|
|||||||
this.visible = false
|
this.visible = false
|
||||||
this.$emit('visible', false)
|
this.$emit('visible', false)
|
||||||
},
|
},
|
||||||
loadData (arg) {
|
|
||||||
if (!this.url.list) {
|
|
||||||
this.$message.error('请设置url.list属性!')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
// 加载数据 若传入参数1则加载第一页的内容
|
|
||||||
if (arg === 1) {
|
|
||||||
this.ipagination.current = 1
|
|
||||||
}
|
|
||||||
const params = this.getQueryParams()// 查询条件
|
|
||||||
this.loading = true
|
|
||||||
postAction(this.url.list, params).then((res) => {
|
|
||||||
if (res.success) {
|
|
||||||
// update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
|
|
||||||
this.dataSource = res.result.records || res.result
|
|
||||||
if (res.result.total) {
|
|
||||||
this.ipagination.total = res.result.total
|
|
||||||
} else {
|
|
||||||
this.ipagination.total = 0
|
|
||||||
}
|
|
||||||
// update-end---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
|
|
||||||
} else {
|
|
||||||
this.$message.warning(res.message)
|
|
||||||
}
|
|
||||||
}).finally(() => {
|
|
||||||
this.loading = false
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 取消
|
// 取消
|
||||||
cancelSplit () {
|
cancelSplit () {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
|
|||||||
Reference in New Issue
Block a user