{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\dialog\\EipUrlTreeDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\dialog\\EipUrlTreeDialog.vue","mtime":1675071991725},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/xq-web-bpm/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { Message } from 'element-ui';\nimport req from \"@/request.js\";\nexport default {\n name: \"eip-url-tree-dialog\",\n props: {\n title: {\n type: String,\n required: true,\n default: \"选择分类\"\n },\n url: {\n type: String,\n required: true\n },\n requestMethod: {\n type: String,\n default: \"GET\"\n }\n },\n data: function data() {\n return {\n dialogVisible: false,\n //是否显示对话框\n treeData: [],\n //树数据\n defaultProps: {\n children: \"children\",\n label: \"name\"\n },\n nodes: {} //鼠标左击点击的树数据\n\n };\n },\n methods: {\n //显示对话框\n showDialog: function showDialog() {\n this.getData();\n },\n //加载树\n getData: function () {\n var _getData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var response;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n this.treeData = [];\n this.dialogVisible = true;\n _context.next = 4;\n return req.request({\n url: this.url,\n method: this.requestMethod\n });\n\n case 4:\n response = _context.sent;\n this.treeData = response.data;\n\n case 6:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function getData() {\n return _getData.apply(this, arguments);\n }\n\n return getData;\n }(),\n //确定对话框\n handleSave: function handleSave() {\n if (JSON.stringify(this.nodes) == \"{}\") {\n Message.warning(\"请选择数据\");\n return;\n }\n\n this.$emit(\"handle-save\", this.nodes);\n this.nodes = {};\n this.dialogVisible = false;\n },\n //关闭对话框\n handleClose: function handleClose() {\n this.nodes = {};\n this.dialogVisible = false;\n },\n //树鼠标左击事件\n handleNodeClick: function handleNodeClick(node) {\n this.nodes = node;\n }\n }\n};",null]}