| | |
| | | </template> |
| | | |
| | | <script> |
| | | import {getList, getDetail, add, update, remove} from "@/api/record/record"; |
| | | import {getList, getDetail, add,addnw, update, remove} from "@/api/record/record"; |
| | | import {mapGetters} from "vuex"; |
| | | |
| | | export default { |
| | |
| | | loading(); |
| | | window.console.log(error); |
| | | }); |
| | | addnw(row).then(() => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!" |
| | | }); |
| | | done(); |
| | | }, error => { |
| | | loading(); |
| | | window.console.log(error); |
| | | }); |
| | | }, |
| | | rowUpdate(row, index, done, loading) { |
| | | update(row).then(() => { |