{"remainingRequest":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/cache-loader/dist/cjs.js??ref--0-0!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/src/components/Modules/View.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/src/components/Modules/View.vue","mtime":1701674859502},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/cache-loader/dist/cjs.js","mtime":1701674874584},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/thread-loader/dist/cjs.js","mtime":1701674873947},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/babel-loader/lib/index.js","mtime":1701674874357},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/cache-loader/dist/cjs.js","mtime":1701674874584},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/vue-loader/lib/index.js","mtime":1701674874903}],"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 \"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/@babel/runtime-corejs2/helpers/esm/asyncToGenerator\";\nimport \"core-js/modules/es6.function.name\";\nimport _defineProperty from \"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/@babel/runtime-corejs2/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//\nimport { saveAddModuleView, saveEditModuleView } from \"@/service/ViewApi.js\";\nimport ViewCity from \"@/components/modulesDetail/ViewCity\";\nimport ViewOperation from \"@/components/modulesDetail/ViewOperation\";\nimport ViewColumn from \"@/components/modulesDetail/ViewColumn\";\nimport ViewData from \"@/components/modulesDetail/ViewData\";\nimport ViewBasic from \"@/components/modulesDetail/ViewBasic\";\nimport CreateMenu from \"@/components/CommonTool/createMenu\";\nexport default {\n name: \"viewDetail\",\n components: {\n ViewCity: ViewCity,\n CreateMenu: CreateMenu,\n ViewOperation: ViewOperation,\n ViewColumn: ViewColumn,\n ViewData: ViewData,\n ViewBasic: ViewBasic\n },\n props: {\n detailData: Object,\n showLinkBack: {\n // 是否显示有调整链接的按钮\n type: Boolean,\n default: true\n }\n },\n data: function data() {\n return {\n menuHeight: 0,\n tableHeight: document.documentElement.clientHeight - 60 - 32 - 41 - 50 - 32 - 48,\n //60 头部, 32 面包屑, 41 第一层页签, 48操作列操作栏, 50 第二层页签, 20 下方按钮\n activeName: \"basic\",\n //标签页\n tabSwitchover: {\n //切换标签页\n basicShow: true,\n dataShow: false,\n listShow: false,\n operationShow: false,\n cityShow: false\n },\n btnLoading: false,\n // 按钮的加载图标\n params: {},\n // 视图的数据\n edit: false,\n viewModuleDataObj: {},\n mapCity: {}\n };\n },\n methods: {\n /**\n * 标签页切换\n */\n handleClick: function handleClick(row) {\n var tabSwitchover = _objectSpread(_objectSpread({}, this.tabSwitchover), {}, {\n basicShow: false,\n dataShow: false,\n listShow: false,\n operationShow: false,\n cityShow: false // 默认加载城市\n\n });\n\n this.tabSwitchover = tabSwitchover;\n\n if (row.name == \"data\") {\n this.tabSwitchover.dataShow = true;\n this.$store.dispatch(\"rightHelpPageParams\", {\n title: this.$t(\"msg.view_info_content\"),\n url: \"application/application_module_view_info_content_help.html\"\n });\n } else if (row.name == \"list\") {\n this.tabSwitchover.listShow = true;\n this.$store.dispatch(\"rightHelpPageParams\", {\n title: this.$t(\"msg.view_list\"),\n url: \"application/application_module_view_info_column_help.html\"\n });\n } else if (row.name == \"operation\") {\n // 获取作用表单\n // this.getModuleFormList() // 数据来源表单\n this.tabSwitchover.operationShow = true;\n this.$store.dispatch(\"rightHelpPageParams\", {\n title: this.$t(\"msg.view_info_do\"),\n url: \"application/application_module_view_info_activity_help.html\"\n });\n } else if (row.name == \"city\") {\n this.tabSwitchover.cityShow = true;\n this.$store.dispatch(\"rightHelpPageParams\", {\n title: this.$t(\"msg.view_info_do\"),\n url: \"application/application_module_view_info_activity_help.html\"\n });\n } else {\n this.tabSwitchover.basicShow = true; // this.getModuleFormList() // 数据来源表单\n\n this.$store.dispatch(\"rightHelpPageParams\", {\n title: this.$t(\"msg.view_info\"),\n url: \"application/application_module_view_info_help.html\"\n });\n }\n },\n viewModuleData: function viewModuleData(obj) {\n var _this = this;\n\n if (obj.simpleClassName == \"MapView\") {\n this.tabSwitchover.cityShow = true;\n }\n\n this.viewModuleDataObj = obj;\n this.$nextTick(function () {\n if (_this.tabSwitchover.basicShow) {\n _this.tabSwitchover.cityShow = false;\n }\n });\n },\n\n /**\n * 显示菜单\n */\n showMenuDialog: function showMenuDialog() {\n this.$refs[\"createMenu\"].showCreateDialog();\n },\n mapCityObj: function mapCityObj(obj) {\n this.mapCity = obj;\n },\n\n /**\n * 保存表单\n */\n save: function () {\n var _save = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var basicData, viewData, viewCity, data, params, response, _response;\n\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n basicData = this.$refs[\"viewbasic\"].save();\n\n if (!(basicData == false)) {\n _context.next = 3;\n break;\n }\n\n return _context.abrupt(\"return\", false);\n\n case 3:\n viewData = this.$refs[\"viewData\"] ? this.$refs[\"viewData\"].save() : {};\n\n if (!(viewData == false)) {\n _context.next = 6;\n break;\n }\n\n return _context.abrupt(\"return\", false);\n\n case 6:\n viewCity = basicData.simpleClassName == \"MapView\" ? this.mapCity : {};\n data = _objectSpread(_objectSpread(_objectSpread({}, basicData), viewData), viewCity);\n params = {\n appId: sessionStorage.getItem(\"appId\"),\n moduleId: this.params.moduleId,\n viewId: this.params.viewId,\n viewType: parseInt(basicData.intValue)\n };\n\n if (!this.params.viewId) {\n _context.next = 19;\n break;\n }\n\n // 编辑保存视图\n this.btnLoading = true;\n\n if (data.address && data.address.length > 0) {\n data.level = '14';\n } else {\n if (data.country) {\n data.level = '4';\n }\n }\n\n _context.next = 14;\n return saveEditModuleView(params, data);\n\n case 14:\n response = _context.sent;\n this.btnLoading = false;\n\n if (response.data.errcode == 0) {\n this.$message.success(this.$t(\"msg.update_ss\"));\n }\n\n _context.next = 26;\n break;\n\n case 19:\n // 新建保存视图\n this.btnLoading = true;\n\n if (data.address && data.address.length > 0) {\n data.level = '14';\n } else {\n if (data.country) {\n data.level = '4';\n }\n }\n\n _context.next = 23;\n return saveAddModuleView(params, data);\n\n case 23:\n _response = _context.sent;\n this.btnLoading = false;\n\n if (_response.data.errcode == 0) {\n this.params.viewId = _response.data.data.id;\n this.$store.commit(\"setCurrentDataSources\", _objectSpread(_objectSpread({}, data), {}, {\n id: _response.data.data.id\n })); // 当前的数据【传给列的批量创建】\n\n this.$message.success(this.$t(\"msg.created_ss\"));\n }\n\n case 26:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function save() {\n return _save.apply(this, arguments);\n }\n\n return save;\n }(),\n\n /**\n * 退出\n */\n close: function close() {\n this.$store.commit(\"setCurrentDataSources\", {});\n this.$router.push({\n path: \"/home/softwaresdetails/viewlist\",\n query: {\n edit: true,\n moduleId: this.params.moduleId\n }\n });\n }\n },\n created: function created() {\n this.params = this.detailData || this.$route.query.params;\n\n if (this.params.id) {\n this.edit = true;\n }\n },\n mounted: function mounted() {\n this.$store.dispatch(\"rightHelpPageParams\", {\n title: this.$t(\"msg.view_info\"),\n url: \"application/application_module_view_info_help.html\"\n });\n var clientHeight = document.documentElement.clientHeight || document.body.clientHeight; //60 头部, 32 面包屑, 20 父组件外边距,41 标签页,50 内部按钮\n\n this.menuHeight = clientHeight - 60 - 32 - 41 - 50 - 20 - 16;\n },\n watch: {\n \"$store.state.rightHelpPageParams\": {\n handler: function handler() {\n if (this.$store.state.rightHelpFrame) {\n this.$store.state.rightHelpFrame.contentWindow.showHelpContentHtml(this.$store.state.rightHelpPageParams.title, this.$store.state.rightHelpPageParams.url);\n }\n },\n deep: true\n }\n }\n};",null]}