{"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/view_collapsibleview.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/view_collapsibleview.vue","mtime":1725957645731},{"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":["\nimport form_searchform from \"@/components/form_searchform.vue\";\nexport default {\n name: \"view-collapsibleview\",\n props: [\n \"view\",\n \"openParams\",\n \"showtype\",\n \"toTab\"\n ],\n provide () {\n return {\n calctextJump: this.calctextJump\n }\n },\n components: {\n form_searchform,\n },\n watch: {\n \n },\n computed: {\n \n },\n\n mounted() {\n this.getData();\n },\n\n data: function() {\n return {\n checkedAll:[],\n currentPage: 1,\n tableData:[],\n row_count:0,\n loading: true,\n emptyData:'',\n isOpenTemplate: false,\n };\n },\n\n methods: {\n setChildren(children, type) {\n // 编辑多个子层级\n children.map(j => {\n this.toggleSelection(j, type)\n if (j.children) {\n this.setChildren(j.children, type)\n }\n })\n },\n // 选中父节点时,子节点一起选中取消\n select(selection, row) { \n // alert(7)\n // debugger\n const hasSelect = selection.some(el => {\n return row.docId === el.docId\n })\n if (hasSelect) {\n console.log(selection)\n console.log(row)\n this.$nextTick(() => { \n this.$refs.multipleTable.toggleRowSelection(row,true); \n })\n\n // if (row.children) {\n // // 解决子组件没有被勾选到\n // this.setChildren(row.children, true)\n // }\n } else {\n this.$nextTick(() => {\n this.$refs.multipleTable.toggleRowSelection(row,false) \n })\n\n // if (row.children) {\n // this.setChildren(row.children, false)\n // }\n }\n },\n toggleSelection(row, select) {\n if (row) {\n this.$nextTick(() => {\n this.$refs.multipleTable &&\n this.$refs.multipleTable.toggleRowSelection(row, select)\n })\n }\n },\n // 选择全部\n selectAll(selection) {\n // tabledata第一层只要有在selection里面就是全选\n const isSelect = selection.some(el => {\n const tableDataIds = this.tableData.map(j => j.id)\n return tableDataIds.includes(el.id)\n })\n // tableDate第一层只要有不在selection里面就是全不选\n const isCancel = !this.tableData.every(el => {\n const selectIds = selection.map(j => j.id)\n return selectIds.includes(el.id)\n })\n if (isSelect) {\n selection.map(el => {\n if (el.children) {\n // 解决子组件没有被勾选到\n this.setChildren(el.children, true)\n }\n })\n }\n if (isCancel) {\n this.tableData.map(el => {\n if (el.children) {\n // 解决子组件没有被勾选到\n this.setChildren(el.children, false)\n }\n })\n }\n },\n\n \n getSearchDocument(doc){\n this.$parent.setSearchDocItems(doc);\n },\n\n onSearch(searchData, data) {\n let page = 1;\n this.searchExcelData = data;\n this.getData(page, searchData);\n },\n\n handleOpenSearchTemplate() {\n this.isOpenTemplate = !this.isOpenTemplate;\n },\n\n //o-action跳转\n calctextJump(openType, params, jumpType,styleParams) {\n if(styleParams) {\n params.styleParams = styleParams;\n }\n params.name = params.title || this.view.name\n let showtype = this.showtype\n if(showtype && (showtype == 'tab' || 'include') && params.isRefresh) {\n if(showtype == 'include') {\n params.isIncludeCreate = \"include\"\n }else if(showtype == 'tab'){\n params.isTabCreate = 'tab'\n }\n params.randomRefreshId = new Date().getTime()\n params.templateId = this.view.id\n // this.$parent.setViewRefreshId(params.randomRefreshId)\n }\n if(jumpType === 'opendocument') {\n if (openType == \"open-eject\" || openType == \"dialog\") {\n let type = \"FORM\";\n this.$parent.openDialogJump(params,type)\n }else if (openType == \"open-present\") {\n this.$emit(\"openNewpage\",params)\n }else if (openType == \"open-blank\"){\n let routeData = this.$router.resolve({\n name: 'open',\n query: params,\n });\n window.open(routeData.href, \"_blank\");\n }else {//默认用tab方式打开\n // this.$emit(\"add-tab\", params);\n params.openType = Common.openType_TAB\n params.refreshId = this.openParams.id, //判断是否得刷新\n this.addTab(params)\n }\n }else if(jumpType === 'openview') {\n if (openType == \"open-eject\" || openType == \"dialog\") {\n let type = \"VIEW\";\n this.$parent.openDialogJump(params,type);\n }else if (openType == \"open-present\") {\n this.$emit(\"openNewpage\",params)\n }else if (openType == \"open-blank\"){\n let routeData = this.$router.resolve({\n name: \"view_blank\",\n query: params,\n });\n window.open(routeData.href, \"_blank\");\n }else {//默认用tab方式打开\n params.refreshId = this.openParams.id //判断是否得刷新\n params.id = params.actionContent + \"_\" + this.view.id\n this.addTab(params)\n // this.$emit(\"add-tab\", params);\n }\n }else if(jumpType === 'jumpto'){\n if (openType == \"open-eject\" || openType == \"dialog\") {\n let type = \"JUMP\";\n this.$parent.openDialogJump(params,type);\n }else if (openType == \"open-present\") {\n this.$emit(\"openNewpage\",params)\n }else if (openType == \"open-blank\"){\n let routeData = this.$router.resolve({\n name: \"view_blank\",\n query: params,\n });\n window.open(routeData.href, \"_blank\");\n }else {//默认用tab方式打开\n // this.$emit(\"add-tab\", params);\n this.addTab(params)\n }\n }\n },\n\n //删除或导入数据后重新请求加载数据\n reloadListView(){\n // this.reloadListViewRandom = new Date().getTime();\n // this.getData(this.currentPage, this.pagesize, this.searchExcelData);\n },\n\n buttonClick(){\n\n },\n\n /*\n * 脚本,o-action\n */\n template(val) {\n return {\n methods: {\n calctextJump: this.calctextJump,\n },\n template: \"