|
|
@ -77,6 +77,7 @@ |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import {mapState, mapActions} from 'vuex'; |
|
|
|
export default { |
|
|
|
data(){ |
|
|
|
return{ |
|
|
@ -113,10 +114,19 @@ export default { |
|
|
|
currentRow: null |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapState('technologyState',['count']), |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
count(currVal) { |
|
|
|
console.log(currVal); |
|
|
|
} |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
...mapActions('technologyState',['incrementData']), |
|
|
|
handleCurrentChange(val){ |
|
|
|
this.currentRow = val; |
|
|
|
console.log(val); |
|
|
|
this.incrementData(this.count++); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|