{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/o_textarea.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/o_textarea.vue","mtime":1748425462721},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["\nimport Constant from \"@/Constant.js\"\nimport form_operation from \"@/components/form_operation_log\"\nimport controlHidden from \"@/assets/js/controlHidden.js\"\nexport default {\n name: \"o-textarea\",\n props: [\"id\", \"isSearchForm\"],\n components: {\n form_operation,\n },\n computed: {\n field: function() {\n let formData = this.$parent.findField(this.id);\n if(formData.displayType == 5 || formData.displayType == 3) {\n formData.printHiddenValue = formData.printHiddenValue?formData.printHiddenValue.replace(/ /g,\"\"):'';\n }\n if(formData.dataMapping) {//视图选择框设置了数据映射,多行文本框得隐藏,多行文本框只是用于数据的存储\n formData.displayType = Constant.PermissionType_HIDDEN\n }\n //接收iframe传递过来的参数--bcx\n window.addEventListener('message',function(e){\n // console.log('formData.id',formData.id)\n // const safeData = this.processMessageData(e.data);\n // if (safeData) {\n // Object.keys(safeData).forEach(key => {\n // this.$set(formData, 'value', safeData[key]);\n // });\n // }\n // if(formData.id.indexOf('name')>-1){\n // console.log('name',e.data)\n // formData.value=JSON.stringify(e.data)\n // }\n if(formData.id.indexOf('shapedLocation')>-1){\n console.log('shapedLocation',e.data)\n formData.value=JSON.stringify(e.data.shapedLocation)\n }\n })\n return formData; //this.$parent.findField(this.id);\n }\n },\n mounted(){\n this.$nextTick(()=>{\n let field = this.field;\n if(field.textType == \"hidden\" || field.displayType == Constant.PermissionType_HIDDEN){\n if(field.isHideType) {\n let id = this.id,\n formShowType = field.formShowType;\n controlHidden({id, field, formShowType})\n }\n }\n \n if(field.customStyle) {\n let customStyle = field.customStyle.content;\n customStyle = customStyle.split(\"{\")[1].split(\"}\")[0];\n // this.$refs.textArea.$refs.textarea.style = customStyle;\n if(field.displayType == Constant.PermissionType_MODIFY) {\n if(this.$refs.textArea){\n this.$refs.textArea.$refs.textarea.style = customStyle;\n }\n }\n }\n })\n },\n data: function() {\n return { \n Constant,\n isActive:false,\n errorMessage:'',\n showLogsIcon: true,\n tableData:[],\n showLogsDialog: false,\n operationData:'',\n };\n },\n methods: {\n processMessageData(data) {\n if (!data || typeof data !== 'object') return null;\n \n return Object.keys(data).reduce((acc, key) => {\n const value = data[key];\n acc[key] = typeof value === 'object' \n ? JSON.stringify(value) \n : value;\n return acc;\n }, {});\n },\n hiddenLogsDialog() {\n this.showLogsIcon = false;\n this.showLogsDialog = false;\n },\n\n getOperationLogs() {\n let obj = {};\n obj.fieldName = this.field.name;\n this.operationData = obj;\n this.showLogsDialog = true;\n },\n\n enter(){\n if(this.field.isModified) {\n this.showLogsIcon = true;\n }\n },\n \n handleBlurChange() {\n let field = this.field\n if(field.instantValidate) {\n let value = true;\n let formData = this.$parent.checkData(value, field.docId);\n //item[this.field.name] = this.field.value;\n this.$api.formValidation(\n this.$root.appid, \n formData,\n {\n onSucess: response => {\n if(response.data.errcode == 4001) {\n if(response.data.errors && response.data.errors.length > 0) {\n let arr = response.data.errors;\n for(let i=0; i