12345678910111213141516171819202122232425262728293031323334353637383940 |
- <template>
- <div class="page-container">
- <div class="content-container">
- <TreeChoice :dataList="deptList" nodeKey="id" nodeVal="label" @itemClick="menuClick" />
- <div class="main"></div>
- </div>
- </div>
- </template>
- <script>
- import { deptList } from '@/api/system/stockLocation.js'
- import TreeChoice from '@/components/treeChoice/index.vue'
- export default {
- name: 'stockLocation',
- components: {
- TreeChoice
- },
- data() {
- return {
- //部门数据
- deptList: []
- }
- },
- created() {
- this.init()
- },
- methods: {
- //页面初始化
- init() {
- deptList().then((res) => {
- if (res.code === 200) {
- this.deptList = res.data
- }
- })
- }
- }
- }
- </script>
- <style></style>
|