| | |
| | | "es6" : true, |
| | | "postcss" : true, |
| | | "minified" : true, |
| | | "ignoreDevUnusedFiles": false, |
| | | "ignoreUploadUnusedFiles": false |
| | | "ignoreDevUnusedFiles": false, |
| | | "ignoreUploadUnusedFiles": false |
| | | }, |
| | | "usingComponents" : true, |
| | | "requiredPrivateInfos" : [ "getLocation" ], |
| | |
| | | // 点击当前项 |
| | | clickItem(i) { |
| | | this.list.forEach((item, index) => { |
| | | if (i === index) { |
| | | item.isActive = !item.isActive |
| | | } |
| | | item.isActive = i === index |
| | | }) |
| | | }, |
| | | // 搜索 |
| | |
| | | async onRefresh() { |
| | | if (this.isLoading) return; |
| | | this.isLoading = true; |
| | | await this.getLists() |
| | | await this.pageCounts() |
| | | this.isLoading = false; |
| | | this.finished = false; |
| | | this.loading = false; |
| | | this.refreshing = false; |
| | | this.getLists(); |
| | | // await this.pageCounts() |
| | | }, |
| | | // 重置 |
| | | reset() { |
| | |
| | | procedureIdList: this.listData.procedureIds ? this.listData.procedureIds : [], |
| | | startDate: this.listData.startDate, |
| | | endDate: this.listData.endDate, |
| | | statusList: this.listData.cateIds |
| | | // statusList: this.listData.cateIds |
| | | }).then(res => { |
| | | if (res.code === 200 && res.data) { |
| | | this.tagList[0].num = res.data.allNum.toString() |
| | |
| | | ] |
| | | }).then(res => { |
| | | this.loading = false |
| | | this.isLoading = false; |
| | | this.listData.total = res.data.total |
| | | if (this.refreshing) { |
| | | this.lists = [] |
| | |
| | | }).catch(err => { |
| | | this.loading = false |
| | | this.finished = true |
| | | this.isLoading = false; |
| | | if (this.refreshing) { |
| | | this.lists = [] |
| | | this.refreshing = false; |