{"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\\IndexLayout.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\portal\\IndexLayout.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/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/xq-web-bpm/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _defineProperty from \"D:/jenkins/workspace/xq-web-bpm/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\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//\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//\n//\n//\n//\n//\n//\nimport portal from \"@/api/portal.js\";\nimport utils from \"@/hotent-ui-util.js\";\n\nvar Base64 = require('js-base64').Base64;\n\nexport default {\n data: function data() {\n return {\n designShow: false,\n sidebarTitle: '',\n dialogVisible: false,\n layout: {\n name: \"\",\n memo: \"\",\n templateHtml: \"\",\n templateHtml2: \"\"\n },\n isSubmit: true,\n data: [],\n pageResult: {\n page: 1,\n pageSize: 50,\n total: 0\n },\n loadDataUrl: \"\",\n menuPerm: {},\n allowRoles: []\n };\n },\n mounted: function mounted() {\n this.$validator = this.$root.$validator;\n },\n computed: {\n deleteUrl: function deleteUrl() {\n return window.context.portal + \"/portal/sysIndexLayout/sysIndexLayout/v1/remove\";\n },\n saveUrl: function saveUrl() {\n return window.context.portal + \"/portal/sysIndexLayout/sysIndexLayout/v1/save\";\n }\n },\n methods: {\n handleClose: function handleClose() {\n this.dialogVisible = false;\n this.loadDataUrl = \"\";\n },\n afterLoadData: function afterLoadData(data) {\n var _this = this;\n\n if (this.dialogVisible) {\n this.layout = _objectSpread(_objectSpread({}, this.layout), data);\n this.layout.templateHtml2 = Base64.decode(this.layout.templateHtml);\n setTimeout(function () {\n return _this.$validator.validateAll(\"editForm\");\n });\n }\n },\n showDialog: function showDialog(row) {\n this.dialogVisible = true;\n\n if (row) {\n this.loadDataUrl = \"/portal/sysIndexLayout/sysIndexLayout/v1/getJson?id=\".concat(row.id);\n }\n },\n loadData: function loadData(param, cb) {\n var _this2 = this;\n\n portal.getIndexLayoutPage(param).then(function (response) {\n _this2.data = response.rows;\n _this2.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }).finally(function () {\n return cb();\n });\n },\n handleCommand: function handleCommand(params) {\n switch (params.command) {\n case \"edit\":\n this.designShow = true;\n break;\n this.sidebarTitle = \"编辑布局\";\n this.showDialog(params.row);\n break;\n\n case \"add\":\n this.layout = {\n name: \"\",\n memo: \"\",\n sn: \"\",\n templateHtml: \"\",\n templateHtml2: \"\"\n }, this.sidebarTitle = \"添加布局\";\n this.showDialog();\n break;\n\n case \"design\":\n this.designShow = true;\n break;\n }\n },\n beforeSaveData: function () {\n var _beforeSaveData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n this.layout.templateHtml = Base64.encode(this.layout.templateHtml2);\n this.isSubmit = true;\n\n case 2:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function beforeSaveData() {\n return _beforeSaveData.apply(this, arguments);\n }\n\n return beforeSaveData;\n }(),\n afterSaveData: function afterSaveData() {\n this.dialogVisible = false;\n this.$refs.layoutTable.load();\n }\n }\n};",null]}