{"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\\SecretaryEdit.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\flow\\SecretaryEdit.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 \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.split\";\nimport _defineProperty from \"D:/jenkins/workspace/xq-web-bpm/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.regexp.constructor\";\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//\nimport flow from \"@/api/flow.js\";\n\nvar eipUserSelector = function eipUserSelector() {\n return import(\"@/components/selector/EipUserSelector.vue\");\n};\n\nvar eipFlowDialog = function eipFlowDialog() {\n return import(\"@/components/dialog/EipFlowDialog.vue\");\n};\n\nvar eipSysTypeDialog = function eipSysTypeDialog() {\n return import(\"@/components/dialog/EipSysTypeDialog.vue\");\n};\n\nexport default {\n components: {\n eipUserSelector: eipUserSelector,\n eipFlowDialog: eipFlowDialog,\n eipSysTypeDialog: eipSysTypeDialog\n },\n props: {\n editData: {}\n },\n updated: function updated() {\n if (navigator.appName == 'Microsoft Internet Explorer' || navigator.appName == 'Netscape' && new RegExp(\"Trident/.*rv:([0-9]{1,}[\\.0-9]{0,})\").exec(navigator.userAgent) != null) {\n this.isIe = true;\n }\n },\n data: function data() {\n return {\n initData: {\n enabled: \"1\",\n shareType: \"1\",\n shareRight: \"1,2\"\n },\n entityList: [],\n flowList: [],\n catList: [],\n data: {},\n dialogVisible: false,\n isIe: false\n };\n },\n methods: {\n beforeClose: function beforeClose() {\n this.dialogVisible = false;\n this.entityList = [];\n this.catList = [];\n this.flowList = [];\n },\n handleOpen: function handleOpen() {\n var _this2 = this;\n\n this.dialogVisible = true;\n this.$nextTick(function () {\n if (!_this2.editData.leaderName) {\n _this2.data = _objectSpread({}, _this2.initData);\n } else {\n _this2.data = _this2.editData;\n\n _this2.initList();\n }\n });\n },\n initList: function initList() {\n var entityKey = this.data.shareKey.split(\",\");\n var entityName = this.data.shareName.split(\",\");\n this.flowList = [];\n this.catList = [];\n\n if (this.data.shareType === \"1\") {\n for (var i = 0; i < entityKey.length; i++) {\n this.flowList.push({\n key: entityKey[i],\n name: entityName[i]\n });\n }\n } else {\n for (var _i = 0; _i < entityKey.length; _i++) {\n this.catList.push({\n key: entityKey[_i],\n name: entityName[_i]\n });\n }\n }\n },\n close: function close() {\n this.$set(this, \"flowList\", []);\n this.$set(this, \"catList\", []);\n this.dialogVisible = false;\n this.isIe = false;\n },\n save: function save() {\n if (!this.data.leaderId) {\n this.$message({\n type: \"warning\",\n message: '请选择领导'\n });\n return;\n }\n\n if (!this.data.secretaryId) {\n this.$message({\n type: \"warning\",\n message: '请选择秘书'\n });\n return;\n }\n\n if (this.data.secretaryId.indexOf(',') !== 0) {\n this.data.secretaryId = \",\" + this.data.secretaryId + \",\";\n }\n\n if (!this.data.shareRight) {\n this.$message({\n type: \"warning\",\n message: '请选择共享的权限'\n });\n return;\n }\n\n if (this.data.secretaryId.indexOf(\",\" + this.data.leaderId + \",\") > -1) {\n this.$message({\n type: \"warning\",\n message: '领导的秘书不能包含领导'\n });\n return;\n }\n\n if (this.data.shareType === \"1\") {\n this.entityList = this.flowList;\n } else {\n this.entityList = this.catList;\n }\n\n if (!this.entityList || this.entityList.length === 0) {\n this.$message({\n type: \"warning\",\n message: '请选择要共享的流程' + (this.data.shareType === '1' ? '定义' : '分类')\n });\n return;\n }\n\n this.data.shareKey = '';\n this.data.shareName = '';\n\n for (var i = 0; i < this.entityList.length; i++) {\n if (i === 0) {\n this.data.shareName += this.entityList[i].name;\n this.data.shareKey += this.entityList[i].key;\n } else {\n this.data.shareName += ',' + this.entityList[i].name;\n this.data.shareKey += ',' + this.entityList[i].key;\n }\n }\n\n var _this = this;\n\n flow.saveSecretary(this.data).then(function (resp) {\n if (!resp.state) {\n _this.$message.error(resp.message);\n } else {\n _this.$message({\n type: \"success\",\n message: resp.message\n });\n\n _this.beforeClose();\n\n _this.close();\n\n _this.$emit(\"after-save\", {});\n }\n });\n },\n deleteRow: function deleteRow(index, rows) {\n rows.splice(index, 1);\n },\n showDialog: function showDialog() {\n if (this.data.shareType === \"1\") {\n this.$refs.eipFlowDialog.showDialog();\n } else {\n this.$refs.flowTypeDialog.showDialog();\n }\n },\n dialogOnConfirm: function dialogOnConfirm(data) {\n for (var i = 0; i < data.length; i++) {\n this.flowList.push({\n key: data[i].defKey,\n name: data[i].name\n });\n }\n\n this.flowList = this.flowList.unique(\"key\");\n },\n sysTypeDialogOnConfirm: function sysTypeDialogOnConfirm(data) {\n for (var i = 0; i < data.length; i++) {\n this.catList.push({\n key: data[i].id,\n name: data[i].name\n });\n }\n\n this.catList = this.catList.unique(\"key\");\n }\n }\n};",null]}