{"remainingRequest":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js??ref--0-0!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/test-v5inweb-5.x-vue/src/components/view_collapsibleview.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/src/components/view_collapsibleview.vue","mtime":1739760944325},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/babel.config.js","mtime":1739760943855},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":1655715099000}],"contextDependencies":[],"result":["import _defineProperty from \"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/@babel/runtime-corejs2/helpers/esm/defineProperty.js\";\nimport \"core-js/modules/es6.regexp.to-string\";\nimport _typeof from \"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/@babel/runtime-corejs2/helpers/esm/typeof.js\";\nimport \"core-js/modules/es6.regexp.replace\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es7.array.includes\";\nimport \"core-js/modules/es6.string.includes\";\nimport form_searchform from \"@/components/form_searchform.vue\";\nexport default {\n name: \"view-collapsibleview\",\n props: [\"view\", \"openParams\", \"showtype\", \"toTab\"],\n provide: function provide() {\n return {\n calctextJump: this.calctextJump\n };\n },\n components: {\n form_searchform: form_searchform\n },\n watch: {},\n computed: {},\n mounted: function mounted() {\n this.getData();\n },\n data: function data() {\n return {\n checkedAll: [],\n currentPage: 1,\n tableData: [],\n row_count: 0,\n loading: true,\n emptyData: '',\n isOpenTemplate: false\n };\n },\n methods: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({\n setChildren: function setChildren(children, type) {\n var _this = this;\n // 编辑多个子层级\n children.map(function (j) {\n _this.toggleSelection(j, type);\n if (j.children) {\n _this.setChildren(j.children, type);\n }\n });\n },\n // 选中父节点时,子节点一起选中取消\n select: function select(selection, row) {\n var _this2 = this;\n // alert(7)\n // debugger\n var hasSelect = selection.some(function (el) {\n return row.docId === el.docId;\n });\n if (hasSelect) {\n this.$nextTick(function () {\n _this2.$refs.multipleTable.toggleRowSelection(row, true);\n });\n\n // if (row.children) {\n // // 解决子组件没有被勾选到\n // this.setChildren(row.children, true)\n // }\n } else {\n this.$nextTick(function () {\n _this2.$refs.multipleTable.toggleRowSelection(row, false);\n });\n\n // if (row.children) {\n // this.setChildren(row.children, false)\n // }\n }\n },\n toggleSelection: function toggleSelection(row, select) {\n var _this3 = this;\n if (row) {\n this.$nextTick(function () {\n _this3.$refs.multipleTable && _this3.$refs.multipleTable.toggleRowSelection(row, select);\n });\n }\n },\n // 选择全部\n selectAll: function selectAll(selection) {\n var _this4 = this;\n // tabledata第一层只要有在selection里面就是全选\n var isSelect = selection.some(function (el) {\n var tableDataIds = _this4.tableData.map(function (j) {\n return j.id;\n });\n return tableDataIds.includes(el.id);\n });\n // tableDate第一层只要有不在selection里面就是全不选\n var isCancel = !this.tableData.every(function (el) {\n var selectIds = selection.map(function (j) {\n return j.id;\n });\n return selectIds.includes(el.id);\n });\n if (isSelect) {\n selection.map(function (el) {\n if (el.children) {\n // 解决子组件没有被勾选到\n _this4.setChildren(el.children, true);\n }\n });\n }\n if (isCancel) {\n this.tableData.map(function (el) {\n if (el.children) {\n // 解决子组件没有被勾选到\n _this4.setChildren(el.children, false);\n }\n });\n }\n },\n getSearchDocument: function getSearchDocument(doc) {\n this.$parent.setSearchDocItems(doc);\n },\n onSearch: function onSearch(searchData, data) {\n var page = 1;\n this.searchExcelData = data;\n this.getData(page, searchData);\n },\n handleOpenSearchTemplate: function handleOpenSearchTemplate() {\n this.isOpenTemplate = !this.isOpenTemplate;\n },\n //o-action跳转\n calctextJump: function calctextJump(openType, params, jumpType, styleParams) {\n if (styleParams) {\n params.styleParams = styleParams;\n }\n params.name = params.title || this.view.name;\n var 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 var 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 var routeData = this.$router.resolve({\n name: 'open',\n query: params\n });\n window.open(routeData.href, \"_blank\");\n } else {\n //默认用tab方式打开\n // this.$emit(\"add-tab\", params);\n params.openType = Common.openType_TAB;\n params.refreshId = this.openParams.id,\n //判断是否得刷新\n this.addTab(params);\n }\n } else if (jumpType === 'openview') {\n if (openType == \"open-eject\" || openType == \"dialog\") {\n var _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 var _routeData = this.$router.resolve({\n name: \"view_blank\",\n query: params\n });\n window.open(_routeData.href, \"_blank\");\n } else {\n //默认用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 var _type2 = \"JUMP\";\n this.$parent.openDialogJump(params, _type2);\n } else if (openType == \"open-present\") {\n this.$emit(\"openNewpage\", params);\n } else if (openType == \"open-blank\") {\n var _routeData2 = this.$router.resolve({\n name: \"view_blank\",\n query: params\n });\n window.open(_routeData2.href, \"_blank\");\n } else {\n //默认用tab方式打开\n // this.$emit(\"add-tab\", params);\n this.addTab(params);\n }\n }\n },\n //删除或导入数据后重新请求加载数据\n reloadListView: function reloadListView() {\n // this.reloadListViewRandom = new Date().getTime();\n // this.getData(this.currentPage, this.pagesize, this.searchExcelData);\n },\n buttonClick: function buttonClick() {},\n /*\n * 脚本,o-action\n */\n template: function template(val) {\n return {\n methods: {\n calctextJump: this.calctextJump\n },\n template: \"