{"remainingRequest":"/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/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":["//\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 {\n getClearFieldData,\n handleClearFieldData,\n} from \"@/service/FormApi.js\";\nimport {delMsg} from '@/utils/elementui'\nexport default {\n name: '',\n data() {\n return {\n clearVisible: false, //清除数据对话框\n fieldData: [],\n\n multipleSelectionfieldName: [], // 选中要清除的记录的名称\n multipleSelectionfieldArray: [], // 选中要清除记录的数组\n btnLoading: false, // 按钮的加载图标\n }\n },\n props: {\n formId: String\n },\n methods:{\n /**\n * 打开清除数据对话框\n */\n async onClearField() {\n const response = await getClearFieldData(this.formId);\n if (response.data.errcode == 0) {\n this.fieldData = response.data.data;\n }\n this.clearVisible = true;\n },\n\n /**\n * 关闭清除数据对话框\n */\n handleClose() {\n this.clearVisible = false;\n },\n\n /**\n * 勾选行时响应\n */\n handleSelectionChangeField(val) {\n let multipleSelectionfieldName = [];\n if (val.length) {\n val.map((e) => {\n multipleSelectionfieldName.push(e.name);\n });\n }\n this.multipleSelectionfieldArray = val;\n this.multipleSelectionfieldName = multipleSelectionfieldName;\n },\n\n /**\n * 确定清除表单字段数据\n */\n async handleClearFieldData() {\n let multipleSelectionfieldName = this.multipleSelectionfieldName;\n if(multipleSelectionfieldName.length>0){\n try{\n await delMsg(this.$t('msg.confirm_clean'), this.$t('msg.tip'))\n this.btnLoading = true;\n const response = await handleClearFieldData(multipleSelectionfieldName, this.formId);\n this.btnLoading = false;\n if (response.data.errcode == 0) {\n this.handleClose();\n this.$message.success(this.$t('msg.clean_ss'));\n }\n }catch(e){\n console.log(e)\n }\n }else{\n this.$message.error(this.$t('msg.check_data'))\n }\n \n },\n }\n}\n",null]}