{"remainingRequest":"/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/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"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":499162500000}],"contextDependencies":[],"result":["\nexport default {\n props: [\n \"act\",\n \"openParams\" ,\n \"buildFormData\" ,\n \"approvers\",\n \"newHostOrCohostList\"\n ],\n data: function() {\n return {\n formwrapperHeight: 0,\n allSuggests:[],\n nodesList:[],\n };\n },\n\n watch: {\n newHostOrCohostList() {\n this.concatList()\n }\n }, \n created() {\n this.getSuggest();\n },\n\n mounted() {\n this.approversList();\n },\n methods: {\n //新添加主办或者协办人后拼接数据\n concatList() {\n // if(this.act.type == 57) { //主办\n // console.log(\"主办-->\")\n // }else if(this.act.type == 58) { //协办\n // }\n console.log(\"选择合并------>\");\n this.nodesList.forEach(item => {\n for(let i=0; i {\n array.push(item.id);\n });\n if(this.act.type == 57) { //主办\n console.log(\"主办-->\")\n this.$api.processHosting(this.openParams.appId, this.openParams._select, array, {\n onSucess: response => {\n if(response.data.errcode == 0) {\n this.$notify({\n title: response.data.data,\n message:'',\n type: 'success'\n });\n let status = \"SUCCESS\"\n this.$emit(\"closePopup\", status);\n }\n }\n })\n }else if(this.act.type == 58) { //协办\n console.log(\"协办-->\");\n this.$api.processCoHosting(this.openParams.appId, this.openParams._select, array, {\n onSucess: response => {\n if(response.data.errcode == 0) {\n this.$notify({\n title: response.data.data,\n message:'',\n type: 'success'\n });\n let status = \"SUCCESS\"\n this.$emit(\"closePopup\", status);\n }\n }\n })\n }\n },\n\n //向上\n listUp(index) {\n if(index == 0) {\n console.log(\"最顶部-->\");\n }else {\n let arr = this.nodesList;\n arr[index] = arr.splice(index-1, 1, arr[index])[0];\n this.nodesList = arr;\n }\n \n },\n\n //向下\n listDown(index) {\n if(index == this.nodesList.length-1) {\n console.log(\"最底部-->\")\n }else {\n let arr = this.nodesList;\n arr[index] = arr.splice(index+1, 1, arr[index])[0];\n this.nodesList = arr;\n }\n \n },\n approversList(){\n if(this.act.type == 57) {\n this.nodesList = this.approvers[0].nodes[0].auditors;\n console.log(\"加签主办-->\",this.nodesList);\n }else if (this.act.type == 58) {\n this.nodesList = this.approvers[0].nodes[0].coAuditors;\n console.log(\"加签协办-->\",this.nodesList);\n }\n },\n //获取返回的数据\n getSuggest() {\n const employeeId = localStorage.getItem(\"employeeId\") || this.$root.user.id ;\n this.$api.getCommonOpinions(employeeId, {\n onSucess: response => {\n this.allSuggests = response.data.data;\n }\n });\n },\n }\n};\n",null]}