{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\portal\\DefaultLayout.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\portal\\DefaultLayout.vue","mtime":1675071993022},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport portal from \"@/api/portal.js\";\nimport utils from \"@/hotent-ui-util.js\";\n\nvar PortalDesignerDialog = function PortalDesignerDialog() {\n return import(\"@/components/portal/PortalDesignerDialog.vue\");\n};\n\nvar LayoutPreviewDialog = function LayoutPreviewDialog() {\n return import(\"@/views/portal/LayoutPreviewDialog.vue\");\n};\n\nvar Base64 = require('js-base64').Base64;\n\nexport default {\n components: {\n PortalDesignerDialog: PortalDesignerDialog,\n LayoutPreviewDialog: LayoutPreviewDialog\n },\n data: function data() {\n return {\n data: [],\n pageResult: {\n page: 1,\n pageSize: 30,\n total: 0\n },\n uploadDialogVisible: false,\n uploadUrl: \"\",\n fileList: []\n };\n },\n methods: {\n rowClick: function rowClick(row, column, event) {\n this.$refs.layoutTable.$refs.htTable.toggleRowSelection(row);\n },\n loadData: function loadData(param, cb) {\n var _this = this;\n\n portal.getDefaultLayoutManagerPage(param).then(function (response) {\n _this.data = response.rows;\n _this.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }).finally(function () {\n return cb && cb();\n });\n },\n designClose: function designClose(val) {\n this.$refs.layoutTable.load();\n },\n handleCommand: function handleCommand(params) {\n switch (params.command) {\n case \"preview\":\n this.preview(params.row.id);\n break;\n\n case \"edit\":\n this.$refs.designDialog.showDialog(params.row.id, params.row.layoutType);\n break;\n }\n },\n preview: function preview(id) {\n this.$refs.previewDialog.showDialog(id);\n },\n exportLayout: function exportLayout() {\n var selection = this.$refs.layoutTable.$refs.htTable.selection;\n\n if (!selection || selection.length == 0) {\n this.$message.warning(\"请至少选择一条数据\");\n return;\n }\n\n var ids = new Array();\n selection.forEach(function (item) {\n ids.push(item.id);\n });\n this.$http.request({\n url: \"\".concat(window.context.portal, \"/portal/sysIndexLayoutManage/sysIndexLayoutManage/v1/exportDefaultLayout?isDefault=true\"),\n method: \"POST\",\n data: ids,\n responseType: \"arraybuffer\"\n });\n },\n showImportLayout: function showImportLayout() {\n this.uploadDialogVisible = true;\n },\n handleImport: function handleImport(param) {\n var _this2 = this;\n\n var formData = new FormData();\n formData.append(\"file\", param.file);\n portal.importDefaultLayout(formData).then(function (resp) {\n if (resp.state) {\n _this2.$message.success(resp.message);\n\n _this2.fileList.splice(0);\n\n _this2.uploadDialogVisible = false;\n\n _this2.$refs.layoutTable.load();\n } else {\n _this2.beforeClose();\n }\n });\n },\n uploadSubmit: function uploadSubmit() {\n if (this.$refs.elUpload.uploadFiles.length == 0) {\n this.$message.warning(\"请上传文件\");\n return;\n }\n\n this.$refs.elUpload.submit();\n },\n beforeClose: function beforeClose() {\n this.uploadDialogVisible = false;\n this.fileList.splice(0);\n }\n }\n};",null]}