| | |
| | | |
| | | import { |
| | | getPerformanceInfo, |
| | | add, |
| | | update, |
| | | page, |
| | | remove, |
| | | trackRecordadd, |
| | | trackRecordupdate, |
| | | trackRecordpage, |
| | | trackRecordremove, |
| | | getER, |
| | | } from "@/api/performance/performance"; |
| | | |
| | |
| | | var param = { |
| | | securityid: this.id, |
| | | }; |
| | | page(this.current, this.size, param).then((res2) => { |
| | | trackRecordpage(this.current, this.size, param).then((res2) => { |
| | | const data = res2.data.data; |
| | | this.page2.total = data.total; |
| | | this.data2 = data.records; |
| | |
| | | |
| | | rowSave2(form, done, loading) { |
| | | form.securityid = this.id; |
| | | add(form).then( |
| | | trackRecordadd(form).then( |
| | | (res) => { |
| | | this.getPerformancePageInfo(this.page2); |
| | | this.$message({ |
| | |
| | | }, |
| | | rowUpdate2(row, index, done, loading) { |
| | | row.securityid = this.id; |
| | | update(row).then( |
| | | trackRecordupdate(row).then( |
| | | () => { |
| | | this.getPerformancePageInfo(this.page2); |
| | | this.$message({ |
| | |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | return remove(row.id); |
| | | return trackRecordremove(row.id); |
| | | }) |
| | | .then(() => { |
| | | this.getPerformancePageInfo(this.page2); |