{"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/AdvancedTool/Developer.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/AdvancedTool/Developer.vue","mtime":1701674859497},{"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 \"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\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { getDeveloperList, deleteDeveloperList, getDialogDeveloperList as _getDialogDeveloperList, addDialogDeveloperData } from \"@/service/AdvancedToolAPI.js\";\nimport publicTable from \"@/components/Common/publicTable.vue\";\nimport { delMsg } from '@/utils/elementui';\nexport default {\n name: \"developer\",\n data: function data() {\n return {\n formInline: {\n inputName: \"\",\n //名称\n inputLoginno: \"\" //账号\n\n },\n params: {\n id: \"\",\n name: \"\",\n loginno: \"\",\n pageNo: 1,\n linesPerPage: 10\n },\n tableHeight: \"100\",\n multipleSelection: [],\n //将获取选中的数组放进去\n dialogFormVisible: false,\n //对话框\n dialog: {\n inputName: \"\",\n //名称\n inputLoginno: \"\" //账号\n\n },\n dialogTableData: {},\n multipleDialogSelection: [],\n //将获取选中的数组放进去\n tableData: {\n params: [{\n name: 'name',\n label: this.$t('label.name'),\n value: \"\"\n }, {\n name: 'loginno',\n label: this.$t('label.account'),\n value: \"\"\n }]\n }\n };\n },\n components: {\n publicTable: publicTable\n },\n mounted: function mounted() {\n this.getScollerHeight();\n this.getDevelopertions();\n },\n methods: {\n //填充方法\n onRowClick: function onRowClick() {\n return false;\n },\n //更新参数\n updataParams: function updataParams(obj) {\n Object.assign(this.params, obj);\n },\n //列表当前页变化\n currPageChange: function currPageChange(val) {\n this.params.pageNo = val;\n this.getDevelopertions();\n },\n //列表页码变化\n pageSizeChange: function pageSizeChange(val) {\n this.params.linesPerPage = val;\n this.getDevelopertions();\n },\n\n /**\n * 动态计算页面table高度\n */\n getScollerHeight: function getScollerHeight() {\n var _this = this;\n\n setTimeout(function () {\n var clientHeight = document.documentElement.clientHeight || document.body.clientHeight; //60 头部, 32 面包屑, 41 第一层页签, 40 第二层页签, 50 列表标题, 71 查询, 20 父组件外边距, 32分页\n\n _this.tableData.tableHeight = clientHeight - 60 - 32 - 41 - 40 - 50 - 71 - 20 - 40 + 'px';\n\n _this.$nextTick(function () {\n if (_this.$refs.publictable) _this.$refs.publictable.init(_this.tableData);\n });\n }, 100);\n },\n\n /**\n * 获取开发者列表的数据\n */\n getDevelopertions: function () {\n var _getDevelopertions = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var _this2 = this;\n\n var appId, response, data;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n appId = sessionStorage.getItem(\"appId\");\n _context.next = 3;\n return getDeveloperList(this.params, appId);\n\n case 3:\n response = _context.sent;\n\n if (response.data.errcode == 0) {\n data = response.data.data;\n this.tableData.columns = [{\n prop: 'name',\n label: this.$t('developer.name')\n }, {\n prop: 'loginno',\n label: this.$t('developer.account')\n }, {\n prop: 'email',\n label: this.$t('developer.email')\n }];\n this.tableData.data = data;\n this.$nextTick(function () {\n if (_this2.$refs.publictable) _this2.$refs.publictable.init(_this2.tableData);\n });\n }\n\n case 5:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function getDevelopertions() {\n return _getDevelopertions.apply(this, arguments);\n }\n\n return getDevelopertions;\n }(),\n\n /**\n * 重置查询名称值\n */\n resetName: function resetName() {\n this.params.loginno = '';\n this.params.name = '';\n this.getDevelopertions();\n },\n\n /**\n * 获取选中的表格数据\n */\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n\n /**\n * 移除\n */\n remove: function () {\n var _remove = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n var selectData, data, i, appId, response;\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n selectData = this.multipleSelection;\n data = [];\n\n for (i = 0; i < selectData.length; i++) {\n data.push(selectData[i].id);\n }\n\n if (!(data.length == 0)) {\n _context2.next = 5;\n break;\n }\n\n return _context2.abrupt(\"return\", this.$message.error(this.$t('msg.select_more')));\n\n case 5:\n appId = sessionStorage.getItem(\"appId\");\n _context2.prev = 6;\n _context2.next = 9;\n return delMsg(this.$t('msg.delConfirm'), this.$t('msg.tip'));\n\n case 9:\n _context2.next = 11;\n return deleteDeveloperList(appId, data);\n\n case 11:\n response = _context2.sent;\n\n if (response.data.errcode == 0) {\n this.$message.success(this.$t('msg.remove_ss'));\n this.getDevelopertions();\n }\n\n _context2.next = 18;\n break;\n\n case 15:\n _context2.prev = 15;\n _context2.t0 = _context2[\"catch\"](6);\n console.log(_context2.t0);\n\n case 18:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this, [[6, 15]]);\n }));\n\n function remove() {\n return _remove.apply(this, arguments);\n }\n\n return remove;\n }(),\n\n /**\n * 添加开发者用户\n */\n addDeveloper: function addDeveloper() {\n this.$store.dispatch(\"rightHelpPageParams\", {\n title: this.$t('label.add_desirer'),\n url: \"application/application_info_advancedTools_developer_list_addDeveloper_help.html\"\n });\n this.params = {\n id: \"\",\n name: \"\",\n loginno: \"\",\n pageNo: 1,\n linesPerPage: 10\n }, this.dialogFormVisible = true;\n this.getDialogDeveloperList();\n },\n\n /**\n * 重置添加的数据\n */\n resetDevelop: function resetDevelop() {\n this.multipleDialogSelection = [];\n },\n //获取弹出框列表信息\n getDialogDeveloperList: function () {\n var _getDialogDeveloperList2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {\n var appId, response;\n return regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n appId = sessionStorage.getItem(\"appId\");\n _context3.next = 3;\n return _getDialogDeveloperList(this.params, appId);\n\n case 3:\n response = _context3.sent;\n\n if (response.data.errcode == 0) {\n this.dialogTableData = response.data.data;\n }\n\n case 5:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function getDialogDeveloperList() {\n return _getDialogDeveloperList2.apply(this, arguments);\n }\n\n return getDialogDeveloperList;\n }(),\n\n /**\n * 对话框获取选中数据\n */\n handleDialogSelectionChange: function handleDialogSelectionChange(val) {\n this.multipleDialogSelection = val;\n },\n\n /**\n * 添加用户 -->弹出框\n */\n addDeveloperDialog: function () {\n var _addDeveloperDialog = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {\n var data, i, appId, response;\n return regeneratorRuntime.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n data = [];\n\n for (i = 0; i < this.multipleDialogSelection.length; i++) {\n data.push(this.multipleDialogSelection[i].id);\n }\n\n if (!(data.length == 0)) {\n _context4.next = 5;\n break;\n }\n\n this.$message.error(this.$t('msg.select_more'));\n return _context4.abrupt(\"return\", false);\n\n case 5:\n appId = sessionStorage.getItem(\"appId\");\n _context4.next = 8;\n return addDialogDeveloperData(appId, data);\n\n case 8:\n response = _context4.sent;\n\n if (response.data.errcode == 0) {\n this.$message.success(this.$t('msg.add_ss'));\n this.dialogFormVisible = false;\n this.getDevelopertions(); // 重置信息\n\n this.multipleDialogSelection = [];\n }\n\n case 10:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4, this);\n }));\n\n function addDeveloperDialog() {\n return _addDeveloperDialog.apply(this, arguments);\n }\n\n return addDeveloperDialog;\n }(),\n\n /**\n * 退出\n */\n closeDialog: function closeDialog() {\n this.$store.dispatch(\"rightHelpPageParams\", {\n title: this.$t('label.desirer_list'),\n url: \"application/application_info_advancedTools_developer_list_help.html\"\n });\n this.params = {\n id: \"\",\n name: \"\",\n loginno: \"\",\n pageNo: 1,\n linesPerPage: 10\n }, this.dialogFormVisible = false;\n },\n\n /**\n * 当前页\n */\n dialogHandleCurrentChange: function dialogHandleCurrentChange(val) {\n this.params.pageNo = val;\n this.getDevelopertions();\n },\n\n /**\n * 切换分页,每页显示多少条\n */\n dialogHandleSizeChange: function dialogHandleSizeChange(val) {\n this.params.linesPerPage = val;\n this.getDevelopertions();\n }\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]}