| | |
| | | export default { |
| | | name: 'ZtTableWraper', |
| | | props: { |
| | | defaultNotQuery:{ |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | queryUrl: String, // 数据列表接口,API地址 |
| | | deleteUrl: String, // 删除接口,API地址, |
| | | exportUrl: String, // 导出接口,API地址 |
| | |
| | | } |
| | | } |
| | | |
| | | if (!this.lazy) { |
| | | if (!this.lazy && !this.defaultNotQuery) { |
| | | this._query() |
| | | } |
| | | }, |
| | |
| | | if (res.success) { |
| | | await this.$tip.success() |
| | | this._query() |
| | | this.$emit('refreshMethod') |
| | | } |
| | | } |
| | | }, |
| | |
| | | this.editLimit = '' |
| | | this.editPage = '' |
| | | } |
| | | console.log(this.dataList,'this.dataList') |
| | | |
| | | this.$emit('dataLoaded', this.dataList) |
| | | this.$emit('fatherMethod') |
| | | } |