1
0

index.vue 722 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <div class="page-container">
  3. <div class="content-container">
  4. <TreeChoice :dataList="deptList" nodeKey="id" nodeVal="label" @itemClick="menuClick" />
  5. <div class="main"></div>
  6. </div>
  7. </div>
  8. </template>
  9. <script>
  10. import { deptList } from '@/api/system/stockLocation.js'
  11. import TreeChoice from '@/components/treeChoice/index.vue'
  12. export default {
  13. name: 'stockLocation',
  14. components: {
  15. TreeChoice
  16. },
  17. data() {
  18. return {
  19. //部门数据
  20. deptList: []
  21. }
  22. },
  23. created() {
  24. this.init()
  25. },
  26. methods: {
  27. //页面初始化
  28. init() {
  29. deptList().then((res) => {
  30. if (res.code === 200) {
  31. this.deptList = res.data
  32. }
  33. })
  34. }
  35. }
  36. }
  37. </script>
  38. <style></style>