{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\home\\oftenFlow.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\home\\oftenFlow.vue","mtime":1667327529575},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\babel.config.js","mtime":1667327525434},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { mapState } from \"vuex\";\nimport OftenFlowList from \"@/components/home/oftenFlowList.vue\";\nimport utils from \"@/utils.js\";\nexport default {\n components: {\n OftenFlowList: OftenFlowList\n },\n data: function data() {\n return {\n dialogVisible: false,\n flowSearchKey: \"\"\n };\n },\n computed: mapState({\n completeInit: function completeInit(state) {\n return state.oftenFlow.completeInit;\n },\n oftenFlows: function oftenFlows(state) {\n return state.oftenFlow.oftenFlowList;\n },\n copyOftenFlows: function copyOftenFlows(state) {\n return state.oftenFlow.copyOftenFlowList;\n },\n hasAuthFlowList: function hasAuthFlowList(state) {\n return state.oftenFlow.hasAuthFlowList;\n }\n }),\n created: function created() {\n this.$store.dispatch(\"oftenFlow/getMyOftenFlowdw\");\n },\n methods: {\n //常用流程列表\n oftenFlowDialog: function oftenFlowDialog() {\n this.$refs.oftenFlowList.oftenFlowListOpen();\n },\n //启动前先检查是否有启动权限\n checkRightsBefore: function checkRightsBefore(row) {\n var _this = this;\n\n //超级管理员账号不做判断\n if (this.$store.state.login.currentUser && this.$store.state.login.currentUser.account != \"admin\") {\n this.$store.dispatch(\"oftenFlow/flowHasStartRights\", row.defKey).then(function (resp) {\n if (resp.value) {\n _this.startFlow(row);\n } else {\n _this.$message({\n type: \"warning\",\n message: \"无启动权限,请联系管理员\"\n });\n }\n });\n } else {\n this.startFlow(row);\n }\n },\n //启动流程\n startFlow: function startFlow(row) {\n if (!row.leaders || row.leaders.length == 0) {\n this.$router.push(\"/agentStart/\" + row.id + \"/0\");\n this.dialogVisible = false;\n } else {\n var html = '';\n var this_ = this;\n this.$alert(html, '选择发起人', {\n dangerouslyUseHTMLString: true,\n beforeClose: function beforeClose(action, instance, done) {\n if (action == 'confirm') {\n var se = document.getElementById('approvalLeaderSelect');\n\n if (se.selectedIndex == 0) {\n this.$message.warning(\"请选择一个发起人\");\n } else {\n instance.close();\n this_.$router.push(\"/agentStart/\" + row.id + \"/\" + se[se.selectedIndex].value);\n this.dialogVisible = false;\n }\n } else {\n instance.close();\n }\n }\n });\n }\n },\n handleConfirm: function handleConfirm() {\n this.$confirm(\"确认关闭?\").then(function (_) {\n done();\n }).catch(function (_) {});\n },\n showOftenFlowManage: function showOftenFlowManage() {\n this.dialogVisible = true;\n this.flowSearchKey = \"\";\n this.$store.dispatch(\"oftenFlow/initOftenFlowManageData\", {\n init: true\n });\n },\n signOftenFlow: function signOftenFlow(tag) {\n if (tag.typeId && this.copyOftenFlows.length > 21) {\n this.$message.warning(\"最多可添加20个常用流程\");\n return;\n }\n\n this.$store.dispatch(\"oftenFlow/signOftenFlow\", tag);\n },\n saveOftenFlow: function saveOftenFlow() {\n var _this2 = this;\n\n if (!this.copyOftenFlows || this.copyOftenFlows.length == 0) {\n this.$confirm(\"未添加常用流程,保存后将重置为系统默认常用流程,是否确认保存?\").then(function (_) {\n _this2.doSave(1);\n });\n } else {\n this.doSave();\n }\n },\n doSave: function doSave(flag) {\n var _this3 = this;\n\n this.$store.dispatch(\"oftenFlow/saveOftenFlow\", this.copyOftenFlows).then(function (data) {\n if (data.state) {\n _this3.dialogVisible = false;\n utils.reload();\n } else {\n _this3.$message.error(data.message || \"保存失败\");\n }\n });\n },\n //查询流程\n searchFlow: function searchFlow() {\n var queryFilter = {};\n\n if (this.flowSearchKey) {\n queryFilter = {\n querys: [{\n property: \"DEF_KEY_\",\n value: this.flowSearchKey,\n group: \"main\",\n operation: \"LIKE\",\n relation: \"OR\"\n }, {\n property: \"name_\",\n value: this.flowSearchKey,\n group: \"main\",\n operation: \"LIKE\",\n relation: \"OR\"\n }]\n };\n }\n\n this.$store.dispatch(\"oftenFlow/initOftenFlowManageData\", {\n init: false,\n filter: queryFilter\n });\n },\n //回车查询\n searchEnterFun: function searchEnterFun(e) {\n var keyCode = window.event ? e.keyCode : e.which;\n\n if (keyCode == 13) {\n this.searchFlow();\n }\n }\n }\n};",null]}