fix 81819
This commit is contained in:
+18
-4
@@ -150,7 +150,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 获取表格数据
|
// 获取表格数据
|
||||||
replacePage () {
|
replacePage (arg) {
|
||||||
|
if (arg === 1) {
|
||||||
|
this.ipagination.current = 1
|
||||||
|
}
|
||||||
const query = {
|
const query = {
|
||||||
...this.queryParam,
|
...this.queryParam,
|
||||||
...this.filters,
|
...this.filters,
|
||||||
@@ -177,7 +180,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
searchQuery () {
|
searchQuery () {
|
||||||
this.replacePage()
|
this.replacePage(1)
|
||||||
},
|
},
|
||||||
searchReset () {
|
searchReset () {
|
||||||
// 如果禁用来源,就不重置来源
|
// 如果禁用来源,就不重置来源
|
||||||
@@ -186,7 +189,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.queryParam = {}
|
this.queryParam = {}
|
||||||
}
|
}
|
||||||
this.replacePage()
|
this.replacePage(1)
|
||||||
},
|
},
|
||||||
// 表格选择改变
|
// 表格选择改变
|
||||||
onSelectChange (value, row) {
|
onSelectChange (value, row) {
|
||||||
@@ -199,6 +202,17 @@ export default {
|
|||||||
this.replacePage()
|
this.replacePage()
|
||||||
},
|
},
|
||||||
handleCancel () {
|
handleCancel () {
|
||||||
|
this.ipagination = {
|
||||||
|
current: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
pageSizeOptions: ['10', '30', '50', '100', '150', '200'],
|
||||||
|
showTotal: (total, range) => {
|
||||||
|
return range[0] + '-' + range[1] + ' ' + this.$t('total') + total + this.$t('strip')
|
||||||
|
},
|
||||||
|
showQuickJumper: true,
|
||||||
|
showSizeChanger: true,
|
||||||
|
total: 0
|
||||||
|
}
|
||||||
this.visible = false
|
this.visible = false
|
||||||
},
|
},
|
||||||
handleSubmit () {
|
handleSubmit () {
|
||||||
@@ -212,7 +226,7 @@ export default {
|
|||||||
this.$emit('change', serialNumber.join(','))
|
this.$emit('change', serialNumber.join(','))
|
||||||
this.$emit('nameChange', serialNameArr.join(','))
|
this.$emit('nameChange', serialNameArr.join(','))
|
||||||
this.$emit('listChange', this.selectedRowList)
|
this.$emit('listChange', this.selectedRowList)
|
||||||
this.visible = false
|
this.handleCancel()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user