{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js??ref--0-0!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/form_processHosting_flowpanel.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/form_processHosting_flowpanel.vue","mtime":1725957645722},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/babel.config.js","mtime":1725957645200},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":1655715099000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\nexport default {\n props: [\"act\", \"openParams\", \"buildFormData\", \"approvers\", \"newHostOrCohostList\"],\n data: function data() {\n return {\n formwrapperHeight: 0,\n allSuggests: [],\n nodesList: []\n };\n },\n watch: {\n newHostOrCohostList: function newHostOrCohostList() {\n this.concatList();\n }\n },\n created: function created() {\n this.getSuggest();\n },\n mounted: function mounted() {\n this.approversList();\n },\n methods: {\n //新添加主办或者协办人后拼接数据\n concatList: function concatList() {\n var _this = this;\n // if(this.act.type == 57) { //主办\n // console.log(\"主办-->\")\n // }else if(this.act.type == 58) { //协办\n // }\n\n this.nodesList.forEach(function (item) {\n for (var i = 0; i < _this.newHostOrCohostList.length; i++) {\n if (item.id == _this.newHostOrCohostList[i].id) {\n _this.newHostOrCohostList.splice(i, 1);\n i--;\n }\n }\n });\n this.nodesList = this.nodesList.concat(this.newHostOrCohostList);\n },\n cancel: function cancel() {\n var status = 'ERROR';\n this.$emit(\"closePopup\", status); //\n },\n addRole: function addRole() {\n var nodesList = JSON.parse(JSON.stringify(this.nodesList));\n this.$emit(\"setProcessHosting\", nodesList);\n },\n goBack: function goBack() {\n var status = 'ERROR';\n this.$parent.$parent.$parent.$parent.$parent.closeThePopup(status);\n },\n onOK: function onOK() {\n var _this2 = this;\n var array = [];\n this.nodesList.forEach(function (item) {\n array.push(item.id);\n });\n if (this.act.type == 57) {\n //主办\n\n this.$api.processHosting(this.openParams.appId, this.openParams._select, array, {\n onSucess: function onSucess(response) {\n if (response.data.errcode == 0) {\n _this2.$notify({\n title: response.data.data,\n message: '',\n type: 'success'\n });\n var status = \"SUCCESS\";\n _this2.$emit(\"closePopup\", status);\n }\n }\n });\n } else if (this.act.type == 58) {\n //协办\n\n this.$api.processCoHosting(this.openParams.appId, this.openParams._select, array, {\n onSucess: function onSucess(response) {\n if (response.data.errcode == 0) {\n _this2.$notify({\n title: response.data.data,\n message: '',\n type: 'success'\n });\n var status = \"SUCCESS\";\n _this2.$emit(\"closePopup\", status);\n }\n }\n });\n }\n },\n //向上\n listUp: function listUp(index) {\n if (index == 0) {} else {\n var arr = this.nodesList;\n arr[index] = arr.splice(index - 1, 1, arr[index])[0];\n this.nodesList = arr;\n }\n },\n //向下\n listDown: function listDown(index) {\n if (index == this.nodesList.length - 1) {} else {\n var arr = this.nodesList;\n arr[index] = arr.splice(index + 1, 1, arr[index])[0];\n this.nodesList = arr;\n }\n },\n approversList: function approversList() {\n if (this.act.type == 57) {\n this.nodesList = this.approvers[0].nodes[0].auditors;\n } else if (this.act.type == 58) {\n this.nodesList = this.approvers[0].nodes[0].coAuditors;\n }\n },\n //获取返回的数据\n getSuggest: function getSuggest() {\n var _this3 = this;\n var employeeId = localStorage.getItem(\"employeeId\") || this.$root.user.id;\n this.$api.getCommonOpinions(employeeId, {\n onSucess: function onSucess(response) {\n _this3.allSuggests = response.data.data;\n }\n });\n }\n }\n};",null]}