{"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/print_view.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/print_view.vue","mtime":1725957645728},{"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":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":["\n\nimport view_listview from \"@/components/view_listview.vue\";\nimport view_gridview from \"@/components/view_gridview.vue\";\nexport default {\n name:\"\",\n props: [\"\"],\n components: {\n view_listview,\n view_gridview\n },\n computed: {\n },\n created(){\n let query = this.$route.query;\n if(query.simpleClassName == \"ListView\"){\n if(query.openType == \"288\") {\n this.simpleClassName = \"gridview\";\n }\n }\n console.log(\"--->\",this.$route.query)\n },\n mounted() {\n this.getViewData();\n },\n data: function() {\n return {\n viewPrintData:'',\n openParams:'',\n isFormPrint: 5,//打印时时等于5\n simpleClassName: 'listView',\n isHide: true,\n }\n },\n methods: {\n printView() {\n this.isHide = false\n setTimeout(function () {\n window.print();\n }, 100);\n let that = this\n //window打印界面关闭\n window.onafterprint = function() {\n that.$nextTick(function(){\n that.isHide = true\n });\n };\n },\n getViewData(){\n let appId = this.$root.appid;\n let viewId = this.$route.query.viewId;\n let isPrint = this.$route.query.isPrint;\n this.openParams = {\n appId,\n viewId,\n isPrint,\n isRelate: this.$route.query.isRelate,\n parentId: this.$route.query.parentId,\n }\n this.$api.getPrintViewTemplate(appId, viewId, isPrint, {\n onSucess: response => {\n this.viewPrintData = response.data.data; \n let columns = this.viewPrintData.columns;\n for(let i=0;i