{"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\\HtCascader.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cssc-fvue\\src\\components\\control\\HtCascader.vue","mtime":1667804638712},{"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.function.name\";\nimport \"core-js/modules/es6.regexp.search\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport utils from \"@/utils.js\";\nexport default {\n name: \"ht-cascader\",\n props: [\"validate\", \"value\", \"name\", \"permission\", \"htfuncexp\", \"atter\", \"inputType\", \"htDatecalc\", \"bindIdentityjson\", \"placeholder\", \"tooltipplacement\", \"ganged\"],\n data: function data() {\n var _this = this;\n\n return {\n config: null,\n props: {\n value: _this.ganged.valueBind,\n label: _this.ganged.labelBind,\n lazy: true,\n lazyLoad: function lazyLoad(node, resolve) {\n var _promise = _this.search(node);\n\n _promise.then(function (nodes) {\n resolve(nodes);\n });\n }\n }\n };\n },\n computed: {\n inputVal: {\n get: function get() {\n if (this.value.constructor == String) {\n if (!this.value) {\n return \"\";\n }\n\n var cascaderModel = JSON.parse(this.value);\n\n if (!this.inputWriteable) {\n return cascaderModel.pathLabels.join(\"/\");\n }\n\n return cascaderModel.path;\n }\n\n return this.value.path;\n },\n set: function set(val) {\n var selectValArr = this.$refs[this.atter].getCheckedNodes(false);\n var result = {\n path: selectValArr[0].path,\n pathLabels: selectValArr[0].pathLabels\n };\n this.$emit(\"input\", JSON.stringify(result));\n }\n },\n inputWriteable: function inputWriteable() {\n return utils.getWriteable(this.permission);\n },\n inputValidate: function inputValidate() {\n var validateObj = this.$store.state.index.validate;\n return utils.addRequiredOrNot(this.permission, this.validate, validateObj, this);\n },\n inputName: function inputName() {\n var labeldesc = \"\";\n\n if (this.$slots && this.$slots.labeldesc && this.$slots.labeldesc[0].children && this.$slots.labeldesc[0].children[0].text) {\n labeldesc = this.$slots.labeldesc[0].children[0].text;\n return this.name ? this.name : utils.getName() + \"-\" + labeldesc;\n } else {\n return this.name ? this.name : utils.getName();\n }\n }\n },\n created: function created() {},\n methods: {\n search: function () {\n var _search = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(node) {\n var res, str, ganged, param, Base64, queryData, key, conditionfield, params, queryRes;\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 ;\n\n if (str.dsType == \"dataSource\") {\n Base64 = require(\"js-base64\").Base64;\n\n if (JSON.stringify(ganged.bind) === \"{}\") {\n str.queryData = Base64.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 = Base64.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]}