{"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/modulesDetail/FormCleanData.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/modulesDetail/FormCleanData.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/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\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { getClearFieldData, handleClearFieldData as _handleClearFieldData } from \"@/service/FormApi.js\";\nimport { delMsg } from '@/utils/elementui';\nexport default {\n name: '',\n data: function data() {\n return {\n clearVisible: false,\n //清除数据对话框\n fieldData: [],\n multipleSelectionfieldName: [],\n // 选中要清除的记录的名称\n multipleSelectionfieldArray: [],\n // 选中要清除记录的数组\n btnLoading: false // 按钮的加载图标\n\n };\n },\n props: {\n formId: String\n },\n methods: {\n /**\n * 打开清除数据对话框\n */\n onClearField: function () {\n var _onClearField = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var response;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return getClearFieldData(this.formId);\n\n case 2:\n response = _context.sent;\n\n if (response.data.errcode == 0) {\n this.fieldData = response.data.data;\n }\n\n this.clearVisible = true;\n\n case 5:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function onClearField() {\n return _onClearField.apply(this, arguments);\n }\n\n return onClearField;\n }(),\n\n /**\n * 关闭清除数据对话框\n */\n handleClose: function handleClose() {\n this.clearVisible = false;\n },\n\n /**\n * 勾选行时响应\n */\n handleSelectionChangeField: function handleSelectionChangeField(val) {\n var multipleSelectionfieldName = [];\n\n if (val.length) {\n val.map(function (e) {\n multipleSelectionfieldName.push(e.name);\n });\n }\n\n this.multipleSelectionfieldArray = val;\n this.multipleSelectionfieldName = multipleSelectionfieldName;\n },\n\n /**\n * 确定清除表单字段数据\n */\n handleClearFieldData: function () {\n var _handleClearFieldData2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n var multipleSelectionfieldName, response;\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n multipleSelectionfieldName = this.multipleSelectionfieldName;\n\n if (!(multipleSelectionfieldName.length > 0)) {\n _context2.next = 18;\n break;\n }\n\n _context2.prev = 2;\n _context2.next = 5;\n return delMsg(this.$t('msg.confirm_clean'), this.$t('msg.tip'));\n\n case 5:\n this.btnLoading = true;\n _context2.next = 8;\n return _handleClearFieldData(multipleSelectionfieldName, this.formId);\n\n case 8:\n response = _context2.sent;\n this.btnLoading = false;\n\n if (response.data.errcode == 0) {\n this.handleClose();\n this.$message.success(this.$t('msg.clean_ss'));\n }\n\n _context2.next = 16;\n break;\n\n case 13:\n _context2.prev = 13;\n _context2.t0 = _context2[\"catch\"](2);\n console.log(_context2.t0);\n\n case 16:\n _context2.next = 19;\n break;\n\n case 18:\n this.$message.error(this.$t('msg.check_data'));\n\n case 19:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this, [[2, 13]]);\n }));\n\n function handleClearFieldData() {\n return _handleClearFieldData2.apply(this, arguments);\n }\n\n return handleClearFieldData;\n }()\n }\n};",null]}