{"remainingRequest":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/components/Category/info.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/components/Category/info.vue","mtime":1701742078542},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n\n// +----------------------------------------------------------------------\n// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]\n// +----------------------------------------------------------------------\n// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.\n// +----------------------------------------------------------------------\n// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权\n// +----------------------------------------------------------------------\n// | Author: CRMEB Team <admin@crmeb.com>\n// +----------------------------------------------------------------------\n\nimport * as categoryApi from '@/api/categoryApi.js';\nexport default {\n  props: {\n    id: {\n      type: Number,\n      required: true,\n    },\n  },\n  data() {\n    return {\n      defaultProps: {\n        children: 'children',\n        label: 'label',\n      },\n      ddd: [\n        {\n          label: '一级 1',\n          children: [\n            {\n              label: '二级 1-1',\n              children: [\n                {\n                  label: '三级 1-1-1',\n                },\n              ],\n            },\n          ],\n        },\n        {\n          label: '一级 2',\n          children: [\n            {\n              label: '二级 2-1',\n              children: [\n                {\n                  label: '三级 2-1-1',\n                },\n              ],\n            },\n            {\n              label: '二级 2-2',\n              children: [\n                {\n                  label: '三级 2-2-1',\n                },\n              ],\n            },\n          ],\n        },\n        {\n          label: '一级 3',\n          children: [\n            {\n              label: '二级 3-1',\n              children: [\n                {\n                  label: '三级 3-1-1',\n                },\n              ],\n            },\n            {\n              label: '二级 3-2',\n              children: [\n                {\n                  label: '三级 3-2-1',\n                },\n              ],\n            },\n          ],\n        },\n      ],\n      dataList: {\n        // 数据结果\n        page: 0,\n        limit: 0,\n        totalPage: 0,\n        total: 0,\n        list: [],\n      },\n    };\n  },\n  mounted() {\n    this.handlerGetTreeList(this.id);\n  },\n  methods: {\n    handlerGetTreeList(id) {\n      if (!id) {\n        this.$message.error('当前数据id不正确');\n        return;\n      }\n      categoryApi.treeCategroy({ pid: id }).then((data) => {\n        this.dataList = data;\n      });\n    },\n    handleNodeClick(data) {\n      console.log('data:', data);\n    },\n  },\n};\n",null]}