{"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/BaseicInformation/BaseicInformation.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/BaseicInformation/BaseicInformation.vue","mtime":1701674859498},{"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.regexp.split\";\nimport \"core-js/modules/es6.regexp.replace\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.number.constructor\";\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//\nimport { newApplication, updateApplication, getApplications as _getApplications, oveorview as _oveorview } from \"@/service/CommonApi.js\";\nimport DataSourceList from \"@/components/AdvancedTool/DataSourceList.vue\";\nimport { nameCheck } from \"@/utils/utils.js\";\nexport default {\n name: \"baseicinformation\",\n components: {\n DataSourceList: DataSourceList\n },\n data: function data() {\n return {\n params: {\n id: \"\",\n name: \"\",\n description: \"\",\n type: \"\",\n activated: true,\n orderNo: 0,\n datasourceId: \"\",\n datasourceName: \"\"\n },\n rules: {\n name: [{\n required: true,\n message: this.$t('placeholder.software_name'),\n trigger: 'blur'\n }, {\n validator: nameCheck,\n trigger: \"blur\"\n }],\n description: [{\n required: true,\n message: this.$t('placeholder.description'),\n trigger: 'blur'\n }]\n },\n outerVisible: false,\n data: {},\n datasourceType: 'dialog'\n };\n },\n mounted: function mounted() {\n //判断是否是新建,edit:true为编辑\n if (this.$route.query.edit && this.$route.query.edit != 'false') {\n var appId = sessionStorage.getItem(\"appId\");\n\n var params = _objectSpread(_objectSpread({}, this.params), {}, {\n id: appId\n });\n\n this.params = params;\n this.getApplications();\n } else {\n var urlObj = JSON.parse(this.$route.query.params);\n var type = urlObj.type;\n\n var _params = _objectSpread(_objectSpread({}, this.params), {}, {\n type: Number(type)\n });\n\n this.params = _params;\n }\n },\n methods: {\n //关闭数据源弹窗\n closeDatasource: function closeDatasource() {\n this.outerVisible = false;\n },\n // 清除选中的数据源\n cleanDatasource: function cleanDatasource() {\n this.params.datasourceName = \"\";\n this.params.datasourceId = \"\";\n this.outerVisible = false;\n },\n\n /**\n * 获取软件详细-基本信息\n */\n getApplications: function getApplications() {\n var _this = this;\n\n _getApplications(this.params, {\n onSucess: function onSucess(response) {\n if (response.data.errcode == 0) {\n var data = response.data.data;\n\n var params = _objectSpread(_objectSpread({}, _this.params), {}, {\n id: data.id,\n name: data.name,\n description: data.description,\n type: data.type,\n activated: data.activated,\n orderNo: data.orderNo,\n datasourceId: data.datasourceId,\n datasourceName: data.datasourceName\n });\n\n _this.params = params; // 将数据来源id放到vuex中用作表单判断\n\n _this.$store.commit('setDataSourceId', data.datasourceId);\n }\n }\n });\n },\n\n /**\n * 返回\n */\n goBack: function goBack() {\n this.$router.push({\n path: '/home/softwarelist'\n });\n },\n\n /**\n * 生成概览\n */\n oveorview: function oveorview() {\n var _this2 = this;\n\n var params = this.params;\n\n if (!params.datasourceId) {\n this.$message.error(this.$t('placeholder.save_soft_setdbsource'));\n return false;\n }\n\n _oveorview(params.id, {\n onSucess: function onSucess(response) {\n var filename = ''; // let type = response.headers[\"content-type\"];\n\n if (response.headers['content-disposition']) {\n filename = decodeURIComponent(response.headers['content-disposition'].split(\"=\")[response.headers['content-disposition'].split(\"=\").length - 1].replace(/\"/g, \"\"));\n } else {\n filename = _this2.$('placeholder.download');\n }\n\n var blob = response.data;\n var href = URL.createObjectURL(blob);\n var a = document.createElement('a');\n a.href = href;\n a.download = filename;\n document.body.appendChild(a);\n a.click();\n document.body.removeChild(a);\n }\n });\n },\n\n /**\n * 保存软件\n */\n btnSave: function btnSave(params) {\n var _this3 = this;\n\n if (this.params.id != \"\") {\n this.$refs[params].validate(function (valid) {\n if (valid) {\n updateApplication(_this3.params, {\n onSucess: function onSucess(response) {\n if (response.data.errcode == 0) {\n _this3.$message({\n message: _this3.$t('msg.ss'),\n type: 'success'\n }); // 将数据来源id放到vuex中用作表单判断\n\n\n _this3.$store.commit('setDataSourceId', _this3.params.datasourceId);\n }\n }\n });\n } else {\n return false;\n }\n });\n } else {\n this.$refs[params].validate( /*#__PURE__*/function () {\n var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(valid) {\n var response, _params2;\n\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!valid) {\n _context.next = 7;\n break;\n }\n\n _context.next = 3;\n return newApplication(_this3.params);\n\n case 3:\n response = _context.sent;\n\n if (response.data.errcode == 0) {\n _params2 = _objectSpread(_objectSpread({}, _this3.params), {}, {\n id: response.data.data.id\n });\n _this3.params = _params2;\n\n _this3.$message.success(_this3.$t('msg.ss')); // 将数据来源id放到vuex中用作表单判断\n\n\n _this3.$store.commit('setDataSourceId', _this3.params.datasourceId);\n }\n\n _context.next = 8;\n break;\n\n case 7:\n return _context.abrupt(\"return\", false);\n\n case 8:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }());\n }\n },\n\n /**\n * 打开数据源列表对话框\n */\n openDataSourceDialog: function openDataSourceDialog() {\n var params = this.params;\n\n if (params.id == \"\") {\n this.$message({\n message: this.$t('placeholder.save_software'),\n type: 'info'\n });\n } else {\n this.outerVisible = true;\n }\n },\n\n /**\n * 选中数据源回显\n */\n onRowClick: function onRowClick(row) {\n var params = _objectSpread(_objectSpread({}, this.params), {}, {\n datasourceId: row.id,\n datasourceName: row.name\n });\n\n this.params = params;\n this.outerVisible = false;\n }\n }\n};",null]}