| | |
| | | effect: '', |
| | | hit: false, |
| | | dataForm: { |
| | | pageCode: this.$route.query.pageCode, |
| | | id: '', |
| | | pid: '', |
| | | srcId: '', |
| | |
| | | }, |
| | | mounted() { |
| | | this.$refs.modelTree.getProductList() |
| | | this.pageCode = this.$route.query.pageCode |
| | | this.dataForm.pageCode = this.$route.query.pageCode |
| | | console.log(this.pageCode, 'this.pageCode this.pageCode') |
| | | }, |
| | | methods: { |
| | | add() { |
| | | this.$refs.SelectTyModel.$refs.dialog.init(null, { |
| | | type: this.dataForm.productType + 1, |
| | | id: this.dataForm.srcId, |
| | | pageCode: this.pageCode |
| | | pageCode: 'expect' |
| | | }) |
| | | console.log(this.dataForm.srcId, 'add') |
| | | }, |
| | |
| | | }, |
| | | onDefault(defaultId) { |
| | | this.dataForm.srcId = defaultId |
| | | this.dataForm.productType = 2 |
| | | this.dataForm.productType = '1' |
| | | this.activeName = 'first' |
| | | this.$refs.tableObj.query() |
| | | this.$nextTick(() => { |
| | | this.$refs.tableObj.query() |
| | | }) |
| | | }, |
| | | dataLoaded(data) { |
| | | this.dataList = data |