{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\bizComponents\\eipControl\\EipRealtimeTextarea.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\bizComponents\\eipControl\\EipRealtimeTextarea.vue","mtime":1675071991475},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport utils from \"@/components/bizComponents/utils.js\";\r\nimport { Message, Loading } from 'element-ui';\r\nimport { Base64 } from \"js-base64\";\r\nimport i18n from '@/components/lang/index.js';\r\nimport req from \"@/request.js\";\r\nimport sub_pio_mixin from \"@/components/bizComponents/sub-permission-mixin.js\";\r\n\r\nexport default {\r\n  name: \"ht-realtime-textarea\",\r\n  props: [\"value\", \"name\", \"placeholder\", \"option\",\"styles\", \"permission\"],\r\n  mixins: [sub_pio_mixin],//混入方式引入表单组件中公共属性，处理子表、孙表行内联动（切面修改permission_sub）\r\n  data() {\r\n    return {\r\n      inputValue:\"\",\r\n    };\r\n  },\r\n  components: {\r\n\r\n  },\r\n  computed: {\r\n    inputVal: {\r\n      get() {\r\n        return this.value;\r\n      },\r\n      set(val) {\r\n        this.$emit(\"input\", val);\r\n      }\r\n    },\r\n    inputWriteable: function() {\r\n      return utils.getWriteable(this.permission_sub);\r\n    },\r\n    inputValidate: function() {\r\n      var validateObj= this.$store.state.index.validate;\r\n      return utils.addRequiredOrNot(this.permission_sub, this.validate ,validateObj ,this);\r\n    },\r\n    inputName: function() {\r\n      let labeldesc = \"\";\r\n      if(this.$slots && this.$slots.labeldesc && this.$slots.labeldesc[0].children && this.$slots.labeldesc[0].children[0].text){\r\n        labeldesc = this.$slots.labeldesc[0].children[0].text;\r\n        return this.name ? this.name : utils.getName()+ \"-\" +labeldesc;\r\n      }else{\r\n        return this.name ? this.name : utils.getName();\r\n      }\r\n    }\r\n  },\r\n  mounted() {\r\n    if(this.value){\r\n      this.inputValue = this.value;\r\n    }\r\n\tlet _me = this;\r\n\tif(this.option.script){\r\n\t\tlet htCustomScript = Base64.decode(this.option.script);\r\n\t\tconst formVm = utils.getOnlineFormInstance(_me);\r\n\t\tfunction evil() {\r\n\t\t\tlet Fn = Function('req','data','i18n','Message','Loading','formVm','_this', htCustomScript); //一个变量指向Function，防止有些前端编译工具报错\r\n\t\t\tlet result = Fn(req,formVm.data,i18n,Message,Loading,formVm,_me);\r\n\t\t\treturn result;\r\n\t\t}\r\n\t\tlet resultValue = evil();\r\n\t\tif(resultValue){\r\n\t\t\tthis.inputValue = resultValue;\r\n\t\t}\r\n\t}\r\n\t\r\n  },\r\n  destroyed() {\r\n\r\n  },\r\n  created() {\r\n    this.$validator = this.$root.$validator;\r\n  },\r\n  methods: {\r\n    clear(){\r\n\t\tthis.inputValue = \"\";\r\n\t}\r\n  }\r\n};\r\n",null]}