| | |
| | | update1, |
| | | remove1, |
| | | } from "@/api/dispatch/dispatch"; |
| | | import { getDeptTree, getDeptLazyTree } from "@/api/system/dept"; |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | // var form = this.data[0]; |
| | | // delete form.id; |
| | | // for (var k = 0; k < 13; k++) { |
| | | form["deptId"] = form.tenantName; |
| | | form["tenantName"] = form.$tenantName; |
| | | // delete form.tenantName; |
| | | // console.log(form); |
| | | adddata(form).then( |
| | | (res) => { |
| | | this.onLoad(this.page); |
| | |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | rowClick(row) { |
| | | console.log(row); |
| | | // console.log(row); |
| | | window.localStorage.setItem("paqiandata", JSON.stringify(row)); |
| | | this.$router.push({ |
| | | path: "/dispatchChild", |
| | | // redirect: { name: "foo" }, |
| | | query: { row: row }, |
| | | // query: { row: row }, |
| | | query: { rowdispatch: "fromDispatch"}, |
| | | // params: { row: row.identificationnumber }, |
| | | }); |
| | | }, |
| | |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | window.localStorage.setItem("paqiandataS", JSON.stringify(this.data)); |
| | | console.log(this.data); |
| | | this.loading = false; |
| | | }); |