{"remainingRequest":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\cssc-fvue\\src\\components\\control\\HtTree.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cssc-fvue\\src\\components\\control\\HtTree.vue","mtime":1667804638805},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\nimport \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/cssc-fvue/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport \"core-js/modules/es6.regexp.search\";\n//\n//\n//\n//\n//\nimport utils from \"@/utils.js\";\nimport { Message, Loading } from \"element-ui\";\nimport { Base64 } from \"js-base64\";\nimport i18n from \"@/lang/index.js\";\nimport req from \"@/request.js\";\nexport default {\n name: \"ht-cascader\",\n props: [\"name\", \"ganged\", \"script\"],\n data: function data() {\n var _this = this;\n\n return {\n config: null,\n props: {\n label: _this.ganged.labelBind,\n children: \"children\",\n isLeaf: \"leaf\"\n }\n };\n },\n computed: {},\n created: function created() {},\n methods: {\n loadNode: function loadNode(node, resolve) {\n var _promise = this.search(node);\n\n _promise.then(function (nodes) {\n resolve(nodes);\n });\n },\n handleNodeClick: function handleNodeClick(nodeData, node, treeComponent) {\n if (this.script) {\n var evil = function evil() {\n var Fn = Function(\"nodeData\", \"node\", \"treeComponent\", \"req\", \"data\", \"i18n\", \"Message\", \"Loading\", \"formVm\", htCustomScript); //一个变量指向Function,防止有些前端编译工具报错\n\n var result = Fn(nodeData, node, treeComponent, req, formVm.data, i18n, Message, Loading, formVm);\n return result;\n };\n\n var htCustomScript = Base64.decode(this.script);\n var formVm = utils.getOnlineFormInstance(this);\n evil();\n }\n },\n search: function () {\n var _search = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(node) {\n var res, str, ganged, param, _Base, queryData, key, conditionfield, params, queryRes;\n\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (this.config) {\n _context.next = 6;\n break;\n }\n\n _context.next = 3;\n return this.$store.dispatch(\"form/getByAliasCq\", this.ganged.alias);\n\n case 3:\n res = _context.sent;\n this.config = res;\n this.restfulUlr = this.config.url;\n\n case 6:\n str = this.config;\n ganged = this.ganged;\n\n if (node) {\n param = \"\";\n\n if (node && node.data) {\n param = node.data[this.ganged.valueBind];\n }\n\n if (str.dsType == \"dataSource\") {\n _Base = require(\"js-base64\").Base64;\n\n if (JSON.stringify(ganged.bind) === \"{}\") {\n str.queryData = _Base.encode(JSON.stringify([{\n key: ganged.valueBind,\n value: param\n }]));\n } else {\n queryData = [];\n\n for (key in ganged.bind) {\n queryData.push({\n key: key,\n value: param\n });\n }\n\n str.queryData = _Base.encode(JSON.stringify(queryData));\n }\n } else {\n conditionfield = JSON.parse(str.conditionfield);\n params = {};\n conditionfield.forEach(function (ele) {\n params[ele.field] = \"\";\n\n if (node && node.data) {\n params[ele.field] = node.data[ganged.bind[ele.field]];\n }\n });\n str.url = this.restfulUlr + utils.queryParams(params, true);\n }\n } else {\n str.queryData = \"\";\n }\n\n _context.next = 11;\n return this.$store.dispatch(\"form/selectQuery\", str);\n\n case 11:\n queryRes = _context.sent;\n return _context.abrupt(\"return\", queryRes.rows);\n\n case 13:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function search(_x) {\n return _search.apply(this, arguments);\n }\n\n return search;\n }()\n }\n};",null]}