{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\myLayout\\PortalDesignerDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\myLayout\\PortalDesignerDialog.vue","mtime":1667327529653},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\babel.config.js","mtime":1667327525434},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\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 ColumnPanel from \"@/components/myLayout/ColumnPanel.vue\";\nimport LayoutConfigPanel from \"@/components/myLayout/LayoutConfigPanel.vue\";\nimport DesignPanel from \"@/components/myLayout/DesignPanel.vue\";\n\nvar Base64 = require(\"js-base64\").Base64;\n\nimport portal from \"@/api/portal.js\";\nexport default {\n components: {\n ColumnPanel: ColumnPanel,\n DesignPanel: DesignPanel,\n LayoutConfigPanel: LayoutConfigPanel\n },\n data: function data() {\n return {\n dialogVisible: false,\n widgetForm: {\n list: [],\n config: {\n labelWidth: 100,\n labelPosition: \"right\",\n size: \"small\"\n }\n },\n widgetFormSelect: null,\n isSubmit: true,\n columnMap: {},\n layoutObj: {}\n };\n },\n methods: {\n showDialog: function showDialog(layoutId, layoutType, orgId) {\n this.dialogVisible = true;\n this.loadData(layoutId, layoutType, orgId);\n },\n loadData: function loadData(layoutId, layoutType, orgId) {\n var _this = this;\n\n portal.getLayoutManageDesignData(layoutId, layoutType).then(function (response) {\n _this.columnMap = response.columnMap;\n\n if (!response.sysIndexLayout) {\n //如果为空,说明现在新建\n _this.layoutObj = {};\n _this.layoutObj.orgId = orgId;\n _this.layoutObj.layoutType = layoutType;\n } else {\n _this.layoutObj = response.sysIndexLayout;\n var json = JSON.parse(Base64.decode(_this.layoutObj.designHtml));\n _this.widgetForm = json;\n\n if (json.list.length > 0) {\n _this.widgetFormSelect = json.list[0];\n }\n }\n });\n },\n handleGenerateJson: function handleGenerateJson() {\n this.jsonTemplate = this.widgetForm;\n this.$message(JSON.stringify(this.widgetForm));\n console.log(JSON.stringify(this.widgetForm));\n },\n beforeSaveData: function beforeSaveData() {\n //{\"designHtml\":\"\",\"isDef\":0,\"layoutType\":0,\"templateHtml\":\"\",\"orgId\":\"31766\",\"name\":\"d\",\"memo\":\"d\"}\n this.layoutObj.designHtml = Base64.encode(JSON.stringify(this.widgetForm));\n },\n afterSaveData: function afterSaveData() {\n this.close();\n this.$emit(\"close\", null);\n },\n close: function close() {\n this.dialogVisible = false;\n }\n }\n};",null]}