| | |
| | | this.fetchData() |
| | | this.getdata() |
| | | }, |
| | | beforeDestroy() { |
| | | this.$destroy() |
| | | }, |
| | | methods: { |
| | | fetchData() { |
| | | axios.get(this.baseURL + "/Web/GetOrganizations", { |
| | |
| | | this.openRowHide = true |
| | | }, |
| | | rowSetClose(val) { |
| | | |
| | | this.rowHideShow = false |
| | | this.openRowHide = val |
| | | this.$destroy() |
| | | }, |
| | | |
| | | organizationChange(val) { |
| | |
| | | //退出 |
| | | close() { |
| | | this.reset() |
| | | |
| | | console.log(1111) |
| | | console.log(this.$route.path) |
| | | if (!this.OperationType && !this.copyType) { |
| | | const obj = { path: "/sell/sellOut/sellOutBillEdit", name: "SellOutBillEdit" }; |
| | | this.$tab.closePage(obj); |
| | | console.log(this.$route.path) |
| | | const obj = { fullPath: this.$route.path, path: this.$route.path, name: this.$route.name, }; |
| | | this.$tab.closePage(obj).then(res => { |
| | | const latestView = res.visitedViews.slice(-1)[0] |
| | | if (latestView) { |
| | | this.$router.push(latestView.fullPath) |
| | | } else { |
| | | if (obj.name === 'Dashboard') { |
| | | this.$router.replace({ path: '/redirect' + obj.fullPath }) |
| | | } else { |
| | | this.$router.push('/') |
| | | } |
| | | } |
| | | }); |
| | | } else { |
| | | this.formShow = false |
| | | this.$emit('editClose', false) |