{"remainingRequest":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\yhxt-web\\src\\components\\selector\\CascaderCompany_.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\components\\selector\\CascaderCompany_.vue","mtime":1679681639240},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.to-string\";\nimport \"core-js/modules/es6.function.name\";\nimport _typeof from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/typeof\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nexport default {\n props: {\n value: {\n type: Array,\n default: function _default() {\n return [];\n }\n },\n placeholder: {\n type: String,\n default: '请选择'\n }\n },\n data: function data() {\n return {\n options: [],\n childrens: [],\n value_: []\n };\n },\n created: function created() {\n this.getOptions();\n },\n mounted: function mounted() {\n var _this = this;\n\n this.$nextTick(function () {\n var val = _this.value;\n if (!val && !(val instanceof Array)) return;\n _this.value_ = val[val.length - 1]; // val.splice(0, 2)\n });\n },\n methods: {\n getOptions: function getOptions() {\n var _this2 = this;\n\n this.$http.get('${yhxt}/Company/v1/getTree/company/' + '1258608622670319616').then(function (res) {\n _this2.options = _this2.deepClone(res.data);\n });\n },\n //深层拷贝\n deepClone: function deepClone(obj, id) {\n var objClone = Array.isArray(obj) ? [] : {};\n\n if (obj && _typeof(obj) === 'object') {\n for (var key in obj) {\n if (obj.hasOwnProperty(key)) {\n //判断ojb子元素是否为对象,如果是,递归复制\n if (obj[key] && _typeof(obj[key]) === 'object') {\n objClone[key] = this.deepClone(obj[key]);\n } else {\n objClone.label = obj.name;\n objClone.value = obj.id; //如果不是,简单复制\n\n objClone[key] = obj[key];\n }\n }\n }\n }\n\n return objClone;\n },\n getChildren: function getChildren(obj, id) {\n for (var i in obj) {\n if (obj[i].id == id) {\n this.childrens = obj[i].children || [];\n } else {\n this.getChildren(obj[i].children, id);\n }\n }\n },\n getAllChildren: function getAllChildren(obj) {\n var _this3 = this;\n\n if (Object.prototype.toString.call(obj) === '[object Array]') {\n obj.forEach(function (item) {\n if (item.children) {\n _this3.getAllChildren(item.children);\n\n _this3.childrens.push(item);\n } else {\n _this3.childrens.push(item);\n }\n });\n }\n },\n handleChange: function handleChange(val) {\n this.$emit('input', val);\n }\n }\n};",null]}