{"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\\FlowSignRuleSet.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\flow\\FlowSignRuleSet.vue","mtime":1675071991850},{"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 _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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport flow from \"@/api/flow.js\";\nimport req from \"@/request.js\";\nimport { mapState, mapActions } from \"vuex\";\n\nvar FlowNodeUserCondition = function FlowNodeUserCondition() {\n return import(\"@/components/flow/FlowNodeUserCondition.vue\");\n};\n\nexport default {\n components: {\n FlowNodeUserCondition: FlowNodeUserCondition\n },\n data: function data() {\n return {\n data: [],\n signRuleSetPane: 'first',\n dialogVisible: false,\n curEditSetting: '',\n curEditRuleIndex: ''\n };\n },\n watch: {\n 'data.signRule.voteType': function dataSignRuleVoteType(n, o) {\n if (n == 'percent' && this.data.signRule.voteAmount > 100) {\n this.data.signRule.voteAmount = 100;\n }\n }\n },\n computed: mapState({\n curNode: function curNode(state) {\n return state.flow.defConfigData.curEditNode;\n }\n }),\n methods: {\n showDialog: function showDialog() {\n var this_ = this;\n this.signRuleSetPane = 'first';\n this.$store.dispatch(\"flow/getSignConfig\").then(function (resp) {\n var data = JSON.parse(JSON.stringify(resp));\n this_.data = data;\n this_.dialogVisible = true;\n });\n },\n handleClose: function handleClose() {\n var param = {\n defId: this.curNode.defId,\n nodeId: this.curNode.nodeId,\n privilegeList: JSON.stringify(this.data.privilegeList),\n signRule: JSON.stringify(this.data.signRule)\n };\n var this_ = this;\n req.post(window.context.bpmModel + '/flow/node/v1/signConfigSave', param).then(function (response) {\n var data = response.data;\n\n if (data.state) {\n this_.$message.success(\"会签节点配置成功!\");\n var obj = {};\n obj['signConfigs.' + this_.curNode.nodeId] = this_.data;\n this_.$store.dispatch(\"flow/updateConfig\", obj);\n this_.$emit('onConfirm');\n this_.dialogVisible = false;\n } else {\n this_.$message.fail(\"会签节点配置失败!\" + data.message);\n }\n });\n },\n //用户规则选择\n addUserCondition: function addUserCondition(setting, index) {\n this.curEditSetting = setting;\n this.curEditRuleIndex = index;\n var conf = {};\n\n if (index != undefined) {\n var ruleList = this.data.privilegeList[setting];\n var userRule = ruleList[index];\n conf.userRule = JSON.parse(JSON.stringify(userRule));\n }\n\n conf = _objectSpread(_objectSpread({}, conf), {\n nodeType: \"signTask\",\n nodeId: this.curNode.nodeId,\n defId: this.curNode.defId\n });\n this.$refs.flowNodeUserCondition.showDialog(conf);\n },\n nodeUserConditionConfirm: function nodeUserConditionConfirm(res) {\n if (!this.data.privilegeList[this.curEditSetting]) {\n this.data.privilegeList[this.curEditSetting] = [];\n }\n\n if (this.curEditRuleIndex || this.curEditRuleIndex == 0) {\n this.data.privilegeList[this.curEditSetting].splice(this.curEditRuleIndex, 1, res);\n } else {\n this.data.privilegeList[this.curEditSetting].push(res);\n }\n\n this.$forceUpdate();\n }\n }\n};",null]}