| | |
| | | } |
| | | }, |
| | | watch: { |
| | | initFutrue: { |
| | | handler(val) { |
| | | console.log("initFutrue", val); |
| | | 'initFutrue.para': { |
| | | handler(para) { |
| | | if (para && para.length > 0) { |
| | | if (!this.active) { |
| | | this.active = para[0].para_id || '' |
| | | this.$emit('paraId', { id: this.active, index: 0 }) |
| | | } |
| | | } |
| | | }, |
| | | deep: true, |
| | | immediate: true |
| | | } |
| | | }, |
| | | data() { |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | if (this.initFutrue.para.length > 0) { |
| | | if (this.initFutrue.para && this.initFutrue.para.length > 0) { |
| | | this.active = this.initFutrue.para[0].para_id || '' |
| | | this.$emit('paraId', { id: this.active, index: 0 }) |
| | | } |