{"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\\flow\\FlowMatrixSelector.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\flow\\FlowMatrixSelector.vue","mtime":1675071991803},{"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 \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.string.ends-with\";\nimport \"core-js/modules/es6.string.starts-with\";\nimport \"core-js/modules/es6.function.name\";\nimport _defineProperty from \"D:/jenkins/workspace/xq-web-bpm/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport req from \"@/request.js\";\nimport { Message } from \"element-ui\";\nimport utils from \"@/hotent-ui-util.js\";\nimport FlowVarSelector from \"@/components/flow/FlowVarSelector.vue\";\nexport default {\n name: \"matrix-selector\",\n components: {\n FlowVarSelector: FlowVarSelector\n },\n data: function data() {\n return {\n data: [],\n //单个节点按钮的配置信息\n dialogVisible: false,\n //是否显示设置节点按钮侧边栏\n curMatrix: {\n params: [],\n roleCode: \"\"\n },\n parentParam: {},\n curEditParam: {},\n pageResult: {\n page: 1,\n pageSize: 10,\n total: 0\n },\n result: null,\n resultDialogVisible: false,\n curRoleList: []\n };\n },\n methods: {\n showDilaog: function showDilaog(param) {\n var _this = this;\n\n if (param.calc) {\n if (param.calc.params && param.calc.params.constructor == String) {\n param.calc.params = JSON.parse(param.calc.params);\n\n if (param.calc.params && param.calc.params.constructor == String) {\n param.calc.params = JSON.parse(param.calc.params);\n }\n }\n\n if (param.calc.code) {\n var this_ = this;\n req.get(window.context.uc + \"/uc/matrix/v1/getByCode?code=\" + param.calc.code).then(function (response) {\n if (response.data) {\n this_.curMatrix = _objectSpread(_objectSpread({}, response.data), param.calc);\n _this.curRoleList = response.data.roleList;\n } else {\n _this.curMatrix = {\n params: [],\n roleCode: \"\"\n };\n }\n });\n }\n } else {\n this.curMatrix = {\n params: [],\n roleCode: \"\"\n };\n }\n\n this.parentParam = param;\n this.dialogVisible = true;\n },\n loadData: function loadData(param, cb) {\n var _this2 = this;\n\n this.$http.post(\"${uc}/uc/matrix/v1/listDetail\", param).then(function (resp) {\n var response = resp.data;\n _this2.data = response.rows;\n _this2.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }, function (error) {\n reject(error);\n }).finally(function () {\n return cb();\n });\n },\n setCurParam: function setCurParam(param) {\n this.curEditParam = param;\n },\n //点击列表某一条数据时触发\n queryRowClick: function queryRowClick(row, column, event) {\n if (this.curMatrix && this.curMatrix.code == row.code) {\n return;\n }\n\n this.curMatrix = {\n params: [],\n roleCode: \"\"\n };\n\n if (row) {\n this.curMatrix.code = row.code;\n this.curMatrix.name = row.name;\n var params = [];\n\n for (var i = 0; i < row.condList.length; i++) {\n var ele = _objectSpread({}, row.condList[i]);\n\n var p = {\n valueType: \"0\",\n value: \"\",\n paraType: \"java.lang.String\",\n name: ele.name,\n code: ele.code\n };\n params.push(p);\n }\n\n this.curMatrix.params = params;\n this.curRoleList = row.roleList;\n } else {\n this.curMatrix.code = \"\";\n this.curMatrix.name = \"\";\n this.curMatrix.params = null;\n }\n },\n //保存按钮\n handleClose: function handleClose(isTest) {\n var _this3 = this;\n\n utils.validateForm(this, \"matrixForm\").then(function () {\n if (!_this3.curMatrix.code) {\n _this3.$message.error(\"请选择【角色矩阵】\");\n\n return;\n }\n\n var script = _this3.curMatrix.name + \"(\";\n var desc = \"【\" + _this3.curMatrix.code + \"】参数:(\";\n var pass = true;\n\n for (var i = 0, p; p = _this3.curMatrix.params[i]; i++) {\n if (p.valueType == \"1\") {\n p.description = p.value;\n } else if (isTest) {\n _this3.$message.error(\"不支持使用变量测试\");\n\n pass = false;\n return;\n } //去掉用户输入的双引号\n\n\n if (p.valueType == '1' && p.value && p.value.startsWith('\"') && p.value.endsWith('\"')) {\n p.value = p.value.substring(1);\n p.value = p.value.substring(0, p.value.length - 1);\n p.description = p.value;\n }\n\n var str = p.description || p.value;\n desc += p.name + \":\" + str + \" \";\n script += p.value + \" \";\n\n if (i < _this3.curMatrix.params.length - 1) {\n script += \",\";\n desc += \",\";\n }\n }\n\n if (!pass) {\n return;\n }\n\n script += \")\";\n desc += \")\";\n desc += \",返回角色列【\";\n desc += _this3.curMatrix.roleName;\n desc += \"】\";\n var params = _this3.curMatrix.params;\n var data = {\n code: _this3.curMatrix.code,\n name: _this3.curMatrix.name,\n roleCode: _this3.curMatrix.roleCode,\n roleName: _this3.curMatrix.roleName,\n params: params,\n script: script,\n desc: desc,\n description: desc\n };\n\n _this3.$emit(\"confirm\", data);\n\n _this3.dialogVisible = false;\n }).catch(function (reason) {\n _this3.$message.warning(\"请正确填写表单信息\");\n });\n },\n //处理固定值string类型参数的格式\n dealValue: function dealValue(p) {\n if (p.paraType == \"java.lang.String\" && p.valueType == \"1\") {\n try {\n if (!p.value) {\n p.value = '\"\"';\n } else {\n p.value = '\"' + eval(p.value) + '\"';\n }\n } catch (e) {}\n } else if ((p.paraType == \"java.lang.Boolean\" || p.paraType == \"java.lang.boolean\") && p.valueType == \"1\") {\n if (!p.value) {\n p.value = \"false\";\n }\n }\n\n return p.value;\n },\n varTreeOnConfirm: function varTreeOnConfirm(node) {\n this.curEditParam.value = node.pathValue;\n this.curEditParam.description = node.desc;\n },\n handleSavePreview: function handleSavePreview(data) {\n Message.success(\"返回数据为:\" + JSON.stringify(data));\n },\n roleCodeChange: function roleCodeChange(val, data) {\n this.curMatrix.roleName = data.name;\n }\n },\n mounted: function mounted() {\n this.$validator = this.$root.$validator;\n }\n};",null]}