{"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/PageList.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/PageList.vue","mtime":1701674859501},{"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 \"core-js/modules/es6.function.name\";\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 _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//\nimport { getModuleFormList, deleteModuleForm } from \"@/service/FormApi.js\";\nimport { delMsg } from \"@/utils/elementui\";\nexport default {\n name: \"pagelist\",\n data: function data() {\n return {\n searchParams: {\n appId: \"\",\n moduleId: \"\",\n name: \"\",\n description: \"\",\n type: \"\",\n pageNo: 1,\n linesPerPage: 10\n },\n params: {\n appId: \"\",\n moduleId: \"\",\n id: \"\",\n name: \"\",\n type: 1,\n showLog: false,\n showWaterMark: false,\n openComment: false,\n waterMarkScript: \"\",\n version: 3,\n mappingStr: \"\",\n checkout: false,\n orderno: 1,\n permissionType: \"\",\n layoutType: \"\",\n typeName: \"\",\n inited: false,\n showType: \"old\"\n },\n data: {},\n multipleSelectionId: [],\n multipleSelectionArray: [],\n tableHeight: 100,\n chooseFormTypeVisible: false,\n showType: \"old\",\n //新建的时候的表单类型\n loading: true\n };\n },\n watch: {},\n mounted: function mounted() {\n this.getScollerHeight();\n var appId = sessionStorage.getItem(\"appId\"); // console.log(\"formList\",appId)\n\n var moduleId = this.$route.query.moduleId;\n\n var searchParams = _objectSpread(_objectSpread({}, this.searchParams), {}, {\n appId: appId,\n moduleId: moduleId\n });\n\n var params = _objectSpread(_objectSpread({}, this.params), {}, {\n appId: appId,\n moduleId: moduleId\n });\n\n this.searchParams = searchParams;\n this.params = params;\n this.getFromList();\n },\n created: function created() {},\n methods: {\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 第一层页签, 50 列表标题, 71 查询, 20 父组件外边距, 40分页\n\n _this.tableHeight = clientHeight - 60 - 32 - 41 - 50 - 71 - 20 - 40 + \"px\";\n }, 100);\n },\n\n /**\n * 获取表单列表\n */\n getFromList: function getFromList() {\n var _this2 = this;\n\n this.loading = true;\n getModuleFormList(this.searchParams, {\n onSucess: function onSucess(response) {\n _this2.loading = false;\n\n if (response.data.errcode == 0) {\n _this2.data = response.data.data;\n }\n }\n });\n },\n\n /**\n * 重置查询名称值\n */\n resetName: function resetName() {\n var searchParams = _objectSpread(_objectSpread({}, this.searchParams), {}, {\n name: \"\",\n description: \"\",\n searchword: \"\"\n });\n\n this.searchParams = searchParams;\n this.getFromList();\n },\n\n /**\n * 勾选行时响应\n */\n handleSelectionChange: function handleSelectionChange(val) {\n var multipleSelectionId = [];\n\n if (val.length) {\n val.map(function (e) {\n multipleSelectionId.push(e.id);\n });\n }\n\n this.multipleSelectionArray = val;\n this.multipleSelectionId = multipleSelectionId;\n },\n\n /**\n * 删除角色\n */\n showDeleteConfirm: function () {\n var _showDeleteConfirm = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var multipleSelectionId, response;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n multipleSelectionId = this.multipleSelectionId;\n\n if (!(multipleSelectionId.length > 0)) {\n _context.next = 16;\n break;\n }\n\n _context.prev = 2;\n _context.next = 5;\n return delMsg(this.$t(\"msg.delConfirm\"), this.$t(\"msg.tip\"));\n\n case 5:\n _context.next = 7;\n return deleteModuleForm(multipleSelectionId);\n\n case 7:\n response = _context.sent;\n\n if (response.data.errcode == 0) {\n this.getFromList();\n this.$message.success(this.$t(\"msg.del_ss\"));\n }\n\n _context.next = 14;\n break;\n\n case 11:\n _context.prev = 11;\n _context.t0 = _context[\"catch\"](2);\n console.log(_context.t0);\n\n case 14:\n _context.next = 17;\n break;\n\n case 16:\n this.$message.error(this.$t(\"msg.check_data\"));\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[2, 11]]);\n }));\n\n function showDeleteConfirm() {\n return _showDeleteConfirm.apply(this, arguments);\n }\n\n return showDeleteConfirm;\n }(),\n\n /**\n * 当前页\n */\n handleCurrentChange: function handleCurrentChange(val) {\n var searchParams = _objectSpread(_objectSpread({}, this.searchParams), {}, {\n pageNo: val\n });\n\n this.searchParams = searchParams;\n this.getFromList();\n },\n\n /**\n * 切换分页,每页显示多少条\n */\n handleSizeChange: function handleSizeChange(val) {\n var searchParams = _objectSpread(_objectSpread({}, this.searchParams), {}, {\n linesPerPage: val\n });\n\n this.searchParams = searchParams;\n this.getFromList();\n },\n\n /**\n * 选中数据源回显\n */\n onRowClick: function onRowClick(row, column, cell) {\n if (cell.cellIndex == 2) return false; // this.formDetailRef = row.id\n\n var params = _objectSpread(_objectSpread({}, this.params), {}, {\n id: row.id,\n //表单id\n name: row.name,\n //表单名称\n templatecontext: row.templatecontext,\n //源代码文本\n description: row.description,\n //描述\n type: row.type,\n //类型\n styleId: row.styleId,\n //样式库id\n showLog: row.showLog,\n //显示日志操作\n showWaterMark: row.showWaterMark,\n //是否显示水印\n openComment: row.openComment,\n //是否开通评论\n waterMarkScript: row.waterMarkScript,\n //水印脚本\n isopenablescript: row.isopenablescript,\n //是否可打开脚本\n iseditablescript: row.iseditablescript,\n //是否可编辑脚本\n mappingStr: row.mappingStr,\n //映射表数据\n orderno: row.orderno,\n //排序号\n permissionType: row.permissionType,\n //权限\n layoutType: row.layoutType,\n //手机端表单控件布局样式\n showType: row.showType //新旧版参数\n\n });\n\n this.$router.push({\n path: \"/home/softwaresdetails/page\",\n query: {\n edit: true,\n moduleId: this.$route.query.moduleId,\n params: params\n }\n });\n console.log(\"onRowClick\");\n },\n\n /**\n * 新建表单\n */\n cerateForm: function cerateForm() {\n this.chooseFormTypeVisible = true;\n },\n\n /**\n * 选择新建表单的显示类型(新版表单设计器和旧版表单设计器)\n * */\n chooseFormTypeOk: function chooseFormTypeOk(type) {\n this.showType = this.params.showType = type;\n this.chooseFormTypeVisible = false;\n this.$router.push({\n path: \"/home/softwaresdetails/page\",\n query: {\n edit: false,\n moduleId: this.$route.query.moduleId,\n params: this.params\n }\n });\n }\n }\n};",null]}