|
@@ -258,6 +258,7 @@ export default {
|
|
|
},
|
|
|
async onLoad() {
|
|
|
console.log('onload')
|
|
|
+ // console.trace('11111')
|
|
|
if (this.page > 1) {
|
|
|
await sleep(1000)
|
|
|
}
|
|
@@ -372,7 +373,6 @@ export default {
|
|
|
*/
|
|
|
initData() {
|
|
|
this.noDataFlag = false
|
|
|
- this.finished = false
|
|
|
this.page = 1
|
|
|
this.count = 0
|
|
|
this.list = []
|
|
@@ -442,7 +442,7 @@ export default {
|
|
|
/**
|
|
|
* 重置
|
|
|
*/
|
|
|
- reset: debounce(function () {
|
|
|
+ reset() {
|
|
|
this.modalDataBak = {
|
|
|
system: '',
|
|
|
sbss: '全部',
|
|
@@ -456,20 +456,29 @@ export default {
|
|
|
this.showPopup = false
|
|
|
// 初始化数据,查询列表
|
|
|
this.initData()
|
|
|
- this.onLoad()
|
|
|
- }, 300),
|
|
|
+ if (this.finished) {
|
|
|
+ this.finished = false
|
|
|
+ } else {
|
|
|
+ this.onLoad()
|
|
|
+ }
|
|
|
+ },
|
|
|
/**
|
|
|
* 弹窗确认
|
|
|
*/
|
|
|
- confirm: debounce(function () {
|
|
|
- this.modalData = cloneDeep(this.modalDataBak)
|
|
|
+ confirm() {
|
|
|
+ console.log('confirm')
|
|
|
this.showPopup = false
|
|
|
+ this.modalData = cloneDeep(this.modalDataBak)
|
|
|
this.system_code = this.modalData.system
|
|
|
this.sbss_code = this.modalData.sbss
|
|
|
// 初始化数据,查询列表
|
|
|
this.initData()
|
|
|
- this.onLoad()
|
|
|
- }, 300),
|
|
|
+ if (this.finished) {
|
|
|
+ this.finished = false
|
|
|
+ } else {
|
|
|
+ this.onLoad()
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
}
|
|
|
</script>
|